Subversion Repositories SmartDukaan

Rev

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

Rev 5504 Rev 5512
Line 534... Line 534...
534
     */
534
     */
535
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
535
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
536
 
536
 
537
    public List<Long> getClearanceSaleCatalogIds() throws InventoryServiceException, org.apache.thrift.TException;
537
    public List<Long> getClearanceSaleCatalogIds() throws InventoryServiceException, org.apache.thrift.TException;
538
 
538
 
539
    public boolean addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount) throws InventoryServiceException, org.apache.thrift.TException;
539
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws InventoryServiceException, org.apache.thrift.TException;
540
 
540
 
541
    public boolean deleteVoucherForItem(long catalog_item_id, String voucherType) throws InventoryServiceException, org.apache.thrift.TException;
541
    public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws InventoryServiceException, org.apache.thrift.TException;
542
 
542
 
543
    public long getVoucherAmount(long itemId, String voucherType) throws org.apache.thrift.TException;
543
    public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException;
544
 
544
 
545
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
545
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
546
 
546
 
547
  }
547
  }
548
 
548
 
Line 722... Line 722...
722
 
722
 
723
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
723
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
724
 
724
 
725
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
725
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
726
 
726
 
727
    public void addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
727
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
728
 
728
 
729
    public void deleteVoucherForItem(long catalog_item_id, String voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
729
    public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
730
 
730
 
731
    public void getVoucherAmount(long itemId, String voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;
731
    public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;
732
 
732
 
733
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
733
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
734
 
734
 
735
  }
735
  }
736
 
736
 
Line 2945... Line 2945...
2945
        throw result.cex;
2945
        throw result.cex;
2946
      }
2946
      }
2947
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2947
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2948
    }
2948
    }
2949
 
2949
 
2950
    public boolean addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount) throws InventoryServiceException, org.apache.thrift.TException
2950
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws InventoryServiceException, org.apache.thrift.TException
2951
    {
2951
    {
2952
      send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);
2952
      send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);
2953
      return recv_addupdateVoucherForItem();
2953
      return recv_addupdateVoucherForItem();
2954
    }
2954
    }
2955
 
2955
 
2956
    public void send_addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount) throws org.apache.thrift.TException
2956
    public void send_addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws org.apache.thrift.TException
2957
    {
2957
    {
2958
      addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();
2958
      addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();
2959
      args.setCatalog_item_id(catalog_item_id);
2959
      args.setCatalog_item_id(catalog_item_id);
2960
      args.setVoucherType(voucherType);
2960
      args.setVoucherType(voucherType);
2961
      args.setVoucherAmount(voucherAmount);
2961
      args.setVoucherAmount(voucherAmount);
Line 2973... Line 2973...
2973
        throw result.cex;
2973
        throw result.cex;
2974
      }
2974
      }
2975
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2975
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2976
    }
2976
    }
2977
 
2977
 
2978
    public boolean deleteVoucherForItem(long catalog_item_id, String voucherType) throws InventoryServiceException, org.apache.thrift.TException
2978
    public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws InventoryServiceException, org.apache.thrift.TException
2979
    {
2979
    {
2980
      send_deleteVoucherForItem(catalog_item_id, voucherType);
2980
      send_deleteVoucherForItem(catalog_item_id, voucherType);
2981
      return recv_deleteVoucherForItem();
2981
      return recv_deleteVoucherForItem();
2982
    }
2982
    }
2983
 
2983
 
2984
    public void send_deleteVoucherForItem(long catalog_item_id, String voucherType) throws org.apache.thrift.TException
2984
    public void send_deleteVoucherForItem(long catalog_item_id, long voucherType) throws org.apache.thrift.TException
2985
    {
2985
    {
2986
      deleteVoucherForItem_args args = new deleteVoucherForItem_args();
2986
      deleteVoucherForItem_args args = new deleteVoucherForItem_args();
2987
      args.setCatalog_item_id(catalog_item_id);
2987
      args.setCatalog_item_id(catalog_item_id);
2988
      args.setVoucherType(voucherType);
2988
      args.setVoucherType(voucherType);
2989
      sendBase("deleteVoucherForItem", args);
2989
      sendBase("deleteVoucherForItem", args);
Line 3000... Line 3000...
3000
        throw result.cex;
3000
        throw result.cex;
3001
      }
3001
      }
3002
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3002
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3003
    }
3003
    }
3004
 
3004
 
3005
    public long getVoucherAmount(long itemId, String voucherType) throws org.apache.thrift.TException
3005
    public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException
3006
    {
3006
    {
3007
      send_getVoucherAmount(itemId, voucherType);
3007
      send_getVoucherAmount(itemId, voucherType);
3008
      return recv_getVoucherAmount();
3008
      return recv_getVoucherAmount();
3009
    }
3009
    }
3010
 
3010
 
3011
    public void send_getVoucherAmount(long itemId, String voucherType) throws org.apache.thrift.TException
3011
    public void send_getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException
3012
    {
3012
    {
3013
      getVoucherAmount_args args = new getVoucherAmount_args();
3013
      getVoucherAmount_args args = new getVoucherAmount_args();
3014
      args.setItemId(itemId);
3014
      args.setItemId(itemId);
3015
      args.setVoucherType(voucherType);
3015
      args.setVoucherType(voucherType);
3016
      sendBase("getVoucherAmount", args);
3016
      sendBase("getVoucherAmount", args);
Line 6010... Line 6010...
6010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6011
        return (new Client(prot)).recv_getClearanceSaleCatalogIds();
6011
        return (new Client(prot)).recv_getClearanceSaleCatalogIds();
6012
      }
6012
      }
6013
    }
6013
    }
