Subversion Repositories SmartDukaan

Rev

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

Rev 3530 Rev 3555
Line 132... Line 132...
132
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException;
132
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException;
133
 
133
 
134
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
134
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
135
 
135
 
136
    /**
136
    /**
-
 
137
     * Deletes all the discounts associated with the cart
-
 
138
     * 
-
 
139
     * @param cartId
-
 
140
     */
-
 
141
    public void deleteDiscountsFromCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
-
 
142
 
-
 
143
    /**
-
 
144
     * Accepts a list of thrift objects of Discount type and saves them
-
 
145
     * 
-
 
146
     * @param discounts
-
 
147
     */
-
 
148
    public void saveDiscounts(List<Discount> discounts) throws ShoppingCartException, org.apache.thrift.TException;
-
 
149
 
-
 
150
    /**
137
     * Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
151
     * Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
138
     * 
152
     * 
139
     * @param cartId
153
     * @param cartId
140
     * @param sessionSource
154
     * @param sessionSource
141
     * @param sessionStartTime
155
     * @param sessionStartTime
Line 364... Line 378...
364
 
378
 
365
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException;
379
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException;
366
 
380
 
367
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeCoupon_call> resultHandler) throws org.apache.thrift.TException;
381
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeCoupon_call> resultHandler) throws org.apache.thrift.TException;
368
 
382
 
-
 
383
    public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
-
 
384
 
-
 
385
    public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
-
 
386
 
369
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
387
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
370
 
388
 
371
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
389
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
372
 
390
 
373
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
391
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
Line 1818... Line 1836...
1818
        throw result.scx;
1836
        throw result.scx;
1819
      }
1837
      }
1820
      return;
1838
      return;
1821
    }
1839
    }
1822
 
1840
 
-
 
1841
    public void deleteDiscountsFromCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
-
 
1842
    {
-
 
1843
      send_deleteDiscountsFromCart(cartId);
-
 
1844
      recv_deleteDiscountsFromCart();
-
 
1845
    }
-
 
1846
 
-
 
1847
    public void send_deleteDiscountsFromCart(long cartId) throws org.apache.thrift.TException
-
 
1848
    {
-
 
1849
      deleteDiscountsFromCart_args args = new deleteDiscountsFromCart_args();
-
 
1850
      args.setCartId(cartId);
-
 
1851
      sendBase("deleteDiscountsFromCart", args);
-
 
1852
    }
-
 
1853
 
-
 
1854
    public void recv_deleteDiscountsFromCart() throws ShoppingCartException, org.apache.thrift.TException
-
 
1855
    {
-
 
1856
      deleteDiscountsFromCart_result result = new deleteDiscountsFromCart_result();
-
 
1857
      receiveBase(result, "deleteDiscountsFromCart");
-
 
1858
      if (result.scx != null) {
-
 
1859
        throw result.scx;
-
 
1860
      }
-
 
1861
      return;
-
 
1862
    }
-
 
1863
 
-
 
1864
    public void saveDiscounts(List<Discount> discounts) throws ShoppingCartException, org.apache.thrift.TException
-
 
1865
    {
-
 
1866
      send_saveDiscounts(discounts);
-
 
1867
      recv_saveDiscounts();
-
 
1868
    }
-
 
1869
 
-
 
1870
    public void send_saveDiscounts(List<Discount> discounts) throws org.apache.thrift.TException
-
 
1871
    {
-
 
1872
      saveDiscounts_args args = new saveDiscounts_args();
-
 
1873
      args.setDiscounts(discounts);
-
 
1874
      sendBase("saveDiscounts", args);
-
 
1875
    }
-
 
1876
 
-
 
1877
    public void recv_saveDiscounts() throws ShoppingCartException, org.apache.thrift.TException
-
 
1878
    {
-
 
1879
      saveDiscounts_result result = new saveDiscounts_result();
-
 
1880
      receiveBase(result, "saveDiscounts");
-
 
1881
      if (result.scx != null) {
-
 
1882
        throw result.scx;
-
 
1883
      }
-
 
1884
      return;
-
 
1885
    }
-
 
1886
 
1823
    public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException
1887
    public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException
1824
    {
1888
    {
1825
      send_createOrders(cartId, sessionSource, sessionStartTime);
1889
      send_createOrders(cartId, sessionSource, sessionStartTime);
1826
      return recv_createOrders();
1890
      return recv_createOrders();
1827
    }
1891
    }
Line 4044... Line 4108...
4044
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4045
        (new Client(prot)).recv_removeCoupon();
4109
        (new Client(prot)).recv_removeCoupon();
4046
      }
4110
      }
4047
    }
4111
    }
4048
 
4112
 
-
 
4113
    public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException {
-
 
4114
      checkReady();
-
 
4115
      deleteDiscountsFromCart_call method_call = new deleteDiscountsFromCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4116
      this.___currentMethod = method_call;
-
 
4117
      ___manager.call(method_call);
-
 
4118
    }
-
 
4119
 
-
 
4120
    public static class deleteDiscountsFromCart_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4121
      private long cartId;
-
 
4122
      public deleteDiscountsFromCart_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<deleteDiscountsFromCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4123
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4124
        this.cartId = cartId;
-
 
4125
      }
-
 
4126
 
-
 
4127
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4128
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteDiscountsFromCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4129
        deleteDiscountsFromCart_args args = new deleteDiscountsFromCart_args();
-
 
4130
        args.setCartId(cartId);
-
 
4131
        args.write(prot);
-
 
4132
        prot.writeMessageEnd();
-
 
4133
      }
-
 
4134
 
-
 
4135
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
4136
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4137
          throw new IllegalStateException("Method call not finished!");
-
 
4138
        }
-
 
4139
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4140
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4141
        (new Client(prot)).recv_deleteDiscountsFromCart();
-
 
4142
      }
-
 
4143
    }
-
 
4144
 
-
 
4145
    public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<saveDiscounts_call> resultHandler) throws org.apache.thrift.TException {
-
 
4146
      checkReady();
-
 
4147
      saveDiscounts_call method_call = new saveDiscounts_call(discounts, resultHandler, this, ___protocolFactory, ___transport);
-
 
4148
      this.___currentMethod = method_call;
-
 
4149
      ___manager.call(method_call);
-
 
4150
    }
-
 
4151
 
-
 
4152
    public static class saveDiscounts_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4153
      private List<Discount> discounts;
-
 
4154
      public saveDiscounts_call(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<saveDiscounts_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4155
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4156
        this.discounts = discounts;
-
 
4157
      }
-
 
4158
 
-
 
4159
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4160
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveDiscounts", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4161
        saveDiscounts_args args = new saveDiscounts_args();
-
 
4162
        args.setDiscounts(discounts);
-
 
4163
        args.write(prot);
-
 
4164
        prot.writeMessageEnd();
-
 
4165
      }
-
 
4166
 
-
 
4167
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
4168
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4169
          throw new IllegalStateException("Method call not finished!");
-
 
4170
        }
-
 
4171
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4172
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4173
        (new Client(prot)).recv_saveDiscounts();
-
 
4174
      }
-
 
4175
    }
-
 
4176
 
4049
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
4177
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
4050
      checkReady();
4178
      checkReady();
4051
      createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, resultHandler, this, ___protocolFactory, ___transport);
4179
      createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, resultHandler, this, ___protocolFactory, ___transport);
4052
      this.___currentMethod = method_call;
4180
      this.___currentMethod = method_call;
4053
      ___manager.call(method_call);
4181
      ___manager.call(method_call);
Line 4663... Line 4791...
4663
      processMap.put("changeQuantity", new changeQuantity());
4791
      processMap.put("changeQuantity", new changeQuantity());
4664
      processMap.put("changeItemStatus", new changeItemStatus());
4792
      processMap.put("changeItemStatus", new changeItemStatus());
4665
      processMap.put("addAddressToCart", new addAddressToCart());
4793
      processMap.put("addAddressToCart", new addAddressToCart());
4666
      processMap.put("applyCouponToCart", new applyCouponToCart());
4794
      processMap.put("applyCouponToCart", new applyCouponToCart());
4667
      processMap.put("removeCoupon", new removeCoupon());
4795
      processMap.put("removeCoupon", new removeCoupon());
-
 
4796
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
-
 
4797
      processMap.put("saveDiscounts", new saveDiscounts());
4668
      processMap.put("createOrders", new createOrders());
4798
      processMap.put("createOrders", new createOrders());
4669
      processMap.put("validateCart", new validateCart());
4799
      processMap.put("validateCart", new validateCart());
4670
      processMap.put("mergeCart", new mergeCart());
4800
      processMap.put("mergeCart", new mergeCart());
4671
      processMap.put("checkOut", new checkOut());
4801
      processMap.put("checkOut", new checkOut());
4672
      processMap.put("resetCart", new resetCart());
4802
      processMap.put("resetCart", new resetCart());
Line 5755... Line 5885...
5755
        }
5885
        }
5756
        return result;
5886
        return result;
5757
      }
5887
      }
5758
    }
5888
    }
5759
 
5889
 
-
 
5890
    private static class deleteDiscountsFromCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteDiscountsFromCart_args> {
-
 
5891
      public deleteDiscountsFromCart() {
-
 
5892
        super("deleteDiscountsFromCart");
-
 
5893
      }
-
 
5894
 
-
 
5895
      protected deleteDiscountsFromCart_args getEmptyArgsInstance() {
-
 
5896
        return new deleteDiscountsFromCart_args();
-
 
5897
      }
-
 
5898
 
-
 
5899
      protected deleteDiscountsFromCart_result getResult(I iface, deleteDiscountsFromCart_args args) throws org.apache.thrift.TException {
-
 
5900
        deleteDiscountsFromCart_result result = new deleteDiscountsFromCart_result();
-
 
5901
        try {
-
 
5902
          iface.deleteDiscountsFromCart(args.cartId);
-
 
5903
        } catch (ShoppingCartException scx) {
-
 
5904
          result.scx = scx;
-
 
5905
        }
-
 
5906
        return result;
-
 
5907
      }
-
 
5908
    }
-
 
5909
 
-
 
5910
    private static class saveDiscounts<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveDiscounts_args> {
-
 
5911
      public saveDiscounts() {
-
 
5912
        super("saveDiscounts");
-
 
5913
      }
-
 
5914
 
-
 
5915
      protected saveDiscounts_args getEmptyArgsInstance() {
-
 
5916
        return new saveDiscounts_args();
-
 
5917
      }
-
 
5918
 
-
 
5919
      protected saveDiscounts_result getResult(I iface, saveDiscounts_args args) throws org.apache.thrift.TException {
-
 
5920
        saveDiscounts_result result = new saveDiscounts_result();
-
 
5921
        try {
-
 
5922
          iface.saveDiscounts(args.discounts);
-
 
5923
        } catch (ShoppingCartException scx) {
-
 
5924
          result.scx = scx;
-
 
5925
        }
-
 
5926
        return result;
-
 
5927
      }
-
 
5928
    }
-
 
5929
 
5760
    private static class createOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrders_args> {
5930
    private static class createOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrders_args> {
5761
      public createOrders() {
5931
      public createOrders() {
5762
        super("createOrders");
5932
        super("createOrders");
5763
      }
5933
      }
5764
 
5934
 
Line 19003... Line 19173...
19003
        }
19173
        }
19004
        switch (field.id) {
19174
        switch (field.id) {
19005
          case 0: // SUCCESS
19175
          case 0: // SUCCESS
19006
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19176
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19007
              {
19177
              {
19008
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
19178
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
19009
                this.success = new ArrayList<Address>(_list20.size);
19179
                this.success = new ArrayList<Address>(_list24.size);
19010
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
19180
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
19011
                {
19181
                {
19012
                  Address _elem22; // required
19182
                  Address _elem26; // required
19013
                  _elem22 = new Address();
19183
                  _elem26 = new Address();
19014
                  _elem22.read(iprot);
19184
                  _elem26.read(iprot);
19015
                  this.success.add(_elem22);
19185
                  this.success.add(_elem26);
19016
                }
19186
                }
19017
                iprot.readListEnd();
19187
                iprot.readListEnd();
19018
              }
19188
              }
19019
            } else { 
19189
            } else { 
19020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 19042... Line 19212...
19042
 
19212
 
19043
      if (this.isSetSuccess()) {
19213
      if (this.isSetSuccess()) {
19044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19214
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19045
        {
19215
        {
19046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19216
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19047
          for (Address _iter23 : this.success)
19217
          for (Address _iter27 : this.success)
19048
          {
19218
          {
19049
            _iter23.write(oprot);
19219
            _iter27.write(oprot);
19050
          }
19220
          }
19051
          oprot.writeListEnd();
19221
          oprot.writeListEnd();
19052
        }
19222
        }
19053
        oprot.writeFieldEnd();
19223
        oprot.writeFieldEnd();
19054
      } else if (this.isSetUcx()) {
19224
      } else if (this.isSetUcx()) {
Line 23699... Line 23869...
23699
        }
23869
        }
23700
        switch (field.id) {
23870
        switch (field.id) {
23701
          case 0: // SUCCESS
23871
          case 0: // SUCCESS
23702
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23872
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23703
              {
23873
              {
23704
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
23874
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
23705
                this.success = new ArrayList<UserCommunication>(_list24.size);
23875
                this.success = new ArrayList<UserCommunication>(_list28.size);
23706
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
23876
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
23707
                {
23877
                {
23708
                  UserCommunication _elem26; // required
23878
                  UserCommunication _elem30; // required
23709
                  _elem26 = new UserCommunication();
23879
                  _elem30 = new UserCommunication();
23710
                  _elem26.read(iprot);
23880
                  _elem30.read(iprot);
23711
                  this.success.add(_elem26);
23881
                  this.success.add(_elem30);
23712
                }
23882
                }
23713
                iprot.readListEnd();
23883
                iprot.readListEnd();
23714
              }
23884
              }
23715
            } else { 
23885
            } else { 
23716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 23738... Line 23908...
23738
 
23908
 
23739
      if (this.isSetSuccess()) {
23909
      if (this.isSetSuccess()) {
23740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23910
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23741
        {
23911
        {
23742
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23912
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23743
          for (UserCommunication _iter27 : this.success)
23913
          for (UserCommunication _iter31 : this.success)
23744
          {
23914
          {
23745
            _iter27.write(oprot);
23915
            _iter31.write(oprot);
23746
          }
23916
          }
23747
          oprot.writeListEnd();
23917
          oprot.writeListEnd();
23748
        }
23918
        }
23749
        oprot.writeFieldEnd();
23919
        oprot.writeFieldEnd();
23750
      } else if (this.isSetUcx()) {
23920
      } else if (this.isSetUcx()) {
Line 24318... Line 24488...
24318
        }
24488
        }
24319
        switch (field.id) {
24489
        switch (field.id) {
24320
          case 0: // SUCCESS
24490
          case 0: // SUCCESS
24321
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24491
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24322
              {
24492
              {
24323
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
24493
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
24324
                this.success = new ArrayList<UserCommunication>(_list28.size);
24494
                this.success = new ArrayList<UserCommunication>(_list32.size);
24325
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
24495
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
24326
                {
24496
                {
24327
                  UserCommunication _elem30; // required
24497
                  UserCommunication _elem34; // required
24328
                  _elem30 = new UserCommunication();
24498
                  _elem34 = new UserCommunication();
24329
                  _elem30.read(iprot);
24499
                  _elem34.read(iprot);
24330
                  this.success.add(_elem30);
24500
                  this.success.add(_elem34);
24331
                }
24501
                }
24332
                iprot.readListEnd();
24502
                iprot.readListEnd();
24333
              }
24503
              }
24334
            } else { 
24504
            } else { 
24335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24357... Line 24527...
24357
 
24527
 
24358
      if (this.isSetSuccess()) {
24528
      if (this.isSetSuccess()) {
24359
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24529
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24360
        {
24530
        {
24361
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24531
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24362
          for (UserCommunication _iter31 : this.success)
24532
          for (UserCommunication _iter35 : this.success)
24363
          {
24533
          {
24364
            _iter31.write(oprot);
24534
            _iter35.write(oprot);
24365
          }
24535
          }
24366
          oprot.writeListEnd();
24536
          oprot.writeListEnd();
24367
        }
24537
        }
24368
        oprot.writeFieldEnd();
24538
        oprot.writeFieldEnd();
24369
      } else if (this.isSetUcx()) {
24539
      } else if (this.isSetUcx()) {
Line 25701... Line 25871...
25701
        }
25871
        }
25702
        switch (field.id) {
25872
        switch (field.id) {
25703
          case 0: // SUCCESS
25873
          case 0: // SUCCESS
25704
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25874
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25705
              {
25875
              {
25706
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
25876
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
25707
                this.success = new ArrayList<MasterAffiliate>(_list32.size);
25877
                this.success = new ArrayList<MasterAffiliate>(_list36.size);
25708
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
25878
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
25709
                {
25879
                {
25710
                  MasterAffiliate _elem34; // required
25880
                  MasterAffiliate _elem38; // required
25711
                  _elem34 = new MasterAffiliate();
25881
                  _elem38 = new MasterAffiliate();
25712
                  _elem34.read(iprot);
25882
                  _elem38.read(iprot);
25713
                  this.success.add(_elem34);
25883
                  this.success.add(_elem38);
25714
                }
25884
                }
25715
                iprot.readListEnd();
25885
                iprot.readListEnd();
25716
              }
25886
              }
25717
            } else { 
25887
            } else { 
25718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 25740... Line 25910...
25740
 
25910
 
25741
      if (this.isSetSuccess()) {
25911
      if (this.isSetSuccess()) {
25742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25912
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25743
        {
25913
        {
25744
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25914
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25745
          for (MasterAffiliate _iter35 : this.success)
25915
          for (MasterAffiliate _iter39 : this.success)
25746
          {
25916
          {
25747
            _iter35.write(oprot);
25917
            _iter39.write(oprot);
25748
          }
25918
          }
25749
          oprot.writeListEnd();
25919
          oprot.writeListEnd();
25750
        }
25920
        }
25751
        oprot.writeFieldEnd();
25921
        oprot.writeFieldEnd();
25752
      } else if (this.isSetUtx()) {
25922
      } else if (this.isSetUtx()) {
Line 30729... Line 30899...
30729
        }
30899
        }
30730
        switch (field.id) {
30900
        switch (field.id) {
30731
          case 0: // SUCCESS
30901
          case 0: // SUCCESS
30732
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30902
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30733
              {
30903
              {
30734
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
30904
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
30735
                this.success = new ArrayList<Affiliate>(_list36.size);
30905
                this.success = new ArrayList<Affiliate>(_list40.size);
30736
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
30906
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
30737
                {
30907
                {
30738
                  Affiliate _elem38; // required
30908
                  Affiliate _elem42; // required
30739
                  _elem38 = new Affiliate();
30909
                  _elem42 = new Affiliate();
30740
                  _elem38.read(iprot);
30910
                  _elem42.read(iprot);
30741
                  this.success.add(_elem38);
30911
                  this.success.add(_elem42);
30742
                }
30912
                }
30743
                iprot.readListEnd();
30913
                iprot.readListEnd();
30744
              }
30914
              }
30745
            } else { 
30915
            } else { 
30746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 30768... Line 30938...
30768
 
30938
 
30769
      if (this.isSetSuccess()) {
30939
      if (this.isSetSuccess()) {
30770
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30940
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30771
        {
30941
        {
30772
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30942
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30773
          for (Affiliate _iter39 : this.success)
30943
          for (Affiliate _iter43 : this.success)
30774
          {
30944
          {
30775
            _iter39.write(oprot);
30945
            _iter43.write(oprot);
30776
          }
30946
          }
30777
          oprot.writeListEnd();
30947
          oprot.writeListEnd();
30778
        }
30948
        }
30779
        oprot.writeFieldEnd();
30949
        oprot.writeFieldEnd();
30780
      } else if (this.isSetUtx()) {
30950
      } else if (this.isSetUtx()) {
Line 33401... Line 33571...
33401
        }
33571
        }
33402
        switch (field.id) {
33572
        switch (field.id) {
33403
          case 0: // SUCCESS
33573
          case 0: // SUCCESS
33404
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33574
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33405
              {
33575
              {
33406
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
33576
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
33407
                this.success = new ArrayList<TrackLog>(_list40.size);
33577
                this.success = new ArrayList<TrackLog>(_list44.size);
33408
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
33578
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
33409
                {
33579
                {
33410
                  TrackLog _elem42; // required
33580
                  TrackLog _elem46; // required
33411
                  _elem42 = new TrackLog();
33581
                  _elem46 = new TrackLog();
33412
                  _elem42.read(iprot);
33582
                  _elem46.read(iprot);
33413
                  this.success.add(_elem42);
33583
                  this.success.add(_elem46);
33414
                }
33584
                }
33415
                iprot.readListEnd();
33585
                iprot.readListEnd();
33416
              }
33586
              }
33417
            } else { 
33587
            } else { 
33418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 33440... Line 33610...
33440
 
33610
 
33441
      if (this.isSetSuccess()) {
33611
      if (this.isSetSuccess()) {
33442
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33612
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33443
        {
33613
        {
33444
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33614
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33445
          for (TrackLog _iter43 : this.success)
33615
          for (TrackLog _iter47 : this.success)
33446
          {
33616
          {
33447
            _iter43.write(oprot);
33617
            _iter47.write(oprot);
33448
          }
33618
          }
33449
          oprot.writeListEnd();
33619
          oprot.writeListEnd();
33450
        }
33620
        }
33451
        oprot.writeFieldEnd();
33621
        oprot.writeFieldEnd();
33452
      } else if (this.isSetUtx()) {
33622
      } else if (this.isSetUtx()) {
Line 34114... Line 34284...
34114
        }
34284
        }
34115
        switch (field.id) {
34285
        switch (field.id) {
34116
          case 0: // SUCCESS
34286
          case 0: // SUCCESS
34117
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34287
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34118
              {
34288
              {
34119
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
34289
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
34120
                this.success = new ArrayList<TrackLog>(_list44.size);
34290
                this.success = new ArrayList<TrackLog>(_list48.size);
34121
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
34291
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
34122
                {
34292
                {
34123
                  TrackLog _elem46; // required
34293
                  TrackLog _elem50; // required
34124
                  _elem46 = new TrackLog();
34294
                  _elem50 = new TrackLog();
34125
                  _elem46.read(iprot);
34295
                  _elem50.read(iprot);
34126
                  this.success.add(_elem46);
34296
                  this.success.add(_elem50);
34127
                }
34297
                }
34128
                iprot.readListEnd();
34298
                iprot.readListEnd();
34129
              }
34299
              }
34130
            } else { 
34300
            } else { 
34131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 34153... Line 34323...
34153
 
34323
 
34154
      if (this.isSetSuccess()) {
34324
      if (this.isSetSuccess()) {
34155
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34325
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34156
        {
34326
        {
34157
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34327
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34158
          for (TrackLog _iter47 : this.success)
34328
          for (TrackLog _iter51 : this.success)
34159
          {
34329
          {
34160
            _iter47.write(oprot);
34330
            _iter51.write(oprot);
34161
          }
34331
          }
34162
          oprot.writeListEnd();
34332
          oprot.writeListEnd();
34163
        }
34333
        }
34164
        oprot.writeFieldEnd();
34334
        oprot.writeFieldEnd();
34165
      } else if (this.isSetUtx()) {
34335
      } else if (this.isSetUtx()) {
Line 35003... Line 35173...
35003
        }
35173
        }
35004
        switch (field.id) {
35174
        switch (field.id) {
35005
          case 0: // SUCCESS
35175
          case 0: // SUCCESS
35006
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35176
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35007
              {
35177
              {
35008
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
35178
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
35009
                this.success = new ArrayList<TrackLog>(_list48.size);
35179
                this.success = new ArrayList<TrackLog>(_list52.size);
35010
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
35180
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
35011
                {
35181
                {
35012
                  TrackLog _elem50; // required
35182
                  TrackLog _elem54; // required
35013
                  _elem50 = new TrackLog();
35183
                  _elem54 = new TrackLog();
35014
                  _elem50.read(iprot);
35184
                  _elem54.read(iprot);
35015
                  this.success.add(_elem50);
35185
                  this.success.add(_elem54);
35016
                }
35186
                }
35017
                iprot.readListEnd();
35187
                iprot.readListEnd();
35018
              }
35188
              }
35019
            } else { 
35189
            } else { 
35020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 35042... Line 35212...
35042
 
35212
 
35043
      if (this.isSetSuccess()) {
35213
      if (this.isSetSuccess()) {
35044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35214
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35045
        {
35215
        {
35046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35216
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35047
          for (TrackLog _iter51 : this.success)
35217
          for (TrackLog _iter55 : this.success)
35048
          {
35218
          {
35049
            _iter51.write(oprot);
35219
            _iter55.write(oprot);
35050
          }
35220
          }
35051
          oprot.writeListEnd();
35221
          oprot.writeListEnd();
35052
        }
35222
        }
35053
        oprot.writeFieldEnd();
35223
        oprot.writeFieldEnd();
35054
      } else if (this.isSetUtx()) {
35224
      } else if (this.isSetUtx()) {
Line 37843... Line 38013...
37843
        }
38013
        }
37844
        switch (field.id) {
38014
        switch (field.id) {
37845
          case 0: // SUCCESS
38015
          case 0: // SUCCESS
37846
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38016
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37847
              {
38017
              {
37848
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
38018
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
37849
                this.success = new ArrayList<Cart>(_list52.size);
38019
                this.success = new ArrayList<Cart>(_list56.size);
37850
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
38020
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
37851
                {
38021
                {
37852
                  Cart _elem54; // required
38022
                  Cart _elem58; // required
37853
                  _elem54 = new Cart();
38023
                  _elem58 = new Cart();
37854
                  _elem54.read(iprot);
38024
                  _elem58.read(iprot);
37855
                  this.success.add(_elem54);
38025
                  this.success.add(_elem58);
37856
                }
38026
                }
37857
                iprot.readListEnd();
38027
                iprot.readListEnd();
37858
              }
38028
              }
37859
            } else { 
38029
            } else { 
37860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 37882... Line 38052...
37882
 
38052
 
37883
      if (this.isSetSuccess()) {
38053
      if (this.isSetSuccess()) {
37884
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38054
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37885
        {
38055
        {
37886
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38056
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37887
          for (Cart _iter55 : this.success)
38057
          for (Cart _iter59 : this.success)
37888
          {
38058
          {
37889
            _iter55.write(oprot);
38059
            _iter59.write(oprot);
37890
          }
38060
          }
37891
          oprot.writeListEnd();
38061
          oprot.writeListEnd();
37892
        }
38062
        }
37893
        oprot.writeFieldEnd();
38063
        oprot.writeFieldEnd();
37894
      } else if (this.isSetScx()) {
38064
      } else if (this.isSetScx()) {
Line 38568... Line 38738...
38568
        }
38738
        }
38569
        switch (field.id) {
38739
        switch (field.id) {
38570
          case 0: // SUCCESS
38740
          case 0: // SUCCESS
38571
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38741
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38572
              {
38742
              {
38573
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
38743
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
38574
                this.success = new ArrayList<Cart>(_list56.size);
38744
                this.success = new ArrayList<Cart>(_list60.size);
38575
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
38745
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
38576
                {
38746
                {
38577
                  Cart _elem58; // required
38747
                  Cart _elem62; // required
38578
                  _elem58 = new Cart();
38748
                  _elem62 = new Cart();
38579
                  _elem58.read(iprot);
38749
                  _elem62.read(iprot);
38580
                  this.success.add(_elem58);
38750
                  this.success.add(_elem62);
38581
                }
38751
                }
38582
                iprot.readListEnd();
38752
                iprot.readListEnd();
38583
              }
38753
              }
38584
            } else { 
38754
            } else { 
38585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 38607... Line 38777...
38607
 
38777
 
38608
      if (this.isSetSuccess()) {
38778
      if (this.isSetSuccess()) {
38609
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38779
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38610
        {
38780
        {
38611
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38781
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38612
          for (Cart _iter59 : this.success)
38782
          for (Cart _iter63 : this.success)
38613
          {
38783
          {
38614
            _iter59.write(oprot);
38784
            _iter63.write(oprot);
38615
          }
38785
          }
38616
          oprot.writeListEnd();
38786
          oprot.writeListEnd();
38617
        }
38787
        }
38618
        oprot.writeFieldEnd();
38788
        oprot.writeFieldEnd();
38619
      } else if (this.isSetScx()) {
38789
      } else if (this.isSetScx()) {
Line 39464... Line 39634...
39464
        }
39634
        }
39465
        switch (field.id) {
39635
        switch (field.id) {
39466
          case 0: // SUCCESS
39636
          case 0: // SUCCESS
39467
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39637
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39468
              {
39638
              {
39469
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
39639
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
39470
                this.success = new ArrayList<Cart>(_list60.size);
39640
                this.success = new ArrayList<Cart>(_list64.size);
39471
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
39641
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
39472
                {
39642
                {
39473
                  Cart _elem62; // required
39643
                  Cart _elem66; // required
39474
                  _elem62 = new Cart();
39644
                  _elem66 = new Cart();
39475
                  _elem62.read(iprot);
39645
                  _elem66.read(iprot);
39476
                  this.success.add(_elem62);
39646
                  this.success.add(_elem66);
39477
                }
39647
                }
39478
                iprot.readListEnd();
39648
                iprot.readListEnd();
39479
              }
39649
              }
39480
            } else { 
39650
            } else { 
39481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 39503... Line 39673...
39503
 
39673
 
39504
      if (this.isSetSuccess()) {
39674
      if (this.isSetSuccess()) {
39505
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39675
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39506
        {
39676
        {
39507
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39677
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39508
          for (Cart _iter63 : this.success)
39678
          for (Cart _iter67 : this.success)
39509
          {
39679
          {
39510
            _iter63.write(oprot);
39680
            _iter67.write(oprot);
39511
          }
39681
          }
39512
          oprot.writeListEnd();
39682
          oprot.writeListEnd();
39513
        }
39683
        }
39514
        oprot.writeFieldEnd();
39684
        oprot.writeFieldEnd();
39515
      } else if (this.isSetScx()) {
39685
      } else if (this.isSetScx()) {
Line 45391... Line 45561...
45391
      }
45561
      }
45392
    }
45562
    }
45393
 
45563
 
45394
  }
45564
  }
45395
 
45565
 
-
 
45566
  public static class deleteDiscountsFromCart_args implements org.apache.thrift.TBase<deleteDiscountsFromCart_args, deleteDiscountsFromCart_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteDiscountsFromCart_args");
-
 
45568
 
-
 
45569
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
45570
 
-
 
45571
    private long cartId; // required
-
 
45572
 
-
 
45573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45575
      CART_ID((short)1, "cartId");
-
 
45576
 
-
 
45577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45578
 
-
 
45579
      static {
-
 
45580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45581
          byName.put(field.getFieldName(), field);
-
 
45582
        }
-
 
45583
      }
-
 
45584
 
-
 
45585
      /**
-
 
45586
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45587
       */
