Subversion Repositories SmartDukaan

Rev

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

Rev 7386 Rev 7393
Line 975... Line 975...
975
 
975
 
976
    public StoreOrderDetail getStoreOrderDetail(long orderId, long storeId) throws org.apache.thrift.TException;
976
    public StoreOrderDetail getStoreOrderDetail(long orderId, long storeId) throws org.apache.thrift.TException;
977
 
977
 
978
    public List<String> getAllEdcBanks() throws org.apache.thrift.TException;
978
    public List<String> getAllEdcBanks() throws org.apache.thrift.TException;
979
 
979
 
-
 
980
    public boolean saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount) throws org.apache.thrift.TException;
-
 
981
 
980
  }
982
  }
981
 
983
 
982
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
984
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
983
 
985
 
984
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
986
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1343... Line 1345...
1343
 
1345
 
1344
    public void getStoreOrderDetail(long orderId, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStoreOrderDetail_call> resultHandler) throws org.apache.thrift.TException;
1346
    public void getStoreOrderDetail(long orderId, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStoreOrderDetail_call> resultHandler) throws org.apache.thrift.TException;
1345
 
1347
 
1346
    public void getAllEdcBanks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllEdcBanks_call> resultHandler) throws org.apache.thrift.TException;
1348
    public void getAllEdcBanks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllEdcBanks_call> resultHandler) throws org.apache.thrift.TException;
1347
 
1349
 
-
 
1350
    public void saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveRefundAmountsForStoreOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1351
 
1348
  }
1352
  }
1349
 
1353
 
1350
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1354
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1351
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1355
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1352
      public Factory() {}
1356
      public Factory() {}
Line 5905... Line 5909...
5905
        return result.success;
5909
        return result.success;
5906
      }
5910
      }
5907
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEdcBanks failed: unknown result");
5911
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEdcBanks failed: unknown result");
5908
    }
5912
    }
5909
 
5913
 
-
 
5914
    public boolean saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount) throws org.apache.thrift.TException
-
 
5915
    {
-
 
5916
      send_saveRefundAmountsForStoreOrder(orderId, storeId, cashRefundAmount, cardRefundAmount);
-
 
5917
      return recv_saveRefundAmountsForStoreOrder();
-
 
5918
    }
-
 
5919
 
-
 
5920
    public void send_saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount) throws org.apache.thrift.TException
-
 
5921
    {
-
 
5922
      saveRefundAmountsForStoreOrder_args args = new saveRefundAmountsForStoreOrder_args();
-
 
5923
      args.setOrderId(orderId);
-
 
5924
      args.setStoreId(storeId);
-
 
5925
      args.setCashRefundAmount(cashRefundAmount);
-
 
5926
      args.setCardRefundAmount(cardRefundAmount);
-
 
5927
      sendBase("saveRefundAmountsForStoreOrder", args);
-
 
5928
    }
-
 
5929
 
-
 
5930
    public boolean recv_saveRefundAmountsForStoreOrder() throws org.apache.thrift.TException
-
 
5931
    {
-
 
5932
      saveRefundAmountsForStoreOrder_result result = new saveRefundAmountsForStoreOrder_result();
-
 
5933
      receiveBase(result, "saveRefundAmountsForStoreOrder");
-
 
5934
      if (result.isSetSuccess()) {
-
 
5935
        return result.success;
-
 
5936
      }
-
 
5937
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveRefundAmountsForStoreOrder failed: unknown result");
-
 
5938
    }
-
 
5939
 
5910
  }
5940
  }
5911
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5941
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5912
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5942
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5913
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5943
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5914
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5944
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12269... Line 12299...
12269
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12299
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12270
        return (new Client(prot)).recv_getAllEdcBanks();
12300
        return (new Client(prot)).recv_getAllEdcBanks();
12271
      }
12301
      }
12272
    }
12302
    }
12273
 
12303
 
-
 
12304
    public void saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount, org.apache.thrift.async.AsyncMethodCallback<saveRefundAmountsForStoreOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
12305
      checkReady();
-
 
12306
      saveRefundAmountsForStoreOrder_call method_call = new saveRefundAmountsForStoreOrder_call(orderId, storeId, cashRefundAmount, cardRefundAmount, resultHandler, this, ___protocolFactory, ___transport);
-
 
12307
      this.___currentMethod = method_call;
-
 
12308
      ___manager.call(method_call);
-
 
12309
    }
-
 
12310
 
-
 
12311
    public static class saveRefundAmountsForStoreOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12312
      private long orderId;
-
 
12313
      private long storeId;
-
 
12314
      private double cashRefundAmount;
-
 
12315
      private double cardRefundAmount;
-
 
12316
      public saveRefundAmountsForStoreOrder_call(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount, org.apache.thrift.async.AsyncMethodCallback<saveRefundAmountsForStoreOrder_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 {
-
 
12317
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12318
        this.orderId = orderId;
-
 
12319
        this.storeId = storeId;
-
 
12320
        this.cashRefundAmount = cashRefundAmount;
-
 
12321
        this.cardRefundAmount = cardRefundAmount;
-
 
12322
      }
-
 
12323
 
-
 
12324
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12325
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveRefundAmountsForStoreOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12326
        saveRefundAmountsForStoreOrder_args args = new saveRefundAmountsForStoreOrder_args();
-
 
12327
        args.setOrderId(orderId);
-
 
12328
        args.setStoreId(storeId);
-
 
12329
        args.setCashRefundAmount(cashRefundAmount);
-
 
12330
        args.setCardRefundAmount(cardRefundAmount);
-
 
12331
        args.write(prot);
-
 
12332
        prot.writeMessageEnd();
-
 
12333
      }