6014
 
6014
 
6015
    public void addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
6015
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
6016
      checkReady();
6016
      checkReady();
6017
      addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);
6017
      addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);
6018
      this.___currentMethod = method_call;
6018
      this.___currentMethod = method_call;
6019
      ___manager.call(method_call);
6019
      ___manager.call(method_call);
6020
    }
6020
    }
6021
 
6021
 
6022
    public static class addupdateVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
6022
    public static class addupdateVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
6023
      private long catalog_item_id;
6023
      private long catalog_item_id;
6024
      private String voucherType;
6024
      private long voucherType;
6025
      private long voucherAmount;
6025
      private long voucherAmount;
6026
      public addupdateVoucherForItem_call(long catalog_item_id, String voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_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 {
6026
      public addupdateVoucherForItem_call(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_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 {
6027
        super(client, protocolFactory, transport, resultHandler, false);
6027
        super(client, protocolFactory, transport, resultHandler, false);
6028
        this.catalog_item_id = catalog_item_id;
6028
        this.catalog_item_id = catalog_item_id;
6029
        this.voucherType = voucherType;
6029
        this.voucherType = voucherType;
6030
        this.voucherAmount = voucherAmount;
6030
        this.voucherAmount = voucherAmount;
6031
      }
6031
      }
Line 6048... Line 6048...
6048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6049
        return (new Client(prot)).recv_addupdateVoucherForItem();
6049
        return (new Client(prot)).recv_addupdateVoucherForItem();
6050
      }
6050
      }
6051
    }
6051
    }
6052
 
6052
 
6053
    public void deleteVoucherForItem(long catalog_item_id, String voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
6053
    public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
6054
      checkReady();
6054
      checkReady();
6055
      deleteVoucherForItem_call method_call = new deleteVoucherForItem_call(catalog_item_id, voucherType, resultHandler, this, ___protocolFactory, ___transport);
6055
      deleteVoucherForItem_call method_call = new deleteVoucherForItem_call(catalog_item_id, voucherType, resultHandler, this, ___protocolFactory, ___transport);
6056
      this.___currentMethod = method_call;
6056
      this.___currentMethod = method_call;
6057
      ___manager.call(method_call);
6057
      ___manager.call(method_call);
6058
    }
6058
    }
6059
 
6059
 
6060
    public static class deleteVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
6060
    public static class deleteVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
6061
      private long catalog_item_id;
6061
      private long catalog_item_id;
6062
      private String voucherType;
6062
      private long voucherType;
6063
      public deleteVoucherForItem_call(long catalog_item_id, String voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_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 {
6063
      public deleteVoucherForItem_call(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_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 {
6064
        super(client, protocolFactory, transport, resultHandler, false);
6064
        super(client, protocolFactory, transport, resultHandler, false);
6065
        this.catalog_item_id = catalog_item_id;
6065
        this.catalog_item_id = catalog_item_id;
6066
        this.voucherType = voucherType;
6066
        this.voucherType = voucherType;
6067
      }
6067
      }
6068
 
6068
 
Line 6083... Line 6083...
6083
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6083
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6084
        return (new Client(prot)).recv_deleteVoucherForItem();
6084
        return (new Client(prot)).recv_deleteVoucherForItem();
6085
      }
6085
      }
6086
    }
6086
    }
6087
 
6087
 
6088
    public void getVoucherAmount(long itemId, String voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException {
6088
    public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException {
6089
      checkReady();
6089
      checkReady();
6090
      getVoucherAmount_call method_call = new getVoucherAmount_call(itemId, voucherType, resultHandler, this, ___protocolFactory, ___transport);
6090
      getVoucherAmount_call method_call = new getVoucherAmount_call(itemId, voucherType, resultHandler, this, ___protocolFactory, ___transport);
6091
      this.___currentMethod = method_call;
6091
      this.___currentMethod = method_call;
6092
      ___manager.call(method_call);
6092
      ___manager.call(method_call);
6093
    }
6093
    }
6094
 
6094
 
6095
    public static class getVoucherAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
6095
    public static class getVoucherAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
6096
      private long itemId;
6096
      private long itemId;
6097
      private String voucherType;
6097
      private long voucherType;
6098
      public getVoucherAmount_call(long itemId, String voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_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 {
6098
      public getVoucherAmount_call(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_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 {
6099
        super(client, protocolFactory, transport, resultHandler, false);
6099
        super(client, protocolFactory, transport, resultHandler, false);
6100
        this.itemId = itemId;
6100
        this.itemId = itemId;
6101
        this.voucherType = voucherType;
6101
        this.voucherType = voucherType;
6102
      }
6102
      }
6103
 
6103
 
Line 68682... Line 68682...
68682
 
68682
 
68683
  public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
68683
  public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
68684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");
68684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");
68685
 
68685
 
68686
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
68686
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
68687
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.STRING, (short)2);
68687
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);
68688
    private static final org.apache.thrift.protocol.TField VOUCHER_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherAmount", org.apache.thrift.protocol.TType.I64, (short)3);
68688
    private static final org.apache.thrift.protocol.TField VOUCHER_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherAmount", org.apache.thrift.protocol.TType.I64, (short)3);
68689
 
68689
 
68690
    private long catalog_item_id; // required
68690
    private long catalog_item_id; // required
68691
    private String voucherType; // required
68691
    private long voucherType; // required
68692
    private long voucherAmount; // required
68692
    private long voucherAmount; // required
68693
 
68693
 
68694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
68694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
68695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68696
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
68696
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
Line 68755... Line 68755...
68755
      }
68755
      }
68756
    }
68756
    }
68757
 
68757
 
68758
    // isset id assignments
68758
    // isset id assignments
