Subversion Repositories SmartDukaan

Rev

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

Rev 4661 Rev 4709
Line 666... Line 666...
666
     */
666
     */
667
    public List<Order> getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo) throws TransactionServiceException, org.apache.thrift.TException;
667
    public List<Order> getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo) throws TransactionServiceException, org.apache.thrift.TException;
668
 
668
 
669
    public List<Order> getSlippedSippingDateOrders() throws TransactionServiceException, org.apache.thrift.TException;
669
    public List<Order> getSlippedSippingDateOrders() throws TransactionServiceException, org.apache.thrift.TException;
670
 
670
 
-
 
671
    public List<Order> getCancelledOrders(long cancelDateFrom, long cancelDateTo) throws TransactionServiceException, org.apache.thrift.TException;
-
 
672
 
671
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount) throws TransactionServiceException, org.apache.thrift.TException;
673
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount) throws TransactionServiceException, org.apache.thrift.TException;
672
 
674
 
673
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long paymentId, double serviceTax, double otherCharges, double netCollection) throws TransactionServiceException, org.apache.thrift.TException;
675
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long paymentId, double serviceTax, double otherCharges, double netCollection) throws TransactionServiceException, org.apache.thrift.TException;
674
 
676
 
675
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount) throws TransactionServiceException, org.apache.thrift.TException;
677
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount) throws TransactionServiceException, org.apache.thrift.TException;
Line 850... Line 852...
850
 
852
 
851
    public void getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBilledOrdersForVendor_call> resultHandler) throws org.apache.thrift.TException;
853
    public void getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBilledOrdersForVendor_call> resultHandler) throws org.apache.thrift.TException;
852
 
854
 
853
    public void getSlippedSippingDateOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSlippedSippingDateOrders_call> resultHandler) throws org.apache.thrift.TException;
855
    public void getSlippedSippingDateOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSlippedSippingDateOrders_call> resultHandler) throws org.apache.thrift.TException;
854
 
856
 
-
 
857
    public void getCancelledOrders(long cancelDateFrom, long cancelDateTo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCancelledOrders_call> resultHandler) throws org.apache.thrift.TException;
-
 
858
 
855
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveBluedartSettlements_call> resultHandler) throws org.apache.thrift.TException;
859
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveBluedartSettlements_call> resultHandler) throws org.apache.thrift.TException;
856
 
860
 
857
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long paymentId, double serviceTax, double otherCharges, double netCollection, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.savePaymentSettlements_call> resultHandler) throws org.apache.thrift.TException;
861
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long paymentId, double serviceTax, double otherCharges, double netCollection, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.savePaymentSettlements_call> resultHandler) throws org.apache.thrift.TException;
858
 
862
 
859
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveEBSSettlementSummary_call> resultHandler) throws org.apache.thrift.TException;
863
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveEBSSettlementSummary_call> resultHandler) throws org.apache.thrift.TException;
Line 3041... Line 3045...
3041
        throw result.ex;
3045
        throw result.ex;
3042
      }
3046
      }
3043
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSlippedSippingDateOrders failed: unknown result");
3047
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSlippedSippingDateOrders failed: unknown result");
3044
    }
3048
    }
3045
 
3049
 
-
 
3050
    public List<Order> getCancelledOrders(long cancelDateFrom, long cancelDateTo) throws TransactionServiceException, org.apache.thrift.TException
-
 
3051
    {
-
 
3052
      send_getCancelledOrders(cancelDateFrom, cancelDateTo);
-
 
3053
      return recv_getCancelledOrders();
-
 
3054
    }
-
 
3055
 
-
 
3056
    public void send_getCancelledOrders(long cancelDateFrom, long cancelDateTo) throws org.apache.thrift.TException
-
 
3057
    {
-
 
3058
      getCancelledOrders_args args = new getCancelledOrders_args();
-
 
3059
      args.setCancelDateFrom(cancelDateFrom);
-
 
3060
      args.setCancelDateTo(cancelDateTo);
-
 
3061
      sendBase("getCancelledOrders", args);
-
 
3062
    }
-
 
3063
 
-
 
3064
    public List<Order> recv_getCancelledOrders() throws TransactionServiceException, org.apache.thrift.TException
-
 
3065
    {
-
 
3066
      getCancelledOrders_result result = new getCancelledOrders_result();
-
 
3067
      receiveBase(result, "getCancelledOrders");
-
 
3068
      if (result.isSetSuccess()) {
-
 
3069
        return result.success;
-
 
3070
      }
-
 
3071
      if (result.ex != null) {
-
 
3072
        throw result.ex;
-
 
3073
      }
-
 
3074
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCancelledOrders failed: unknown result");
-
 
3075
    }
-
 
3076
 
3046
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount) throws TransactionServiceException, org.apache.thrift.TException
3077
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount) throws TransactionServiceException, org.apache.thrift.TException
3047
    {
3078
    {
3048
      send_saveBluedartSettlements(mapAWBAndAmount);
3079
      send_saveBluedartSettlements(mapAWBAndAmount);
3049
      recv_saveBluedartSettlements();
3080
      recv_saveBluedartSettlements();
3050
    }
3081
    }
Line 6154... Line 6185...
6154
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6185
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6155
        return (new Client(prot)).recv_getSlippedSippingDateOrders();
6186
        return (new Client(prot)).recv_getSlippedSippingDateOrders();
6156
      }
6187
      }
6157
    }
6188
    }
6158
 
6189
 
-
 
6190
    public void getCancelledOrders(long cancelDateFrom, long cancelDateTo, org.apache.thrift.async.AsyncMethodCallback<getCancelledOrders_call> resultHandler) throws org.apache.thrift.TException {
-
 
6191
      checkReady();
-
 
6192
      getCancelledOrders_call method_call = new getCancelledOrders_call(cancelDateFrom, cancelDateTo, resultHandler, this, ___protocolFactory, ___transport);
-
 
6193
      this.___currentMethod = method_call;
-
 
6194
      ___manager.call(method_call);
-
 
6195
    }
-
 
6196
 
-
 
6197
    public static class getCancelledOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6198
      private long cancelDateFrom;
-
 
6199
      private long cancelDateTo;
-
 