-
 
12334
 
-
 
12335
      public boolean getResult() throws org.apache.thrift.TException {
-
 
12336
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12337
          throw new IllegalStateException("Method call not finished!");
-
 
12338
        }
-
 
12339
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12340
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12341
        return (new Client(prot)).recv_saveRefundAmountsForStoreOrder();
-
 
12342
      }
-
 
12343
    }
-
 
12344
 
12274
  }
12345
  }
12275
 
12346
 
12276
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12347
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12277
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12348
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12278
    public Processor(I iface) {
12349
    public Processor(I iface) {
Line 12464... Line 12535...
12464
      processMap.put("addFrc", new addFrc());
12535
      processMap.put("addFrc", new addFrc());
12465
      processMap.put("addSeries", new addSeries());
12536
      processMap.put("addSeries", new addSeries());
12466
      processMap.put("saveStoreOrderDetail", new saveStoreOrderDetail());
12537
      processMap.put("saveStoreOrderDetail", new saveStoreOrderDetail());
12467
      processMap.put("getStoreOrderDetail", new getStoreOrderDetail());
12538
      processMap.put("getStoreOrderDetail", new getStoreOrderDetail());
12468
      processMap.put("getAllEdcBanks", new getAllEdcBanks());
12539
      processMap.put("getAllEdcBanks", new getAllEdcBanks());
-
 
12540
      processMap.put("saveRefundAmountsForStoreOrder", new saveRefundAmountsForStoreOrder());
12469
      return processMap;
12541
      return processMap;
12470
    }
12542
    }
12471
 
12543
 
12472
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
12544
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
12473
      public createTransaction() {
12545
      public createTransaction() {
Line 15815... Line 15887...
15815
        result.success = iface.getAllEdcBanks();
15887
        result.success = iface.getAllEdcBanks();
15816
        return result;
15888
        return result;
15817
      }
15889
      }
15818
    }
15890
    }
15819
 
15891
 
-
 
15892
    private static class saveRefundAmountsForStoreOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveRefundAmountsForStoreOrder_args> {
-
 
15893
      public saveRefundAmountsForStoreOrder() {
-
 
15894
        super("saveRefundAmountsForStoreOrder");
-
 
15895
      }
-
 
15896
 
-
 
15897
      protected saveRefundAmountsForStoreOrder_args getEmptyArgsInstance() {
-
 
15898
        return new saveRefundAmountsForStoreOrder_args();
-
 
15899
      }
-
 
15900
 
-
 
15901
      protected saveRefundAmountsForStoreOrder_result getResult(I iface, saveRefundAmountsForStoreOrder_args args) throws org.apache.thrift.TException {
-
 
15902
        saveRefundAmountsForStoreOrder_result result = new saveRefundAmountsForStoreOrder_result();
-
 
15903
        result.success = iface.saveRefundAmountsForStoreOrder(args.orderId, args.storeId, args.cashRefundAmount, args.cardRefundAmount);
-
 
15904
        result.setSuccessIsSet(true);
-
 
15905
        return result;
-
 
15906
      }
-
 
15907
    }
-
 
15908
 
15820
  }
15909
  }
15821
 
15910
 
15822
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
15911
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
15823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
15912
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
15824
 
15913
 
Line 47007... Line 47096...
47007
      }
47096
      }
47008
    }
47097
    }
47009
 
47098
 
47010
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47011
      try {
47100
      try {
-
 
47101
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
47102
        __isset_bit_vector = new BitSet(1);
47012
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47013
      } catch (org.apache.thrift.TException te) {
47104
      } catch (org.apache.thrift.TException te) {
47014
        throw new java.io.IOException(te);
47105
        throw new java.io.IOException(te);
47015
      }
47106
      }
47016
    }
47107
    }
Line 146435... Line 146526...
146435
      first = false;
146526
      first = false;
146436
      sb.append(")");
146527
      sb.append(")");
146437
      return sb.toString();
146528
      return sb.toString();
146438
    }
146529
    }
146439
 
146530
 
-
 
146531
    public void validate() throws org.apache.thrift.TException {
-
 
146532
      // check for required fields
-
 
146533
    }
-
 
146534
 
-
 
146535
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
146536
      try {
-
 
146537
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
146538
      } catch (org.apache.thrift.TException te) {
-
 
146539
        throw new java.io.IOException(te);
-
 
146540
      }
-
 
146541
    }
-
 
146542
 
-
 
146543
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
146544
      try {
-
 
146545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
146546
      } catch (org.apache.thrift.TException te) {
-
 
146547
        throw new java.io.IOException(te);
-
 
146548
      }
-
 
146549
    }
-
 
146550
 
-
 
146551
  }
-
 
146552
 
-
 
146553
  public static class saveRefundAmountsForStoreOrder_args implements org.apache.thrift.TBase<saveRefundAmountsForStoreOrder_args, saveRefundAmountsForStoreOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
146554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveRefundAmountsForStoreOrder_args");
-
 
146555
 
-
 
146556
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
146557
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
146558
    private static final org.apache.thrift.protocol.TField CASH_REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cashRefundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
-
 
146559
    private static final org.apache.thrift.protocol.TField CARD_REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cardRefundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
-
 
146560
 
-
 
146561
    private long orderId; // required
-
 
