Subversion Repositories SmartDukaan

Rev

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

Rev 4303 Rev 4324
Line 544... Line 544...
544
     * @param reason
544
     * @param reason
545
     */
545
     */
546
    public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;
546
    public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;
547
 
547
 
548
    /**
548
    /**
-
 
549
     * Updates shipment address of an order. Delivery and shipping date estimates
-
 
550
     * etc. are also updated here.
-
 
551
     * 
-
 
552
     * Throws TransactionServiceException in case address change is not
-
 
553
     * possible due to certain reasons such as new pincode in address is
-
 
554
     * not serviceable etc.
-
 
555
     * 
-
 
556
     * @param orderId
-
 
557
     * @param addressId
-
 
558
     */
-
 
559
    public void updateShipmentAddress(long orderId, long addressId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
560
 
-
 
561
    /**
549
     * Marks the orders as ACCEPTED for the given itemId and inventory. It also updates the accepted timestamp. If the
562
     * Marks the orders as ACCEPTED for the given itemId and inventory. It also updates the accepted timestamp. If the
550
     * given order is not a COD order, it also captures the payment if the same has not been captured.
563
     * given order is not a COD order, it also captures the payment if the same has not been captured.
551
     * 
564
     * 
552
     * @param itemId
565
     * @param itemId
553
     * @param inventory
566
     * @param inventory
Line 690... Line 703...
690
 
703
 
691
    public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException;
704
    public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException;
692
 
705
 
693
    public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundTransaction_call> resultHandler) throws org.apache.thrift.TException;
706
    public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundTransaction_call> resultHandler) throws org.apache.thrift.TException;
694
 
707
 
-
 
708
    public void updateShipmentAddress(long orderId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateShipmentAddress_call> resultHandler) throws org.apache.thrift.TException;
-
 
709
 
695
    public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException;
710
    public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException;
696
 
711
 
697
    public void markOrdersAsPORaised(long vendorId, long itemId, long quantity, long estimate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException;
712
    public void markOrdersAsPORaised(long vendorId, long itemId, long quantity, long estimate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException;
698
 
713
 
699
    public void markOrdersAsReversalInitiated(long vendorId, long itemId, long quantity, long estimate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsReversalInitiated_call> resultHandler) throws org.apache.thrift.TException;
714
    public void markOrdersAsReversalInitiated(long vendorId, long itemId, long quantity, long estimate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsReversalInitiated_call> resultHandler) throws org.apache.thrift.TException;
Line 2372... Line 2387...
2372
        throw result.ex;
2387
        throw result.ex;
2373
      }
2388
      }
2374
      return;
2389
      return;
2375
    }
2390
    }
2376
 
2391
 
-
 
2392
    public void updateShipmentAddress(long orderId, long addressId) throws TransactionServiceException, org.apache.thrift.TException
-
 
2393
    {
-
 
2394
      send_updateShipmentAddress(orderId, addressId);
-
 
2395
      recv_updateShipmentAddress();
-
 
2396
    }
-
 
2397
 
-
 
2398
    public void send_updateShipmentAddress(long orderId, long addressId) throws org.apache.thrift.TException
-
 
2399
    {
-
 
2400
      updateShipmentAddress_args args = new updateShipmentAddress_args();
-
 
2401
      args.setOrderId(orderId);
-
 
2402
      args.setAddressId(addressId);
-
 
2403
      sendBase("updateShipmentAddress", args);
-
 
2404
    }
-
 
2405
 
-
 
2406
    public void recv_updateShipmentAddress() throws TransactionServiceException, org.apache.thrift.TException
-
 
2407
    {
-
 
2408
      updateShipmentAddress_result result = new updateShipmentAddress_result();
-
 
2409
      receiveBase(result, "updateShipmentAddress");
-
 
2410
      if (result.ex != null) {
-
 
2411
        throw result.ex;
-
 
2412
      }
-
 
2413
      return;
-
 
2414
    }
-
 
2415
 
2377
    public boolean acceptOrdersForItemId(long itemId, long inventory) throws TransactionServiceException, org.apache.thrift.TException
2416
    public boolean acceptOrdersForItemId(long itemId, long inventory) throws TransactionServiceException, org.apache.thrift.TException
2378
    {
2417
    {
2379
      send_acceptOrdersForItemId(itemId, inventory);
2418
      send_acceptOrdersForItemId(itemId, inventory);
2380
      return recv_acceptOrdersForItemId();
2419
      return recv_acceptOrdersForItemId();
2381
    }
2420
    }
Line 4723... Line 4762...
4723
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4762
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4724
        (new Client(prot)).recv_refundTransaction();
4763
        (new Client(prot)).recv_refundTransaction();
4725
      }
4764
      }
4726
    }
4765
    }
4727
 
4766
 
-
 
4767
    public void updateShipmentAddress(long orderId, long addressId, org.apache.thrift.async.AsyncMethodCallback<updateShipmentAddress_call> resultHandler) throws org.apache.thrift.TException {
-
 
4768
      checkReady();
-
 
4769
      updateShipmentAddress_call method_call = new updateShipmentAddress_call(orderId, addressId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4770
      this.___currentMethod = method_call;
-
 
4771
      ___manager.call(method_call);
-
 
4772
    }
-
 
4773
 
-
 
4774
    public static class updateShipmentAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4775
      private long orderId;
-
 
4776
      private long addressId;
-
 
4777
      public updateShipmentAddress_call(long orderId, long addressId, org.apache.thrift.async.AsyncMethodCallback<updateShipmentAddress_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 {
-
 
4778
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4779
        this.orderId = orderId;
-
 
4780
        this.addressId = addressId;
-
 
4781
      }
-
 
4782
 
-
 
4783
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4784
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateShipmentAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4785
        updateShipmentAddress_args args = new updateShipmentAddress_args();
-
 
4786
        args.setOrderId(orderId);
-
 
4787
        args.setAddressId(addressId);
-
 
4788
        args.write(prot);
-
 
4789
        prot.writeMessageEnd();
-
 
4790
      }
-
 
4791
 
-
 
4792
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4793
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4794
          throw new IllegalStateException("Method call not finished!");
-
 
4795
        }
-
 
4796
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4797
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4798
        (new Client(prot)).recv_updateShipmentAddress();
-
 
4799
      }
-
 
4800
    }
-
 
4801
 
4728
    public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException {
4802
    public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException {
4729
      checkReady();
4803
      checkReady();
4730
      acceptOrdersForItemId_call method_call = new acceptOrdersForItemId_call(itemId, inventory, resultHandler, this, ___protocolFactory, ___transport);
4804
      acceptOrdersForItemId_call method_call = new acceptOrdersForItemId_call(itemId, inventory, resultHandler, this, ___protocolFactory, ___transport);
4731
      this.___currentMethod = method_call;
4805
      this.___currentMethod = method_call;
4732
      ___manager.call(method_call);
4806
      ___manager.call(method_call);
Line 4958... Line 5032...
4958
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
5032
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
4959
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
5033
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
4960
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
5034
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
4961
      processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());
5035
      processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());
4962
      processMap.put("refundTransaction", new refundTransaction());
5036
      processMap.put("refundTransaction", new refundTransaction());
-
 
5037
      processMap.put("updateShipmentAddress", new updateShipmentAddress());
4963
      processMap.put("acceptOrdersForItemId", new acceptOrdersForItemId());
5038
      processMap.put("acceptOrdersForItemId", new acceptOrdersForItemId());
4964
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
5039
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
4965
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
5040
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
4966
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
5041
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
4967
      return processMap;
5042
      return processMap;
Line 6215... Line 6290...
6215
        }
6290
        }
6216
        return result;
6291
        return result;
6217
      }
6292
      }
6218
    }
6293
    }
6219
 
6294
 
-
 
6295
    private static class updateShipmentAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateShipmentAddress_args> {
-
 
6296
      public updateShipmentAddress() {
-
 
6297
        super("updateShipmentAddress");
-
 
6298
      }
-
 
6299
 
-
 
6300
      protected updateShipmentAddress_args getEmptyArgsInstance() {
-
 
6301
        return new updateShipmentAddress_args();
-
 
6302
      }
-
 
6303
 
-
 
6304
      protected updateShipmentAddress_result getResult(I iface, updateShipmentAddress_args args) throws org.apache.thrift.TException {
-
 
6305
        updateShipmentAddress_result result = new updateShipmentAddress_result();
-
 
6306
        try {
-
 
6307
          iface.updateShipmentAddress(args.orderId, args.addressId);
-
 
6308
        } catch (TransactionServiceException ex) {
-
 
6309
          result.ex = ex;
-
 
6310
        }
-
 
6311
        return result;
-
 
6312
      }
-
 
6313
    }
-
 
6314
 
6220
    private static class acceptOrdersForItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrdersForItemId_args> {
6315
    private static class acceptOrdersForItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrdersForItemId_args> {
6221
      public acceptOrdersForItemId() {
6316
      public acceptOrdersForItemId() {
6222
        super("acceptOrdersForItemId");
6317
        super("acceptOrdersForItemId");
6223
      }
6318
      }
6224
 
6319
 
Line 53803... Line 53898...
53803
      }
53898
      }
53804
    }
53899
    }
53805
 
53900
 
53806
  }
53901
  }
53807
 
53902
 
-
 
53903
  public static class updateShipmentAddress_args implements org.apache.thrift.TBase<updateShipmentAddress_args, updateShipmentAddress_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateShipmentAddress_args");
-
 
53905
 
-
 
53906
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
53907
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
53908
 
-
 
53909
    private long orderId; // required
-
 
53910
    private long addressId; // required
-
 
53911
 
-
 
53912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53914
      ORDER_ID((short)1, "orderId"),
-
 
53915
      ADDRESS_ID((short)2, "addressId");
-
 
53916
 
-
 
53917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53918
 
-
 
53919
      static {
-
 
53920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53921
          byName.put(field.getFieldName(), field);
-
 
53922
        }
-
 
53923
      }
-
 
53924
 
-
 
53925
      /**
-
 
53926
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53927
       */
-
 
53928
      public static _Fields findByThriftId(int fieldId) {
-
 
53929
        switch(fieldId) {
-
 
53930
          case 1: // ORDER_ID
-
 
53931
            return ORDER_ID;
-
 
53932
          case 2: // ADDRESS_ID
-
 
53933
            return ADDRESS_ID;
-
 
53934
          default:
-
 
53935
            return null;
-
 
53936
        }
-
 
53937
      }
-
 
53938
 
-
 
53939
      /**
-
 
53940
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53941
       * if it is not found.
-
 
53942
       */
-
 
53943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53944
        _Fields fields = findByThriftId(fieldId);
-
 
53945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53946
        return fields;
-
 
53947
      }