6200
      public getCancelledOrders_call(long cancelDateFrom, long cancelDateTo, org.apache.thrift.async.AsyncMethodCallback<getCancelledOrders_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 {
-
 
6201
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6202
        this.cancelDateFrom = cancelDateFrom;
-
 
6203
        this.cancelDateTo = cancelDateTo;
-
 
6204
      }
-
 
6205
 
-
 
6206
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6207
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCancelledOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6208
        getCancelledOrders_args args = new getCancelledOrders_args();
-
 
6209
        args.setCancelDateFrom(cancelDateFrom);
-
 
6210
        args.setCancelDateTo(cancelDateTo);
-
 
6211
        args.write(prot);
-
 
6212
        prot.writeMessageEnd();
-
 
6213
      }
-
 
6214
 
-
 
6215
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
6216
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6217
          throw new IllegalStateException("Method call not finished!");
-
 
6218
        }
-
 
6219
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6220
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6221
        return (new Client(prot)).recv_getCancelledOrders();
-
 
6222
      }
-
 
6223
    }
-
 
6224
 
6159
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount, org.apache.thrift.async.AsyncMethodCallback<saveBluedartSettlements_call> resultHandler) throws org.apache.thrift.TException {
6225
    public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount, org.apache.thrift.async.AsyncMethodCallback<saveBluedartSettlements_call> resultHandler) throws org.apache.thrift.TException {
6160
      checkReady();
6226
      checkReady();
6161
      saveBluedartSettlements_call method_call = new saveBluedartSettlements_call(mapAWBAndAmount, resultHandler, this, ___protocolFactory, ___transport);
6227
      saveBluedartSettlements_call method_call = new saveBluedartSettlements_call(mapAWBAndAmount, resultHandler, this, ___protocolFactory, ___transport);
6162
      this.___currentMethod = method_call;
6228
      this.___currentMethod = method_call;
6163
      ___manager.call(method_call);
6229
      ___manager.call(method_call);
Line 6498... Line 6564...
6498
      processMap.put("markOrderAsLostInTransit", new markOrderAsLostInTransit());
6564
      processMap.put("markOrderAsLostInTransit", new markOrderAsLostInTransit());
6499
      processMap.put("getOrderForAwb", new getOrderForAwb());
6565
      processMap.put("getOrderForAwb", new getOrderForAwb());
6500
      processMap.put("getOrdersForProviderForStatus", new getOrdersForProviderForStatus());
6566
      processMap.put("getOrdersForProviderForStatus", new getOrdersForProviderForStatus());
6501
      processMap.put("getBilledOrdersForVendor", new getBilledOrdersForVendor());
6567
      processMap.put("getBilledOrdersForVendor", new getBilledOrdersForVendor());
6502
      processMap.put("getSlippedSippingDateOrders", new getSlippedSippingDateOrders());
6568
      processMap.put("getSlippedSippingDateOrders", new getSlippedSippingDateOrders());
-
 
6569
      processMap.put("getCancelledOrders", new getCancelledOrders());
6503
      processMap.put("saveBluedartSettlements", new saveBluedartSettlements());
6570
      processMap.put("saveBluedartSettlements", new saveBluedartSettlements());
6504
      processMap.put("savePaymentSettlements", new savePaymentSettlements());
6571
      processMap.put("savePaymentSettlements", new savePaymentSettlements());
6505
      processMap.put("saveEBSSettlementSummary", new saveEBSSettlementSummary());
6572
      processMap.put("saveEBSSettlementSummary", new saveEBSSettlementSummary());
6506
      processMap.put("getSettlementForPaymentId", new getSettlementForPaymentId());
6573
      processMap.put("getSettlementForPaymentId", new getSettlementForPaymentId());
6507
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
6574
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
Line 8141... Line 8208...
8141
        }
8208
        }
8142
        return result;
8209
        return result;
8143
      }
8210
      }
8144
    }
8211
    }
8145
 
8212
 
-
 
8213
    private static class getCancelledOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCancelledOrders_args> {
-
 
8214
      public getCancelledOrders() {
-
 
8215
        super("getCancelledOrders");
-
 
8216
      }
-
 
8217
 
-
 
8218
      protected getCancelledOrders_args getEmptyArgsInstance() {
-
 
8219
        return new getCancelledOrders_args();
-
 
8220
      }
-
 
8221
 
-
 
8222
      protected getCancelledOrders_result getResult(I iface, getCancelledOrders_args args) throws org.apache.thrift.TException {
-
 
8223
        getCancelledOrders_result result = new getCancelledOrders_result();
-
 
8224
        try {
-
 
8225
          result.success = iface.getCancelledOrders(args.cancelDateFrom, args.cancelDateTo);
-
 
8226
        } catch (TransactionServiceException ex) {
-
 
8227
          result.ex = ex;
-
 
8228
        }
-
 
8229
        return result;
-
 
8230
      }
-
 
8231
    }
-
 
8232
 
8146
    private static class saveBluedartSettlements<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveBluedartSettlements_args> {
8233
    private static class saveBluedartSettlements<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveBluedartSettlements_args> {
8147
      public saveBluedartSettlements() {
8234
      public saveBluedartSettlements() {
8148
        super("saveBluedartSettlements");
8235
        super("saveBluedartSettlements");
8149
      }
8236
      }
8150
 
8237
 
Line 70572... Line 70659...
70572
      }
70659
      }
70573
    }
70660
    }
70574
 
70661
 
70575
  }
70662
  }
70576
 
70663
 
-
 
70664
  public static class getCancelledOrders_args implements org.apache.thrift.TBase<getCancelledOrders_args, getCancelledOrders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
70665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancelledOrders_args");
-
 
70666
 
-
 