146562
    private long storeId; // required
-
 
146563
    private double cashRefundAmount; // required
-
 
146564
    private double cardRefundAmount; // required
-
 
146565
 
-
 
146566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
146567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
146568
      ORDER_ID((short)1, "orderId"),
-
 
146569
      STORE_ID((short)2, "storeId"),
-
 
146570
      CASH_REFUND_AMOUNT((short)3, "cashRefundAmount"),
-
 
146571
      CARD_REFUND_AMOUNT((short)4, "cardRefundAmount");
-
 
146572
 
-
 
146573
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
146574
 
-
 
146575
      static {
-
 
146576
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
146577
          byName.put(field.getFieldName(), field);
-
 
146578
        }
-
 
146579
      }
-
 
146580
 
-
 
146581
      /**
-
 
146582
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
146583
       */
-
 
146584
      public static _Fields findByThriftId(int fieldId) {
-
 
146585
        switch(fieldId) {
-
 
146586
          case 1: // ORDER_ID
-
 
146587
            return ORDER_ID;
-
 
146588
          case 2: // STORE_ID
-
 
146589
            return STORE_ID;
-
 
146590
          case 3: // CASH_REFUND_AMOUNT
-
 
146591
            return CASH_REFUND_AMOUNT;
-
 
146592
          case 4: // CARD_REFUND_AMOUNT
-
 
146593
            return CARD_REFUND_AMOUNT;
-
 
146594
          default:
-
 
146595
            return null;
-
 
146596
        }
-
 
146597
      }
-
 
146598
 
-
 
146599
      /**
-
 
146600
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
146601
       * if it is not found.
-
 
146602
       */
-
 
146603
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
146604
        _Fields fields = findByThriftId(fieldId);
-
 
146605
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
146606
        return fields;
-
 
146607
      }
-
 
146608
 
-
 
146609
      /**
-
 
146610
       * Find the _Fields constant that matches name, or null if its not found.
-
 
146611
       */
-
 
146612
      public static _Fields findByName(String name) {
-
 
146613
        return byName.get(name);
-
 
146614
      }
-
 
146615
 
-
 
146616
      private final short _thriftId;
-
 
146617
      private final String _fieldName;
-
 
146618
 
-
 
146619
      _Fields(short thriftId, String fieldName) {
-
 
146620
        _thriftId = thriftId;
-
 
146621
        _fieldName = fieldName;
-
 
146622
      }
-
 
146623
 
-
 
146624
      public short getThriftFieldId() {
-
 
146625
        return _thriftId;
-
 
146626
      }
-
 
146627
 
-
 
146628
      public String getFieldName() {
-
 
146629
        return _fieldName;
-
 
146630
      }
-
 
146631
    }
-
 
146632
 
-
 
146633
    // isset id assignments
-
 
146634
    private static final int __ORDERID_ISSET_ID = 0;
-
 
146635
    private static final int __STOREID_ISSET_ID = 1;
-
 
146636
    private static final int __CASHREFUNDAMOUNT_ISSET_ID = 2;
-
 
146637
    private static final int __CARDREFUNDAMOUNT_ISSET_ID = 3;
-
 
146638
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
146639
 
-
 