-
 
53948
 
-
 
53949
      /**
-
 
53950
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53951
       */
-
 
53952
      public static _Fields findByName(String name) {
-
 
53953
        return byName.get(name);
-
 
53954
      }
-
 
53955
 
-
 
53956
      private final short _thriftId;
-
 
53957
      private final String _fieldName;
-
 
53958
 
-
 
53959
      _Fields(short thriftId, String fieldName) {
-
 
53960
        _thriftId = thriftId;
-
 
53961
        _fieldName = fieldName;
-
 
53962
      }
-
 
53963
 
-
 
53964
      public short getThriftFieldId() {
-
 
53965
        return _thriftId;
-
 
53966
      }
-
 
53967
 
-
 
53968
      public String getFieldName() {
-
 
53969
        return _fieldName;
-
 
53970
      }
-
 
53971
    }
-
 
53972
 
-
 
53973
    // isset id assignments
-
 
53974
    private static final int __ORDERID_ISSET_ID = 0;
-
 
53975
    private static final int __ADDRESSID_ISSET_ID = 1;
-
 
53976
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
53977
 
-
 
53978
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53979
    static {
-
 
53980
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53981
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53982
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53983
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53984
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53985
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53986
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateShipmentAddress_args.class, metaDataMap);
-
 
53987
    }