68759
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
68759
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
-
 
68760
    private static final int __VOUCHERTYPE_ISSET_ID = 1;
68760
    private static final int __VOUCHERAMOUNT_ISSET_ID = 1;
68761
    private static final int __VOUCHERAMOUNT_ISSET_ID = 2;
68761
    private BitSet __isset_bit_vector = new BitSet(2);
68762
    private BitSet __isset_bit_vector = new BitSet(3);
68762
 
68763
 
68763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68764
    static {
68765
    static {
68765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
68766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
68766
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
68767
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
68767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
68768
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
68768
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
68769
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
68769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
68770
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
68770
      tmpMap.put(_Fields.VOUCHER_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("voucherAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
68771
      tmpMap.put(_Fields.VOUCHER_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("voucherAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
68771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
68772
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
68772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
68773
      metaDataMap = Collections.unmodifiableMap(tmpMap);
68773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_args.class, metaDataMap);
68774
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_args.class, metaDataMap);
68774
    }
68775
    }
Line 68776... Line 68777...
68776
    public addupdateVoucherForItem_args() {
68777
    public addupdateVoucherForItem_args() {
68777
    }
68778
    }
68778
 
68779
 
68779
    public addupdateVoucherForItem_args(
68780
    public addupdateVoucherForItem_args(
68780
      long catalog_item_id,
68781
      long catalog_item_id,
68781
      String voucherType,
68782
      long voucherType,
68782
      long voucherAmount)
68783
      long voucherAmount)
68783
    {
68784
    {
68784
      this();
68785
      this();
68785
      this.catalog_item_id = catalog_item_id;
68786
      this.catalog_item_id = catalog_item_id;
68786
      setCatalog_item_idIsSet(true);
68787
      setCatalog_item_idIsSet(true);
68787
      this.voucherType = voucherType;
68788
      this.voucherType = voucherType;
-
 
68789
      setVoucherTypeIsSet(true);
68788
      this.voucherAmount = voucherAmount;
68790
      this.voucherAmount = voucherAmount;
68789
      setVoucherAmountIsSet(true);
68791
      setVoucherAmountIsSet(true);
68790
    }
68792
    }
68791
 
68793
 
68792
    /**
68794
    /**
Line 68794... Line 68796...
68794
     */
68796
     */
68795
    public addupdateVoucherForItem_args(addupdateVoucherForItem_args other) {
68797
    public addupdateVoucherForItem_args(addupdateVoucherForItem_args other) {
68796
      __isset_bit_vector.clear();
68798
      __isset_bit_vector.clear();
68797
      __isset_bit_vector.or(other.__isset_bit_vector);
68799
      __isset_bit_vector.or(other.__isset_bit_vector);
68798
      this.catalog_item_id = other.catalog_item_id;
68800
      this.catalog_item_id = other.catalog_item_id;
68799
      if (other.isSetVoucherType()) {
-
 
68800
        this.voucherType = other.voucherType;
68801
      this.voucherType = other.voucherType;
68801
      }
-
 
68802
      this.voucherAmount = other.voucherAmount;
68802
      this.voucherAmount = other.voucherAmount;
68803
    }
68803
    }
68804
 
68804
 
68805
    public addupdateVoucherForItem_args deepCopy() {
68805
    public addupdateVoucherForItem_args deepCopy() {
68806
      return new addupdateVoucherForItem_args(this);
68806
      return new addupdateVoucherForItem_args(this);
Line 68808... Line 68808...
68808
 
68808
 
68809
    @Override
68809
    @Override
68810
    public void clear() {
68810
    public void clear() {
68811
      setCatalog_item_idIsSet(false);
68811
      setCatalog_item_idIsSet(false);
68812
      this.catalog_item_id = 0;
68812
      this.catalog_item_id = 0;
-
 
68813
      setVoucherTypeIsSet(false);
68813
      this.voucherType = null;
68814
      this.voucherType = 0;
68814
      setVoucherAmountIsSet(false);
68815
      setVoucherAmountIsSet(false);
68815
      this.voucherAmount = 0;
68816
      this.voucherAmount = 0;
68816
    }
68817
    }
68817
 
68818
 
68818
    public long getCatalog_item_id() {
68819
    public long getCatalog_item_id() {
Line 68835... Line 68836...
68835
 
68836
 
68836
    public void setCatalog_item_idIsSet(boolean value) {
68837
    public void setCatalog_item_idIsSet(boolean value) {
68837
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
68838
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
68838
    }
68839
    }
68839
 
68840
 
68840
    public String getVoucherType() {
68841
    public long getVoucherType() {
68841
      return this.voucherType;
68842
      return this.voucherType;
68842
    }
68843
    }
68843
 
68844
 
68844
    public void setVoucherType(String voucherType) {
68845
    public void setVoucherType(long voucherType) {
68845
      this.voucherType = voucherType;
68846
      this.voucherType = voucherType;
-
 
68847
      setVoucherTypeIsSet(true);
68846
    }
68848
    }
68847
 
68849
 
68848
    public void unsetVoucherType() {
68850
    public void unsetVoucherType() {
68849
      this.voucherType = null;
68851
      __isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);
68850
    }
68852
    }
68851
 
68853
 
68852
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
68854
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
68853
    public boolean isSetVoucherType() {
68855
    public boolean isSetVoucherType() {
68854
      return this.voucherType != null;
68856
      return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);
68855
    }
68857
    }
68856
 
68858
 
68857
    public void setVoucherTypeIsSet(boolean value) {
68859
    public void setVoucherTypeIsSet(boolean value) {
68858
      if (!value) {
-
 
68859
        this.voucherType = null;
68860
      __isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);
68860
      }
-
 
68861
    }
68861
    }
68862
 
68862
 
68863
    public long getVoucherAmount() {
68863
    public long getVoucherAmount() {
68864
      return this.voucherAmount;
68864
      return this.voucherAmount;
68865
    }
68865
    }
Line 68894... Line 68894...
68894
 
68894
 
68895
      case VOUCHER_TYPE:
68895
      case VOUCHER_TYPE:
68896
        if (value == null) {
68896
        if (value == null) {
68897
          unsetVoucherType();
68897
          unsetVoucherType();
68898
        } else {
68898
        } else {
68899
          setVoucherType((String)value);
68899
          setVoucherType((Long)value);
68900
        }
68900
        }
68901
        break;
68901
        break;
68902
 
68902
 
68903
      case VOUCHER_AMOUNT:
68903
      case VOUCHER_AMOUNT:
68904
        if (value == null) {
68904
        if (value == null) {
Line 68915... Line 68915...
68915
      switch (field) {
68915
      switch (field) {
68916
      case CATALOG_ITEM_ID:
68916
      case CATALOG_ITEM_ID:
68917
        return Long.valueOf(getCatalog_item_id());
68917
        return Long.valueOf(getCatalog_item_id());
68918
 
68918
 
68919
      case VOUCHER_TYPE:
68919
      case VOUCHER_TYPE:
68920
        return getVoucherType();
68920
        return Long.valueOf(getVoucherType());
68921
 
68921
 
68922
      case VOUCHER_AMOUNT:
68922
      case VOUCHER_AMOUNT:
68923
        return Long.valueOf(getVoucherAmount());
68923
        return Long.valueOf(getVoucherAmount());
68924
 
68924
 
68925
      }
68925
      }
Line 68963... Line 68963...
68963
          return false;
68963
          return false;
68964
        if (this.catalog_item_id != that.catalog_item_id)
68964
        if (this.catalog_item_id != that.catalog_item_id)
68965
          return false;
68965
          return false;
68966
      }
68966
      }
68967
 
68967
 
68968
      boolean this_present_voucherType = true && this.isSetVoucherType();
68968
      boolean this_present_voucherType = true;
68969
      boolean that_present_voucherType = true && that.isSetVoucherType();
68969
      boolean that_present_voucherType = true;
68970
      if (this_present_voucherType || that_present_voucherType) {
68970
      if (this_present_voucherType || that_present_voucherType) {
68971
        if (!(this_present_voucherType && that_present_voucherType))
68971
        if (!(this_present_voucherType && that_present_voucherType))
68972
          return false;
68972
          return false;
68973
        if (!this.voucherType.equals(that.voucherType))
68973
        if (this.voucherType != that.voucherType)
68974
          return false;
68974
          return false;
68975
      }
68975
      }
68976
 
68976
 
68977
      boolean this_present_voucherAmount = true;
68977
      boolean this_present_voucherAmount = true;
68978
      boolean that_present_voucherAmount = true;
68978
      boolean that_present_voucherAmount = true;
Line 69053... Line 69053...
69053
            } else { 
69053
            } else { 
69054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69055
            }
69055
            }
69056
            break;
69056
            break;
69057
          case 2: // VOUCHER_TYPE
69057
          case 2: // VOUCHER_TYPE
69058
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
69058
            if (field.type == org.apache.thrift.protocol.TType.I64) {
69059
              this.voucherType = iprot.readString();
69059
              this.voucherType = iprot.readI64();
-
 
69060
              setVoucherTypeIsSet(true);
69060
            } else { 
69061
            } else { 
69061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69062
            }
69063
            }