70667
    private static final org.apache.thrift.protocol.TField CANCEL_DATE_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("cancelDateFrom", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
70668
    private static final org.apache.thrift.protocol.TField CANCEL_DATE_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("cancelDateTo", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
70669
 
-
 
70670
    private long cancelDateFrom; // required
-
 
70671
    private long cancelDateTo; // required
-
 
70672
 
-
 
70673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
70674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
70675
      CANCEL_DATE_FROM((short)1, "cancelDateFrom"),
-
 
70676
      CANCEL_DATE_TO((short)2, "cancelDateTo");
-
 
70677
 
-
 
70678
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
70679
 
-
 
70680
      static {
-
 
70681
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
70682
          byName.put(field.getFieldName(), field);
-
 
70683
        }
-
 
70684
      }
-
 
70685
 
-
 
70686
      /**
-
 
70687
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
70688
       */
-
 
70689
      public static _Fields findByThriftId(int fieldId) {
-
 
70690
        switch(fieldId) {
-
 
70691
          case 1: // CANCEL_DATE_FROM
-
 
70692
            return CANCEL_DATE_FROM;
-
 
70693
          case 2: // CANCEL_DATE_TO
-
 
70694
            return CANCEL_DATE_TO;
-
 
70695
          default:
-
 
70696
            return null;
-
 
70697
        }
-
 
70698
      }
-
 
70699
 
-
 
70700
      /**
-
 
70701
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
70702
       * if it is not found.
-
 
70703
       */
-
 
70704
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
70705
        _Fields fields = findByThriftId(fieldId);
-
 
70706
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
70707
        return fields;
-
 
70708
      }
-
 
70709
 
-
 
70710
      /**
-
 
70711
       * Find the _Fields constant that matches name, or null if its not found.
-
 
70712
       */
-
 
70713
      public static _Fields findByName(String name) {
-
 
70714
        return byName.get(name);
-
 
70715
      }
-
 
70716
 
-
 
70717
      private final short _thriftId;
-
 
70718
      private final String _fieldName;
-
 
70719
 
-
 
70720
      _Fields(short thriftId, String fieldName) {
-
 
70721
        _thriftId = thriftId;
-
 
70722
        _fieldName = fieldName;
-
 
70723
      }
-
 
70724
 
-
 
70725
      public short getThriftFieldId() {
-
 
70726
        return _thriftId;
-
 
70727
      }
-
 
70728
 
-
 
70729
      public String getFieldName() {
-
 
70730
        return _fieldName;
-
 
70731
      }
-
 
70732
    }
-
 
70733
 
-
 
70734
    // isset id assignments
-
 
70735
    private static final int __CANCELDATEFROM_ISSET_ID = 0;
-
 
70736
    private static final int __CANCELDATETO_ISSET_ID = 1;
-
 
70737
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
70738
 
-
 