-
 
45588
      public static _Fields findByThriftId(int fieldId) {
-
 
45589
        switch(fieldId) {
-
 
45590
          case 1: // CART_ID
-
 
45591
            return CART_ID;
-
 
45592
          default:
-
 
45593
            return null;
-
 
45594
        }
-
 
45595
      }
-
 
45596
 
-
 
45597
      /**
-
 
45598
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45599
       * if it is not found.
-
 
45600
       */
-
 
45601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45602
        _Fields fields = findByThriftId(fieldId);
-
 
45603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45604
        return fields;
-
 
45605
      }
-
 
45606
 
-
 
45607
      /**
-
 
45608
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45609
       */
-
 
45610
      public static _Fields findByName(String name) {
-
 
45611
        return byName.get(name);
-
 
45612
      }
-
 
45613
 
-
 
45614
      private final short _thriftId;
-
 
45615
      private final String _fieldName;
-
 
45616
 
-
 
45617
      _Fields(short thriftId, String fieldName) {
-
 
45618
        _thriftId = thriftId;
-
 
45619
        _fieldName = fieldName;
-
 
45620
      }
-
 
45621
 
-
 
45622
      public short getThriftFieldId() {
-
 
45623
        return _thriftId;
-
 
45624
      }
-
 
45625
 