69063
            break;
69064
            break;
69064
          case 3: // VOUCHER_AMOUNT
69065
          case 3: // VOUCHER_AMOUNT
Line 69083... Line 69084...
69083
 
69084
 
69084
      oprot.writeStructBegin(STRUCT_DESC);
69085
      oprot.writeStructBegin(STRUCT_DESC);
69085
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
69086
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
69086
      oprot.writeI64(this.catalog_item_id);
69087
      oprot.writeI64(this.catalog_item_id);
69087
      oprot.writeFieldEnd();
69088
      oprot.writeFieldEnd();
69088
      if (this.voucherType != null) {
-
 
69089
        oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
69089
      oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
69090
        oprot.writeString(this.voucherType);
69090
      oprot.writeI64(this.voucherType);
69091
        oprot.writeFieldEnd();
69091
      oprot.writeFieldEnd();
69092
      }
-
 
69093
      oprot.writeFieldBegin(VOUCHER_AMOUNT_FIELD_DESC);
69092
      oprot.writeFieldBegin(VOUCHER_AMOUNT_FIELD_DESC);
69094
      oprot.writeI64(this.voucherAmount);
69093
      oprot.writeI64(this.voucherAmount);
69095
      oprot.writeFieldEnd();
69094
      oprot.writeFieldEnd();
69096
      oprot.writeFieldStop();
69095
      oprot.writeFieldStop();
69097
      oprot.writeStructEnd();
69096
      oprot.writeStructEnd();
Line 69105... Line 69104...
69105
      sb.append("catalog_item_id:");
69104
      sb.append("catalog_item_id:");
69106
      sb.append(this.catalog_item_id);
69105
      sb.append(this.catalog_item_id);
69107
      first = false;
69106
      first = false;
69108
      if (!first) sb.append(", ");
69107
      if (!first) sb.append(", ");
69109
      sb.append("voucherType:");
69108
      sb.append("voucherType:");
69110
      if (this.voucherType == null) {
-
 
69111
        sb.append("null");
-
 
69112
      } else {
-
 
69113
        sb.append(this.voucherType);
69109
      sb.append(this.voucherType);
69114
      }
-
 