70739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
70740
    static {
-
 
70741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
70742
      tmpMap.put(_Fields.CANCEL_DATE_FROM, new org.apache.thrift.meta_data.FieldMetaData("cancelDateFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70743
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
70744
      tmpMap.put(_Fields.CANCEL_DATE_TO, new org.apache.thrift.meta_data.FieldMetaData("cancelDateTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
70746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
70747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancelledOrders_args.class, metaDataMap);
-
 
70748
    }
-
 
70749
 
-
 
70750
    public getCancelledOrders_args() {
-
 
70751
    }
-
 
70752
 
-
 
70753
    public getCancelledOrders_args(
-
 
70754
      long cancelDateFrom,
-
 
70755
      long cancelDateTo)
-
 
70756
    {
-
 
70757
      this();
-
 
70758
      this.cancelDateFrom = cancelDateFrom;
-
 
70759
      setCancelDateFromIsSet(true);
-
 
70760
      this.cancelDateTo = cancelDateTo;
-
 
70761
      setCancelDateToIsSet(true);
-
 
70762
    }
-
 
70763
 
-
 
70764
    /**
-
 
70765
     * Performs a deep copy on <i>other</i>.
-
 
70766
     */
-
 
70767
    public getCancelledOrders_args(getCancelledOrders_args other) {
-
 
70768
      __isset_bit_vector.clear();
-
 
70769
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70770
      this.cancelDateFrom = other.cancelDateFrom;
-
 
70771
      this.cancelDateTo = other.cancelDateTo;
-
 
70772
    }
-
 
70773
 
-
 
70774
    public getCancelledOrders_args deepCopy() {
-
 
70775
      return new getCancelledOrders_args(this);
-
 
70776
    }
-
 
70777
 
-
 
70778
    @Override
-
 
70779
    public void clear() {
-
 
70780
      setCancelDateFromIsSet(false);
-
 
70781
      this.cancelDateFrom = 0;
-
 
70782
      setCancelDateToIsSet(false);
-
 
70783
      this.cancelDateTo = 0;
-
 
70784
    }
-
 
70785
 
-
 
70786
    public long getCancelDateFrom() {
-
 
70787
      return this.cancelDateFrom;
-
 
70788
    }
-
 
70789
 
-
 
70790
    public void setCancelDateFrom(long cancelDateFrom) {
-
 
70791
      this.cancelDateFrom = cancelDateFrom;
-
 
70792
      setCancelDateFromIsSet(true);
-
 
70793
    }
-
 
70794
 
-
 
70795
    public void unsetCancelDateFrom() {
-
 
70796
      __isset_bit_vector.clear(__CANCELDATEFROM_ISSET_ID);
-
 
70797
    }
-
 
70798
 
-
 
70799
    /** Returns true if field cancelDateFrom is set (has been assigned a value) and false otherwise */
-
 
70800
    public boolean isSetCancelDateFrom() {
-
 
70801
      return __isset_bit_vector.get(__CANCELDATEFROM_ISSET_ID);
-
 
70802
    }
-
 
70803
 
-
 
70804
    public void setCancelDateFromIsSet(boolean value) {
-
 
70805
      __isset_bit_vector.set(__CANCELDATEFROM_ISSET_ID, value);
-
 
70806
    }
-
 
70807
 
-
 
70808
    public long getCancelDateTo() {
-
 
70809
      return this.cancelDateTo;
-
 
70810
    }
-
 
70811
 
-
 
70812
    public void setCancelDateTo(long cancelDateTo) {
-
 
70813
      this.cancelDateTo = cancelDateTo;
-
 
70814
      setCancelDateToIsSet(true);
-
 
70815
    }
-
 
70816
 
-
 
70817
    public void unsetCancelDateTo() {
-
 
70818
      __isset_bit_vector.clear(__CANCELDATETO_ISSET_ID);
-
 
70819
    }
-
 
70820
 
-
 
70821
    /** Returns true if field cancelDateTo is set (has been assigned a value) and false otherwise */
-
 
70822
    public boolean isSetCancelDateTo() {
-
 
70823
      return __isset_bit_vector.get(__CANCELDATETO_ISSET_ID);
-
 
70824
    }
-
 
70825
 
-
 
70826
    public void setCancelDateToIsSet(boolean value) {
-
 
70827
      __isset_bit_vector.set(__CANCELDATETO_ISSET_ID, value);
-
 
70828
    }
-
 
70829
 
-
 
70830
    public void setFieldValue(_Fields field, Object value) {
-
 
70831
      switch (field) {
-
 
70832
      case CANCEL_DATE_FROM:
-
 
70833
        if (value == null) {
-
 
70834
          unsetCancelDateFrom();
-
 
70835
        } else {
-
 
70836
          setCancelDateFrom((Long)value);
-
 
70837
        }
-
 
70838
        break;
-
 
70839
 
-
 
70840
      case CANCEL_DATE_TO:
-
 
70841
        if (value == null) {
-
 
70842
          unsetCancelDateTo();
-
 
70843
        } else {
-
 
70844
          setCancelDateTo((Long)value);
-
 
70845
        }
-
 
70846
        break;
-
 
70847
 
-
 
70848
      }
-
 
70849
    }
-
 
70850
 
-
 
70851
    public Object getFieldValue(_Fields field) {
-
 
70852
      switch (field) {
-
 
70853
      case CANCEL_DATE_FROM:
-
 
70854
        return Long.valueOf(getCancelDateFrom());
-
 
70855
 
-
 
70856
      case CANCEL_DATE_TO:
-
 
70857
        return Long.valueOf(getCancelDateTo());
-
 
70858
 
-
 
70859
      }
-
 
70860
      throw new IllegalStateException();
-
 
70861
    }
-
 
70862
 
-
 
70863
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
70864
    public boolean isSet(_Fields field) {
-
 
70865
      if (field == null) {
-
 
70866
        throw new IllegalArgumentException();
-
 
70867
      }
-
 
70868
 
-
 
70869
      switch (field) {
-
 
70870
      case CANCEL_DATE_FROM:
-
 
70871
        return isSetCancelDateFrom();
-
 
70872
      case CANCEL_DATE_TO:
-
 
70873
        return isSetCancelDateTo();
-
 
70874
      }
-
 
70875
      throw new IllegalStateException();
-
 
70876
    }
-
 
70877
 
-
 
70878
    @Override
-
 
70879
    public boolean equals(Object that) {
-
 
70880
      if (that == null)
-
 
70881
        return false;
-
 
70882
      if (that instanceof getCancelledOrders_args)
-
 
70883
        return this.equals((getCancelledOrders_args)that);
-
 
70884
      return false;
-
 
70885
    }
-
 
70886
 
-
 
70887
    public boolean equals(getCancelledOrders_args that) {
-
 
70888
      if (that == null)
-
 
70889
        return false;
-
 
70890
 
-
 
70891
      boolean this_present_cancelDateFrom = true;
-
 
70892
      boolean that_present_cancelDateFrom = true;
-
 
70893
      if (this_present_cancelDateFrom || that_present_cancelDateFrom) {
-
 
70894
        if (!(this_present_cancelDateFrom && that_present_cancelDateFrom))
-
 
70895
          return false;
-
 
70896
        if (this.cancelDateFrom != that.cancelDateFrom)
-
 
70897
          return false;
-
 
70898
      }
-
 
70899
 
-
 
70900
      boolean this_present_cancelDateTo = true;
-
 
70901
      boolean that_present_cancelDateTo = true;
-
 
70902
      if (this_present_cancelDateTo || that_present_cancelDateTo) {
-
 
70903
        if (!(this_present_cancelDateTo && that_present_cancelDateTo))
-
 
70904
          return false;
-
 
70905
        if (this.cancelDateTo != that.cancelDateTo)
-
 
70906
          return false;
-
 
70907
      }
-
 
70908
 
-
 
70909
      return true;
-
 
70910
    }
-
 
70911
 
-
 
70912
    @Override
-
 
70913
    public int hashCode() {
-
 
70914
      return 0;
-
 
70915
    }
-
 
70916
 
-
 
70917
    public int compareTo(getCancelledOrders_args other) {
-
 
70918
      if (!getClass().equals(other.getClass())) {
-
 
70919
        return getClass().getName().compareTo(other.getClass().getName());
-
 
70920
      }
-
 
70921
 
-
 
70922
      int lastComparison = 0;
-
 
70923
      getCancelledOrders_args typedOther = (getCancelledOrders_args)other;
-
 
70924
 
-
 
70925
      lastComparison = Boolean.valueOf(isSetCancelDateFrom()).compareTo(typedOther.isSetCancelDateFrom());
-
 
70926
      if (lastComparison != 0) {
-
 
70927
        return lastComparison;
-
 
70928
      }
-
 
70929
      if (isSetCancelDateFrom()) {
-
 
70930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cancelDateFrom, typedOther.cancelDateFrom);
-
 
70931
        if (lastComparison != 0) {
-
 
70932
          return lastComparison;
-
 
70933
        }
-
 
70934
      }
-
 
70935
      lastComparison = Boolean.valueOf(isSetCancelDateTo()).compareTo(typedOther.isSetCancelDateTo());
-
 
70936
      if (lastComparison != 0) {
-
 
70937
        return lastComparison;
-
 
70938
      }
-
 
70939
      if (isSetCancelDateTo()) {
-
 
70940
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cancelDateTo, typedOther.cancelDateTo);
-
 
70941
        if (lastComparison != 0) {
-
 
70942
          return lastComparison;
-
 
70943
        }
-
 
70944
      }
-
 
70945
      return 0;
-
 
70946
    }
-
 
70947
 
-
 
70948
    public _Fields fieldForId(int fieldId) {
-
 
70949
      return _Fields.findByThriftId(fieldId);
-
 
70950
    }
-
 
70951
 
-
 
70952
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
70953
      org.apache.thrift.protocol.TField field;
-
 
70954
      iprot.readStructBegin();
-
 
70955
      while (true)
-
 
70956
      {
-
 
70957
        field = iprot.readFieldBegin();
-
 
70958
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
70959
          break;
-
 
70960
        }
-
 
70961
        switch (field.id) {
-
 
70962
          case 1: // CANCEL_DATE_FROM
-
 
70963
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
70964
              this.cancelDateFrom = iprot.readI64();
-
 
70965
              setCancelDateFromIsSet(true);
-
 
70966
            } else { 
-
 
70967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70968
            }
-
 
70969
            break;
-
 
70970
          case 2: // CANCEL_DATE_TO
-
 
70971
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
70972
              this.cancelDateTo = iprot.readI64();
-
 
70973
              setCancelDateToIsSet(true);
-
 
70974
            } else { 
-
 
70975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70976
            }