146640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
146641
    static {
-
 
146642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
146643
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146644
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
146645
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
146647
      tmpMap.put(_Fields.CASH_REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cashRefundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
146649
      tmpMap.put(_Fields.CARD_REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cardRefundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
146651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
146652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveRefundAmountsForStoreOrder_args.class, metaDataMap);
-
 
146653
    }
-
 
146654
 
-
 
146655
    public saveRefundAmountsForStoreOrder_args() {
-
 
146656
    }
-
 
146657
 
-
 
146658
    public saveRefundAmountsForStoreOrder_args(
-
 
146659
      long orderId,
-
 
146660
      long storeId,
-
 
146661
      double cashRefundAmount,
-
 
146662
      double cardRefundAmount)
-
 
146663
    {
-
 
146664
      this();
-
 
146665
      this.orderId = orderId;
-
 
146666
      setOrderIdIsSet(true);
-
 
146667
      this.storeId = storeId;
-
 
146668
      setStoreIdIsSet(true);
-
 
146669
      this.cashRefundAmount = cashRefundAmount;
-
 
146670
      setCashRefundAmountIsSet(true);
-
 
146671
      this.cardRefundAmount = cardRefundAmount;
-
 
146672
      setCardRefundAmountIsSet(true);
-
 
146673
    }
-
 
146674
 
-
 
146675
    /**
-
 
146676
     * Performs a deep copy on <i>other</i>.
-
 
146677
     */
-
 
146678
    public saveRefundAmountsForStoreOrder_args(saveRefundAmountsForStoreOrder_args other) {
-
 
146679
      __isset_bit_vector.clear();
-
 
146680
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
146681
      this.orderId = other.orderId;
-
 
146682
      this.storeId = other.storeId;
-
 
146683
      this.cashRefundAmount = other.cashRefundAmount;
-
 
146684
      this.cardRefundAmount = other.cardRefundAmount;
-
 
146685
    }
-
 
146686
 
-
 
146687
    public saveRefundAmountsForStoreOrder_args deepCopy() {
-
 
146688
      return new saveRefundAmountsForStoreOrder_args(this);
-
 
146689
    }
-
 
146690
 
-
 
146691
    @Override
-
 
146692
    public void clear() {
-
 
146693
      setOrderIdIsSet(false);
-
 
146694
      this.orderId = 0;
-
 
146695
      setStoreIdIsSet(false);
-
 
146696
      this.storeId = 0;
-
 
146697
      setCashRefundAmountIsSet(false);
-
 
146698
      this.cashRefundAmount = 0.0;
-
 
146699
      setCardRefundAmountIsSet(false);
-
 
146700
      this.cardRefundAmount = 0.0;
-
 
146701
    }
-
 
146702
 
-
 
146703
    public long getOrderId() {
-
 
146704
      return this.orderId;
-
 
146705
    }
-
 
146706
 
-
 
146707
    public void setOrderId(long orderId) {
-
 
146708
      this.orderId = orderId;
-
 
146709
      setOrderIdIsSet(true);
-
 
146710
    }
-
 
146711
 
-
 
146712
    public void unsetOrderId() {
-
 
146713
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
146714
    }
-
 
146715
 
-
 
146716
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
146717
    public boolean isSetOrderId() {
-
 
146718
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
146719
    }
-
 
146720
 
-
 
146721
    public void setOrderIdIsSet(boolean value) {
-
 
146722
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
146723
    }
-
 
146724
 
-
 
146725
    public long getStoreId() {
-
 
146726
      return this.storeId;
-
 
146727
    }
-
 
146728
 
-
 
146729
    public void setStoreId(long storeId) {
-
 
146730
      this.storeId = storeId;
-
 
146731
      setStoreIdIsSet(true);
-
 
146732
    }
-
 
146733
 
-
 
146734
    public void unsetStoreId() {
-
 
146735
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
146736
    }
-
 
146737
 
-
 
146738
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
146739
    public boolean isSetStoreId() {
-
 
146740
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
146741
    }
-
 
146742
 
-
 
146743
    public void setStoreIdIsSet(boolean value) {
-
 
146744
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
146745
    }
-
 
146746
 
-
 
146747
    public double getCashRefundAmount() {
-
 
146748
      return this.cashRefundAmount;
-
 
146749
    }
-
 
146750
 
-
 
146751
    public void setCashRefundAmount(double cashRefundAmount) {
-
 
146752
      this.cashRefundAmount = cashRefundAmount;
-
 
146753
      setCashRefundAmountIsSet(true);
-
 
146754
    }
-
 
146755
 
-
 
146756
    public void unsetCashRefundAmount() {
-
 
146757
      __isset_bit_vector.clear(__CASHREFUNDAMOUNT_ISSET_ID);
-
 
146758
    }
-
 
146759
 
-
 
146760
    /** Returns true if field cashRefundAmount is set (has been assigned a value) and false otherwise */
-
 
146761
    public boolean isSetCashRefundAmount() {
-
 
146762
      return __isset_bit_vector.get(__CASHREFUNDAMOUNT_ISSET_ID);
-
 
146763
    }
-
 
146764
 
-
 
146765
    public void setCashRefundAmountIsSet(boolean value) {
-
 
146766
      __isset_bit_vector.set(__CASHREFUNDAMOUNT_ISSET_ID, value);
-
 
146767
    }
-
 
146768
 
-
 
146769
    public double getCardRefundAmount() {
-
 
146770
      return this.cardRefundAmount;
-
 
146771
    }
-
 
146772
 
-
 
146773
    public void setCardRefundAmount(double cardRefundAmount) {
-
 
146774
      this.cardRefundAmount = cardRefundAmount;
-
 
146775
      setCardRefundAmountIsSet(true);
-
 
146776
    }
-
 
146777
 
-
 
146778
    public void unsetCardRefundAmount() {
-
 
146779
      __isset_bit_vector.clear(__CARDREFUNDAMOUNT_ISSET_ID);
-
 
146780
    }
-
 
146781
 
-
 
146782
    /** Returns true if field cardRefundAmount is set (has been assigned a value) and false otherwise */
-
 
146783
    public boolean isSetCardRefundAmount() {
-
 
146784
      return __isset_bit_vector.get(__CARDREFUNDAMOUNT_ISSET_ID);
-
 
146785
    }
-
 
146786
 
-
 
146787
    public void setCardRefundAmountIsSet(boolean value) {
-
 
146788
      __isset_bit_vector.set(__CARDREFUNDAMOUNT_ISSET_ID, value);
-
 
146789
    }
-
 
146790
 
-
 
146791
    public void setFieldValue(_Fields field, Object value) {
-
 
146792
      switch (field) {
-
 
146793
      case ORDER_ID:
-
 
146794
        if (value == null) {
-
 
146795
          unsetOrderId();
-
 
146796
        } else {
-
 
146797
          setOrderId((Long)value);
-
 
146798
        }
-
 
146799
        break;
-
 
146800
 
-
 
146801
      case STORE_ID:
-
 
146802
        if (value == null) {
-
 
146803
          unsetStoreId();
-
 
146804
        } else {
-
 
146805
          setStoreId((Long)value);
-
 
146806
        }
-
 
146807
        break;
-
 
146808
 
-
 
146809
      case CASH_REFUND_AMOUNT:
-
 
146810
        if (value == null) {
-
 
146811
          unsetCashRefundAmount();
-
 
146812
        } else {
-
 
146813
          setCashRefundAmount((Double)value);
-
 
146814
        }
-
 
146815
        break;
-
 
146816
 
-
 
146817
      case CARD_REFUND_AMOUNT:
-
 
146818
        if (value == null) {
-
 
146819
          unsetCardRefundAmount();
-
 
146820
        } else {
-
 
146821
          setCardRefundAmount((Double)value);
-
 
146822
        }
-
 
146823
        break;
-
 
146824
 
-
 
146825
      }
-
 
146826
    }
-
 
146827
 
-
 
146828
    public Object getFieldValue(_Fields field) {
-
 
146829
      switch (field) {
-
 
146830
      case ORDER_ID:
-
 
146831
        return Long.valueOf(getOrderId());
-
 
146832
 
-
 
146833
      case STORE_ID:
-
 
146834
        return Long.valueOf(getStoreId());
-
 
146835
 
-
 
146836
      case CASH_REFUND_AMOUNT:
-
 
146837
        return Double.valueOf(getCashRefundAmount());
-
 
146838
 
-
 
146839
      case CARD_REFUND_AMOUNT:
-
 
146840
        return Double.valueOf(getCardRefundAmount());
-
 
146841
 
-
 
146842
      }
-
 
146843
      throw new IllegalStateException();
-
 
146844
    }
-
 
146845
 
-
 
146846
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
146847
    public boolean isSet(_Fields field) {
-
 
146848
      if (field == null) {
-
 
146849
        throw new IllegalArgumentException();
-
 
146850
      }
-
 
146851
 
-
 
146852
      switch (field) {
-
 
146853
      case ORDER_ID:
-
 
146854
        return isSetOrderId();
-
 
146855
      case STORE_ID:
-
 
146856
        return isSetStoreId();
-
 
146857
      case CASH_REFUND_AMOUNT:
-
 
146858
        return isSetCashRefundAmount();
-
 
146859
      case CARD_REFUND_AMOUNT:
-
 
146860
        return isSetCardRefundAmount();
-
 
146861
      }
-
 
146862
      throw new IllegalStateException();
-
 
146863
    }
-
 
146864
 
-
 
146865
    @Override
-
 
146866
    public boolean equals(Object that) {
-
 
146867
      if (that == null)
-
 
146868
        return false;
-
 
146869
      if (that instanceof saveRefundAmountsForStoreOrder_args)
-
 
146870
        return this.equals((saveRefundAmountsForStoreOrder_args)that);
-
 
146871
      return false;
-
 
146872
    }
-
 
146873
 
-
 
146874
    public boolean equals(saveRefundAmountsForStoreOrder_args that) {
-
 
146875
      if (that == null)
-
 
146876
        return false;
-
 
146877
 
-
 
146878
      boolean this_present_orderId = true;
-
 
146879
      boolean that_present_orderId = true;
-
 
146880
      if (this_present_orderId || that_present_orderId) {
-
 
146881
        if (!(this_present_orderId && that_present_orderId))
-
 
146882
          return false;
-
 
146883
        if (this.orderId != that.orderId)
-
 
146884
          return false;
-
 
146885
      }
-
 
146886
 
-
 
146887
      boolean this_present_storeId = true;
-
 
146888
      boolean that_present_storeId = true;
-
 
146889
      if (this_present_storeId || that_present_storeId) {
-
 
146890
        if (!(this_present_storeId && that_present_storeId))
-
 
146891
          return false;
-
 
146892
        if (this.storeId != that.storeId)
-
 
146893
          return false;
-
 
146894
      }
-
 
146895
 
-
 
146896
      boolean this_present_cashRefundAmount = true;
-
 
146897
      boolean that_present_cashRefundAmount = true;
-
 
146898
      if (this_present_cashRefundAmount || that_present_cashRefundAmount) {
-
 
146899
        if (!(this_present_cashRefundAmount && that_present_cashRefundAmount))
-
 
146900
          return false;
-
 
146901
        if (this.cashRefundAmount != that.cashRefundAmount)
-
 
146902
          return false;
-
 
146903
      }
-
 
146904
 
-
 
146905
      boolean this_present_cardRefundAmount = true;
-
 
146906
      boolean that_present_cardRefundAmount = true;
-
 
146907
      if (this_present_cardRefundAmount || that_present_cardRefundAmount) {
-
 
146908
        if (!(this_present_cardRefundAmount && that_present_cardRefundAmount))
-
 
146909
          return false;
-
 
146910
        if (this.cardRefundAmount != that.cardRefundAmount)
-
 
146911
          return false;
-
 
146912
      }
-
 
146913
 
-
 
146914
      return true;
-
 
146915
    }
-
 
146916
 
-
 
146917
    @Override
-
 
146918
    public int hashCode() {
-
 
146919
      return 0;
-
 
146920
    }
-
 
146921
 
-
 
146922
    public int compareTo(saveRefundAmountsForStoreOrder_args other) {
-
 
146923
      if (!getClass().equals(other.getClass())) {
-
 
146924
        return getClass().getName().compareTo(other.getClass().getName());
-
 
146925
      }
-
 
146926
 
-
 
146927
      int lastComparison = 0;
-
 
146928
      saveRefundAmountsForStoreOrder_args typedOther = (saveRefundAmountsForStoreOrder_args)other;
-
 
146929
 
-
 
146930
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
146931
      if (lastComparison != 0) {
-
 
146932
        return lastComparison;
-
 
146933
      }
-
 
146934
      if (isSetOrderId()) {
-
 
146935
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
146936
        if (lastComparison != 0) {
-
 
146937
          return lastComparison;
-
 
146938
        }
-
 
146939
      }
-
 
146940
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
146941
      if (lastComparison != 0) {
-
 
146942
        return lastComparison;
-
 
146943
      }
-
 
146944
      if (isSetStoreId()) {
-
 
146945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
146946
        if (lastComparison != 0) {
-
 
146947
          return lastComparison;
-
 
146948
        }
-
 
146949
      }
-
 
146950
      lastComparison = Boolean.valueOf(isSetCashRefundAmount()).compareTo(typedOther.isSetCashRefundAmount());
-
 
146951
      if (lastComparison != 0) {
-
 
146952
        return lastComparison;
-
 
146953
      }
-
 
146954
      if (isSetCashRefundAmount()) {
-
 
146955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cashRefundAmount, typedOther.cashRefundAmount);
-
 
146956
        if (lastComparison != 0) {
-
 
146957
          return lastComparison;
-
 
146958
        }
-
 
146959
      }
-
 
146960
      lastComparison = Boolean.valueOf(isSetCardRefundAmount()).compareTo(typedOther.isSetCardRefundAmount());
-
 
146961
      if (lastComparison != 0) {
-
 
146962
        return lastComparison;
-
 
146963
      }
-
 
146964
      if (isSetCardRefundAmount()) {
-
 
146965
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cardRefundAmount, typedOther.cardRefundAmount);
-
 
146966
        if (lastComparison != 0) {
-
 
146967
          return lastComparison;
-
 
146968
        }
-
 
146969
      }