-
 
53988
 
-
 
53989
    public updateShipmentAddress_args() {
-
 
53990
    }
-
 
53991
 
-
 
53992
    public updateShipmentAddress_args(
-
 
53993
      long orderId,
-
 
53994
      long addressId)
-
 
53995
    {
-
 
53996
      this();
-
 
53997
      this.orderId = orderId;
-
 
53998
      setOrderIdIsSet(true);
-
 
53999
      this.addressId = addressId;
-
 
54000
      setAddressIdIsSet(true);
-
 
54001
    }
-
 
54002
 
-
 
54003
    /**
-
 
54004
     * Performs a deep copy on <i>other</i>.
-
 
54005
     */
-
 
54006
    public updateShipmentAddress_args(updateShipmentAddress_args other) {
-
 
54007
      __isset_bit_vector.clear();
-
 
54008
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
54009
      this.orderId = other.orderId;
-
 
54010
      this.addressId = other.addressId;
-
 
54011
    }
-
 
54012
 
-
 
54013
    public updateShipmentAddress_args deepCopy() {
-
 
54014
      return new updateShipmentAddress_args(this);
-
 
54015
    }
-
 
54016
 
-
 
54017
    @Override
-
 
54018
    public void clear() {
-
 
54019
      setOrderIdIsSet(false);
-
 
54020
      this.orderId = 0;
-
 
54021
      setAddressIdIsSet(false);
-
 
54022
      this.addressId = 0;
-
 
54023
    }