-
 
70977
            break;
-
 
70978
          default:
-
 
70979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70980
        }
-
 
70981
        iprot.readFieldEnd();
-
 
70982
      }
-
 
70983
      iprot.readStructEnd();
-
 
70984
      validate();
-
 
70985
    }
-
 
70986
 
-
 
70987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
70988
      validate();
-
 
70989
 
-
 
70990
      oprot.writeStructBegin(STRUCT_DESC);
-
 
70991
      oprot.writeFieldBegin(CANCEL_DATE_FROM_FIELD_DESC);
-
 
70992
      oprot.writeI64(this.cancelDateFrom);
-
 
70993
      oprot.writeFieldEnd();
-
 
70994
      oprot.writeFieldBegin(CANCEL_DATE_TO_FIELD_DESC);
-
 
70995
      oprot.writeI64(this.cancelDateTo);
-
 
70996
      oprot.writeFieldEnd();
-
 
70997
      oprot.writeFieldStop();
-
 
70998
      oprot.writeStructEnd();
-
 
70999
    }
-
 
71000
 
-
 
71001
    @Override
-
 
71002
    public String toString() {
-
 
71003
      StringBuilder sb = new StringBuilder("getCancelledOrders_args(");
-
 
71004
      boolean first = true;
-
 
71005
 
-
 
71006
      sb.append("cancelDateFrom:");
-
 
71007
      sb.append(this.cancelDateFrom);
-
 
71008
      first = false;
-
 
71009
      if (!first) sb.append(", ");
-
 
71010
      sb.append("cancelDateTo:");
-
 
71011
      sb.append(this.cancelDateTo);
-
 
71012
      first = false;
-
 
71013
      sb.append(")");
-
 
71014
      return sb.toString();
-
 
71015
    }
-
 
71016
 
-
 
71017
    public void validate() throws org.apache.thrift.TException {
-
 
71018
      // check for required fields
-
 
71019
    }
-
 
71020
 
-
 
71021
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
71022
      try {
-
 
71023
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
71024
      } catch (org.apache.thrift.TException te) {
-
 
71025
        throw new java.io.IOException(te);
-
 
71026
      }
-
 
71027
    }
-
 
71028
 
-
 
71029
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
71030
      try {
-
 
71031
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
71032
        __isset_bit_vector = new BitSet(1);
-
 
71033
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
71034
      } catch (org.apache.thrift.TException te) {
-
 
71035
        throw new java.io.IOException(te);
-
 
71036
      }
-
 
71037
    }
-
 
71038
 
-
 
71039
  }
-
 
71040
 
-
 
71041
  public static class getCancelledOrders_result implements org.apache.thrift.TBase<getCancelledOrders_result, getCancelledOrders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
71042
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancelledOrders_result");
-
 
71043
 
-
 
71044
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
71045
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
71046
 
-
 
71047
    private List<Order> success; // required
-
 
71048
    private TransactionServiceException ex; // required
-
 
71049
 
-
 
71050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
71051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
71052
      SUCCESS((short)0, "success"),
-
 
71053
      EX((short)1, "ex");
-
 
71054
 
-
 
71055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
71056
 
-
 
71057
      static {
-
 
71058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
71059
          byName.put(field.getFieldName(), field);
-
 
71060
        }
-
 
71061
      }
-
 
71062
 
-
 
71063
      /**
-
 
71064
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
71065
       */
-
 
71066
      public static _Fields findByThriftId(int fieldId) {
-
 
71067
        switch(fieldId) {
-
 
71068
          case 0: // SUCCESS
-
 
71069
            return SUCCESS;
-
 
71070
          case 1: // EX
-
 
71071
            return EX;
-
 
71072
          default:
-
 
71073
            return null;
-
 
71074
        }
-
 
71075
      }
-
 
71076
 
-
 
71077
      /**
-
 
71078
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
71079
       * if it is not found.
-
 
71080
       */
-
 
71081
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
71082
        _Fields fields = findByThriftId(fieldId);
-
 
71083
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
71084
        return fields;
-
 
71085
      }
-
 
71086
 
-
 
71087
      /**
-
 
71088
       * Find the _Fields constant that matches name, or null if its not found.
-
 
71089
       */
-
 
71090
      public static _Fields findByName(String name) {
-
 
71091
        return byName.get(name);
-
 
71092
      }
-
 
71093
 
-
 
71094
      private final short _thriftId;
-
 
71095
      private final String _fieldName;
-
 
71096
 
-
 
71097
      _Fields(short thriftId, String fieldName) {
-
 
71098
        _thriftId = thriftId;
-
 
71099
        _fieldName = fieldName;
-
 
71100
      }
-
 
71101
 
-
 
71102
      public short getThriftFieldId() {
-
 
71103
        return _thriftId;
-
 
71104
      }
-
 
71105
 
-
 
71106
      public String getFieldName() {
-
 
71107
        return _fieldName;
-
 
71108
      }
-
 
71109
    }
-
 
71110
 
-
 
71111
    // isset id assignments
-
 
71112
 
-
 
71113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
71114
    static {
-
 
71115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
71116
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
71117
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
71118
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
71119
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
71120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
71121
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
71122
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancelledOrders_result.class, metaDataMap);
-
 
71123
    }
-
 
71124
 
-
 
71125
    public getCancelledOrders_result() {
-
 
71126
    }
-
 
71127
 
-
 
71128
    public getCancelledOrders_result(
-
 
71129
      List<Order> success,
-
 
71130
      TransactionServiceException ex)