69115
      first = false;
69110
      first = false;
69116
      if (!first) sb.append(", ");
69111
      if (!first) sb.append(", ");
69117
      sb.append("voucherAmount:");
69112
      sb.append("voucherAmount:");
69118
      sb.append(this.voucherAmount);
69113
      sb.append(this.voucherAmount);
69119
      first = false;
69114
      first = false;
Line 69528... Line 69523...
69528
 
69523
 
69529
  public static class deleteVoucherForItem_args implements org.apache.thrift.TBase<deleteVoucherForItem_args, deleteVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
69524
  public static class deleteVoucherForItem_args implements org.apache.thrift.TBase<deleteVoucherForItem_args, deleteVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
69530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_args");
69525
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_args");
69531
 
69526
 
69532
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
69527
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
69533
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.STRING, (short)2);
69528
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);
69534
 
69529
 
69535
    private long catalog_item_id; // required
69530
    private long catalog_item_id; // required
69536
    private String voucherType; // required
69531
    private long voucherType; // required
69537
 
69532
 
69538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
69533
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
69539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
69534
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
69540
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
69535
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
69541
      VOUCHER_TYPE((short)2, "voucherType");
69536
      VOUCHER_TYPE((short)2, "voucherType");
Line 69596... Line 69591...
69596
      }
69591
      }
69597
    }
69592
    }
69598
 
69593
 
69599
    // isset id assignments
69594
    // isset id assignments
69600
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
69595
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
-
 
69596
    private static final int __VOUCHERTYPE_ISSET_ID = 1;
69601
    private BitSet __isset_bit_vector = new BitSet(1);
69597
    private BitSet __isset_bit_vector = new BitSet(2);
69602
 
69598
 
69603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
69599
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
69604
    static {
69600
    static {
69605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
69601
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
69606
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
69602
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
69607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
69603
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
69608
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
69604
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
69609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
69605
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
69610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
69606
      metaDataMap = Collections.unmodifiableMap(tmpMap);
69611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_args.class, metaDataMap);
69607
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_args.class, metaDataMap);
69612
    }
69608
    }
69613
 
69609
 
69614
    public deleteVoucherForItem_args() {
69610
    public deleteVoucherForItem_args() {
69615
    }
69611
    }
69616
 
69612
 
69617
    public deleteVoucherForItem_args(
69613
    public deleteVoucherForItem_args(
69618
      long catalog_item_id,
69614
      long catalog_item_id,
69619
      String voucherType)
69615
      long voucherType)
69620
    {
69616
    {
69621
      this();
69617
      this();
69622
      this.catalog_item_id = catalog_item_id;
69618
      this.catalog_item_id = catalog_item_id;
69623
      setCatalog_item_idIsSet(true);
69619
      setCatalog_item_idIsSet(true);
69624
      this.voucherType = voucherType;
69620
      this.voucherType = voucherType;
-
 
69621
      setVoucherTypeIsSet(true);
69625
    }
69622
    }
69626
 
69623
 
69627
    /**
69624
    /**
69628
     * Performs a deep copy on <i>other</i>.
69625
     * Performs a deep copy on <i>other</i>.
69629
     */
69626
     */
69630
    public deleteVoucherForItem_args(deleteVoucherForItem_args other) {
69627
    public deleteVoucherForItem_args(deleteVoucherForItem_args other) {
69631
      __isset_bit_vector.clear();
69628
      __isset_bit_vector.clear();
69632
      __isset_bit_vector.or(other.__isset_bit_vector);
69629
      __isset_bit_vector.or(other.__isset_bit_vector);
69633
      this.catalog_item_id = other.catalog_item_id;
69630
      this.catalog_item_id = other.catalog_item_id;
69634
      if (other.isSetVoucherType()) {
-
 
69635
        this.voucherType = other.voucherType;
69631
      this.voucherType = other.voucherType;
69636
      }
-
 
69637
    }
69632
    }
69638
 
69633
 
69639
    public deleteVoucherForItem_args deepCopy() {
69634
    public deleteVoucherForItem_args deepCopy() {
69640
      return new deleteVoucherForItem_args(this);
69635
      return new deleteVoucherForItem_args(this);
69641
    }
69636
    }
69642
 
69637
 
69643
    @Override
69638
    @Override
69644
    public void clear() {
69639
    public void clear() {
69645
      setCatalog_item_idIsSet(false);
69640
      setCatalog_item_idIsSet(false);
69646
      this.catalog_item_id = 0;
69641
      this.catalog_item_id = 0;
-
 
69642
      setVoucherTypeIsSet(false);
69647
      this.voucherType = null;
69643
      this.voucherType = 0;
69648
    }
69644
    }
69649
 
69645
 
69650
    public long getCatalog_item_id() {
69646
    public long getCatalog_item_id() {
69651
      return this.catalog_item_id;
69647
      return this.catalog_item_id;
69652
    }
69648
    }
Line 69667... Line 69663...
69667
 
69663
 
69668
    public void setCatalog_item_idIsSet(boolean value) {
69664
    public void setCatalog_item_idIsSet(boolean value) {
69669
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
69665
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
69670
    }
69666
    }
69671
 
69667
 
69672
    public String getVoucherType() {
69668
    public long getVoucherType() {
69673
      return this.voucherType;
69669
      return this.voucherType;
69674
    }
69670
    }
69675
 
69671
 
69676
    public void setVoucherType(String voucherType) {
69672
    public void setVoucherType(long voucherType) {
69677
      this.voucherType = voucherType;
69673
      this.voucherType = voucherType;
-
 
69674
      setVoucherTypeIsSet(true);
69678
    }
69675
    }
69679
 
69676
 