-
 
54024
 
-
 
54025
    public long getOrderId() {
-
 
54026
      return this.orderId;
-
 
54027
    }
-
 
54028
 
-
 
54029
    public void setOrderId(long orderId) {
-
 
54030
      this.orderId = orderId;
-
 
54031
      setOrderIdIsSet(true);
-
 
54032
    }
-
 
54033
 
-
 
54034
    public void unsetOrderId() {
-
 
54035
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
54036
    }
-
 
54037
 
-
 
54038
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
54039
    public boolean isSetOrderId() {
-
 
54040
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
54041
    }
-
 
54042
 
-
 
54043
    public void setOrderIdIsSet(boolean value) {
-
 
54044
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
54045
    }
-
 
54046
 
-
 
54047
    public long getAddressId() {
-
 
54048
      return this.addressId;
-
 
54049
    }
-
 
54050
 
-
 
54051
    public void setAddressId(long addressId) {
-
 
54052
      this.addressId = addressId;
-
 
54053
      setAddressIdIsSet(true);
-
 
54054
    }
-
 
54055
 
-
 
54056
    public void unsetAddressId() {
-
 
54057
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
-
 
54058
    }
-
 
54059
 
-
 
54060
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
-
 
54061
    public boolean isSetAddressId() {
-
 
54062
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
-
 
54063
    }
-
 
54064
 
-
 
54065
    public void setAddressIdIsSet(boolean value) {
-
 
54066
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
-
 
54067
    }
-
 
54068
 
-
 
54069
    public void setFieldValue(_Fields field, Object value) {
-
 
54070
      switch (field) {
-
 
54071
      case ORDER_ID:
-
 
54072
        if (value == null) {
-
 
54073
          unsetOrderId();
-
 
54074
        } else {
-
 
54075
          setOrderId((Long)value);
-
 
54076
        }
-
 
54077
        break;
-
 
54078
 
-
 
54079
      case ADDRESS_ID:
-
 
54080
        if (value == null) {
-
 
54081
          unsetAddressId();
-
 
54082
        } else {
-
 
54083
          setAddressId((Long)value);
-
 
54084
        }
-
 
54085
        break;
-
 
54086
 
-
 
54087
      }
-
 
54088
    }
-
 
54089
 
-
 
54090
    public Object getFieldValue(_Fields field) {
-
 
54091
      switch (field) {
-
 
54092
      case ORDER_ID:
-
 
54093
        return Long.valueOf(getOrderId());
-
 
54094
 
-
 
54095
      case ADDRESS_ID:
-
 
54096
        return Long.valueOf(getAddressId());
-
 
54097
 
-
 
54098
      }
-
 
54099
      throw new IllegalStateException();
-
 
54100
    }
-
 
54101
 
-
 
54102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54103
    public boolean isSet(_Fields field) {
-
 
54104
      if (field == null) {
-
 
54105
        throw new IllegalArgumentException();
-
 
54106
      }
-
 
54107
 
-
 
54108
      switch (field) {
-
 
54109
      case ORDER_ID:
-
 
54110
        return isSetOrderId();
-
 
54111
      case ADDRESS_ID:
-
 
54112
        return isSetAddressId();
-
 
54113
      }
-
 
54114
      throw new IllegalStateException();
-
 
54115
    }
-
 
54116
 
-
 
54117
    @Override
-
 
54118
    public boolean equals(Object that) {
-
 
54119
      if (that == null)
-
 
54120
        return false;
-
 
54121
      if (that instanceof updateShipmentAddress_args)
-
 
54122
        return this.equals((updateShipmentAddress_args)that);
-
 
54123
      return false;
-
 
54124
    }