-
 
71131
    {
-
 
71132
      this();
-
 
71133
      this.success = success;
-
 
71134
      this.ex = ex;
-
 
71135
    }
-
 
71136
 
-
 
71137
    /**
-
 
71138
     * Performs a deep copy on <i>other</i>.
-
 
71139
     */
-
 
71140
    public getCancelledOrders_result(getCancelledOrders_result other) {
-
 
71141
      if (other.isSetSuccess()) {
-
 
71142
        List<Order> __this__success = new ArrayList<Order>();
-
 
71143
        for (Order other_element : other.success) {
-
 
71144
          __this__success.add(new Order(other_element));
-
 
71145
        }
-
 
71146
        this.success = __this__success;
-
 
71147
      }
-
 
71148
      if (other.isSetEx()) {
-
 
71149
        this.ex = new TransactionServiceException(other.ex);
-
 
71150
      }
-
 
71151
    }
-
 
71152
 
-
 
71153
    public getCancelledOrders_result deepCopy() {
-
 
71154
      return new getCancelledOrders_result(this);
-
 
71155
    }
-
 
71156
 
-
 
71157
    @Override
-
 
71158
    public void clear() {
-
 
71159
      this.success = null;
-
 
71160
      this.ex = null;
-
 
71161
    }
-
 
71162
 
-
 
71163
    public int getSuccessSize() {
-
 
71164
      return (this.success == null) ? 0 : this.success.size();
-
 
71165
    }
-
 
71166
 
-
 
71167
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
71168
      return (this.success == null) ? null : this.success.iterator();
-
 
71169
    }
-
 
71170
 
-
 
71171
    public void addToSuccess(Order elem) {
-
 
71172
      if (this.success == null) {
-
 
71173
        this.success = new ArrayList<Order>();
-
 
71174
      }
-
 
71175
      this.success.add(elem);
-
 
71176
    }
-
 
71177
 
-
 
71178
    public List<Order> getSuccess() {
-
 
71179
      return this.success;
-
 
71180
    }
-
 
71181
 
-
 
71182
    public void setSuccess(List<Order> success) {
-
 
71183
      this.success = success;
-
 
71184
    }
-
 
71185
 
-
 
71186
    public void unsetSuccess() {
-
 
71187
      this.success = null;
-
 
71188
    }
-
 
71189
 
-
 
71190
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
71191
    public boolean isSetSuccess() {
-
 
71192
      return this.success != null;
-
 
71193
    }
-
 
71194
 
-
 
71195
    public void setSuccessIsSet(boolean value) {
-
 
71196
      if (!value) {
-
 
71197
        this.success = null;
-
 
71198
      }
-
 
71199
    }
-
 
71200
 
-
 
71201
    public TransactionServiceException getEx() {
-
 
71202
      return this.ex;
-
 
71203
    }
-
 
71204
 
-
 
71205
    public void setEx(TransactionServiceException ex) {
-
 
71206
      this.ex = ex;
-
 
71207
    }
-
 
71208
 
-
 
71209
    public void unsetEx() {
-
 
71210
      this.ex = null;
-
 
71211
    }
-
 
71212
 
-
 
71213
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
71214
    public boolean isSetEx() {
-
 
71215
      return this.ex != null;
-
 
71216
    }
-
 
71217
 
-
 
71218
    public void setExIsSet(boolean value) {
-
 
71219
      if (!value) {
-
 
71220
        this.ex = null;
-
 
71221
      }
-
 
71222
    }
-
 
71223
 
-
 
71224
    public void setFieldValue(_Fields field, Object value) {
-
 
71225
      switch (field) {
-
 
71226
      case SUCCESS:
-
 
71227
        if (value == null) {
-
 
71228
          unsetSuccess();
-
 
71229
        } else {
-
 
71230
          setSuccess((List<Order>)value);
-
 
71231
        }
-
 
71232
        break;
-
 
71233
 
-
 
71234
      case EX:
-
 
71235
        if (value == null) {
-
 
71236
          unsetEx();
-
 
71237
        } else {
-
 
71238
          setEx((TransactionServiceException)value);
-
 
71239
        }
-
 
71240
        break;
-
 
71241
 
-
 
71242
      }
-
 
71243
    }
-
 
71244
 
-
 
71245
    public Object getFieldValue(_Fields field) {
-
 
71246
      switch (field) {
-
 
71247
      case SUCCESS:
-
 
71248
        return getSuccess();
-
 
71249
 
-
 
71250
      case EX:
-
 
71251
        return getEx();
-
 
71252
 
-
 
71253
      }
-
 
71254
      throw new IllegalStateException();
-
 
71255
    }
-
 
71256
 
-
 
71257
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
71258
    public boolean isSet(_Fields field) {
-
 
71259
      if (field == null) {
-
 
71260
        throw new IllegalArgumentException();
-
 
71261
      }
-
 
71262
 
-
 
71263
      switch (field) {
-
 
71264
      case SUCCESS:
-
 
71265
        return isSetSuccess();
-
 
71266
      case EX:
-
 
71267
        return isSetEx();
-
 
71268
      }
-
 
71269
      throw new IllegalStateException();
-
 
71270
    }
-
 
71271
 
-
 
71272
    @Override
-
 
71273
    public boolean equals(Object that) {
-
 
71274
      if (that == null)
-
 
71275
        return false;
-
 
71276
      if (that instanceof getCancelledOrders_result)
-
 
71277
        return this.equals((getCancelledOrders_result)that);
-
 
71278
      return false;
-
 
71279
    }
-
 
71280
 
-
 
71281
    public boolean equals(getCancelledOrders_result that) {
-
 
71282
      if (that == null)
-
 
71283
        return false;
-
 
71284
 
-
 
71285
      boolean this_present_success = true && this.isSetSuccess();
-
 
71286
      boolean that_present_success = true && that.isSetSuccess();
-
 
71287
      if (this_present_success || that_present_success) {
-
 
71288
        if (!(this_present_success && that_present_success))
-
 
71289
          return false;
-
 
71290
        if (!this.success.equals(that.success))
-
 
71291
          return false;
-
 
71292
      }
-
 
71293
 
-
 
71294
      boolean this_present_ex = true && this.isSetEx();
-
 
71295
      boolean that_present_ex = true && that.isSetEx();
-
 
71296
      if (this_present_ex || that_present_ex) {
-
 
71297
        if (!(this_present_ex && that_present_ex))
-
 
71298
          return false;
-
 
71299
        if (!this.ex.equals(that.ex))
-
 
71300
          return false;
-
 
71301
      }
-
 
71302
 
-
 
71303
      return true;
-
 
71304
    }