-
 
45626
      public String getFieldName() {
-
 
45627
        return _fieldName;
-
 
45628
      }
-
 
45629
    }
-
 
45630
 
-
 
45631
    // isset id assignments
-
 
45632
    private static final int __CARTID_ISSET_ID = 0;
-
 
45633
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
45634
 
-
 
45635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45636
    static {
-
 
45637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45638
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteDiscountsFromCart_args.class, metaDataMap);
-
 
45642
    }
-
 
45643
 
-
 
45644
    public deleteDiscountsFromCart_args() {
-
 
45645
    }
-
 
45646
 
-
 
45647
    public deleteDiscountsFromCart_args(
-
 
45648
      long cartId)
-
 
45649
    {
-
 
45650
      this();
-
 
45651
      this.cartId = cartId;
-
 
45652
      setCartIdIsSet(true);
-
 
45653
    }
-
 
45654
 
-
 
45655
    /**
-
 
45656
     * Performs a deep copy on <i>other</i>.
-
 
45657
     */
-
 
45658
    public deleteDiscountsFromCart_args(deleteDiscountsFromCart_args other) {
-
 
45659
      __isset_bit_vector.clear();
-
 
45660
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45661
      this.cartId = other.cartId;
-
 
45662
    }
-
 
45663
 
-
 