69680
    public void unsetVoucherType() {
69677
    public void unsetVoucherType() {
69681
      this.voucherType = null;
69678
      __isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);
69682
    }
69679
    }
69683
 
69680
 
69684
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
69681
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
69685
    public boolean isSetVoucherType() {
69682
    public boolean isSetVoucherType() {
69686
      return this.voucherType != null;
69683
      return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);
69687
    }
69684
    }
69688
 
69685
 
69689
    public void setVoucherTypeIsSet(boolean value) {
69686
    public void setVoucherTypeIsSet(boolean value) {
69690
      if (!value) {
-
 
69691
        this.voucherType = null;
69687
      __isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);
69692
      }
-
 
69693
    }
69688
    }
69694
 
69689
 
69695
    public void setFieldValue(_Fields field, Object value) {
69690
    public void setFieldValue(_Fields field, Object value) {
69696
      switch (field) {
69691
      switch (field) {
69697
      case CATALOG_ITEM_ID:
69692
      case CATALOG_ITEM_ID:
Line 69704... Line 69699...
69704
 
69699
 
69705
      case VOUCHER_TYPE:
69700
      case VOUCHER_TYPE:
69706
        if (value == null) {
69701
        if (value == null) {
69707
          unsetVoucherType();
69702
          unsetVoucherType();
69708
        } else {
69703
        } else {
69709
          setVoucherType((String)value);
69704
          setVoucherType((Long)value);
69710
        }
69705
        }
69711
        break;
69706
        break;
69712
 
69707
 
69713
      }
69708
      }
69714
    }
69709
    }
Line 69717... Line 69712...
69717
      switch (field) {
69712
      switch (field) {
69718
      case CATALOG_ITEM_ID:
69713
      case CATALOG_ITEM_ID:
69719
        return Long.valueOf(getCatalog_item_id());
69714
        return Long.valueOf(getCatalog_item_id());
69720
 
69715
 
69721
      case VOUCHER_TYPE:
69716
      case VOUCHER_TYPE:
69722
        return getVoucherType();
69717
        return Long.valueOf(getVoucherType());
69723
 
69718
 
69724
      }
69719
      }
69725
      throw new IllegalStateException();
69720
      throw new IllegalStateException();
69726
    }
69721
    }
69727
 
69722
 
Line 69760... Line 69755...
69760
          return false;
69755
          return false;
69761
        if (this.catalog_item_id != that.catalog_item_id)
69756
        if (this.catalog_item_id != that.catalog_item_id)
69762
          return false;
69757
          return false;
69763
      }
69758
      }
69764
 
69759
 
69765
      boolean this_present_voucherType = true && this.isSetVoucherType();
69760
      boolean this_present_voucherType = true;
69766
      boolean that_present_voucherType = true && that.isSetVoucherType();
69761
      boolean that_present_voucherType = true;
69767
      if (this_present_voucherType || that_present_voucherType) {
69762
      if (this_present_voucherType || that_present_voucherType) {
69768
        if (!(this_present_voucherType && that_present_voucherType))
69763
        if (!(this_present_voucherType && that_present_voucherType))
69769
          return false;
69764
          return false;
69770
        if (!this.voucherType.equals(that.voucherType))
69765
        if (this.voucherType != that.voucherType)
69771
          return false;
69766
          return false;
69772
      }
69767
      }
69773
 
69768
 
69774
      return true;
69769
      return true;
69775
    }
69770
    }
Line 69831... Line 69826...
69831
            } else { 
69826
            } else { 
69832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69833
            }
69828
            }
69834
            break;
69829
            break;
69835
          case 2: // VOUCHER_TYPE
69830
          case 2: // VOUCHER_TYPE
69836
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
69831
            if (field.type == org.apache.thrift.protocol.TType.I64) {
69837
              this.voucherType = iprot.readString();
69832
              this.voucherType = iprot.readI64();
-
 
69833
              setVoucherTypeIsSet(true);
69838
            } else { 
69834
            } else { 
69839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
69840
            }
69836
            }
69841
            break;
69837
            break;
69842
          default:
69838
          default:
Line 69853... Line 69849...
69853
 
69849
 
69854
      oprot.writeStructBegin(STRUCT_DESC);
69850
      oprot.writeStructBegin(STRUCT_DESC);
69855
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
69851
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
69856
      oprot.writeI64(this.catalog_item_id);
69852
      oprot.writeI64(this.catalog_item_id);
69857
      oprot.writeFieldEnd();
69853
      oprot.writeFieldEnd();
69858
      if (this.voucherType != null) {
-
 
69859
        oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
69854
      oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
69860
        oprot.writeString(this.voucherType);
69855
      oprot.writeI64(this.voucherType);
69861
        oprot.writeFieldEnd();
69856
      oprot.writeFieldEnd();
69862
      }
-
 
69863
      oprot.writeFieldStop();
69857
      oprot.writeFieldStop();
69864
      oprot.writeStructEnd();
69858
      oprot.writeStructEnd();
69865
    }
69859
    }
69866
 
69860
 
69867
    @Override
69861
    @Override
Line 69872... Line 69866...
69872
      sb.append("catalog_item_id:");
69866
      sb.append("catalog_item_id:");
69873
      sb.append(this.catalog_item_id);
69867
      sb.append(this.catalog_item_id);
69874
      first = false;
69868
      first = false;
69875
      if (!first) sb.append(", ");
69869
      if (!first) sb.append(", ");
69876
      sb.append("voucherType:");
69870
      sb.append("voucherType:");
69877
      if (this.voucherType == null) {
-
 
69878
        sb.append("null");
-
 
69879
      } else {
-
 
69880
        sb.append(this.voucherType);
69871
      sb.append(this.voucherType);
69881
      }
-
 