-
 
71305
 
-
 
71306
    @Override
-
 
71307
    public int hashCode() {
-
 
71308
      return 0;
-
 
71309
    }
-
 
71310
 
-
 
71311
    public int compareTo(getCancelledOrders_result other) {
-
 
71312
      if (!getClass().equals(other.getClass())) {
-
 
71313
        return getClass().getName().compareTo(other.getClass().getName());
-
 
71314
      }
-
 
71315
 
-
 
71316
      int lastComparison = 0;
-
 
71317
      getCancelledOrders_result typedOther = (getCancelledOrders_result)other;
-
 
71318
 
-
 
71319
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
71320
      if (lastComparison != 0) {
-
 
71321
        return lastComparison;
-
 
71322
      }
-
 
71323
      if (isSetSuccess()) {
-
 
71324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
71325
        if (lastComparison != 0) {
-
 
71326
          return lastComparison;
-
 
71327
        }
-
 
71328
      }
-
 
71329
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
71330
      if (lastComparison != 0) {
-
 
71331
        return lastComparison;
-
 
71332
      }
-
 
71333
      if (isSetEx()) {
-
 
71334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
71335
        if (lastComparison != 0) {
-
 
71336
          return lastComparison;
-
 
71337
        }
-
 
71338
      }
-
 
71339
      return 0;
-
 
71340
    }
-
 
71341
 
-
 
71342
    public _Fields fieldForId(int fieldId) {
-
 
71343
      return _Fields.findByThriftId(fieldId);
-
 
71344
    }
-
 
71345
 
-
 
71346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
71347
      org.apache.thrift.protocol.TField field;
-
 
71348
      iprot.readStructBegin();
-
 
71349
      while (true)
-
 
71350
      {
-
 
71351
        field = iprot.readFieldBegin();
-
 
71352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
71353
          break;
-
 
71354
        }
-
 
71355
        switch (field.id) {
-
 
71356
          case 0: // SUCCESS
-
 
71357
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
71358
              {
-
 
71359
                org.apache.thrift.protocol.TList _list173 = iprot.readListBegin();
-
 
71360
                this.success = new ArrayList<Order>(_list173.size);
-
 
71361
                for (int _i174 = 0; _i174 < _list173.size; ++_i174)
-
 
71362
                {
-
 
71363
                  Order _elem175; // required
-
 
71364
                  _elem175 = new Order();
-
 
71365
                  _elem175.read(iprot);
-
 
71366
                  this.success.add(_elem175);
-
 
71367
                }
-
 
71368
                iprot.readListEnd();
-
 
71369
              }
-
 
71370
            } else { 
-
 
71371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71372
            }
-
 
71373
            break;
-
 
71374
          case 1: // EX
-
 
71375
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
71376
              this.ex = new TransactionServiceException();
-
 
71377
              this.ex.read(iprot);
-
 
71378
            } else { 
-
 
71379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71380
            }
-
 
71381
            break;
-
 
71382
          default:
-
 
71383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71384
        }
-
 
71385
        iprot.readFieldEnd();
-
 
71386
      }
-
 
71387
      iprot.readStructEnd();
-
 
71388
      validate();
-
 
71389
    }
-
 
71390
 
-
 
71391
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
71392
      oprot.writeStructBegin(STRUCT_DESC);
-
 
71393
 
-
 
71394
      if (this.isSetSuccess()) {
-
 
71395
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
71396
        {
-
 
71397
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
71398
          for (Order _iter176 : this.success)
-
 
71399
          {
-
 
71400
            _iter176.write(oprot);
-
 
71401
          }
-
 
71402
          oprot.writeListEnd();
-
 
71403
        }
-
 
71404
        oprot.writeFieldEnd();
-
 
71405
      } else if (this.isSetEx()) {
-
 
71406
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
71407
        this.ex.write(oprot);
-
 
71408
        oprot.writeFieldEnd();
-
 
71409
      }
-
 
71410
      oprot.writeFieldStop();
-
 
71411
      oprot.writeStructEnd();
-
 
71412
    }
-
 
71413
 
-
 
71414
    @Override
-
 
71415
    public String toString() {
-
 
71416
      StringBuilder sb = new StringBuilder("getCancelledOrders_result(");
-
 
71417
      boolean first = true;
-
 
71418
 
-
 
71419
      sb.append("success:");
-
 
71420
      if (this.success == null) {
-
 
71421
        sb.append("null");
-
 
71422
      } else {
-
 
71423
        sb.append(this.success);
-
 
71424
      }
-
 
71425
      first = false;
-
 
71426
      if (!first) sb.append(", ");
-
 
71427
      sb.append("ex:");
-
 
71428
      if (this.ex == null) {
-
 
71429
        sb.append("null");
-
 
71430
      } else {
-
 
71431
        sb.append(this.ex);
-
 
71432
      }
-
 
71433
      first = false;
-
 
71434
      sb.append(")");
-
 
71435
      return sb.toString();
-
 
71436
    }
-
 
71437
 
-
 
71438
    public void validate() throws org.apache.thrift.TException {
-
 
71439
      // check for required fields
-
 
71440
    }
-
 
71441
 
-
 
71442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
71443
      try {
-
 
71444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
71445
      } catch (org.apache.thrift.TException te) {
-
 
71446
        throw new java.io.IOException(te);
-
 
71447
      }
-
 
71448
    }
-
 
71449
 
-
 
71450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
71451
      try {
-
 
71452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
71453
      } catch (org.apache.thrift.TException te) {
-
 
71454
        throw new java.io.IOException(te);
-
 
71455
      }
-
 
71456
    }
-
 
71457
 
-
 
71458
  }
-
 
71459
 