45664
    public deleteDiscountsFromCart_args deepCopy() {
-
 
45665
      return new deleteDiscountsFromCart_args(this);
-
 
45666
    }
-
 
45667
 
-
 
45668
    @Override
-
 
45669
    public void clear() {
-
 
45670
      setCartIdIsSet(false);
-
 
45671
      this.cartId = 0;
-
 
45672
    }
-
 
45673
 
-
 
45674
    public long getCartId() {
-
 
45675
      return this.cartId;
-
 
45676
    }
-
 
45677
 
-
 
45678
    public void setCartId(long cartId) {
-
 
45679
      this.cartId = cartId;
-
 
45680
      setCartIdIsSet(true);
-
 
45681
    }
-
 
45682
 
-
 
45683
    public void unsetCartId() {
-
 
45684
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
45685
    }
-
 
45686
 
-
 
45687
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
45688
    public boolean isSetCartId() {
-
 
45689
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
45690
    }
-
 
45691
 
-
 
45692
    public void setCartIdIsSet(boolean value) {
-
 
45693
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
45694
    }
-
 
45695
 
-
 
45696
    public void setFieldValue(_Fields field, Object value) {
-
 
45697
      switch (field) {
-
 
45698
      case CART_ID:
-
 
45699
        if (value == null) {
-
 
45700
          unsetCartId();
-
 
45701
        } else {
-
 
45702
          setCartId((Long)value);
-
 
45703
        }
-
 
45704
        break;
-
 
45705
 
-
 
45706
      }
-
 
45707
    }
-
 
45708
 
-
 
45709
    public Object getFieldValue(_Fields field) {
-
 
45710
      switch (field) {
-
 
45711
      case CART_ID:
-
 
45712
        return Long.valueOf(getCartId());
-
 
45713
 
-
 
45714
      }
-
 
45715
      throw new IllegalStateException();
-
 
45716
    }
-
 
45717
 
-
 
45718
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45719
    public boolean isSet(_Fields field) {
-
 
45720
      if (field == null) {
-
 
45721
        throw new IllegalArgumentException();
-
 
45722
      }
-
 
45723
 
-
 
45724
      switch (field) {
-
 
45725
      case CART_ID:
-
 
45726
        return isSetCartId();
-
 
45727
      }
-
 
45728
      throw new IllegalStateException();
-
 
45729
    }
-
 
45730
 
-
 
45731
    @Override
-
 
45732
    public boolean equals(Object that) {
-
 
45733
      if (that == null)
-
 
45734
        return false;
-
 
45735
      if (that instanceof deleteDiscountsFromCart_args)
-
 
45736
        return this.equals((deleteDiscountsFromCart_args)that);
-
 
45737
      return false;
-
 
45738
    }
-
 
45739
 
-
 
45740
    public boolean equals(deleteDiscountsFromCart_args that) {
-
 
45741
      if (that == null)
-
 
45742
        return false;
-
 
45743
 
-
 
45744
      boolean this_present_cartId = true;
-
 
45745
      boolean that_present_cartId = true;
-
 
45746
      if (this_present_cartId || that_present_cartId) {
-
 
45747
        if (!(this_present_cartId && that_present_cartId))
-
 
45748
          return false;
-
 
45749
        if (this.cartId != that.cartId)
-
 
45750
          return false;
-
 
45751
      }
-
 
45752
 
-
 
45753
      return true;
-
 
45754
    }
-
 
45755
 
-
 
45756
    @Override
-
 
45757
    public int hashCode() {
-
 
45758
      return 0;
-
 
45759
    }
-
 
45760
 
-
 
45761
    public int compareTo(deleteDiscountsFromCart_args other) {
-
 
45762
      if (!getClass().equals(other.getClass())) {
-
 
45763
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45764
      }
-
 
45765
 
-
 
45766
      int lastComparison = 0;
-
 
45767
      deleteDiscountsFromCart_args typedOther = (deleteDiscountsFromCart_args)other;
-
 
45768
 
-
 
45769
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
45770
      if (lastComparison != 0) {
-
 
45771
        return lastComparison;
-
 
45772
      }
-
 
45773
      if (isSetCartId()) {
-
 
45774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
45775
        if (lastComparison != 0) {
-
 
45776
          return lastComparison;
-
 
45777
        }
-
 
45778
      }
-
 
45779
      return 0;
-
 
45780
    }
-
 
45781
 
-
 
45782
    public _Fields fieldForId(int fieldId) {
-
 
45783
      return _Fields.findByThriftId(fieldId);
-
 
45784
    }
-
 
45785
 
-
 
45786
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45787
      org.apache.thrift.protocol.TField field;
-
 
45788
      iprot.readStructBegin();
-
 
45789
      while (true)
-
 
45790
      {
-
 
45791
        field = iprot.readFieldBegin();
-
 
45792
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45793
          break;
-
 
45794
        }
-
 
45795
        switch (field.id) {
-
 
45796
          case 1: // CART_ID
-
 
45797
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
45798
              this.cartId = iprot.readI64();
-
 
45799
              setCartIdIsSet(true);
-
 
45800
            } else { 
-
 
45801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45802
            }
-
 
45803
            break;
-
 
45804
          default:
-
 
45805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45806
        }
-
 
45807
        iprot.readFieldEnd();
-
 
45808
      }
-
 
45809
      iprot.readStructEnd();
-
 
45810
      validate();
-
 
45811
    }
-
 
45812
 
-
 
45813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45814
      validate();
-
 
45815
 
-
 
45816
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45817
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
45818
      oprot.writeI64(this.cartId);
-
 
45819
      oprot.writeFieldEnd();
-
 
45820
      oprot.writeFieldStop();
-
 
45821
      oprot.writeStructEnd();
-
 
45822
    }
-
 
45823
 
-
 
45824
    @Override
-
 
45825
    public String toString() {
-
 
45826
      StringBuilder sb = new StringBuilder("deleteDiscountsFromCart_args(");
-
 
45827
      boolean first = true;
-
 
45828
 
-
 
45829
      sb.append("cartId:");
-
 
45830
      sb.append(this.cartId);
-
 
45831
      first = false;
-
 
45832
      sb.append(")");
-
 
45833
      return sb.toString();
-
 
45834
    }
-
 
45835
 
-
 
45836
    public void validate() throws org.apache.thrift.TException {
-
 
45837
      // check for required fields
-
 
45838
    }
-
 
45839
 
-
 
45840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45841
      try {
-
 
45842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45843
      } catch (org.apache.thrift.TException te) {
-
 
45844
        throw new java.io.IOException(te);
-
 
45845
      }
-
 
45846
    }
-
 
45847
 
-
 
45848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45849
      try {
-
 
45850
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
45851
        __isset_bit_vector = new BitSet(1);
-
 
45852
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45853
      } catch (org.apache.thrift.TException te) {
-
 
45854
        throw new java.io.IOException(te);
-
 
45855
      }
-
 
45856
    }
-
 
45857
 
-
 
45858
  }
-
 
45859
 
-
 
45860
  public static class deleteDiscountsFromCart_result implements org.apache.thrift.TBase<deleteDiscountsFromCart_result, deleteDiscountsFromCart_result._Fields>, java.io.Serializable, Cloneable   {
-
 
45861
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteDiscountsFromCart_result");
-
 
45862
 
-
 
45863
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
45864
 
-
 
45865
    private ShoppingCartException scx; // required
-
 
45866
 
-
 
45867
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45868
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45869
      SCX((short)1, "scx");
-
 
45870
 
-
 
45871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45872
 
-
 
45873
      static {
-
 
45874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45875
          byName.put(field.getFieldName(), field);
-
 
45876
        }
-
 
45877
      }
-
 
45878
 
-
 
45879
      /**
-
 
45880
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45881
       */
-
 