69882
      first = false;
69872
      first = false;
69883
      sb.append(")");
69873
      sb.append(")");
69884
      return sb.toString();
69874
      return sb.toString();
69885
    }
69875
    }
69886
 
69876
 
Line 70291... Line 70281...
70291
 
70281
 
70292
  public static class getVoucherAmount_args implements org.apache.thrift.TBase<getVoucherAmount_args, getVoucherAmount_args._Fields>, java.io.Serializable, Cloneable   {
70282
  public static class getVoucherAmount_args implements org.apache.thrift.TBase<getVoucherAmount_args, getVoucherAmount_args._Fields>, java.io.Serializable, Cloneable   {
70293
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_args");
70283
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_args");
70294
 
70284
 
70295
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
70285
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
70296
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.STRING, (short)2);
70286
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);
70297
 
70287
 
70298
    private long itemId; // required
70288
    private long itemId; // required
70299
    private String voucherType; // required
70289
    private long voucherType; // required
70300
 
70290
 
70301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
70291
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
70302
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
70292
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
70303
      ITEM_ID((short)1, "itemId"),
70293
      ITEM_ID((short)1, "itemId"),
70304
      VOUCHER_TYPE((short)2, "voucherType");
70294
      VOUCHER_TYPE((short)2, "voucherType");
Line 70359... Line 70349...
70359
      }
70349
      }
70360
    }
70350
    }
70361
 
70351
 
70362
    // isset id assignments
70352
    // isset id assignments
70363
    private static final int __ITEMID_ISSET_ID = 0;
70353
    private static final int __ITEMID_ISSET_ID = 0;
-
 
70354
    private static final int __VOUCHERTYPE_ISSET_ID = 1;
70364
    private BitSet __isset_bit_vector = new BitSet(1);
70355
    private BitSet __isset_bit_vector = new BitSet(2);
70365
 
70356
 
70366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
70357
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
70367
    static {
70358
    static {
70368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
70359
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
70369
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
70360
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
70370
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
70361
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
70371
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
70362
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
70372
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
70363
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
70373
      metaDataMap = Collections.unmodifiableMap(tmpMap);
70364
      metaDataMap = Collections.unmodifiableMap(tmpMap);
70374
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_args.class, metaDataMap);
70365
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_args.class, metaDataMap);
70375
    }
70366
    }
70376
 
70367
 
70377
    public getVoucherAmount_args() {
70368
    public getVoucherAmount_args() {
70378
    }
70369
    }
70379
 
70370
 
70380
    public getVoucherAmount_args(
70371
    public getVoucherAmount_args(
70381
      long itemId,
70372
      long itemId,
70382
      String voucherType)
70373
      long voucherType)
70383
    {
70374
    {
70384
      this();
70375
      this();
70385
      this.itemId = itemId;
70376
      this.itemId = itemId;
70386
      setItemIdIsSet(true);
70377
      setItemIdIsSet(true);
70387
      this.voucherType = voucherType;
70378
      this.voucherType = voucherType;
-
 
70379
      setVoucherTypeIsSet(true);
70388
    }
70380
    }
70389
 
70381
 
70390
    /**
70382
    /**
70391
     * Performs a deep copy on <i>other</i>.
70383
     * Performs a deep copy on <i>other</i>.
70392
     */
70384
     */
70393
    public getVoucherAmount_args(getVoucherAmount_args other) {
70385
    public getVoucherAmount_args(getVoucherAmount_args other) {
70394
      __isset_bit_vector.clear();
70386
      __isset_bit_vector.clear();
70395
      __isset_bit_vector.or(other.__isset_bit_vector);
70387
      __isset_bit_vector.or(other.__isset_bit_vector);
70396
      this.itemId = other.itemId;
70388
      this.itemId = other.itemId;
70397
      if (other.isSetVoucherType()) {
-
 
70398
        this.voucherType = other.voucherType;
70389
      this.voucherType = other.voucherType;
70399
      }
-
 
70400
    }
70390
    }
70401
 
70391
 
70402
    public getVoucherAmount_args deepCopy() {
70392
    public getVoucherAmount_args deepCopy() {
70403
      return new getVoucherAmount_args(this);
70393
      return new getVoucherAmount_args(this);
70404
    }
70394
    }
70405
 
70395
 
70406
    @Override
70396
    @Override
70407
    public void clear() {
70397
    public void clear() {
70408
      setItemIdIsSet(false);
70398
      setItemIdIsSet(false);
70409
      this.itemId = 0;
70399
      this.itemId = 0;
-
 
70400
      setVoucherTypeIsSet(false);
70410
      this.voucherType = null;
70401
      this.voucherType = 0;
70411
    }
70402
    }
70412
 
70403
 
70413
    public long getItemId() {
70404
    public long getItemId() {
70414
      return this.itemId;
70405
      return this.itemId;
70415
    }
70406
    }
Line 70430... Line 70421...
70430
 
70421
 
70431
    public void setItemIdIsSet(boolean value) {
70422
    public void setItemIdIsSet(boolean value) {
70432
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
70423
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
70433
    }
70424
    }
70434
 
70425
 
70435
    public String getVoucherType() {
70426
    public long getVoucherType() {
70436
      return this.voucherType;
70427
      return this.voucherType;
70437
    }
70428
    }
70438
 
70429
 
70439
    public void setVoucherType(String voucherType) {
70430
    public void setVoucherType(long voucherType) {
70440
      this.voucherType = voucherType;
70431
      this.voucherType = voucherType;
-
 
70432
      setVoucherTypeIsSet(true);
70441
    }
70433
    }
70442
 
70434
 
70443
    public void unsetVoucherType() {
70435
    public void unsetVoucherType() {
70444
      this.voucherType = null;
70436
      __isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);
70445
    }