-
 
146970
      return 0;
-
 
146971
    }
-
 
146972
 
-
 
146973
    public _Fields fieldForId(int fieldId) {
-
 
146974
      return _Fields.findByThriftId(fieldId);
-
 
146975
    }
-
 
146976
 
-
 
146977
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
146978
      org.apache.thrift.protocol.TField field;
-
 
146979
      iprot.readStructBegin();
-
 
146980
      while (true)
-
 
146981
      {
-
 
146982
        field = iprot.readFieldBegin();
-
 
146983
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
146984
          break;
-
 
146985
        }
-
 
146986
        switch (field.id) {
-
 
146987
          case 1: // ORDER_ID
-
 
146988
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
146989
              this.orderId = iprot.readI64();
-
 
146990
              setOrderIdIsSet(true);
-
 
146991
            } else { 
-
 
146992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
146993
            }
-
 
146994
            break;
-
 
146995
          case 2: // STORE_ID
-
 
146996
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
146997
              this.storeId = iprot.readI64();
-
 
146998
              setStoreIdIsSet(true);
-
 
146999
            } else { 
-
 
147000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147001
            }
-
 
147002
            break;
-
 
147003
          case 3: // CASH_REFUND_AMOUNT
-
 
147004
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
147005
              this.cashRefundAmount = iprot.readDouble();