45882
      public static _Fields findByThriftId(int fieldId) {
-
 
45883
        switch(fieldId) {
-
 
45884
          case 1: // SCX
-
 
45885
            return SCX;
-
 
45886
          default:
-
 
45887
            return null;
-
 
45888
        }
-
 
45889
      }
-
 
45890
 
-
 
45891
      /**
-
 
45892
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45893
       * if it is not found.
-
 
45894
       */
-
 
45895
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45896
        _Fields fields = findByThriftId(fieldId);
-
 
45897
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45898
        return fields;
-
 
45899
      }
-
 
45900
 
-
 
45901
      /**
-
 
45902
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45903
       */
-
 
45904
      public static _Fields findByName(String name) {
-
 
45905
        return byName.get(name);
-
 
45906
      }
-
 
45907
 
-
 
45908
      private final short _thriftId;
-
 
45909
      private final String _fieldName;
-
 
45910
 
-
 
45911
      _Fields(short thriftId, String fieldName) {
-
 
45912
        _thriftId = thriftId;
-
 
45913
        _fieldName = fieldName;
-
 
45914
      }
-
 
45915
 
-
 
45916
      public short getThriftFieldId() {
-
 
45917
        return _thriftId;
-
 
45918
      }
-
 
45919
 
-
 
45920
      public String getFieldName() {
-
 
45921
        return _fieldName;
-
 
45922
      }
-
 
45923
    }
-
 
45924
 
-
 
45925
    // isset id assignments
-
 
45926
 
-
 
45927
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45928
    static {
-
 
45929
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45930
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
45932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteDiscountsFromCart_result.class, metaDataMap);
-
 
45934
    }
-
 
45935
 
-
 
45936
    public deleteDiscountsFromCart_result() {
-
 
45937
    }
-
 
45938
 
-
 
45939
    public deleteDiscountsFromCart_result(
-
 
45940
      ShoppingCartException scx)
-
 
45941
    {
-
 
45942
      this();
-
 
45943
      this.scx = scx;
-
 
45944
    }
-
 
45945
 
-
 
45946
    /**
-
 
45947
     * Performs a deep copy on <i>other</i>.
-
 
45948
     */
-
 
45949
    public deleteDiscountsFromCart_result(deleteDiscountsFromCart_result other) {
-
 
45950
      if (other.isSetScx()) {
-
 
45951
        this.scx = new ShoppingCartException(other.scx);
-
 
45952
      }
-
 
45953
    }
-
 
45954
 
-
 
45955
    public deleteDiscountsFromCart_result deepCopy() {
-
 
45956
      return new deleteDiscountsFromCart_result(this);
-
 
45957
    }
-
 
45958
 
-
 
45959
    @Override
-
 
45960
    public void clear() {
-
 
45961
      this.scx = null;
-
 
45962
    }
-
 
45963
 
-
 
45964
    public ShoppingCartException getScx() {
-
 
45965
      return this.scx;
-
 
45966
    }
-
 
45967
 
-
 
45968
    public void setScx(ShoppingCartException scx) {
-
 
45969
      this.scx = scx;
-
 
45970
    }
-
 
45971
 
-
 
45972
    public void unsetScx() {
-
 
45973
      this.scx = null;
-
 
45974
    }
-
 
45975
 
-
 
45976
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
-
 
45977
    public boolean isSetScx() {
-
 
45978
      return this.scx != null;
-
 
45979
    }
-
 
45980
 
-
 
45981
    public void setScxIsSet(boolean value) {
-
 
45982
      if (!value) {
-
 
45983
        this.scx = null;
-
 
45984
      }
-
 
45985
    }
-
 
45986
 
-
 
45987
    public void setFieldValue(_Fields field, Object value) {
-
 
45988
      switch (field) {
-
 
45989
      case SCX:
-
 
45990
        if (value == null) {
-
 
45991
          unsetScx();
-
 
45992
        } else {
-
 
45993
          setScx((ShoppingCartException)value);
-
 
45994
        }
-
 
45995
        break;
-
 
45996
 
-
 
45997
      }
-
 
45998
    }
-
 
45999
 
-
 
46000
    public Object getFieldValue(_Fields field) {
-
 
46001
      switch (field) {
-
 
46002
      case SCX:
-
 
46003
        return getScx();
-
 
46004
 
-
 
46005
      }
-
 
46006
      throw new IllegalStateException();
-
 
46007
    }
-
 
46008
 
-
 
46009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46010
    public boolean isSet(_Fields field) {
-
 
46011
      if (field == null) {
-
 
46012
        throw new IllegalArgumentException();
-
 
46013
      }
-
 
46014
 
-
 
46015
      switch (field) {
-
 
46016
      case SCX:
-
 
46017
        return isSetScx();
-
 
46018
      }
-
 
46019
      throw new IllegalStateException();
-
 
46020
    }
-
 
46021
 
-
 
46022
    @Override
-
 
46023
    public boolean equals(Object that) {
-
 
46024
      if (that == null)
-
 
46025
        return false;
-
 
46026
      if (that instanceof deleteDiscountsFromCart_result)
-
 
46027
        return this.equals((deleteDiscountsFromCart_result)that);
-
 
46028
      return false;
-
 
46029
    }
-
 
46030
 
-
 
46031
    public boolean equals(deleteDiscountsFromCart_result that) {
-
 
46032
      if (that == null)
-
 
46033
        return false;
-
 
46034
 
-
 
46035
      boolean this_present_scx = true && this.isSetScx();
-
 
46036
      boolean that_present_scx = true && that.isSetScx();
-
 
46037
      if (this_present_scx || that_present_scx) {
-
 
46038
        if (!(this_present_scx && that_present_scx))
-
 
46039
          return false;
-
 
46040
        if (!this.scx.equals(that.scx))
-
 
46041
          return false;
-
 
46042
      }
-
 
46043
 
-
 
46044
      return true;
-
 
46045
    }
-
 
46046
 
-
 
46047
    @Override
-
 
46048
    public int hashCode() {
-
 
46049
      return 0;
-
 
46050
    }
-
 
46051
 
-
 
46052
    public int compareTo(deleteDiscountsFromCart_result other) {
-
 
46053
      if (!getClass().equals(other.getClass())) {
-
 
46054
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46055
      }
-
 
46056
 
-
 
46057
      int lastComparison = 0;
-
 
46058
      deleteDiscountsFromCart_result typedOther = (deleteDiscountsFromCart_result)other;
-
 
46059
 
-
 
46060
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
-
 
46061
      if (lastComparison != 0) {
-
 
46062
        return lastComparison;
-
 
46063
      }
-
 
46064
      if (isSetScx()) {
-
 
46065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
-
 
46066
        if (lastComparison != 0) {
-
 
46067
          return lastComparison;
-
 
46068
        }
-
 
46069
      }
-
 
46070
      return 0;
-
 
46071
    }
-
 
46072
 
-
 
46073
    public _Fields fieldForId(int fieldId) {
-
 
46074
      return _Fields.findByThriftId(fieldId);
-
 
46075
    }
-
 
46076
 
-
 
46077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46078
      org.apache.thrift.protocol.TField field;
-
 
46079
      iprot.readStructBegin();
-
 
46080
      while (true)
-
 
46081
      {
-
 
46082
        field = iprot.readFieldBegin();
-
 
46083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46084
          break;
-
 
46085
        }
-
 
46086
        switch (field.id) {
-
 
46087
          case 1: // SCX
-
 
46088
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
46089
              this.scx = new ShoppingCartException();
-
 
46090
              this.scx.read(iprot);
-
 
46091
            } else { 
-
 
46092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46093
            }
-
 
46094
            break;
-
 
46095
          default:
-
 
46096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46097
        }
-
 
46098
        iprot.readFieldEnd();
-
 
46099
      }
-
 
46100
      iprot.readStructEnd();
-
 
46101
      validate();
-
 
46102
    }
-
 
46103
 
-
 
46104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46105
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46106
 
-
 
46107
      if (this.isSetScx()) {
-
 
46108
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
46109
        this.scx.write(oprot);
-
 
46110
        oprot.writeFieldEnd();
-
 
46111
      }
-
 
46112
      oprot.writeFieldStop();
-
 
46113
      oprot.writeStructEnd();
-
 
46114
    }
-
 
46115
 
-
 
46116
    @Override
-
 
46117
    public String toString() {
-
 
46118
      StringBuilder sb = new StringBuilder("deleteDiscountsFromCart_result(");
-
 
46119
      boolean first = true;
-
 
46120
 
-
 
46121
      sb.append("scx:");
-
 
46122
      if (this.scx == null) {
-
 
46123
        sb.append("null");
-
 
46124
      } else {
-
 
46125
        sb.append(this.scx);
-
 
46126
      }
-
 
46127
      first = false;
-
 
46128
      sb.append(")");
-
 
46129
      return sb.toString();
-
 
46130
    }
-
 
46131
 
-
 
46132
    public void validate() throws org.apache.thrift.TException {
-
 
46133
      // check for required fields
-
 
46134
    }
-
 
46135
 
-
 
46136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46137
      try {
-
 
46138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46139
      } catch (org.apache.thrift.TException te) {
-
 
46140
        throw new java.io.IOException(te);
-
 
46141
      }
-
 
46142
    }
-
 
46143
 
-
 
46144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46145
      try {
-
 
46146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46147
      } catch (org.apache.thrift.TException te) {
-
 
46148
        throw new java.io.IOException(te);
-
 
46149
      }
-
 
46150
    }
-
 
46151
 
-
 
46152
  }
-
 
46153
 
-
 
46154
  public static class saveDiscounts_args implements org.apache.thrift.TBase<saveDiscounts_args, saveDiscounts_args._Fields>, java.io.Serializable, Cloneable   {
-
 
46155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveDiscounts_args");
-
 
46156
 
-
 
46157
    private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
46158
 
-
 
46159
    private List<Discount> discounts; // required
-
 
46160
 
-
 
46161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46163
      DISCOUNTS((short)1, "discounts");
-
 
46164
 
-
 
46165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46166
 
-
 
46167
      static {
-
 
46168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46169
          byName.put(field.getFieldName(), field);
-
 
46170
        }
-
 
46171
      }
-
 
46172
 
-
 
46173
      /**
-
 
46174
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46175
       */
-
 
46176
      public static _Fields findByThriftId(int fieldId) {
-
 
46177
        switch(fieldId) {
-
 
46178
          case 1: // DISCOUNTS
-
 
46179
            return DISCOUNTS;
-
 
46180
          default:
-
 
46181
            return null;
-
 
46182
        }
-
 
46183
      }