-
 
54125
 
-
 
54126
    public boolean equals(updateShipmentAddress_args that) {
-
 
54127
      if (that == null)
-
 
54128
        return false;
-
 
54129
 
-
 
54130
      boolean this_present_orderId = true;
-
 
54131
      boolean that_present_orderId = true;
-
 
54132
      if (this_present_orderId || that_present_orderId) {
-
 
54133
        if (!(this_present_orderId && that_present_orderId))
-
 
54134
          return false;
-
 
54135
        if (this.orderId != that.orderId)
-
 
54136
          return false;
-
 
54137
      }
-
 
54138
 
-
 
54139
      boolean this_present_addressId = true;
-
 
54140
      boolean that_present_addressId = true;
-
 
54141
      if (this_present_addressId || that_present_addressId) {
-
 
54142
        if (!(this_present_addressId && that_present_addressId))
-
 
54143
          return false;
-
 
54144
        if (this.addressId != that.addressId)
-
 
54145
          return false;
-
 
54146
      }
-
 
54147
 
-
 
54148
      return true;
-
 
54149
    }
-
 
54150
 
-
 
54151
    @Override
-
 
54152
    public int hashCode() {
-
 
54153
      return 0;
-
 
54154
    }
-
 
54155
 
-
 
54156
    public int compareTo(updateShipmentAddress_args other) {
-
 
54157
      if (!getClass().equals(other.getClass())) {
-
 
54158
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54159
      }
-
 
54160
 
-
 
54161
      int lastComparison = 0;
-
 
54162
      updateShipmentAddress_args typedOther = (updateShipmentAddress_args)other;
-
 
54163
 
-
 
54164
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
54165
      if (lastComparison != 0) {
-
 
54166
        return lastComparison;
-
 
54167
      }
-
 
54168
      if (isSetOrderId()) {
-
 
54169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
54170
        if (lastComparison != 0) {
-
 
54171
          return lastComparison;
-
 
54172
        }
-
 
54173
      }
-
 
54174
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
-
 
54175
      if (lastComparison != 0) {
-
 
54176
        return lastComparison;
-
 
54177
      }
-
 
54178
      if (isSetAddressId()) {
-
 
54179
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
-
 
54180
        if (lastComparison != 0) {
-
 
54181
          return lastComparison;
-
 
54182
        }
-
 
54183
      }
-
 
54184
      return 0;
-
 
54185
    }
-
 
54186
 
-
 
54187
    public _Fields fieldForId(int fieldId) {
-
 
54188
      return _Fields.findByThriftId(fieldId);
-
 
54189
    }
-
 
54190
 
-
 
54191
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54192
      org.apache.thrift.protocol.TField field;
-
 
54193
      iprot.readStructBegin();
-
 
54194
      while (true)
-
 
54195
      {
-
 
54196
        field = iprot.readFieldBegin();
-
 
54197
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54198
          break;
-
 
54199
        }
-
 
54200
        switch (field.id) {
-
 
54201
          case 1: // ORDER_ID
-
 
54202
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
54203
              this.orderId = iprot.readI64();
-
 
54204
              setOrderIdIsSet(true);
-
 
54205
            } else { 
-
 
54206
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54207
            }
-
 
54208
            break;
-
 
54209
          case 2: // ADDRESS_ID
-
 
54210
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
54211
              this.addressId = iprot.readI64();
-
 
54212
              setAddressIdIsSet(true);
-
 
54213
            } else { 
-
 
54214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54215
            }
-
 
54216
            break;
-
 
54217
          default:
-
 
54218
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54219
        }
-
 
54220
        iprot.readFieldEnd();
-
 
54221
      }
-
 
54222
      iprot.readStructEnd();
-
 
54223
      validate();
-
 
54224
    }
-
 
54225
 
-
 
54226
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54227
      validate();
-
 
54228
 
-
 
54229
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54230
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
54231
      oprot.writeI64(this.orderId);
-
 
54232
      oprot.writeFieldEnd();
-
 
54233
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
-
 
54234
      oprot.writeI64(this.addressId);
-
 
54235
      oprot.writeFieldEnd();
-
 
54236
      oprot.writeFieldStop();
-
 
54237
      oprot.writeStructEnd();
-
 
54238
    }
-
 
54239
 
-
 
54240
    @Override
-
 