-
 
147006
              setCashRefundAmountIsSet(true);
-
 
147007
            } else { 
-
 
147008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147009
            }
-
 
147010
            break;
-
 
147011
          case 4: // CARD_REFUND_AMOUNT
-
 
147012
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
147013
              this.cardRefundAmount = iprot.readDouble();
-
 
147014
              setCardRefundAmountIsSet(true);
-
 
147015
            } else { 
-
 
147016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147017
            }
-
 
147018
            break;
-
 
147019
          default:
-
 
147020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147021
        }
-
 
147022
        iprot.readFieldEnd();
-
 
147023
      }
-
 
147024
      iprot.readStructEnd();
-
 
147025
      validate();
-
 
147026
    }
-
 
147027
 
-
 
147028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
147029
      validate();
-
 
147030
 
-
 
147031
      oprot.writeStructBegin(STRUCT_DESC);
-
 
147032
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
147033
      oprot.writeI64(this.orderId);
-
 
147034
      oprot.writeFieldEnd();
-
 
147035
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
147036
      oprot.writeI64(this.storeId);
-
 
147037
      oprot.writeFieldEnd();
-
 
147038
      oprot.writeFieldBegin(CASH_REFUND_AMOUNT_FIELD_DESC);
-
 
147039
      oprot.writeDouble(this.cashRefundAmount);
-
 
147040
      oprot.writeFieldEnd();
-
 
147041
      oprot.writeFieldBegin(CARD_REFUND_AMOUNT_FIELD_DESC);
-
 
147042
      oprot.writeDouble(this.cardRefundAmount);
-
 
147043
      oprot.writeFieldEnd();
-
 
147044
      oprot.writeFieldStop();
-
 
147045
      oprot.writeStructEnd();
-
 
147046
    }
-
 
147047
 
-
 
147048
    @Override
-
 
147049
    public String toString() {
-
 
147050
      StringBuilder sb = new StringBuilder("saveRefundAmountsForStoreOrder_args(");
-
 
147051
      boolean first = true;
-
 
147052
 
-
 
147053
      sb.append("orderId:");
-
 
147054
      sb.append(this.orderId);
-
 
147055
      first = false;
-
 
147056
      if (!first) sb.append(", ");
-
 
147057
      sb.append("storeId:");
-
 
147058
      sb.append(this.storeId);
-
 
147059
      first = false;
-
 
147060
      if (!first) sb.append(", ");
-
 
147061
      sb.append("cashRefundAmount:");
-
 
147062
      sb.append(this.cashRefundAmount);
-
 
147063
      first = false;
-
 
147064
      if (!first) sb.append(", ");
-
 
147065
      sb.append("cardRefundAmount:");
-
 
147066
      sb.append(this.cardRefundAmount);
-
 
147067
      first = false;
-
 
147068
      sb.append(")");
-
 
147069
      return sb.toString();
-
 
147070
    }
-
 
147071
 
-
 