-
 
46184
 
-
 
46185
      /**
-
 
46186
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46187
       * if it is not found.
-
 
46188
       */
-
 
46189
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46190
        _Fields fields = findByThriftId(fieldId);
-
 
46191
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46192
        return fields;
-
 
46193
      }
-
 
46194
 
-
 
46195
      /**
-
 
46196
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46197
       */
-
 
46198
      public static _Fields findByName(String name) {
-
 
46199
        return byName.get(name);
-
 
46200
      }
-
 
46201
 
-
 
46202
      private final short _thriftId;
-
 
46203
      private final String _fieldName;
-
 
46204
 
-
 
46205
      _Fields(short thriftId, String fieldName) {
-
 
46206
        _thriftId = thriftId;
-
 
46207
        _fieldName = fieldName;
-
 
46208
      }
-
 
46209
 
-
 
46210
      public short getThriftFieldId() {
-
 
46211
        return _thriftId;
-
 
46212
      }
-
 
46213
 
-
 
46214
      public String getFieldName() {
-
 
46215
        return _fieldName;
-
 
46216
      }
-
 
46217
    }
-
 
46218
 
-
 
46219
    // isset id assignments
-
 
46220
 
-
 
46221
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46222
    static {
-
 
46223
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46224
      tmpMap.put(_Fields.DISCOUNTS, new org.apache.thrift.meta_data.FieldMetaData("discounts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46225
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
46226
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Discount.class))));
-
 
46227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveDiscounts_args.class, metaDataMap);
-
 
46229
    }
-
 
46230
 
-
 
46231
    public saveDiscounts_args() {
-
 
46232
    }
-
 
46233
 
-
 
46234
    public saveDiscounts_args(
-
 
46235
      List<Discount> discounts)
-
 
46236
    {
-
 
46237
      this();
-
 
46238
      this.discounts = discounts;
-
 
46239
    }
-
 
46240
 
-
 
46241
    /**
-
 
46242
     * Performs a deep copy on <i>other</i>.
-
 
46243
     */
-
 
46244
    public saveDiscounts_args(saveDiscounts_args other) {
-
 
46245
      if (other.isSetDiscounts()) {
-
 
46246
        List<Discount> __this__discounts = new ArrayList<Discount>();
-
 
46247
        for (Discount other_element : other.discounts) {
-
 
46248
          __this__discounts.add(new Discount(other_element));
-
 
46249
        }
-
 
46250
        this.discounts = __this__discounts;
-
 
46251
      }
-
 
46252
    }
-
 
46253
 
-
 
46254
    public saveDiscounts_args deepCopy() {
-
 
46255
      return new saveDiscounts_args(this);
-
 
46256
    }
-
 
46257
 
-
 
46258
    @Override
-
 
46259
    public void clear() {
-
 
46260
      this.discounts = null;
-
 
46261
    }
-
 
46262
 
-
 
46263
    public int getDiscountsSize() {
-
 
46264
      return (this.discounts == null) ? 0 : this.discounts.size();
-
 
46265
    }
-
 
46266
 
-
 
46267
    public java.util.Iterator<Discount> getDiscountsIterator() {
-
 
46268
      return (this.discounts == null) ? null : this.discounts.iterator();
-
 
46269
    }
-
 
46270
 
-
 
46271
    public void addToDiscounts(Discount elem) {
-
 
46272
      if (this.discounts == null) {
-
 
46273
        this.discounts = new ArrayList<Discount>();
-
 
46274
      }
-
 
46275
      this.discounts.add(elem);
-
 
46276
    }
-
 
46277
 
-
 
46278
    public List<Discount> getDiscounts() {
-
 
46279
      return this.discounts;
-
 
46280
    }
-
 
46281
 
-
 
46282
    public void setDiscounts(List<Discount> discounts) {
-
 
46283
      this.discounts = discounts;
-
 
46284
    }
-
 
46285
 
-
 
46286
    public void unsetDiscounts() {
-
 
46287
      this.discounts = null;
-
 
46288
    }
-
 
46289
 
-
 
46290
    /** Returns true if field discounts is set (has been assigned a value) and false otherwise */
-
 
46291
    public boolean isSetDiscounts() {
-
 
46292
      return this.discounts != null;
-
 
46293
    }
-
 
46294
 
-
 
46295
    public void setDiscountsIsSet(boolean value) {
-
 
46296
      if (!value) {
-
 
46297
        this.discounts = null;
-
 
46298
      }
-
 
46299
    }
-
 
46300
 
-
 
46301
    public void setFieldValue(_Fields field, Object value) {
-
 
46302
      switch (field) {
-
 
46303
      case DISCOUNTS:
-
 
46304
        if (value == null) {
-
 
46305
          unsetDiscounts();
-
 
46306
        } else {
-
 
46307
          setDiscounts((List<Discount>)value);
-
 
46308
        }
-
 
46309
        break;
-
 
46310
 
-
 
46311
      }
-
 
46312
    }
-
 
46313
 
-
 
46314
    public Object getFieldValue(_Fields field) {
-
 
46315
      switch (field) {
-
 
46316
      case DISCOUNTS:
-
 
46317
        return getDiscounts();
-
 
46318
 
-
 
46319
      }
-
 
46320
      throw new IllegalStateException();
-
 
46321
    }
-
 
46322
 
-
 
46323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46324
    public boolean isSet(_Fields field) {
-
 
46325
      if (field == null) {
-
 
46326
        throw new IllegalArgumentException();
-
 
46327
      }
-
 
46328
 
-
 
46329
      switch (field) {
-
 
46330
      case DISCOUNTS:
-
 
46331
        return isSetDiscounts();
-
 
46332
      }
-
 
46333
      throw new IllegalStateException();
-
 
46334
    }
-
 
46335
 
-
 
46336
    @Override
-
 
46337
    public boolean equals(Object that) {
-
 
46338
      if (that == null)
-
 
46339
        return false;
-
 
46340
      if (that instanceof saveDiscounts_args)
-
 
46341
        return this.equals((saveDiscounts_args)that);
-
 
46342
      return false;
-
 
46343
    }
-
 
46344
 
-
 
46345
    public boolean equals(saveDiscounts_args that) {
-
 
46346
      if (that == null)
-
 
46347
        return false;
-
 
46348
 
-
 
46349
      boolean this_present_discounts = true && this.isSetDiscounts();
-
 
46350
      boolean that_present_discounts = true && that.isSetDiscounts();
-
 
46351
      if (this_present_discounts || that_present_discounts) {
-
 
46352
        if (!(this_present_discounts && that_present_discounts))
-
 
46353
          return false;
-
 
46354
        if (!this.discounts.equals(that.discounts))
-
 
46355
          return false;
-
 
46356
      }
-
 
46357
 
-
 
46358
      return true;
-
 
46359
    }
-
 
46360
 
-
 
46361
    @Override
-
 
46362
    public int hashCode() {
-
 
46363
      return 0;
-
 
46364
    }
-
 
46365
 
-
 
46366
    public int compareTo(saveDiscounts_args other) {
-
 
46367
      if (!getClass().equals(other.getClass())) {
-
 
46368
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46369
      }
-
 
46370
 
-
 
46371
      int lastComparison = 0;
-
 
46372
      saveDiscounts_args typedOther = (saveDiscounts_args)other;
-
 
46373
 
-
 
46374
      lastComparison = Boolean.valueOf(isSetDiscounts()).compareTo(typedOther.isSetDiscounts());
-
 
46375
      if (lastComparison != 0) {
-
 
46376
        return lastComparison;
-
 
46377
      }
-
 
46378
      if (isSetDiscounts()) {
-
 
46379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discounts, typedOther.discounts);
-
 
46380
        if (lastComparison != 0) {
-
 
46381
          return lastComparison;
-
 
46382
        }
-
 
46383
      }
-
 
46384
      return 0;
-
 
46385
    }
-
 
46386
 
-
 
46387
    public _Fields fieldForId(int fieldId) {
-
 
46388
      return _Fields.findByThriftId(fieldId);
-
 
46389
    }
-
 
46390
 
-
 
46391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46392
      org.apache.thrift.protocol.TField field;
-
 
46393
      iprot.readStructBegin();
-
 
46394
      while (true)
-
 
46395
      {
-
 
46396
        field = iprot.readFieldBegin();
-
 
46397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46398
          break;
-
 
46399
        }
-
 
46400
        switch (field.id) {
-
 
46401
          case 1: // DISCOUNTS
-
 
46402
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
46403
              {
-
 
46404
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
-
 
46405
                this.discounts = new ArrayList<Discount>(_list68.size);
-
 
46406
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
-
 
46407
                {
-
 
46408
                  Discount _elem70; // required
-
 
46409
                  _elem70 = new Discount();
-
 
46410
                  _elem70.read(iprot);
-
 
46411
                  this.discounts.add(_elem70);
-
 
46412
                }
-
 
46413
                iprot.readListEnd();
-
 
46414
              }
-
 
46415
            } else { 
-
 
46416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46417
            }
-
 
46418
            break;
-
 
46419
          default:
-
 
46420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46421
        }
-
 
46422
        iprot.readFieldEnd();
-
 
46423
      }
-
 
46424
      iprot.readStructEnd();
-
 
46425
      validate();
-
 
46426
    }
-
 
46427
 
-
 
46428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46429
      validate();
-
 
46430
 
-
 
46431
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46432
      if (this.discounts != null) {
-
 
46433
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
-
 
46434
        {
-
 
46435
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
-
 
46436
          for (Discount _iter71 : this.discounts)
-
 
46437
          {
-
 
46438
            _iter71.write(oprot);
-
 
46439
          }
-
 
46440
          oprot.writeListEnd();
-
 
46441
        }
-
 
46442
        oprot.writeFieldEnd();
-
 
46443
      }
-
 
46444
      oprot.writeFieldStop();
-
 
46445
      oprot.writeStructEnd();
-
 
46446
    }
-
 
46447
 
-
 
46448
    @Override
-
 
46449
    public String toString() {
-
 
46450
      StringBuilder sb = new StringBuilder("saveDiscounts_args(");
-
 
46451
      boolean first = true;
-
 
46452
 
-
 
46453
      sb.append("discounts:");
-
 
46454
      if (this.discounts == null) {
-
 
46455
        sb.append("null");
-
 
46456
      } else {
-
 
46457
        sb.append(this.discounts);
-
 
46458
      }
-
 
46459
      first = false;
-
 
46460
      sb.append(")");
-
 
46461
      return sb.toString();
-
 
46462
    }