54241
    public String toString() {
-
 
54242
      StringBuilder sb = new StringBuilder("updateShipmentAddress_args(");
-
 
54243
      boolean first = true;
-
 
54244
 
-
 
54245
      sb.append("orderId:");
-
 
54246
      sb.append(this.orderId);
-
 
54247
      first = false;
-
 
54248
      if (!first) sb.append(", ");
-
 
54249
      sb.append("addressId:");
-
 
54250
      sb.append(this.addressId);
-
 
54251
      first = false;
-
 
54252
      sb.append(")");
-
 
54253
      return sb.toString();
-
 
54254
    }
-
 
54255
 
-
 
54256
    public void validate() throws org.apache.thrift.TException {
-
 
54257
      // check for required fields
-
 
54258
    }
-
 
54259
 
-
 
54260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54261
      try {
-
 
54262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54263
      } catch (org.apache.thrift.TException te) {
-
 
54264
        throw new java.io.IOException(te);
-
 
54265
      }
-
 
54266
    }
-
 
54267
 
-
 
54268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54269
      try {
-
 
54270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54271
      } catch (org.apache.thrift.TException te) {
-
 
54272
        throw new java.io.IOException(te);
-
 
54273
      }
-
 
54274
    }
-
 
54275
 
-
 
54276
  }
-
 
54277
 
-
 
54278
  public static class updateShipmentAddress_result implements org.apache.thrift.TBase<updateShipmentAddress_result, updateShipmentAddress_result._Fields>, java.io.Serializable, Cloneable   {
-
 
54279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateShipmentAddress_result");
-
 
54280
 
-
 
54281
    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);
-
 
54282
 
-
 
54283
    private TransactionServiceException ex; // required
-
 
54284
 
-
 
54285
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54286
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54287
      EX((short)1, "ex");
-
 
54288
 
-
 
54289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54290
 
-
 
54291
      static {
-
 
54292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54293
          byName.put(field.getFieldName(), field);
-
 
54294
        }
-
 
54295
      }
-
 
54296
 
-
 
54297
      /**
-
 
54298
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54299
       */
-
 
54300
      public static _Fields findByThriftId(int fieldId) {
-
 
54301
        switch(fieldId) {
-
 
54302
          case 1: // EX
-
 
54303
            return EX;
-
 
54304
          default:
-
 
54305
            return null;
-
 
54306
        }
-
 
54307
      }
-
 
54308
 
-
 
54309
      /**
-
 
54310
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54311
       * if it is not found.
-
 
54312
       */
-
 
54313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54314
        _Fields fields = findByThriftId(fieldId);
-
 
54315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54316
        return fields;
-
 
54317
      }
-
 
54318
 
-
 
54319
      /**
-
 
54320
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54321
       */
-
 
54322
      public static _Fields findByName(String name) {
-
 
54323
        return byName.get(name);
-
 
54324
      }
-
 
54325
 
-
 
54326
      private final short _thriftId;
-
 
54327
      private final String _fieldName;
-
 
54328
 
-
 
54329
      _Fields(short thriftId, String fieldName) {
-
 
54330
        _thriftId = thriftId;
-
 
54331
        _fieldName = fieldName;
-
 
54332
      }
-
 
54333
 
-
 
54334
      public short getThriftFieldId() {
-
 
54335
        return _thriftId;
-
 
54336
      }
-
 
54337
 
-
 
54338
      public String getFieldName() {
-
 
54339
        return _fieldName;
-
 
54340
      }
-
 
54341
    }
-
 
54342
 
-
 
54343
    // isset id assignments
-
 
54344
 
-
 
54345
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54346
    static {
-
 
54347
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54348
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54349
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
54350
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54351
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateShipmentAddress_result.class, metaDataMap);
-
 
54352
    }
-
 
54353
 
-
 
54354
    public updateShipmentAddress_result() {
-
 
54355
    }
-
 
54356
 
-
 
54357
    public updateShipmentAddress_result(
-
 
54358
      TransactionServiceException ex)
-
 
54359
    {
-
 
54360
      this();
-
 
54361
      this.ex = ex;
-
 
54362
    }
-
 
54363
 
-
 
54364
    /**
-
 
54365
     * Performs a deep copy on <i>other</i>.
-
 
54366
     */
-
 