70437
    }
70446
 
70438
 
70447
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
70439
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
70448
    public boolean isSetVoucherType() {
70440
    public boolean isSetVoucherType() {
70449
      return this.voucherType != null;
70441
      return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);
70450
    }
70442
    }
70451
 
70443
 
70452
    public void setVoucherTypeIsSet(boolean value) {
70444
    public void setVoucherTypeIsSet(boolean value) {
70453
      if (!value) {
-
 
70454
        this.voucherType = null;
70445
      __isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);
70455
      }
-
 
70456
    }
70446
    }
70457
 
70447
 
70458
    public void setFieldValue(_Fields field, Object value) {
70448
    public void setFieldValue(_Fields field, Object value) {
70459
      switch (field) {
70449
      switch (field) {
70460
      case ITEM_ID:
70450
      case ITEM_ID:
Line 70467... Line 70457...
70467
 
70457
 
70468
      case VOUCHER_TYPE:
70458
      case VOUCHER_TYPE:
70469
        if (value == null) {
70459
        if (value == null) {
70470
          unsetVoucherType();
70460
          unsetVoucherType();
70471
        } else {
70461
        } else {
70472
          setVoucherType((String)value);
70462
          setVoucherType((Long)value);
70473
        }
70463
        }
70474
        break;
70464
        break;
70475
 
70465
 
70476
      }
70466
      }
70477
    }
70467
    }
Line 70480... Line 70470...
70480
      switch (field) {
70470
      switch (field) {
70481
      case ITEM_ID:
70471
      case ITEM_ID:
70482
        return Long.valueOf(getItemId());
70472
        return Long.valueOf(getItemId());
70483
 
70473
 
70484
      case VOUCHER_TYPE:
70474
      case VOUCHER_TYPE:
70485
        return getVoucherType();
70475
        return Long.valueOf(getVoucherType());
70486
 
70476
 
70487
      }
70477
      }
70488
      throw new IllegalStateException();
70478
      throw new IllegalStateException();
70489
    }
70479
    }
70490
 
70480
 
Line 70523... Line 70513...
70523
          return false;
70513
          return false;
70524
        if (this.itemId != that.itemId)
70514
        if (this.itemId != that.itemId)
70525
          return false;
70515
          return false;
70526
      }
70516
      }
70527
 
70517
 
70528
      boolean this_present_voucherType = true && this.isSetVoucherType();
70518
      boolean this_present_voucherType = true;
70529
      boolean that_present_voucherType = true && that.isSetVoucherType();
70519
      boolean that_present_voucherType = true;
70530
      if (this_present_voucherType || that_present_voucherType) {
70520
      if (this_present_voucherType || that_present_voucherType) {
70531
        if (!(this_present_voucherType && that_present_voucherType))
70521
        if (!(this_present_voucherType && that_present_voucherType))
70532
          return false;
70522
          return false;
70533
        if (!this.voucherType.equals(that.voucherType))
70523
        if (this.voucherType != that.voucherType)
70534
          return false;
70524
          return false;
70535
      }
70525
      }
70536
 
70526
 
70537
      return true;
70527
      return true;
70538
    }
70528
    }
Line 70594... Line 70584...
70594
            } else { 
70584
            } else { 
70595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
70585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
70596
            }
70586
            }
70597
            break;
70587
            break;
70598
          case 2: // VOUCHER_TYPE
70588
          case 2: // VOUCHER_TYPE
70599
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
70589
            if (field.type == org.apache.thrift.protocol.TType.I64) {
70600
              this.voucherType = iprot.readString();
70590
              this.voucherType = iprot.readI64();
-
 
70591
              setVoucherTypeIsSet(true);
70601
            } else { 
70592
            } else { 
70602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
70593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
70603
            }
70594
            }
70604
            break;
70595
            break;
70605
          default:
70596
          default:
Line 70616... Line 70607...
70616
 
70607
 
70617
      oprot.writeStructBegin(STRUCT_DESC);
70608
      oprot.writeStructBegin(STRUCT_DESC);
70618
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
70609
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
70619
      oprot.writeI64(this.itemId);
70610
      oprot.writeI64(this.itemId);
70620
      oprot.writeFieldEnd();
70611
      oprot.writeFieldEnd();
70621
      if (this.voucherType != null) {
-
 
70622
        oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
70612
      oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
70623
        oprot.writeString(this.voucherType);
70613
      oprot.writeI64(this.voucherType);
70624
        oprot.writeFieldEnd();
70614
      oprot.writeFieldEnd();
70625
      }
-
 
70626
      oprot.writeFieldStop();
70615
      oprot.writeFieldStop();
70627
      oprot.writeStructEnd();
70616
      oprot.writeStructEnd();
70628
    }
70617
    }
70629
 
70618
 
70630
    @Override
70619
    @Override
Line 70635... Line 70624...
70635
      sb.append("itemId:");
70624
      sb.append("itemId:");
70636
      sb.append(this.itemId);
70625
      sb.append(this.itemId);
70637
      first = false;
70626
      first = false;
70638
      if (!first) sb.append(", ");
70627
      if (!first) sb.append(", ");
70639
      sb.append("voucherType:");
70628
      sb.append("voucherType:");
70640
      if (this.voucherType == null) {
-
 
70641
        sb.append("null");
-
 
70642
      } else {
-
 
70643
        sb.append(this.voucherType);
70629
      sb.append(this.voucherType);
70644
      }
-
 
70645
      first = false;
70630
      first = false;
70646
      sb.append(")");
70631
      sb.append(")");
70647
      return sb.toString();
70632
      return sb.toString();
70648
    }
70633
    }
70649
 
70634