-
 
46463
 
-
 
46464
    public void validate() throws org.apache.thrift.TException {
-
 
46465
      // check for required fields
-
 
46466
    }
-
 
46467
 
-
 
46468
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46469
      try {
-
 
46470
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46471
      } catch (org.apache.thrift.TException te) {
-
 
46472
        throw new java.io.IOException(te);
-
 
46473
      }
-
 
46474
    }
-
 
46475
 
-
 
46476
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46477
      try {
-
 
46478
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46479
      } catch (org.apache.thrift.TException te) {
-
 
46480
        throw new java.io.IOException(te);
-
 
46481
      }
-
 
46482
    }
-
 
46483
 
-
 
46484
  }
-
 
46485
 
-
 
46486
  public static class saveDiscounts_result implements org.apache.thrift.TBase<saveDiscounts_result, saveDiscounts_result._Fields>, java.io.Serializable, Cloneable   {
-
 
46487
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveDiscounts_result");
-
 
46488
 
-
 
46489
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
46490
 
-
 
46491
    private ShoppingCartException scx; // required
-
 
46492
 
-
 
46493
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46494
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46495
      SCX((short)1, "scx");
-
 
46496
 
-
 
46497
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46498
 
-
 
46499
      static {
-
 
46500
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46501
          byName.put(field.getFieldName(), field);
-
 
46502
        }
-
 
46503
      }
-
 
46504
 
-
 
46505
      /**
-
 
46506
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46507
       */
-
 
46508
      public static _Fields findByThriftId(int fieldId) {
-
 
46509
        switch(fieldId) {
-
 
46510
          case 1: // SCX
-
 
46511
            return SCX;
-
 
46512
          default:
-
 
46513
            return null;
-
 
46514
        }
-
 
46515
      }
-
 
46516
 
-
 
46517
      /**
-
 
46518
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46519
       * if it is not found.
-
 
46520
       */
-
 
46521
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46522
        _Fields fields = findByThriftId(fieldId);
-
 
46523
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46524
        return fields;
-
 
46525
      }
-
 
46526
 
-
 
46527
      /**
-
 
46528
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46529
       */
-
 
46530
      public static _Fields findByName(String name) {
-
 
46531
        return byName.get(name);
-
 
46532
      }
-
 
46533
 
-
 
46534
      private final short _thriftId;
-
 
46535
      private final String _fieldName;
-
 
46536
 
-
 
46537
      _Fields(short thriftId, String fieldName) {
-
 
46538
        _thriftId = thriftId;
-
 
46539
        _fieldName = fieldName;
-
 
46540
      }
-
 
46541
 
-
 
46542
      public short getThriftFieldId() {
-
 
46543
        return _thriftId;
-
 
46544
      }
-
 
46545
 
-
 
46546
      public String getFieldName() {
-
 
46547
        return _fieldName;
-
 
46548
      }
-
 
46549
    }
-
 
46550
 
-
 
46551
    // isset id assignments
-
 
46552
 
-
 
46553
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46554
    static {
-
 
46555
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46556
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
46558
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46559
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveDiscounts_result.class, metaDataMap);
-
 
46560
    }
-
 
46561
 
-
 
46562
    public saveDiscounts_result() {
-
 
46563
    }
-
 
46564
 
-
 
46565
    public saveDiscounts_result(
-
 
46566
      ShoppingCartException scx)
-
 
46567
    {
-
 
46568
      this();
-
 
46569
      this.scx = scx;
-
 
46570
    }
-
 
46571
 
-
 
46572
    /**
-
 
46573
     * Performs a deep copy on <i>other</i>.
-
 
46574
     */
-
 
46575
    public saveDiscounts_result(saveDiscounts_result other) {
-
 
46576
      if (other.isSetScx()) {
-
 
46577
        this.scx = new ShoppingCartException(other.scx);
-
 
46578
      }
-
 
46579
    }
-
 
46580
 
-
 
46581
    public saveDiscounts_result deepCopy() {
-
 
46582
      return new saveDiscounts_result(this);
-
 
46583
    }
-
 
46584
 
-
 
46585
    @Override
-
 
46586
    public void clear() {
-
 
46587
      this.scx = null;
-
 
46588
    }
-
 
46589
 
-
 
46590
    public ShoppingCartException getScx() {
-
 
46591
      return this.scx;
-
 
46592
    }
-
 
46593
 
-
 
46594
    public void setScx(ShoppingCartException scx) {
-
 
46595
      this.scx = scx;
-
 
46596
    }
-
 
46597
 
-
 
46598
    public void unsetScx() {
-
 
46599
      this.scx = null;
-
 
46600
    }
-
 
46601
 
-
 
46602
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
-
 
46603
    public boolean isSetScx() {
-
 
46604
      return this.scx != null;
-
 
46605
    }
-
 
46606
 
-
 
46607
    public void setScxIsSet(boolean value) {
-
 
46608
      if (!value) {
-
 
46609
        this.scx = null;
-
 
46610
      }
-
 
46611
    }
-
 
46612
 
-
 
46613
    public void setFieldValue(_Fields field, Object value) {
-
 
46614
      switch (field) {
-
 
46615
      case SCX:
-
 
46616
        if (value == null) {
-
 
46617
          unsetScx();
-
 
46618
        } else {
-
 
46619
          setScx((ShoppingCartException)value);
-
 
46620
        }
-
 
46621
        break;
-
 
46622
 
-
 
46623
      }
-
 
46624
    }
-
 
46625
 
-
 
46626
    public Object getFieldValue(_Fields field) {
-
 
46627
      switch (field) {
-
 
46628
      case SCX:
-
 
46629
        return getScx();
-
 
46630
 
-
 
46631
      }
-
 
46632
      throw new IllegalStateException();
-
 
46633
    }
-
 
46634
 
-
 
46635
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46636
    public boolean isSet(_Fields field) {
-
 
46637
      if (field == null) {
-
 
46638
        throw new IllegalArgumentException();
-
 
46639
      }
-
 
46640
 
-
 
46641
      switch (field) {
-
 
46642
      case SCX:
-
 
46643
        return isSetScx();
-
 
46644
      }
-
 
46645
      throw new IllegalStateException();
-
 
46646
    }
-
 
46647
 
-
 
46648
    @Override
-
 
46649
    public boolean equals(Object that) {
-
 
46650
      if (that == null)
-
 
46651
        return false;
-
 
46652
      if (that instanceof saveDiscounts_result)
-
 
46653
        return this.equals((saveDiscounts_result)that);
-
 
46654
      return false;
-
 
46655
    }
-
 
46656
 
-
 
46657
    public boolean equals(saveDiscounts_result that) {
-
 
46658
      if (that == null)
-
 
46659
        return false;
-
 
46660
 
-
 
46661
      boolean this_present_scx = true && this.isSetScx();
-
 
46662
      boolean that_present_scx = true && that.isSetScx();
-
 
46663
      if (this_present_scx || that_present_scx) {
-
 
46664
        if (!(this_present_scx && that_present_scx))
-
 
46665
          return false;
-
 
46666
        if (!this.scx.equals(that.scx))
-
 
46667
          return false;
-
 
46668
      }
-
 
46669
 
-
 
46670
      return true;
-
 
46671
    }
-
 
46672
 
-
 
46673
    @Override
-
 
46674
    public int hashCode() {
-
 
46675
      return 0;
-
 
46676
    }
-
 
46677
 
-
 
46678
    public int compareTo(saveDiscounts_result other) {
-
 
46679
      if (!getClass().equals(other.getClass())) {
-
 
46680
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46681
      }
-
 
46682
 
-
 
46683
      int lastComparison = 0;
-
 
46684
      saveDiscounts_result typedOther = (saveDiscounts_result)other;
-
 
46685
 
-
 
46686
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
-
 
46687
      if (lastComparison != 0) {
-
 
46688
        return lastComparison;
-
 
46689
      }
-
 
46690
      if (isSetScx()) {
-
 
46691
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
-
 
46692
        if (lastComparison != 0) {
-
 
46693
          return lastComparison;
-
 
46694
        }
-
 
46695
      }
-
 
46696
      return 0;
-
 
46697
    }
-
 
46698
 
-
 
46699
    public _Fields fieldForId(int fieldId) {
-
 
46700
      return _Fields.findByThriftId(fieldId);
-
 
46701
    }
-
 
46702
 
-
 
46703
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46704
      org.apache.thrift.protocol.TField field;
-
 
46705
      iprot.readStructBegin();
-
 
46706
      while (true)
-
 
46707
      {
-
 
46708
        field = iprot.readFieldBegin();
-
 
46709
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46710
          break;
-
 
46711
        }
-
 
46712
        switch (field.id) {
-
 
46713
          case 1: // SCX
-
 
46714
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
46715
              this.scx = new ShoppingCartException();
-
 
46716
              this.scx.read(iprot);
-
 
46717
            } else { 
-
 
46718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46719
            }
-
 
46720
            break;
-
 
46721
          default:
-
 
46722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46723
        }
-
 
46724
        iprot.readFieldEnd();
-
 
46725
      }
-
 
46726
      iprot.readStructEnd();
-
 
46727
      validate();
-
 
46728
    }
-
 
46729
 
-
 
46730
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46731
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46732
 
-
 
46733
      if (this.isSetScx()) {
-
 
46734
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
46735
        this.scx.write(oprot);
-
 
46736
        oprot.writeFieldEnd();
-
 
46737
      }
-
 
46738
      oprot.writeFieldStop();
-
 
46739
      oprot.writeStructEnd();
-
 
46740
    }
-
 
46741
 
-
 
46742
    @Override
-
 
46743
    public String toString() {
-
 
46744
      StringBuilder sb = new StringBuilder("saveDiscounts_result(");
-
 
46745
      boolean first = true;
-
 
46746
 
-
 
46747
      sb.append("scx:");
-
 
46748
      if (this.scx == null) {
-
 
46749
        sb.append("null");
-
 
46750
      } else {
-
 
46751
        sb.append(this.scx);
-
 
46752
      }
-
 
46753
      first = false;
-
 
46754
      sb.append(")");
-
 
46755
      return sb.toString();
-
 
46756
    }
-
 
46757
 
-
 
46758
    public void validate() throws org.apache.thrift.TException {
-
 
46759
      // check for required fields
-
 
46760
    }
-
 
46761
 