54367
    public updateShipmentAddress_result(updateShipmentAddress_result other) {
-
 
54368
      if (other.isSetEx()) {
-
 
54369
        this.ex = new TransactionServiceException(other.ex);
-
 
54370
      }
-
 
54371
    }
-
 
54372
 
-
 
54373
    public updateShipmentAddress_result deepCopy() {
-
 
54374
      return new updateShipmentAddress_result(this);
-
 
54375
    }
-
 
54376
 
-
 
54377
    @Override
-
 
54378
    public void clear() {
-
 
54379
      this.ex = null;
-
 
54380
    }
-
 
54381
 
-
 
54382
    public TransactionServiceException getEx() {
-
 
54383
      return this.ex;
-
 
54384
    }
-
 
54385
 
-
 
54386
    public void setEx(TransactionServiceException ex) {
-
 
54387
      this.ex = ex;
-
 
54388
    }
-
 
54389
 
-
 
54390
    public void unsetEx() {
-
 
54391
      this.ex = null;
-
 
54392
    }
-
 
54393
 
-
 
54394
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
54395
    public boolean isSetEx() {
-
 
54396
      return this.ex != null;
-
 
54397
    }
-
 
54398
 
-
 
54399
    public void setExIsSet(boolean value) {
-
 
54400
      if (!value) {
-
 
54401
        this.ex = null;
-
 
54402
      }
-
 
54403
    }
-
 
54404
 
-
 
54405
    public void setFieldValue(_Fields field, Object value) {
-
 
54406
      switch (field) {
-
 
54407
      case EX:
-
 
54408
        if (value == null) {
-
 
54409
          unsetEx();
-
 
54410
        } else {
-
 
54411
          setEx((TransactionServiceException)value);
-
 
54412
        }
-
 
54413
        break;
-
 
54414
 
-
 
54415
      }
-
 
54416
    }
-
 
54417
 
-
 
54418
    public Object getFieldValue(_Fields field) {
-
 
54419
      switch (field) {
-
 
54420
      case EX:
-
 
54421
        return getEx();
-
 
54422
 
-
 
54423
      }
-
 
54424
      throw new IllegalStateException();
-
 
54425
    }
-
 
54426
 
-
 
54427
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54428
    public boolean isSet(_Fields field) {
-
 
54429
      if (field == null) {
-
 
54430
        throw new IllegalArgumentException();
-
 
54431
      }
-
 
54432
 
-
 
54433
      switch (field) {
-
 
54434
      case EX:
-
 
54435
        return isSetEx();
-
 
54436
      }
-
 
54437
      throw new IllegalStateException();
-
 
54438
    }
-
 
54439
 
-
 
54440
    @Override
-
 
54441
    public boolean equals(Object that) {
-
 
54442
      if (that == null)
-
 
54443
        return false;
-
 
54444
      if (that instanceof updateShipmentAddress_result)
-
 
54445
        return this.equals((updateShipmentAddress_result)that);
-
 
54446
      return false;
-
 
54447
    }
-
 
54448
 
-
 
54449
    public boolean equals(updateShipmentAddress_result that) {
-
 
54450
      if (that == null)
-
 
54451
        return false;
-
 
54452
 
-
 
54453
      boolean this_present_ex = true && this.isSetEx();
-
 
54454
      boolean that_present_ex = true && that.isSetEx();
-
 
54455
      if (this_present_ex || that_present_ex) {
-
 
54456
        if (!(this_present_ex && that_present_ex))
-
 
54457
          return false;
-
 
54458
        if (!this.ex.equals(that.ex))
-
 
54459
          return false;
-
 
54460
      }
-
 
54461
 
-
 
54462
      return true;
-
 
54463
    }
-
 
54464
 
-
 
54465
    @Override
-
 
54466
    public int hashCode() {
-
 
54467
      return 0;
-
 
54468
    }
-
 
54469
 
-
 
54470
    public int compareTo(updateShipmentAddress_result other) {
-
 
54471
      if (!getClass().equals(other.getClass())) {
-
 
54472
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54473
      }
-
 
54474
 
-
 
54475
      int lastComparison = 0;
-
 
54476
      updateShipmentAddress_result typedOther = (updateShipmentAddress_result)other;
-
 
54477
 
-
 
54478
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
54479
      if (lastComparison != 0) {
-
 
54480
        return lastComparison;
-
 
54481
      }
-
 
54482
      if (isSetEx()) {
-
 
54483
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
54484
        if (lastComparison != 0) {
-
 
54485
          return lastComparison;
-
 
54486
        }
-
 
54487
      }
-
 
54488
      return 0;
-
 
54489
    }