147072
    public void validate() throws org.apache.thrift.TException {
-
 
147073
      // check for required fields
-
 
147074
    }
-
 
147075
 
-
 
147076
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
147077
      try {
-
 
147078
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
147079
      } catch (org.apache.thrift.TException te) {
-
 
147080
        throw new java.io.IOException(te);
-
 
147081
      }
-
 
147082
    }
-
 
147083
 
-
 
147084
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
147085
      try {
-
 
147086
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
147087
        __isset_bit_vector = new BitSet(1);
-
 
147088
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
147089
      } catch (org.apache.thrift.TException te) {
-
 
147090
        throw new java.io.IOException(te);
-
 
147091
      }
-
 
147092
    }
-
 
147093
 
-
 
147094
  }
-
 
147095
 
-
 
147096
  public static class saveRefundAmountsForStoreOrder_result implements org.apache.thrift.TBase<saveRefundAmountsForStoreOrder_result, saveRefundAmountsForStoreOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
147097
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveRefundAmountsForStoreOrder_result");
-
 
147098
 
-
 
147099
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
147100
 
-
 
147101
    private boolean success; // required
-
 
147102
 
-
 
147103
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
147104
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
147105
      SUCCESS((short)0, "success");
-
 
147106
 
-
 
147107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
147108
 
-
 
147109
      static {
-
 
147110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
147111
          byName.put(field.getFieldName(), field);
-
 
147112
        }
-
 
147113
      }
-
 
147114
 
-
 
147115
      /**
-
 
147116
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
147117
       */
-
 
147118
      public static _Fields findByThriftId(int fieldId) {
-
 
147119
        switch(fieldId) {
-
 
147120
          case 0: // SUCCESS
-
 
147121
            return SUCCESS;
-
 
147122
          default:
-
 
147123
            return null;
-
 
147124
        }
-
 
147125
      }
-
 
147126
 
-
 
147127
      /**
-
 
147128
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
147129
       * if it is not found.
-
 
147130
       */
-
 
147131
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
147132
        _Fields fields = findByThriftId(fieldId);
-
 
147133
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
147134
        return fields;
-
 
147135
      }
-
 
147136
 
-
 
147137
      /**
-
 
147138
       * Find the _Fields constant that matches name, or null if its not found.
-
 
147139
       */
-
 
147140
      public static _Fields findByName(String name) {
-
 
147141
        return byName.get(name);
-
 
147142
      }
-
 
147143
 
-
 
147144
      private final short _thriftId;
-
 
147145
      private final String _fieldName;
-
 
147146
 
-
 
147147
      _Fields(short thriftId, String fieldName) {
-
 
147148
        _thriftId = thriftId;
-
 
147149
        _fieldName = fieldName;
-
 
147150
      }
-
 
147151
 
-
 
147152
      public short getThriftFieldId() {
-
 
147153
        return _thriftId;
-
 
147154
      }
-
 
147155
 
-
 
147156
      public String getFieldName() {
-
 
147157
        return _fieldName;
-
 
147158
      }
-
 
147159
    }
-
 
147160
 
-
 
147161
    // isset id assignments
-
 
147162
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
147163
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
147164
 
-
 
147165
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
147166
    static {
-
 
147167
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
147168
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
147169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
147170
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
147171
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveRefundAmountsForStoreOrder_result.class, metaDataMap);
-
 
147172
    }
-
 
147173
 
-
 
147174
    public saveRefundAmountsForStoreOrder_result() {
-
 
147175
    }
-
 
147176
 
-
 
147177
    public saveRefundAmountsForStoreOrder_result(
-
 
147178
      boolean success)
-
 
147179
    {
-
 
147180
      this();
-
 
147181
      this.success = success;
-
 
147182
      setSuccessIsSet(true);
-
 
147183
    }
-
 
147184
 
-
 
147185
    /**
-
 
147186
     * Performs a deep copy on <i>other</i>.
-
 
147187
     */
-
 
147188
    public saveRefundAmountsForStoreOrder_result(saveRefundAmountsForStoreOrder_result other) {
-
 
147189
      __isset_bit_vector.clear();
-
 
147190
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
147191
      this.success = other.success;
-
 
147192
    }
-
 
147193
 
-
 
147194
    public saveRefundAmountsForStoreOrder_result deepCopy() {
-
 
147195
      return new saveRefundAmountsForStoreOrder_result(this);
-
 
147196
    }
-
 
147197
 
-
 
147198
    @Override
-
 
147199
    public void clear() {
-
 
147200
      setSuccessIsSet(false);
-
 
147201
      this.success = false;
-
 
147202
    }
-
 
147203
 
-
 
147204
    public boolean isSuccess() {
-
 
147205
      return this.success;
-
 
147206
    }
-
 
147207
 
-
 
147208
    public void setSuccess(boolean success) {
-
 
147209
      this.success = success;
-
 
147210
      setSuccessIsSet(true);
-
 
147211
    }
-
 
147212
 
-
 
147213
    public void unsetSuccess() {
-
 
147214
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
147215
    }
-
 
147216
 
-
 
147217
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
147218
    public boolean isSetSuccess() {
-
 
147219
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
147220
    }
-
 
147221
 
-
 
147222
    public void setSuccessIsSet(boolean value) {
-
 
147223
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
147224
    }
-
 
147225
 
-
 