-
 
46762
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46763
      try {
-
 
46764
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46765
      } catch (org.apache.thrift.TException te) {
-
 
46766
        throw new java.io.IOException(te);
-
 
46767
      }
-
 
46768
    }
-
 
46769
 
-
 
46770
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46771
      try {
-
 
46772
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46773
      } catch (org.apache.thrift.TException te) {
-
 
46774
        throw new java.io.IOException(te);
-
 
46775
      }
-
 
46776
    }
-
 
46777
 
-
 
46778
  }
-
 
46779
 
45396
  public static class createOrders_args implements org.apache.thrift.TBase<createOrders_args, createOrders_args._Fields>, java.io.Serializable, Cloneable   {
46780
  public static class createOrders_args implements org.apache.thrift.TBase<createOrders_args, createOrders_args._Fields>, java.io.Serializable, Cloneable   {
45397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_args");
46781
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_args");
45398
 
46782
 
45399
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
46783
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
45400
    private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)2);
46784
    private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)2);
Line 48491... Line 49875...
48491
            }
49875
            }
48492
            break;
49876
            break;
48493
          case 2: // ITEMS
49877
          case 2: // ITEMS
48494
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
49878
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48495
              {
49879
              {
48496
                org.apache.thrift.protocol.TMap _map64 = iprot.readMapBegin();
49880
                org.apache.thrift.protocol.TMap _map72 = iprot.readMapBegin();
48497
                this.items = new HashMap<Long,Double>(2*_map64.size);
49881
                this.items = new HashMap<Long,Double>(2*_map72.size);
48498
                for (int _i65 = 0; _i65 < _map64.size; ++_i65)
49882
                for (int _i73 = 0; _i73 < _map72.size; ++_i73)
48499
                {
49883
                {
48500
                  long _key66; // required
49884
                  long _key74; // required
48501
                  double _val67; // required
49885
                  double _val75; // required
48502
                  _key66 = iprot.readI64();
49886
                  _key74 = iprot.readI64();
48503
                  _val67 = iprot.readDouble();
49887
                  _val75 = iprot.readDouble();
48504
                  this.items.put(_key66, _val67);
49888
                  this.items.put(_key74, _val75);
48505
                }
49889
                }
48506
                iprot.readMapEnd();
49890
                iprot.readMapEnd();
48507
              }
49891
              }
48508
            } else { 
49892
            } else { 
48509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49893
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 48527... Line 49911...
48527
      oprot.writeFieldEnd();
49911
      oprot.writeFieldEnd();
48528
      if (this.items != null) {
49912
      if (this.items != null) {
48529
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
49913
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
48530
        {
49914
        {
48531
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
49915
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
48532
          for (Map.Entry<Long, Double> _iter68 : this.items.entrySet())
49916
          for (Map.Entry<Long, Double> _iter76 : this.items.entrySet())
48533
          {
49917
          {
48534
            oprot.writeI64(_iter68.getKey());
49918
            oprot.writeI64(_iter76.getKey());
48535
            oprot.writeDouble(_iter68.getValue());
49919
            oprot.writeDouble(_iter76.getValue());
48536
          }
49920
          }
48537
          oprot.writeMapEnd();
49921
          oprot.writeMapEnd();
48538
        }
49922
        }
48539
        oprot.writeFieldEnd();
49923
        oprot.writeFieldEnd();
48540
      }
49924
      }
Line 50287... Line 51671...
50287
        }
51671
        }
50288
        switch (field.id) {
51672
        switch (field.id) {
50289
          case 0: // SUCCESS
51673
          case 0: // SUCCESS
50290
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51674
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50291
              {
51675
              {
50292
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
51676
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
50293
                this.success = new ArrayList<User>(_list69.size);
51677
                this.success = new ArrayList<User>(_list77.size);
50294
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
51678
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
50295
                {
51679
                {
50296
                  User _elem71; // required
51680
                  User _elem79; // required
50297
                  _elem71 = new User();
51681
                  _elem79 = new User();
50298
                  _elem71.read(iprot);
51682
                  _elem79.read(iprot);
50299
                  this.success.add(_elem71);
51683
                  this.success.add(_elem79);
50300
                }
51684
                }
50301
                iprot.readListEnd();
51685
                iprot.readListEnd();
50302
              }
51686
              }
50303
            } else { 
51687
            } else { 
50304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 50318... Line 51702...
50318
 
51702
 
50319
      if (this.isSetSuccess()) {
51703
      if (this.isSetSuccess()) {
50320
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51704
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50321
        {
51705
        {
50322
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
51706
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
50323
          for (User _iter72 : this.success)
51707
          for (User _iter80 : this.success)
50324
          {
51708
          {
50325
            _iter72.write(oprot);
51709
            _iter80.write(oprot);
50326
          }
51710
          }
50327
          oprot.writeListEnd();
51711
          oprot.writeListEnd();
50328
        }
51712
        }
50329
        oprot.writeFieldEnd();
51713
        oprot.writeFieldEnd();
50330
      }
51714
      }
Line 51747... Line 53131...
51747
        }
53131
        }
51748
        switch (field.id) {
53132
        switch (field.id) {
51749
          case 0: // SUCCESS
53133
          case 0: // SUCCESS
51750
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53134
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51751
              {
53135
              {
51752
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
53136
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
51753
                this.success = new ArrayList<UserNote>(_list73.size);
53137
                this.success = new ArrayList<UserNote>(_list81.size);
51754
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
53138
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
51755
                {
53139
                {
51756
                  UserNote _elem75; // required
53140
                  UserNote _elem83; // required
51757
                  _elem75 = new UserNote();
53141
                  _elem83 = new UserNote();
51758
                  _elem75.read(iprot);
53142
                  _elem83.read(iprot);
51759
                  this.success.add(_elem75);
53143
                  this.success.add(_elem83);
51760
                }
53144
                }
51761
                iprot.readListEnd();
53145
                iprot.readListEnd();
51762
              }
53146
              }
51763
            } else { 
53147
            } else { 
51764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 51778... Line 53162...
51778
 
53162
 
51779
      if (this.isSetSuccess()) {
53163
      if (this.isSetSuccess()) {
51780
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53164
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51781
        {
53165
        {
51782
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
53166
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
51783
          for (UserNote _iter76 : this.success)
53167
          for (UserNote _iter84 : this.success)
51784
          {
53168
          {
51785
            _iter76.write(oprot);
53169
            _iter84.write(oprot);
51786
          }
53170
          }
51787
          oprot.writeListEnd();
53171
          oprot.writeListEnd();
51788
        }
53172
        }
51789
        oprot.writeFieldEnd();
53173
        oprot.writeFieldEnd();
51790
      }
53174
      }
Line 52440... Line 53824...
52440
        }
53824
        }
52441
        switch (field.id) {
53825
        switch (field.id) {
52442
          case 0: // SUCCESS
53826
          case 0: // SUCCESS
52443
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53827
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52444
              {
53828
              {
52445
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
53829
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
52446
                this.success = new ArrayList<Long>(_list77.size);
53830
                this.success = new ArrayList<Long>(_list85.size);
52447
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
53831
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
52448
                {
53832
                {
52449
                  long _elem79; // required
53833
                  long _elem87; // required
52450
                  _elem79 = iprot.readI64();
53834
                  _elem87 = iprot.readI64();
52451
                  this.success.add(_elem79);
53835
                  this.success.add(_elem87);
52452
                }
53836
                }
52453
                iprot.readListEnd();
53837
                iprot.readListEnd();
52454
              }
53838
              }
52455
            } else { 
53839
            } else { 
52456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 52478... Line 53862...
52478
 
53862
 
52479
      if (this.isSetSuccess()) {
53863
      if (this.isSetSuccess()) {
52480
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53864
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52481
        {
53865
        {
52482
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
53866
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
52483
          for (long _iter80 : this.success)
53867
          for (long _iter88 : this.success)
52484
          {
53868
          {
52485
            oprot.writeI64(_iter80);
53869
            oprot.writeI64(_iter88);
52486
          }
53870
          }
52487
          oprot.writeListEnd();
53871
          oprot.writeListEnd();
52488
        }
53872
        }
52489
        oprot.writeFieldEnd();
53873
        oprot.writeFieldEnd();
52490
      } else if (this.isSetScx()) {
53874
      } else if (this.isSetScx()) {
Line 52907... Line 54291...
52907
      }
54291
      }
52908
    }
54292
    }
52909
 
54293
 
52910
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54294
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52911
      try {
54295
      try {
52912
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
52913
        __isset_bit_vector = new BitSet(1);
-
 
52914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52915
      } catch (org.apache.thrift.TException te) {
54297
      } catch (org.apache.thrift.TException te) {
52916
        throw new java.io.IOException(te);
54298
        throw new java.io.IOException(te);
52917
      }
54299
      }
52918
    }
54300
    }
Line 54579... Line 55961...
54579
        }
55961
        }
54580
        switch (field.id) {
55962
        switch (field.id) {
54581
          case 0: // SUCCESS
55963
          case 0: // SUCCESS
54582
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55964
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54583
              {
55965
              {
54584
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
55966
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
54585
                this.success = new ArrayList<Long>(_list81.size);
55967
                this.success = new ArrayList<Long>(_list89.size);
54586
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
55968
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
54587
                {
55969
                {
54588
                  long _elem83; // required
55970
                  long _elem91; // required
54589
                  _elem83 = iprot.readI64();
55971
                  _elem91 = iprot.readI64();
54590
                  this.success.add(_elem83);
55972
                  this.success.add(_elem91);
54591
                }
55973
                }
54592
                iprot.readListEnd();
55974
                iprot.readListEnd();
54593
              }
55975
              }
54594
            } else { 
55976
            } else { 
54595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 54617... Line 55999...
54617
 
55999
 
54618
      if (this.isSetSuccess()) {
56000
      if (this.isSetSuccess()) {
54619
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56001
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54620
        {
56002
        {
54621
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
56003
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
54622
          for (long _iter84 : this.success)
56004
          for (long _iter92 : this.success)
54623
          {
56005
          {
54624
            oprot.writeI64(_iter84);
56006
            oprot.writeI64(_iter92);
54625
          }
56007
          }
54626
          oprot.writeListEnd();
56008
          oprot.writeListEnd();
54627
        }
56009
        }
54628
        oprot.writeFieldEnd();
56010
        oprot.writeFieldEnd();
54629
      } else if (this.isSetScx()) {
56011
      } else if (this.isSetScx()) {