70577
  public static class saveBluedartSettlements_args implements org.apache.thrift.TBase<saveBluedartSettlements_args, saveBluedartSettlements_args._Fields>, java.io.Serializable, Cloneable   {
71460
  public static class saveBluedartSettlements_args implements org.apache.thrift.TBase<saveBluedartSettlements_args, saveBluedartSettlements_args._Fields>, java.io.Serializable, Cloneable   {
70578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveBluedartSettlements_args");
71461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveBluedartSettlements_args");
70579
 
71462
 
70580
    private static final org.apache.thrift.protocol.TField MAP_AWBAND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("mapAWBAndAmount", org.apache.thrift.protocol.TType.MAP, (short)1);
71463
    private static final org.apache.thrift.protocol.TField MAP_AWBAND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("mapAWBAndAmount", org.apache.thrift.protocol.TType.MAP, (short)1);
70581
 
71464
 
Line 70827... Line 71710...
70827
        }
71710
        }
70828
        switch (field.id) {
71711
        switch (field.id) {
70829
          case 1: // MAP_AWBAND_AMOUNT
71712
          case 1: // MAP_AWBAND_AMOUNT
70830
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
71713
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
70831
              {
71714
              {
70832
                org.apache.thrift.protocol.TMap _map173 = iprot.readMapBegin();
71715
                org.apache.thrift.protocol.TMap _map177 = iprot.readMapBegin();
70833
                this.mapAWBAndAmount = new HashMap<Long,Double>(2*_map173.size);
71716
                this.mapAWBAndAmount = new HashMap<Long,Double>(2*_map177.size);
70834
                for (int _i174 = 0; _i174 < _map173.size; ++_i174)
71717
                for (int _i178 = 0; _i178 < _map177.size; ++_i178)
70835
                {
71718
                {
70836
                  long _key175; // required
71719
                  long _key179; // required
70837
                  double _val176; // required
71720
                  double _val180; // required
70838
                  _key175 = iprot.readI64();
71721
                  _key179 = iprot.readI64();
70839
                  _val176 = iprot.readDouble();
71722
                  _val180 = iprot.readDouble();
70840
                  this.mapAWBAndAmount.put(_key175, _val176);
71723
                  this.mapAWBAndAmount.put(_key179, _val180);
70841
                }
71724
                }
70842
                iprot.readMapEnd();
71725
                iprot.readMapEnd();
70843
              }
71726
              }
70844
            } else { 
71727
            } else { 
70845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
71728
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 70860... Line 71743...
70860
      oprot.writeStructBegin(STRUCT_DESC);
71743
      oprot.writeStructBegin(STRUCT_DESC);
70861
      if (this.mapAWBAndAmount != null) {
71744
      if (this.mapAWBAndAmount != null) {
70862
        oprot.writeFieldBegin(MAP_AWBAND_AMOUNT_FIELD_DESC);
71745
        oprot.writeFieldBegin(MAP_AWBAND_AMOUNT_FIELD_DESC);
70863
        {
71746
        {
70864
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.mapAWBAndAmount.size()));
71747
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.mapAWBAndAmount.size()));
70865
          for (Map.Entry<Long, Double> _iter177 : this.mapAWBAndAmount.entrySet())
71748
          for (Map.Entry<Long, Double> _iter181 : this.mapAWBAndAmount.entrySet())
70866
          {
71749
          {
70867
            oprot.writeI64(_iter177.getKey());
71750
            oprot.writeI64(_iter181.getKey());
70868
            oprot.writeDouble(_iter177.getValue());
71751
            oprot.writeDouble(_iter181.getValue());
70869
          }
71752
          }
70870
          oprot.writeMapEnd();
71753
          oprot.writeMapEnd();
70871
        }
71754
        }
70872
        oprot.writeFieldEnd();
71755
        oprot.writeFieldEnd();
70873
      }
71756
      }
Line 74327... Line 75210...
74327
        }
75210
        }
74328
        switch (field.id) {
75211
        switch (field.id) {
74329
          case 0: // SUCCESS
75212
          case 0: // SUCCESS
74330
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
75213
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
74331
              {
75214
              {
74332
                org.apache.thrift.protocol.TMap _map178 = iprot.readMapBegin();
75215
                org.apache.thrift.protocol.TMap _map182 = iprot.readMapBegin();
74333
                this.success = new HashMap<Long,String>(2*_map178.size);
75216
                this.success = new HashMap<Long,String>(2*_map182.size);
74334
                for (int _i179 = 0; _i179 < _map178.size; ++_i179)
75217
                for (int _i183 = 0; _i183 < _map182.size; ++_i183)
74335
                {
75218
                {
74336
                  long _key180; // required
75219
                  long _key184; // required
74337
                  String _val181; // required
75220
                  String _val185; // required
74338
                  _key180 = iprot.readI64();
75221
                  _key184 = iprot.readI64();
74339
                  _val181 = iprot.readString();
75222
                  _val185 = iprot.readString();
74340
                  this.success.put(_key180, _val181);
75223
                  this.success.put(_key184, _val185);
74341
                }
75224
                }
74342
                iprot.readMapEnd();
75225
                iprot.readMapEnd();
74343
              }
75226
              }
74344
            } else { 
75227
            } else { 
74345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
75228
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 74367... Line 75250...
74367
 
75250
 
74368
      if (this.isSetSuccess()) {
75251
      if (this.isSetSuccess()) {
74369
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
75252
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
74370
        {
75253
        {
74371
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
75254
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
74372
          for (Map.Entry<Long, String> _iter182 : this.success.entrySet())
75255
          for (Map.Entry<Long, String> _iter186 : this.success.entrySet())
74373
          {
75256
          {
74374
            oprot.writeI64(_iter182.getKey());
75257
            oprot.writeI64(_iter186.getKey());
74375
            oprot.writeString(_iter182.getValue());
75258
            oprot.writeString(_iter186.getValue());
74376
          }
75259
          }
74377
          oprot.writeMapEnd();
75260
          oprot.writeMapEnd();
74378
        }
75261
        }
74379
        oprot.writeFieldEnd();
75262
        oprot.writeFieldEnd();
74380
      } else if (this.isSetEx()) {
75263
      } else if (this.isSetEx()) {