-
 
54490
 
-
 
54491
    public _Fields fieldForId(int fieldId) {
-
 
54492
      return _Fields.findByThriftId(fieldId);
-
 
54493
    }
-
 
54494
 
-
 
54495
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54496
      org.apache.thrift.protocol.TField field;
-
 
54497
      iprot.readStructBegin();
-
 
54498
      while (true)
-
 
54499
      {
-
 
54500
        field = iprot.readFieldBegin();
-
 
54501
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54502
          break;
-
 
54503
        }
-
 
54504
        switch (field.id) {
-
 
54505
          case 1: // EX
-
 
54506
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
54507
              this.ex = new TransactionServiceException();
-
 
54508
              this.ex.read(iprot);
-
 
54509
            } else { 
-
 
54510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54511
            }
-
 
54512
            break;
-
 
54513
          default:
-
 
54514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54515
        }
-
 
54516
        iprot.readFieldEnd();
-
 
54517
      }
-
 
54518
      iprot.readStructEnd();
-
 
54519
      validate();
-
 
54520
    }
-
 
54521
 
-
 
54522
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54523
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54524
 
-
 
54525
      if (this.isSetEx()) {
-
 
54526
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
54527
        this.ex.write(oprot);
-
 
54528
        oprot.writeFieldEnd();
-
 
54529
      }
-
 
54530
      oprot.writeFieldStop();
-
 
54531
      oprot.writeStructEnd();
-
 
54532
    }
-
 
54533
 
-
 
54534
    @Override
-
 
54535
    public String toString() {
-
 
54536
      StringBuilder sb = new StringBuilder("updateShipmentAddress_result(");
-
 
54537
      boolean first = true;
-
 
54538
 
-
 
54539
      sb.append("ex:");
-
 
54540
      if (this.ex == null) {
-
 
54541
        sb.append("null");
-
 
54542
      } else {
-
 
54543
        sb.append(this.ex);
-
 
54544
      }
-
 
54545
      first = false;
-
 
54546
      sb.append(")");
-
 
54547
      return sb.toString();
-
 
54548
    }
-
 
54549
 
-
 
54550
    public void validate() throws org.apache.thrift.TException {
-
 
54551
      // check for required fields
-
 
54552
    }
-
 
54553
 
-
 
54554
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54555
      try {
-
 
54556
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54557
      } catch (org.apache.thrift.TException te) {
-
 
54558
        throw new java.io.IOException(te);
-
 
54559
      }
-
 
54560
    }
-
 
54561
 
-
 
54562
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54563
      try {
-
 
54564
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54565
      } catch (org.apache.thrift.TException te) {
-
 
54566
        throw new java.io.IOException(te);
-
 
54567
      }
-
 
54568
    }
-
 
54569
 
-
 
54570
  }
-
 
54571
 
53808
  public static class acceptOrdersForItemId_args implements org.apache.thrift.TBase<acceptOrdersForItemId_args, acceptOrdersForItemId_args._Fields>, java.io.Serializable, Cloneable   {
54572
  public static class acceptOrdersForItemId_args implements org.apache.thrift.TBase<acceptOrdersForItemId_args, acceptOrdersForItemId_args._Fields>, java.io.Serializable, Cloneable   {
53809
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrdersForItemId_args");
54573
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrdersForItemId_args");
53810
 
54574
 
53811
    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);
54575
    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);
53812
    private static final org.apache.thrift.protocol.TField INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("inventory", org.apache.thrift.protocol.TType.I64, (short)2);
54576
    private static final org.apache.thrift.protocol.TField INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("inventory", org.apache.thrift.protocol.TType.I64, (short)2);
Line 55092... Line 55856...
55092
      }
55856
      }
55093
    }
55857
    }
55094
 
55858
 
55095
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55859
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55096
      try {
55860
      try {
-
 
55861
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
55862
        __isset_bit_vector = new BitSet(1);
55097
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55863
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55098
      } catch (org.apache.thrift.TException te) {
55864
      } catch (org.apache.thrift.TException te) {
55099
        throw new java.io.IOException(te);
55865
        throw new java.io.IOException(te);
55100
      }
55866
      }
55101
    }
55867
    }