147226
    public void setFieldValue(_Fields field, Object value) {
-
 
147227
      switch (field) {
-
 
147228
      case SUCCESS:
-
 
147229
        if (value == null) {
-
 
147230
          unsetSuccess();
-
 
147231
        } else {
-
 
147232
          setSuccess((Boolean)value);
-
 
147233
        }
-
 
147234
        break;
-
 
147235
 
-
 
147236
      }
-
 
147237
    }
-
 
147238
 
-
 
147239
    public Object getFieldValue(_Fields field) {
-
 
147240
      switch (field) {
-
 
147241
      case SUCCESS:
-
 
147242
        return Boolean.valueOf(isSuccess());
-
 
147243
 
-
 
147244
      }
-
 
147245
      throw new IllegalStateException();
-
 
147246
    }
-
 
147247
 
-
 
147248
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
147249
    public boolean isSet(_Fields field) {
-
 
147250
      if (field == null) {
-
 
147251
        throw new IllegalArgumentException();
-
 
147252
      }
-
 
147253
 
-
 
147254
      switch (field) {
-
 
147255
      case SUCCESS:
-
 
147256
        return isSetSuccess();
-
 
147257
      }
-
 
147258
      throw new IllegalStateException();
-
 
147259
    }
-
 
147260
 
-
 
147261
    @Override
-
 
147262
    public boolean equals(Object that) {
-
 
147263
      if (that == null)
-
 
147264
        return false;
-
 
147265
      if (that instanceof saveRefundAmountsForStoreOrder_result)
-
 
147266
        return this.equals((saveRefundAmountsForStoreOrder_result)that);
-
 
147267
      return false;
-
 
147268
    }
-
 
147269
 
-
 
147270
    public boolean equals(saveRefundAmountsForStoreOrder_result that) {
-
 
147271
      if (that == null)
-
 
147272
        return false;
-
 
147273
 
-
 
147274
      boolean this_present_success = true;
-
 
147275
      boolean that_present_success = true;
-
 
147276
      if (this_present_success || that_present_success) {
-
 
147277
        if (!(this_present_success && that_present_success))
-
 
147278
          return false;
-
 
147279
        if (this.success != that.success)
-
 
147280
          return false;
-
 
147281
      }
-
 
147282
 
-
 
147283
      return true;
-
 
147284
    }
-
 
147285
 
-
 
147286
    @Override
-
 
147287
    public int hashCode() {
-
 
147288
      return 0;
-
 
147289
    }
-
 
147290
 
-
 
147291
    public int compareTo(saveRefundAmountsForStoreOrder_result other) {
-
 
147292
      if (!getClass().equals(other.getClass())) {
-
 
147293
        return getClass().getName().compareTo(other.getClass().getName());
-
 
147294
      }
-
 
147295
 
-
 
147296
      int lastComparison = 0;
-
 
147297
      saveRefundAmountsForStoreOrder_result typedOther = (saveRefundAmountsForStoreOrder_result)other;
-
 
147298
 
-
 
147299
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
147300
      if (lastComparison != 0) {
-
 
147301
        return lastComparison;
-
 
147302
      }
-
 
147303
      if (isSetSuccess()) {
-
 
147304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
147305
        if (lastComparison != 0) {
-
 
147306
          return lastComparison;
-
 
147307
        }
-
 
147308
      }
-
 
147309
      return 0;
-
 
147310
    }
-
 
147311
 
-
 
147312
    public _Fields fieldForId(int fieldId) {
-
 
147313
      return _Fields.findByThriftId(fieldId);
-
 
147314
    }
-
 
147315
 
-
 
147316
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
147317
      org.apache.thrift.protocol.TField field;
-
 
147318
      iprot.readStructBegin();
-
 
147319
      while (true)
-
 
147320
      {
-
 
147321
        field = iprot.readFieldBegin();
-
 
147322
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
147323
          break;
-
 
147324
        }
-
 
147325
        switch (field.id) {
-
 
147326
          case 0: // SUCCESS
-
 
147327
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
147328
              this.success = iprot.readBool();
-
 
147329
              setSuccessIsSet(true);
-
 
147330
            } else { 
-
 
147331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147332
            }
-
 
147333
            break;
-
 
147334
          default:
-
 
147335
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147336
        }
-
 
147337
        iprot.readFieldEnd();
-
 
147338
      }
-
 
147339
      iprot.readStructEnd();
-
 
147340
      validate();
-
 
147341
    }
-
 
147342
 
-
 
147343
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
147344
      oprot.writeStructBegin(STRUCT_DESC);
-
 
147345
 
-
 
147346
      if (this.isSetSuccess()) {
-
 
147347
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
147348
        oprot.writeBool(this.success);
-
 
147349
        oprot.writeFieldEnd();
-
 
147350
      }
-
 
147351
      oprot.writeFieldStop();
-
 
147352
      oprot.writeStructEnd();
-
 
147353
    }
-
 
147354
 
-
 
147355
    @Override
-
 
147356
    public String toString() {
-
 
147357
      StringBuilder sb = new StringBuilder("saveRefundAmountsForStoreOrder_result(");
-
 
147358
      boolean first = true;
-
 
147359
 
-
 
147360
      sb.append("success:");
-
 
147361
      sb.append(this.success);
-
 
147362
      first = false;
-
 
147363
      sb.append(")");
-
 
147364
      return sb.toString();
-
 
147365
    }
-
 
147366
 
146440
    public void validate() throws org.apache.thrift.TException {
147367
    public void validate() throws org.apache.thrift.TException {
146441
      // check for required fields
147368
      // check for required fields
146442
    }
147369
    }
146443
 
147370
 
146444
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
147371
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {