Subversion Repositories SmartDukaan

Rev

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

Rev 4484 Rev 4488
Line 312... Line 312...
312
     * @param isAuthorized
312
     * @param isAuthorized
313
     */
313
     */
314
    public boolean markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException;
314
    public boolean markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException;
315
 
315
 
316
    /**
316
    /**
-
 
317
     * Once user raise the request for a RET, order status will be changed from DELVIERY_SUCCESS to RET_REQUEST_RECEIVED
-
 
318
     * 
-
 
319
     * @param orderId
-
 
320
     */
-
 
321
    public boolean markOrderReturnRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
322
 
-
 
323
    /**
-
 
324
     * CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
-
 
325
     * to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
-
 
326
     * 
-
 
327
     * @param orderId
-
 
328
     * @param isAuthorized
-
 
329
     */
-
 
330
    public boolean markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException;
-
 
331
 
-
 
332
    /**
317
     * Sends out an email to the account manager of the original courier provider used to ship the order.
333
     * Sends out an email to the account manager of the original courier provider used to ship the order.
318
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
334
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
319
     * If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
335
     * If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
320
     * For any other status, it returns false.
336
     * For any other status, it returns false.
321
     * Throws an exception if the order with the given id couldn't be found.
337
     * Throws an exception if the order with the given id couldn't be found.
Line 699... Line 715...
699
 
715
 
700
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
716
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
701
 
717
 
702
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
718
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
703
 
719
 
-
 
720
    public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
-
 
721
 
-
 
722
    public void markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
-
 
723
 
704
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;
724
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;
705
 
725
 
706
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
726
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
707
 
727
 
708
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
728
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
Line 1911... Line 1931...
1911
        throw result.ex;
1931
        throw result.ex;
1912
      }
1932
      }
1913
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderDoaRequestAuthorized failed: unknown result");
1933
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderDoaRequestAuthorized failed: unknown result");
1914
    }
1934
    }
1915
 
1935
 
-
 
1936
    public boolean markOrderReturnRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
1937
    {
-
 
1938
      send_markOrderReturnRequestReceived(orderId);
-
 
1939
      return recv_markOrderReturnRequestReceived();
-
 
1940
    }
-
 
1941
 
-
 
1942
    public void send_markOrderReturnRequestReceived(long orderId) throws org.apache.thrift.TException
-
 
1943
    {
-
 
1944
      markOrderReturnRequestReceived_args args = new markOrderReturnRequestReceived_args();
-
 
1945
      args.setOrderId(orderId);
-
 
1946
      sendBase("markOrderReturnRequestReceived", args);
-
 
1947
    }
-
 
1948
 
-
 
1949
    public boolean recv_markOrderReturnRequestReceived() throws TransactionServiceException, org.apache.thrift.TException
-
 
1950
    {
-
 
1951
      markOrderReturnRequestReceived_result result = new markOrderReturnRequestReceived_result();
-
 
1952
      receiveBase(result, "markOrderReturnRequestReceived");
-
 
1953
      if (result.isSetSuccess()) {
-
 
1954
        return result.success;
-
 
1955
      }
-
 
1956
      if (result.ex != null) {
-
 
1957
        throw result.ex;
-
 
1958
      }
-
 
1959
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderReturnRequestReceived failed: unknown result");
-
 
1960
    }
-
 
1961
 
-
 
1962
    public boolean markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException
-
 
1963
    {
-
 
1964
      send_markOrderReturnRequestAuthorized(orderId, isAuthorized);
-
 
1965
      return recv_markOrderReturnRequestAuthorized();
-
 
1966
    }
-
 
1967
 
-
 
1968
    public void send_markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized) throws org.apache.thrift.TException
-
 
1969
    {
-
 
1970
      markOrderReturnRequestAuthorized_args args = new markOrderReturnRequestAuthorized_args();
-
 
1971
      args.setOrderId(orderId);
-
 
1972
      args.setIsAuthorized(isAuthorized);
-
 
1973
      sendBase("markOrderReturnRequestAuthorized", args);
-
 
1974
    }
-
 
1975
 
-
 
1976
    public boolean recv_markOrderReturnRequestAuthorized() throws TransactionServiceException, org.apache.thrift.TException
-
 
1977
    {
-
 
1978
      markOrderReturnRequestAuthorized_result result = new markOrderReturnRequestAuthorized_result();
-
 
1979
      receiveBase(result, "markOrderReturnRequestAuthorized");
-
 
1980
      if (result.isSetSuccess()) {
-
 
1981
        return result.success;
-
 
1982
      }
-
 
1983
      if (result.ex != null) {
-
 
1984
        throw result.ex;
-
 
1985
      }
-
 
1986
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderReturnRequestAuthorized failed: unknown result");
-
 
1987
    }
-
 
1988
 
1916
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1989
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1917
    {
1990
    {
1918
      send_requestPickupNumber(orderId);
1991
      send_requestPickupNumber(orderId);
1919
      return recv_requestPickupNumber();
1992
      return recv_requestPickupNumber();
1920
    }
1993
    }
Line 4259... Line 4332...
4259
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4332
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4260
        return (new Client(prot)).recv_markOrderDoaRequestAuthorized();
4333
        return (new Client(prot)).recv_markOrderDoaRequestAuthorized();
4261
      }
4334
      }
4262
    }
4335
    }
4263
 
4336
 
-
 
4337
    public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
-
 
4338
      checkReady();
-
 
4339
      markOrderReturnRequestReceived_call method_call = new markOrderReturnRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4340
      this.___currentMethod = method_call;
-
 
4341
      ___manager.call(method_call);
-
 
4342
    }
-
 
4343
 
-
 
4344
    public static class markOrderReturnRequestReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4345
      private long orderId;
-
 
4346
      public markOrderReturnRequestReceived_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestReceived_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 {
-
 
4347
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4348
        this.orderId = orderId;
-
 
4349
      }
-
 
4350
 
-
 
4351
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4352
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderReturnRequestReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4353
        markOrderReturnRequestReceived_args args = new markOrderReturnRequestReceived_args();
-
 
4354
        args.setOrderId(orderId);
-
 
4355
        args.write(prot);
-
 
4356
        prot.writeMessageEnd();
-
 
4357
      }
-
 
4358
 
-
 
4359
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4360
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4361
          throw new IllegalStateException("Method call not finished!");
-
 
4362
        }
-
 
4363
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4364
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4365
        return (new Client(prot)).recv_markOrderReturnRequestReceived();
-
 
4366
      }
-
 
4367
    }
-
 
4368
 
-
 
4369
    public void markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException {
-
 
4370
      checkReady();
-
 
4371
      markOrderReturnRequestAuthorized_call method_call = new markOrderReturnRequestAuthorized_call(orderId, isAuthorized, resultHandler, this, ___protocolFactory, ___transport);
-
 
4372
      this.___currentMethod = method_call;
-
 
4373
      ___manager.call(method_call);
-
 
4374
    }
-
 
4375
 
-
 
4376
    public static class markOrderReturnRequestAuthorized_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4377
      private long orderId;
-
 
4378
      private boolean isAuthorized;
-
 
4379
      public markOrderReturnRequestAuthorized_call(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestAuthorized_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 {
-
 
4380
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4381
        this.orderId = orderId;
-
 
4382
        this.isAuthorized = isAuthorized;
-
 
4383
      }
-
 
4384
 
-
 
4385
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4386
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderReturnRequestAuthorized", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4387
        markOrderReturnRequestAuthorized_args args = new markOrderReturnRequestAuthorized_args();
-
 
4388
        args.setOrderId(orderId);
-
 
4389
        args.setIsAuthorized(isAuthorized);
-
 
4390
        args.write(prot);
-
 
4391
        prot.writeMessageEnd();
-
 
4392
      }
-
 
4393
 
-
 
4394
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4395
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4396
          throw new IllegalStateException("Method call not finished!");
-
 
4397
        }
-
 
4398
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4399
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4400
        return (new Client(prot)).recv_markOrderReturnRequestAuthorized();
-
 
4401
      }
-
 
4402
    }
-
 
4403
 
4264
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {
4404
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {
4265
      checkReady();
4405
      checkReady();
4266
      requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4406
      requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4267
      this.___currentMethod = method_call;
4407
      this.___currentMethod = method_call;
4268
      ___manager.call(method_call);
4408
      ___manager.call(method_call);
Line 5435... Line 5575...
5435
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
5575
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
5436
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
5576
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
5437
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
5577
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
5438
      processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());
5578
      processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());
5439
      processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());
5579
      processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());
-
 
5580
      processMap.put("markOrderReturnRequestReceived", new markOrderReturnRequestReceived());
-
 
5581
      processMap.put("markOrderReturnRequestAuthorized", new markOrderReturnRequestAuthorized());
5440
      processMap.put("requestPickupNumber", new requestPickupNumber());
5582
      processMap.put("requestPickupNumber", new requestPickupNumber());
5441
      processMap.put("authorizePickup", new authorizePickup());
5583
      processMap.put("authorizePickup", new authorizePickup());
5442
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
5584
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
5443
      processMap.put("receiveReturn", new receiveReturn());
5585
      processMap.put("receiveReturn", new receiveReturn());
5444
      processMap.put("validateDoa", new validateDoa());
5586
      processMap.put("validateDoa", new validateDoa());
Line 6315... Line 6457...
6315
        }
6457
        }
6316
        return result;
6458
        return result;
6317
      }
6459
      }
6318
    }
6460
    }
6319
 
6461
 
-
 
6462
    private static class markOrderReturnRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderReturnRequestReceived_args> {
-
 
6463
      public markOrderReturnRequestReceived() {
-
 
6464
        super("markOrderReturnRequestReceived");
-
 
6465
      }
-
 
6466
 
-
 
6467
      protected markOrderReturnRequestReceived_args getEmptyArgsInstance() {
-
 
6468
        return new markOrderReturnRequestReceived_args();
-
 
6469
      }
-
 
6470
 
-
 
6471
      protected markOrderReturnRequestReceived_result getResult(I iface, markOrderReturnRequestReceived_args args) throws org.apache.thrift.TException {
-
 
6472
        markOrderReturnRequestReceived_result result = new markOrderReturnRequestReceived_result();
-
 
6473
        try {
-
 
6474
          result.success = iface.markOrderReturnRequestReceived(args.orderId);
-
 
6475
          result.setSuccessIsSet(true);
-
 
6476
        } catch (TransactionServiceException ex) {
-
 
6477
          result.ex = ex;
-
 
6478
        }
-
 
6479
        return result;
-
 
6480
      }
-
 
6481
    }
-
 
6482
 
-
 
6483
    private static class markOrderReturnRequestAuthorized<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderReturnRequestAuthorized_args> {
-
 
6484
      public markOrderReturnRequestAuthorized() {
-
 
6485
        super("markOrderReturnRequestAuthorized");
-
 
6486
      }
-
 
6487
 
-
 
6488
      protected markOrderReturnRequestAuthorized_args getEmptyArgsInstance() {
-
 
6489
        return new markOrderReturnRequestAuthorized_args();
-
 
6490
      }
-
 
6491
 
-
 
6492
      protected markOrderReturnRequestAuthorized_result getResult(I iface, markOrderReturnRequestAuthorized_args args) throws org.apache.thrift.TException {
-
 
6493
        markOrderReturnRequestAuthorized_result result = new markOrderReturnRequestAuthorized_result();
-
 
6494
        try {
-
 
6495
          result.success = iface.markOrderReturnRequestAuthorized(args.orderId, args.isAuthorized);
-
 
6496
          result.setSuccessIsSet(true);
-
 
6497
        } catch (TransactionServiceException ex) {
-
 
6498
          result.ex = ex;
-
 
6499
        }
-
 
6500
        return result;
-
 
6501
      }
-
 
6502
    }
-
 
6503
 
6320
    private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {
6504
    private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {
6321
      public requestPickupNumber() {
6505
      public requestPickupNumber() {
6322
        super("requestPickupNumber");
6506
        super("requestPickupNumber");
6323
      }
6507
      }
6324
 
6508
 
Line 39741... Line 39925...
39741
      }
39925
      }
39742
    }
39926
    }
39743
 
39927
 
39744
  }
39928
  }
39745
 
39929
 
-
 
39930
  public static class markOrderReturnRequestReceived_args implements org.apache.thrift.TBase<markOrderReturnRequestReceived_args, markOrderReturnRequestReceived_args._Fields>, java.io.Serializable, Cloneable   {
-
 
39931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestReceived_args");
-
 
39932
 
-
 
39933
    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);
-
 
39934
 
-
 
39935
    private long orderId; // required
-
 
39936
 
-
 
39937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39938
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39939
      ORDER_ID((short)1, "orderId");
-
 
39940
 
-
 
39941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39942
 
-
 
39943
      static {
-
 
39944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39945
          byName.put(field.getFieldName(), field);
-
 
39946
        }
-
 
39947
      }
-
 
39948
 
-
 
39949
      /**
-
 
39950
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39951
       */
-
 
39952
      public static _Fields findByThriftId(int fieldId) {
-
 
39953
        switch(fieldId) {
-
 
39954
          case 1: // ORDER_ID
-
 
39955
            return ORDER_ID;
-
 
39956
          default:
-
 
39957
            return null;
-
 
39958
        }
-
 
39959
      }
-
 
39960
 
-
 
39961
      /**
-
 
39962
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39963
       * if it is not found.
-
 
39964
       */
-
 
39965
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39966
        _Fields fields = findByThriftId(fieldId);
-
 
39967
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39968
        return fields;
-
 
39969
      }
-
 
39970
 
-
 
39971
      /**
-
 
39972
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39973
       */
-
 
39974
      public static _Fields findByName(String name) {
-
 
39975
        return byName.get(name);
-
 
39976
      }
-
 
39977
 
-
 
39978
      private final short _thriftId;
-
 
39979
      private final String _fieldName;
-
 
39980
 
-
 
39981
      _Fields(short thriftId, String fieldName) {
-
 
39982
        _thriftId = thriftId;
-
 
39983
        _fieldName = fieldName;
-
 
39984
      }
-
 
39985
 
-
 
39986
      public short getThriftFieldId() {
-
 
39987
        return _thriftId;
-
 
39988
      }
-
 
39989
 
-
 
39990
      public String getFieldName() {
-
 
39991
        return _fieldName;
-
 
39992
      }
-
 
39993
    }
-
 
39994
 
-
 
39995
    // isset id assignments
-
 
39996
    private static final int __ORDERID_ISSET_ID = 0;
-
 
39997
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
39998
 
-
 
39999
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40000
    static {
-
 
40001
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40002
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40003
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
40004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestReceived_args.class, metaDataMap);
-
 
40006
    }
-
 
40007
 
-
 
40008
    public markOrderReturnRequestReceived_args() {
-
 
40009
    }
-
 
40010
 
-
 
40011
    public markOrderReturnRequestReceived_args(
-
 
40012
      long orderId)
-
 
40013
    {
-
 
40014
      this();
-
 
40015
      this.orderId = orderId;
-
 
40016
      setOrderIdIsSet(true);
-
 
40017
    }
-
 
40018
 
-
 
40019
    /**
-
 
40020
     * Performs a deep copy on <i>other</i>.
-
 
40021
     */
-
 
40022
    public markOrderReturnRequestReceived_args(markOrderReturnRequestReceived_args other) {
-
 
40023
      __isset_bit_vector.clear();
-
 
40024
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
40025
      this.orderId = other.orderId;
-
 
40026
    }
-
 
40027
 
-
 
40028
    public markOrderReturnRequestReceived_args deepCopy() {
-
 
40029
      return new markOrderReturnRequestReceived_args(this);
-
 
40030
    }
-
 
40031
 
-
 
40032
    @Override
-
 
40033
    public void clear() {
-
 
40034
      setOrderIdIsSet(false);
-
 
40035
      this.orderId = 0;
-
 
40036
    }
-
 
40037
 
-
 
40038
    public long getOrderId() {
-
 
40039
      return this.orderId;
-
 
40040
    }
-
 
40041
 
-
 
40042
    public void setOrderId(long orderId) {
-
 
40043
      this.orderId = orderId;
-
 
40044
      setOrderIdIsSet(true);
-
 
40045
    }
-
 
40046
 
-
 
40047
    public void unsetOrderId() {
-
 
40048
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
40049
    }
-
 
40050
 
-
 
40051
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
40052
    public boolean isSetOrderId() {
-
 
40053
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
40054
    }
-
 
40055
 
-
 
40056
    public void setOrderIdIsSet(boolean value) {
-
 
40057
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
40058
    }
-
 
40059
 
-
 
40060
    public void setFieldValue(_Fields field, Object value) {
-
 
40061
      switch (field) {
-
 
40062
      case ORDER_ID:
-
 
40063
        if (value == null) {
-
 
40064
          unsetOrderId();
-
 
40065
        } else {
-
 
40066
          setOrderId((Long)value);
-
 
40067
        }
-
 
40068
        break;
-
 
40069
 
-
 
40070
      }
-
 
40071
    }
-
 
40072
 
-
 
40073
    public Object getFieldValue(_Fields field) {
-
 
40074
      switch (field) {
-
 
40075
      case ORDER_ID:
-
 
40076
        return Long.valueOf(getOrderId());
-
 
40077
 
-
 
40078
      }
-
 
40079
      throw new IllegalStateException();
-
 
40080
    }
-
 
40081
 
-
 
40082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40083
    public boolean isSet(_Fields field) {
-
 
40084
      if (field == null) {
-
 
40085
        throw new IllegalArgumentException();
-
 
40086
      }
-
 
40087
 
-
 
40088
      switch (field) {
-
 
40089
      case ORDER_ID:
-
 
40090
        return isSetOrderId();
-
 
40091
      }
-
 
40092
      throw new IllegalStateException();
-
 
40093
    }
-
 
40094
 
-
 
40095
    @Override
-
 
40096
    public boolean equals(Object that) {
-
 
40097
      if (that == null)
-
 
40098
        return false;
-
 
40099
      if (that instanceof markOrderReturnRequestReceived_args)
-
 
40100
        return this.equals((markOrderReturnRequestReceived_args)that);
-
 
40101
      return false;
-
 
40102
    }
-
 
40103
 
-
 
40104
    public boolean equals(markOrderReturnRequestReceived_args that) {
-
 
40105
      if (that == null)
-
 
40106
        return false;
-
 
40107
 
-
 
40108
      boolean this_present_orderId = true;
-
 
40109
      boolean that_present_orderId = true;
-
 
40110
      if (this_present_orderId || that_present_orderId) {
-
 
40111
        if (!(this_present_orderId && that_present_orderId))
-
 
40112
          return false;
-
 
40113
        if (this.orderId != that.orderId)
-
 
40114
          return false;
-
 
40115
      }
-
 
40116
 
-
 
40117
      return true;
-
 
40118
    }
-
 
40119
 
-
 
40120
    @Override
-
 
40121
    public int hashCode() {
-
 
40122
      return 0;
-
 
40123
    }
-
 
40124
 
-
 
40125
    public int compareTo(markOrderReturnRequestReceived_args other) {
-
 
40126
      if (!getClass().equals(other.getClass())) {
-
 
40127
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40128
      }
-
 
40129
 
-
 
40130
      int lastComparison = 0;
-
 
40131
      markOrderReturnRequestReceived_args typedOther = (markOrderReturnRequestReceived_args)other;
-
 
40132
 
-
 
40133
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
40134
      if (lastComparison != 0) {
-
 
40135
        return lastComparison;
-
 
40136
      }
-
 
40137
      if (isSetOrderId()) {
-
 
40138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
40139
        if (lastComparison != 0) {
-
 
40140
          return lastComparison;
-
 
40141
        }
-
 
40142
      }
-
 
40143
      return 0;
-
 
40144
    }
-
 
40145
 
-
 
40146
    public _Fields fieldForId(int fieldId) {
-
 
40147
      return _Fields.findByThriftId(fieldId);
-
 
40148
    }
-
 
40149
 
-
 
40150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40151
      org.apache.thrift.protocol.TField field;
-
 
40152
      iprot.readStructBegin();
-
 
40153
      while (true)
-
 
40154
      {
-
 
40155
        field = iprot.readFieldBegin();
-
 
40156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40157
          break;
-
 
40158
        }
-
 
40159
        switch (field.id) {
-
 
40160
          case 1: // ORDER_ID
-
 
40161
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
40162
              this.orderId = iprot.readI64();
-
 
40163
              setOrderIdIsSet(true);
-
 
40164
            } else { 
-
 
40165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40166
            }
-
 
40167
            break;
-
 
40168
          default:
-
 
40169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40170
        }
-
 
40171
        iprot.readFieldEnd();
-
 
40172
      }
-
 
40173
      iprot.readStructEnd();
-
 
40174
      validate();
-
 
40175
    }
-
 
40176
 
-
 
40177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40178
      validate();
-
 
40179
 
-
 
40180
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40181
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
40182
      oprot.writeI64(this.orderId);
-
 
40183
      oprot.writeFieldEnd();
-
 
40184
      oprot.writeFieldStop();
-
 
40185
      oprot.writeStructEnd();
-
 
40186
    }
-
 
40187
 
-
 
40188
    @Override
-
 
40189
    public String toString() {
-
 
40190
      StringBuilder sb = new StringBuilder("markOrderReturnRequestReceived_args(");
-
 
40191
      boolean first = true;
-
 
40192
 
-
 
40193
      sb.append("orderId:");
-
 
40194
      sb.append(this.orderId);
-
 
40195
      first = false;
-
 
40196
      sb.append(")");
-
 
40197
      return sb.toString();
-
 
40198
    }
-
 
40199
 
-
 
40200
    public void validate() throws org.apache.thrift.TException {
-
 
40201
      // check for required fields
-
 
40202
    }
-
 
40203
 
-
 
40204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40205
      try {
-
 
40206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40207
      } catch (org.apache.thrift.TException te) {
-
 
40208
        throw new java.io.IOException(te);
-
 
40209
      }
-
 
40210
    }
-
 
40211
 
-
 
40212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40213
      try {
-
 
40214
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
40215
        __isset_bit_vector = new BitSet(1);
-
 
40216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40217
      } catch (org.apache.thrift.TException te) {
-
 
40218
        throw new java.io.IOException(te);
-
 
40219
      }
-
 
40220
    }
-
 
40221
 
-
 
40222
  }
-
 
40223
 
-
 
40224
  public static class markOrderReturnRequestReceived_result implements org.apache.thrift.TBase<markOrderReturnRequestReceived_result, markOrderReturnRequestReceived_result._Fields>, java.io.Serializable, Cloneable   {
-
 
40225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestReceived_result");
-
 
40226
 
-
 
40227
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
40228
    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);
-
 
40229
 
-
 
40230
    private boolean success; // required
-
 
40231
    private TransactionServiceException ex; // required
-
 
40232
 
-
 
40233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40235
      SUCCESS((short)0, "success"),
-
 
40236
      EX((short)1, "ex");
-
 
40237
 
-
 
40238
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40239
 
-
 
40240
      static {
-
 
40241
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40242
          byName.put(field.getFieldName(), field);
-
 
40243
        }
-
 
40244
      }
-
 
40245
 
-
 
40246
      /**
-
 
40247
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40248
       */
-
 
40249
      public static _Fields findByThriftId(int fieldId) {
-
 
40250
        switch(fieldId) {
-
 
40251
          case 0: // SUCCESS
-
 
40252
            return SUCCESS;
-
 
40253
          case 1: // EX
-
 
40254
            return EX;
-
 
40255
          default:
-
 
40256
            return null;
-
 
40257
        }
-
 
40258
      }
-
 
40259
 
-
 
40260
      /**
-
 
40261
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40262
       * if it is not found.
-
 
40263
       */
-
 
40264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40265
        _Fields fields = findByThriftId(fieldId);
-
 
40266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40267
        return fields;
-
 
40268
      }
-
 
40269
 
-
 
40270
      /**
-
 
40271
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40272
       */
-
 
40273
      public static _Fields findByName(String name) {
-
 
40274
        return byName.get(name);
-
 
40275
      }
-
 
40276
 
-
 
40277
      private final short _thriftId;
-
 
40278
      private final String _fieldName;
-
 
40279
 
-
 
40280
      _Fields(short thriftId, String fieldName) {
-
 
40281
        _thriftId = thriftId;
-
 
40282
        _fieldName = fieldName;
-
 
40283
      }
-
 
40284
 
-
 
40285
      public short getThriftFieldId() {
-
 
40286
        return _thriftId;
-
 
40287
      }
-
 
40288
 
-
 
40289
      public String getFieldName() {
-
 
40290
        return _fieldName;
-
 
40291
      }
-
 
40292
    }
-
 
40293
 
-
 
40294
    // isset id assignments
-
 
40295
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
40296
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
40297
 
-
 
40298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40299
    static {
-
 
40300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40301
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
40303
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
40305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestReceived_result.class, metaDataMap);
-
 
40307
    }
-
 
40308
 
-
 
40309
    public markOrderReturnRequestReceived_result() {
-
 
40310
    }
-
 
40311
 
-
 
40312
    public markOrderReturnRequestReceived_result(
-
 
40313
      boolean success,
-
 
40314
      TransactionServiceException ex)
-
 
40315
    {
-
 
40316
      this();
-
 
40317
      this.success = success;
-
 
40318
      setSuccessIsSet(true);
-
 
40319
      this.ex = ex;
-
 
40320
    }
-
 
40321
 
-
 
40322
    /**
-
 
40323
     * Performs a deep copy on <i>other</i>.
-
 
40324
     */
-
 
40325
    public markOrderReturnRequestReceived_result(markOrderReturnRequestReceived_result other) {
-
 
40326
      __isset_bit_vector.clear();
-
 
40327
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
40328
      this.success = other.success;
-
 
40329
      if (other.isSetEx()) {
-
 
40330
        this.ex = new TransactionServiceException(other.ex);
-
 
40331
      }
-
 
40332
    }
-
 
40333
 
-
 
40334
    public markOrderReturnRequestReceived_result deepCopy() {
-
 
40335
      return new markOrderReturnRequestReceived_result(this);
-
 
40336
    }
-
 
40337
 
-
 
40338
    @Override
-
 
40339
    public void clear() {
-
 
40340
      setSuccessIsSet(false);
-
 
40341
      this.success = false;
-
 
40342
      this.ex = null;
-
 
40343
    }
-
 
40344
 
-
 
40345
    public boolean isSuccess() {
-
 
40346
      return this.success;
-
 
40347
    }
-
 
40348
 
-
 
40349
    public void setSuccess(boolean success) {
-
 
40350
      this.success = success;
-
 
40351
      setSuccessIsSet(true);
-
 
40352
    }
-
 
40353
 
-
 
40354
    public void unsetSuccess() {
-
 
40355
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
40356
    }
-
 
40357
 
-
 
40358
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
40359
    public boolean isSetSuccess() {
-
 
40360
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
40361
    }
-
 
40362
 
-
 
40363
    public void setSuccessIsSet(boolean value) {
-
 
40364
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
40365
    }
-
 
40366
 
-
 
40367
    public TransactionServiceException getEx() {
-
 
40368
      return this.ex;
-
 
40369
    }
-
 
40370
 
-
 
40371
    public void setEx(TransactionServiceException ex) {
-
 
40372
      this.ex = ex;
-
 
40373
    }
-
 
40374
 
-
 
40375
    public void unsetEx() {
-
 
40376
      this.ex = null;
-
 
40377
    }
-
 
40378
 
-
 
40379
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
40380
    public boolean isSetEx() {
-
 
40381
      return this.ex != null;
-
 
40382
    }
-
 
40383
 
-
 
40384
    public void setExIsSet(boolean value) {
-
 
40385
      if (!value) {
-
 
40386
        this.ex = null;
-
 
40387
      }
-
 
40388
    }
-
 
40389
 
-
 
40390
    public void setFieldValue(_Fields field, Object value) {
-
 
40391
      switch (field) {
-
 
40392
      case SUCCESS:
-
 
40393
        if (value == null) {
-
 
40394
          unsetSuccess();
-
 
40395
        } else {
-
 
40396
          setSuccess((Boolean)value);
-
 
40397
        }
-
 
40398
        break;
-
 
40399
 
-
 
40400
      case EX:
-
 
40401
        if (value == null) {
-
 
40402
          unsetEx();
-
 
40403
        } else {
-
 
40404
          setEx((TransactionServiceException)value);
-
 
40405
        }
-
 
40406
        break;
-
 
40407
 
-
 
40408
      }
-
 
40409
    }
-
 
40410
 
-
 
40411
    public Object getFieldValue(_Fields field) {
-
 
40412
      switch (field) {
-
 
40413
      case SUCCESS:
-
 
40414
        return Boolean.valueOf(isSuccess());
-
 
40415
 
-
 
40416
      case EX:
-
 
40417
        return getEx();
-
 
40418
 
-
 
40419
      }
-
 
40420
      throw new IllegalStateException();
-
 
40421
    }
-
 
40422
 
-
 
40423
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40424
    public boolean isSet(_Fields field) {
-
 
40425
      if (field == null) {
-
 
40426
        throw new IllegalArgumentException();
-
 
40427
      }
-
 
40428
 
-
 
40429
      switch (field) {
-
 
40430
      case SUCCESS:
-
 
40431
        return isSetSuccess();
-
 
40432
      case EX:
-
 
40433
        return isSetEx();
-
 
40434
      }
-
 
40435
      throw new IllegalStateException();
-
 
40436
    }
-
 
40437
 
-
 
40438
    @Override
-
 
40439
    public boolean equals(Object that) {
-
 
40440
      if (that == null)
-
 
40441
        return false;
-
 
40442
      if (that instanceof markOrderReturnRequestReceived_result)
-
 
40443
        return this.equals((markOrderReturnRequestReceived_result)that);
-
 
40444
      return false;
-
 
40445
    }
-
 
40446
 
-
 
40447
    public boolean equals(markOrderReturnRequestReceived_result that) {
-
 
40448
      if (that == null)
-
 
40449
        return false;
-
 
40450
 
-
 
40451
      boolean this_present_success = true;
-
 
40452
      boolean that_present_success = true;
-
 
40453
      if (this_present_success || that_present_success) {
-
 
40454
        if (!(this_present_success && that_present_success))
-
 
40455
          return false;
-
 
40456
        if (this.success != that.success)
-
 
40457
          return false;
-
 
40458
      }
-
 
40459
 
-
 
40460
      boolean this_present_ex = true && this.isSetEx();
-
 
40461
      boolean that_present_ex = true && that.isSetEx();
-
 
40462
      if (this_present_ex || that_present_ex) {
-
 
40463
        if (!(this_present_ex && that_present_ex))
-
 
40464
          return false;
-
 
40465
        if (!this.ex.equals(that.ex))
-
 
40466
          return false;
-
 
40467
      }
-
 
40468
 
-
 
40469
      return true;
-
 
40470
    }
-
 
40471
 
-
 
40472
    @Override
-
 
40473
    public int hashCode() {
-
 
40474
      return 0;
-
 
40475
    }
-
 
40476
 
-
 
40477
    public int compareTo(markOrderReturnRequestReceived_result other) {
-
 
40478
      if (!getClass().equals(other.getClass())) {
-
 
40479
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40480
      }
-
 
40481
 
-
 
40482
      int lastComparison = 0;
-
 
40483
      markOrderReturnRequestReceived_result typedOther = (markOrderReturnRequestReceived_result)other;
-
 
40484
 
-
 
40485
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
40486
      if (lastComparison != 0) {
-
 
40487
        return lastComparison;
-
 
40488
      }
-
 
40489
      if (isSetSuccess()) {
-
 
40490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
40491
        if (lastComparison != 0) {
-
 
40492
          return lastComparison;
-
 
40493
        }
-
 
40494
      }
-
 
40495
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
40496
      if (lastComparison != 0) {
-
 
40497
        return lastComparison;
-
 
40498
      }
-
 
40499
      if (isSetEx()) {
-
 
40500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
40501
        if (lastComparison != 0) {
-
 
40502
          return lastComparison;
-
 
40503
        }
-
 
40504
      }
-
 
40505
      return 0;
-
 
40506
    }
-
 
40507
 
-
 
40508
    public _Fields fieldForId(int fieldId) {
-
 
40509
      return _Fields.findByThriftId(fieldId);
-
 
40510
    }
-
 
40511
 
-
 
40512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40513
      org.apache.thrift.protocol.TField field;
-
 
40514
      iprot.readStructBegin();
-
 
40515
      while (true)
-
 
40516
      {
-
 
40517
        field = iprot.readFieldBegin();
-
 
40518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40519
          break;
-
 
40520
        }
-
 
40521
        switch (field.id) {
-
 
40522
          case 0: // SUCCESS
-
 
40523
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
40524
              this.success = iprot.readBool();
-
 
40525
              setSuccessIsSet(true);
-
 
40526
            } else { 
-
 
40527
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40528
            }
-
 
40529
            break;
-
 
40530
          case 1: // EX
-
 
40531
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
40532
              this.ex = new TransactionServiceException();
-
 
40533
              this.ex.read(iprot);
-
 
40534
            } else { 
-
 
40535
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40536
            }
-
 
40537
            break;
-
 
40538
          default:
-
 
40539
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40540
        }
-
 
40541
        iprot.readFieldEnd();
-
 
40542
      }
-
 
40543
      iprot.readStructEnd();
-
 
40544
      validate();
-
 
40545
    }
-
 
40546
 
-
 
40547
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40548
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40549
 
-
 
40550
      if (this.isSetSuccess()) {
-
 
40551
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
40552
        oprot.writeBool(this.success);
-
 
40553
        oprot.writeFieldEnd();
-
 
40554
      } else if (this.isSetEx()) {
-
 
40555
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
40556
        this.ex.write(oprot);
-
 
40557
        oprot.writeFieldEnd();
-
 
40558
      }
-
 
40559
      oprot.writeFieldStop();
-
 
40560
      oprot.writeStructEnd();
-
 
40561
    }
-
 
40562
 
-
 
40563
    @Override
-
 
40564
    public String toString() {
-
 
40565
      StringBuilder sb = new StringBuilder("markOrderReturnRequestReceived_result(");
-
 
40566
      boolean first = true;
-
 
40567
 
-
 
40568
      sb.append("success:");
-
 
40569
      sb.append(this.success);
-
 
40570
      first = false;
-
 
40571
      if (!first) sb.append(", ");
-
 
40572
      sb.append("ex:");
-
 
40573
      if (this.ex == null) {
-
 
40574
        sb.append("null");
-
 
40575
      } else {
-
 
40576
        sb.append(this.ex);
-
 
40577
      }
-
 
40578
      first = false;
-
 
40579
      sb.append(")");
-
 
40580
      return sb.toString();
-
 
40581
    }
-
 
40582
 
-
 
40583
    public void validate() throws org.apache.thrift.TException {
-
 
40584
      // check for required fields
-
 
40585
    }
-
 
40586
 
-
 
40587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40588
      try {
-
 
40589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40590
      } catch (org.apache.thrift.TException te) {
-
 
40591
        throw new java.io.IOException(te);
-
 
40592
      }
-
 
40593
    }
-
 
40594
 
-
 
40595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40596
      try {
-
 
40597
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40598
      } catch (org.apache.thrift.TException te) {
-
 
40599
        throw new java.io.IOException(te);
-
 
40600
      }
-
 
40601
    }
-
 
40602
 
-
 
40603
  }
-
 
40604
 
-
 
40605
  public static class markOrderReturnRequestAuthorized_args implements org.apache.thrift.TBase<markOrderReturnRequestAuthorized_args, markOrderReturnRequestAuthorized_args._Fields>, java.io.Serializable, Cloneable   {
-
 
40606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestAuthorized_args");
-
 
40607
 
-
 
40608
    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);
-
 
40609
    private static final org.apache.thrift.protocol.TField IS_AUTHORIZED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAuthorized", org.apache.thrift.protocol.TType.BOOL, (short)2);
-
 
40610
 
-
 
40611
    private long orderId; // required
-
 
40612
    private boolean isAuthorized; // required
-
 
40613
 
-
 
40614
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40615
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40616
      ORDER_ID((short)1, "orderId"),
-
 
40617
      IS_AUTHORIZED((short)2, "isAuthorized");
-
 
40618
 
-
 
40619
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40620
 
-
 
40621
      static {
-
 
40622
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40623
          byName.put(field.getFieldName(), field);
-
 
40624
        }
-
 
40625
      }
-
 
40626
 
-
 
40627
      /**
-
 
40628
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40629
       */
-
 
40630
      public static _Fields findByThriftId(int fieldId) {
-
 
40631
        switch(fieldId) {
-
 
40632
          case 1: // ORDER_ID
-
 
40633
            return ORDER_ID;
-
 
40634
          case 2: // IS_AUTHORIZED
-
 
40635
            return IS_AUTHORIZED;
-
 
40636
          default:
-
 
40637
            return null;
-
 
40638
        }
-
 
40639
      }
-
 
40640
 
-
 
40641
      /**
-
 
40642
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40643
       * if it is not found.
-
 
40644
       */
-
 
40645
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40646
        _Fields fields = findByThriftId(fieldId);
-
 
40647
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40648
        return fields;
-
 
40649
      }
-
 
40650
 
-
 
40651
      /**
-
 
40652
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40653
       */
-
 
40654
      public static _Fields findByName(String name) {
-
 
40655
        return byName.get(name);
-
 
40656
      }
-
 
40657
 
-
 
40658
      private final short _thriftId;
-
 
40659
      private final String _fieldName;
-
 
40660
 
-
 
40661
      _Fields(short thriftId, String fieldName) {
-
 
40662
        _thriftId = thriftId;
-
 
40663
        _fieldName = fieldName;
-
 
40664
      }
-
 
40665
 
-
 
40666
      public short getThriftFieldId() {
-
 
40667
        return _thriftId;
-
 
40668
      }
-
 
40669
 
-
 
40670
      public String getFieldName() {
-
 
40671
        return _fieldName;
-
 
40672
      }
-
 
40673
    }
-
 
40674
 
-
 
40675
    // isset id assignments
-
 
40676
    private static final int __ORDERID_ISSET_ID = 0;
-
 
40677
    private static final int __ISAUTHORIZED_ISSET_ID = 1;
-
 
40678
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
40679
 
-
 
40680
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40681
    static {
-
 
40682
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40683
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
40685
      tmpMap.put(_Fields.IS_AUTHORIZED, new org.apache.thrift.meta_data.FieldMetaData("isAuthorized", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
40687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestAuthorized_args.class, metaDataMap);
-
 
40689
    }
-
 
40690
 
-
 
40691
    public markOrderReturnRequestAuthorized_args() {
-
 
40692
    }
-
 
40693
 
-
 
40694
    public markOrderReturnRequestAuthorized_args(
-
 
40695
      long orderId,
-
 
40696
      boolean isAuthorized)
-
 
40697
    {
-
 
40698
      this();
-
 
40699
      this.orderId = orderId;
-
 
40700
      setOrderIdIsSet(true);
-
 
40701
      this.isAuthorized = isAuthorized;
-
 
40702
      setIsAuthorizedIsSet(true);
-
 
40703
    }
-
 
40704
 
-
 
40705
    /**
-
 
40706
     * Performs a deep copy on <i>other</i>.
-
 
40707
     */
-
 
40708
    public markOrderReturnRequestAuthorized_args(markOrderReturnRequestAuthorized_args other) {
-
 
40709
      __isset_bit_vector.clear();
-
 
40710
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
40711
      this.orderId = other.orderId;
-
 
40712
      this.isAuthorized = other.isAuthorized;
-
 
40713
    }
-
 
40714
 
-
 
40715
    public markOrderReturnRequestAuthorized_args deepCopy() {
-
 
40716
      return new markOrderReturnRequestAuthorized_args(this);
-
 
40717
    }
-
 
40718
 
-
 
40719
    @Override
-
 
40720
    public void clear() {
-
 
40721
      setOrderIdIsSet(false);
-
 
40722
      this.orderId = 0;
-
 
40723
      setIsAuthorizedIsSet(false);
-
 
40724
      this.isAuthorized = false;
-
 
40725
    }
-
 
40726
 
-
 
40727
    public long getOrderId() {
-
 
40728
      return this.orderId;
-
 
40729
    }
-
 
40730
 
-
 
40731
    public void setOrderId(long orderId) {
-
 
40732
      this.orderId = orderId;
-
 
40733
      setOrderIdIsSet(true);
-
 
40734
    }
-
 
40735
 
-
 
40736
    public void unsetOrderId() {
-
 
40737
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
40738
    }
-
 
40739
 
-
 
40740
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
40741
    public boolean isSetOrderId() {
-
 
40742
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
40743
    }
-
 
40744
 
-
 
40745
    public void setOrderIdIsSet(boolean value) {
-
 
40746
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
40747
    }
-
 
40748
 
-
 
40749
    public boolean isIsAuthorized() {
-
 
40750
      return this.isAuthorized;
-
 
40751
    }
-
 
40752
 
-
 
40753
    public void setIsAuthorized(boolean isAuthorized) {
-
 
40754
      this.isAuthorized = isAuthorized;
-
 
40755
      setIsAuthorizedIsSet(true);
-
 
40756
    }
-
 
40757
 
-
 
40758
    public void unsetIsAuthorized() {
-
 
40759
      __isset_bit_vector.clear(__ISAUTHORIZED_ISSET_ID);
-
 
40760
    }
-
 
40761
 
-
 
40762
    /** Returns true if field isAuthorized is set (has been assigned a value) and false otherwise */
-
 
40763
    public boolean isSetIsAuthorized() {
-
 
40764
      return __isset_bit_vector.get(__ISAUTHORIZED_ISSET_ID);
-
 
40765
    }
-
 
40766
 
-
 
40767
    public void setIsAuthorizedIsSet(boolean value) {
-
 
40768
      __isset_bit_vector.set(__ISAUTHORIZED_ISSET_ID, value);
-
 
40769
    }
-
 
40770
 
-
 
40771
    public void setFieldValue(_Fields field, Object value) {
-
 
40772
      switch (field) {
-
 
40773
      case ORDER_ID:
-
 
40774
        if (value == null) {
-
 
40775
          unsetOrderId();
-
 
40776
        } else {
-
 
40777
          setOrderId((Long)value);
-
 
40778
        }
-
 
40779
        break;
-
 
40780
 
-
 
40781
      case IS_AUTHORIZED:
-
 
40782
        if (value == null) {
-
 
40783
          unsetIsAuthorized();
-
 
40784
        } else {
-
 
40785
          setIsAuthorized((Boolean)value);
-
 
40786
        }
-
 
40787
        break;
-
 
40788
 
-
 
40789
      }
-
 
40790
    }
-
 
40791
 
-
 
40792
    public Object getFieldValue(_Fields field) {
-
 
40793
      switch (field) {
-
 
40794
      case ORDER_ID:
-
 
40795
        return Long.valueOf(getOrderId());
-
 
40796
 
-
 
40797
      case IS_AUTHORIZED:
-
 
40798
        return Boolean.valueOf(isIsAuthorized());
-
 
40799
 
-
 
40800
      }
-
 
40801
      throw new IllegalStateException();
-
 
40802
    }
-
 
40803
 
-
 
40804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40805
    public boolean isSet(_Fields field) {
-
 
40806
      if (field == null) {
-
 
40807
        throw new IllegalArgumentException();
-
 
40808
      }
-
 
40809
 
-
 
40810
      switch (field) {
-
 
40811
      case ORDER_ID:
-
 
40812
        return isSetOrderId();
-
 
40813
      case IS_AUTHORIZED:
-
 
40814
        return isSetIsAuthorized();
-
 
40815
      }
-
 
40816
      throw new IllegalStateException();
-
 
40817
    }
-
 
40818
 
-
 
40819
    @Override
-
 
40820
    public boolean equals(Object that) {
-
 
40821
      if (that == null)
-
 
40822
        return false;
-
 
40823
      if (that instanceof markOrderReturnRequestAuthorized_args)
-
 
40824
        return this.equals((markOrderReturnRequestAuthorized_args)that);
-
 
40825
      return false;
-
 
40826
    }
-
 
40827
 
-
 
40828
    public boolean equals(markOrderReturnRequestAuthorized_args that) {
-
 
40829
      if (that == null)
-
 
40830
        return false;
-
 
40831
 
-
 
40832
      boolean this_present_orderId = true;
-
 
40833
      boolean that_present_orderId = true;
-
 
40834
      if (this_present_orderId || that_present_orderId) {
-
 
40835
        if (!(this_present_orderId && that_present_orderId))
-
 
40836
          return false;
-
 
40837
        if (this.orderId != that.orderId)
-
 
40838
          return false;
-
 
40839
      }
-
 
40840
 
-
 
40841
      boolean this_present_isAuthorized = true;
-
 
40842
      boolean that_present_isAuthorized = true;
-
 
40843
      if (this_present_isAuthorized || that_present_isAuthorized) {
-
 
40844
        if (!(this_present_isAuthorized && that_present_isAuthorized))
-
 
40845
          return false;
-
 
40846
        if (this.isAuthorized != that.isAuthorized)
-
 
40847
          return false;
-
 
40848
      }
-
 
40849
 
-
 
40850
      return true;
-
 
40851
    }
-
 
40852
 
-
 
40853
    @Override
-
 
40854
    public int hashCode() {
-
 
40855
      return 0;
-
 
40856
    }
-
 
40857
 
-
 
40858
    public int compareTo(markOrderReturnRequestAuthorized_args other) {
-
 
40859
      if (!getClass().equals(other.getClass())) {
-
 
40860
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40861
      }
-
 
40862
 
-
 
40863
      int lastComparison = 0;
-
 
40864
      markOrderReturnRequestAuthorized_args typedOther = (markOrderReturnRequestAuthorized_args)other;
-
 
40865
 
-
 
40866
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
40867
      if (lastComparison != 0) {
-
 
40868
        return lastComparison;
-
 
40869
      }
-
 
40870
      if (isSetOrderId()) {
-
 
40871
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
40872
        if (lastComparison != 0) {
-
 
40873
          return lastComparison;
-
 
40874
        }
-
 
40875
      }
-
 
40876
      lastComparison = Boolean.valueOf(isSetIsAuthorized()).compareTo(typedOther.isSetIsAuthorized());
-
 
40877
      if (lastComparison != 0) {
-
 
40878
        return lastComparison;
-
 
40879
      }
-
 
40880
      if (isSetIsAuthorized()) {
-
 
40881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAuthorized, typedOther.isAuthorized);
-
 
40882
        if (lastComparison != 0) {
-
 
40883
          return lastComparison;
-
 
40884
        }
-
 
40885
      }
-
 
40886
      return 0;
-
 
40887
    }
-
 
40888
 
-
 
40889
    public _Fields fieldForId(int fieldId) {
-
 
40890
      return _Fields.findByThriftId(fieldId);
-
 
40891
    }
-
 
40892
 
-
 
40893
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40894
      org.apache.thrift.protocol.TField field;
-
 
40895
      iprot.readStructBegin();
-
 
40896
      while (true)
-
 
40897
      {
-
 
40898
        field = iprot.readFieldBegin();
-
 
40899
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40900
          break;
-
 
40901
        }
-
 
40902
        switch (field.id) {
-
 
40903
          case 1: // ORDER_ID
-
 
40904
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
40905
              this.orderId = iprot.readI64();
-
 
40906
              setOrderIdIsSet(true);
-
 
40907
            } else { 
-
 
40908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40909
            }
-
 
40910
            break;
-
 
40911
          case 2: // IS_AUTHORIZED
-
 
40912
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
40913
              this.isAuthorized = iprot.readBool();
-
 
40914
              setIsAuthorizedIsSet(true);
-
 
40915
            } else { 
-
 
40916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40917
            }
-
 
40918
            break;
-
 
40919
          default:
-
 
40920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40921
        }
-
 
40922
        iprot.readFieldEnd();
-
 
40923
      }
-
 
40924
      iprot.readStructEnd();
-
 
40925
      validate();
-
 
40926
    }
-
 
40927
 
-
 
40928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40929
      validate();
-
 
40930
 
-
 
40931
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40932
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
40933
      oprot.writeI64(this.orderId);
-
 
40934
      oprot.writeFieldEnd();
-
 
40935
      oprot.writeFieldBegin(IS_AUTHORIZED_FIELD_DESC);
-
 
40936
      oprot.writeBool(this.isAuthorized);
-
 
40937
      oprot.writeFieldEnd();
-
 
40938
      oprot.writeFieldStop();
-
 
40939
      oprot.writeStructEnd();
-
 
40940
    }
-
 
40941
 
-
 
40942
    @Override
-
 
40943
    public String toString() {
-
 
40944
      StringBuilder sb = new StringBuilder("markOrderReturnRequestAuthorized_args(");
-
 
40945
      boolean first = true;
-
 
40946
 
-
 
40947
      sb.append("orderId:");
-
 
40948
      sb.append(this.orderId);
-
 
40949
      first = false;
-
 
40950
      if (!first) sb.append(", ");
-
 
40951
      sb.append("isAuthorized:");
-
 
40952
      sb.append(this.isAuthorized);
-
 
40953
      first = false;
-
 
40954
      sb.append(")");
-
 
40955
      return sb.toString();
-
 
40956
    }
-
 
40957
 
-
 
40958
    public void validate() throws org.apache.thrift.TException {
-
 
40959
      // check for required fields
-
 
40960
    }
-
 
40961
 
-
 
40962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40963
      try {
-
 
40964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40965
      } catch (org.apache.thrift.TException te) {
-
 
40966
        throw new java.io.IOException(te);
-
 
40967
      }
-
 
40968
    }
-
 
40969
 
-
 
40970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40971
      try {
-
 
40972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40973
      } catch (org.apache.thrift.TException te) {
-
 
40974
        throw new java.io.IOException(te);
-
 
40975
      }
-
 
40976
    }
-
 
40977
 
-
 
40978
  }
-
 
40979
 
-
 
40980
  public static class markOrderReturnRequestAuthorized_result implements org.apache.thrift.TBase<markOrderReturnRequestAuthorized_result, markOrderReturnRequestAuthorized_result._Fields>, java.io.Serializable, Cloneable   {
-
 
40981
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestAuthorized_result");
-
 
40982
 
-
 
40983
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
40984
    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);
-
 
40985
 
-
 
40986
    private boolean success; // required
-
 
40987
    private TransactionServiceException ex; // required
-
 
40988
 
-
 
40989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40990
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40991
      SUCCESS((short)0, "success"),
-
 
40992
      EX((short)1, "ex");
-
 
40993
 
-
 
40994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40995
 
-
 
40996
      static {
-
 
40997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40998
          byName.put(field.getFieldName(), field);
-
 
40999
        }
-
 
41000
      }
-
 
41001
 
-
 
41002
      /**
-
 
41003
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
41004
       */
-
 
41005
      public static _Fields findByThriftId(int fieldId) {
-
 
41006
        switch(fieldId) {
-
 
41007
          case 0: // SUCCESS
-
 
41008
            return SUCCESS;
-
 
41009
          case 1: // EX
-
 
41010
            return EX;
-
 
41011
          default:
-
 
41012
            return null;
-
 
41013
        }
-
 
41014
      }
-
 
41015
 
-
 
41016
      /**
-
 
41017
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
41018
       * if it is not found.
-
 
41019
       */
-
 
41020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
41021
        _Fields fields = findByThriftId(fieldId);
-
 
41022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
41023
        return fields;
-
 
41024
      }
-
 
41025
 
-
 
41026
      /**
-
 
41027
       * Find the _Fields constant that matches name, or null if its not found.
-
 
41028
       */
-
 
41029
      public static _Fields findByName(String name) {
-
 
41030
        return byName.get(name);
-
 
41031
      }
-
 
41032
 
-
 
41033
      private final short _thriftId;
-
 
41034
      private final String _fieldName;
-
 
41035
 
-
 
41036
      _Fields(short thriftId, String fieldName) {
-
 
41037
        _thriftId = thriftId;
-
 
41038
        _fieldName = fieldName;
-
 
41039
      }
-
 
41040
 
-
 
41041
      public short getThriftFieldId() {
-
 
41042
        return _thriftId;
-
 
41043
      }
-
 
41044
 
-
 
41045
      public String getFieldName() {
-
 
41046
        return _fieldName;
-
 
41047
      }
-
 
41048
    }
-
 
41049
 
-
 
41050
    // isset id assignments
-
 
41051
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
41052
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
41053
 
-
 
41054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
41055
    static {
-
 
41056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
41057
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
41059
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41060
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
41061
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
41062
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestAuthorized_result.class, metaDataMap);
-
 
41063
    }
-
 
41064
 
-
 
41065
    public markOrderReturnRequestAuthorized_result() {
-
 
41066
    }
-
 
41067
 
-
 
41068
    public markOrderReturnRequestAuthorized_result(
-
 
41069
      boolean success,
-
 
41070
      TransactionServiceException ex)
-
 
41071
    {
-
 
41072
      this();
-
 
41073
      this.success = success;
-
 
41074
      setSuccessIsSet(true);
-
 
41075
      this.ex = ex;
-
 
41076
    }
-
 
41077
 
-
 
41078
    /**
-
 
41079
     * Performs a deep copy on <i>other</i>.
-
 
41080
     */
-
 
41081
    public markOrderReturnRequestAuthorized_result(markOrderReturnRequestAuthorized_result other) {
-
 
41082
      __isset_bit_vector.clear();
-
 
41083
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
41084
      this.success = other.success;
-
 
41085
      if (other.isSetEx()) {
-
 
41086
        this.ex = new TransactionServiceException(other.ex);
-
 
41087
      }
-
 
41088
    }
-
 
41089
 
-
 
41090
    public markOrderReturnRequestAuthorized_result deepCopy() {
-
 
41091
      return new markOrderReturnRequestAuthorized_result(this);
-
 
41092
    }
-
 
41093
 
-
 
41094
    @Override
-
 
41095
    public void clear() {
-
 
41096
      setSuccessIsSet(false);
-
 
41097
      this.success = false;
-
 
41098
      this.ex = null;
-
 
41099
    }
-
 
41100
 
-
 
41101
    public boolean isSuccess() {
-
 
41102
      return this.success;
-
 
41103
    }
-
 
41104
 
-
 
41105
    public void setSuccess(boolean success) {
-
 
41106
      this.success = success;
-
 
41107
      setSuccessIsSet(true);
-
 
41108
    }
-
 
41109
 
-
 
41110
    public void unsetSuccess() {
-
 
41111
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
41112
    }
-
 
41113
 
-
 
41114
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
41115
    public boolean isSetSuccess() {
-
 
41116
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
41117
    }
-
 
41118
 
-
 
41119
    public void setSuccessIsSet(boolean value) {
-
 
41120
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
41121
    }
-
 
41122
 
-
 
41123
    public TransactionServiceException getEx() {
-
 
41124
      return this.ex;
-
 
41125
    }
-
 
41126
 
-
 
41127
    public void setEx(TransactionServiceException ex) {
-
 
41128
      this.ex = ex;
-
 
41129
    }
-
 
41130
 
-
 
41131
    public void unsetEx() {
-
 
41132
      this.ex = null;
-
 
41133
    }
-
 
41134
 
-
 
41135
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
41136
    public boolean isSetEx() {
-
 
41137
      return this.ex != null;
-
 
41138
    }
-
 
41139
 
-
 
41140
    public void setExIsSet(boolean value) {
-
 
41141
      if (!value) {
-
 
41142
        this.ex = null;
-
 
41143
      }
-
 
41144
    }
-
 
41145
 
-
 
41146
    public void setFieldValue(_Fields field, Object value) {
-
 
41147
      switch (field) {
-
 
41148
      case SUCCESS:
-
 
41149
        if (value == null) {
-
 
41150
          unsetSuccess();
-
 
41151
        } else {
-
 
41152
          setSuccess((Boolean)value);
-
 
41153
        }
-
 
41154
        break;
-
 
41155
 
-
 
41156
      case EX:
-
 
41157
        if (value == null) {
-
 
41158
          unsetEx();
-
 
41159
        } else {
-
 
41160
          setEx((TransactionServiceException)value);
-
 
41161
        }
-
 
41162
        break;
-
 
41163
 
-
 
41164
      }
-
 
41165
    }
-
 
41166
 
-
 
41167
    public Object getFieldValue(_Fields field) {
-
 
41168
      switch (field) {
-
 
41169
      case SUCCESS:
-
 
41170
        return Boolean.valueOf(isSuccess());
-
 
41171
 
-
 
41172
      case EX:
-
 
41173
        return getEx();
-
 
41174
 
-
 
41175
      }
-
 
41176
      throw new IllegalStateException();
-
 
41177
    }
-
 
41178
 
-
 
41179
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
41180
    public boolean isSet(_Fields field) {
-
 
41181
      if (field == null) {
-
 
41182
        throw new IllegalArgumentException();
-
 
41183
      }
-
 
41184
 
-
 
41185
      switch (field) {
-
 
41186
      case SUCCESS:
-
 
41187
        return isSetSuccess();
-
 
41188
      case EX:
-
 
41189
        return isSetEx();
-
 
41190
      }
-
 
41191
      throw new IllegalStateException();
-
 
41192
    }
-
 
41193
 
-
 
41194
    @Override
-
 
41195
    public boolean equals(Object that) {
-
 
41196
      if (that == null)
-
 
41197
        return false;
-
 
41198
      if (that instanceof markOrderReturnRequestAuthorized_result)
-
 
41199
        return this.equals((markOrderReturnRequestAuthorized_result)that);
-
 
41200
      return false;
-
 
41201
    }
-
 
41202
 
-
 
41203
    public boolean equals(markOrderReturnRequestAuthorized_result that) {
-
 
41204
      if (that == null)
-
 
41205
        return false;
-
 
41206
 
-
 
41207
      boolean this_present_success = true;
-
 
41208
      boolean that_present_success = true;
-
 
41209
      if (this_present_success || that_present_success) {
-
 
41210
        if (!(this_present_success && that_present_success))
-
 
41211
          return false;
-
 
41212
        if (this.success != that.success)
-
 
41213
          return false;
-
 
41214
      }
-
 
41215
 
-
 
41216
      boolean this_present_ex = true && this.isSetEx();
-
 
41217
      boolean that_present_ex = true && that.isSetEx();
-
 
41218
      if (this_present_ex || that_present_ex) {
-
 
41219
        if (!(this_present_ex && that_present_ex))
-
 
41220
          return false;
-
 
41221
        if (!this.ex.equals(that.ex))
-
 
41222
          return false;
-
 
41223
      }
-
 
41224
 
-
 
41225
      return true;
-
 
41226
    }
-
 
41227
 
-
 
41228
    @Override
-
 
41229
    public int hashCode() {
-
 
41230
      return 0;
-
 
41231
    }
-
 
41232
 
-
 
41233
    public int compareTo(markOrderReturnRequestAuthorized_result other) {
-
 
41234
      if (!getClass().equals(other.getClass())) {
-
 
41235
        return getClass().getName().compareTo(other.getClass().getName());
-
 
41236
      }
-
 
41237
 
-
 
41238
      int lastComparison = 0;
-
 
41239
      markOrderReturnRequestAuthorized_result typedOther = (markOrderReturnRequestAuthorized_result)other;
-
 
41240
 
-
 
41241
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
41242
      if (lastComparison != 0) {
-
 
41243
        return lastComparison;
-
 
41244
      }
-
 
41245
      if (isSetSuccess()) {
-
 
41246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
41247
        if (lastComparison != 0) {
-
 
41248
          return lastComparison;
-
 
41249
        }
-
 
41250
      }
-
 
41251
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
41252
      if (lastComparison != 0) {
-
 
41253
        return lastComparison;
-
 
41254
      }
-
 
41255
      if (isSetEx()) {
-
 
41256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
41257
        if (lastComparison != 0) {
-
 
41258
          return lastComparison;
-
 
41259
        }
-
 
41260
      }
-
 
41261
      return 0;
-
 
41262
    }
-
 
41263
 
-
 
41264
    public _Fields fieldForId(int fieldId) {
-
 
41265
      return _Fields.findByThriftId(fieldId);
-
 
41266
    }
-
 
41267
 
-
 
41268
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
41269
      org.apache.thrift.protocol.TField field;
-
 
41270
      iprot.readStructBegin();
-
 
41271
      while (true)
-
 
41272
      {
-
 
41273
        field = iprot.readFieldBegin();
-
 
41274
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
41275
          break;
-
 
41276
        }
-
 
41277
        switch (field.id) {
-
 
41278
          case 0: // SUCCESS
-
 
41279
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
41280
              this.success = iprot.readBool();
-
 
41281
              setSuccessIsSet(true);
-
 
41282
            } else { 
-
 
41283
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41284
            }
-
 
41285
            break;
-
 
41286
          case 1: // EX
-
 
41287
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
41288
              this.ex = new TransactionServiceException();
-
 
41289
              this.ex.read(iprot);
-
 
41290
            } else { 
-
 
41291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41292
            }
-
 
41293
            break;
-
 
41294
          default:
-
 
41295
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41296
        }
-
 
41297
        iprot.readFieldEnd();
-
 
41298
      }
-
 
41299
      iprot.readStructEnd();
-
 
41300
      validate();
-
 
41301
    }
-
 
41302
 
-
 
41303
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
41304
      oprot.writeStructBegin(STRUCT_DESC);
-
 
41305
 
-
 
41306
      if (this.isSetSuccess()) {
-
 
41307
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
41308
        oprot.writeBool(this.success);
-
 
41309
        oprot.writeFieldEnd();
-
 
41310
      } else if (this.isSetEx()) {
-
 
41311
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
41312
        this.ex.write(oprot);
-
 
41313
        oprot.writeFieldEnd();
-
 
41314
      }
-
 
41315
      oprot.writeFieldStop();
-
 
41316
      oprot.writeStructEnd();
-
 
41317
    }
-
 
41318
 
-
 
41319
    @Override
-
 
41320
    public String toString() {
-
 
41321
      StringBuilder sb = new StringBuilder("markOrderReturnRequestAuthorized_result(");
-
 
41322
      boolean first = true;
-
 
41323
 
-
 
41324
      sb.append("success:");
-
 
41325
      sb.append(this.success);
-
 
41326
      first = false;
-
 
41327
      if (!first) sb.append(", ");
-
 
41328
      sb.append("ex:");
-
 
41329
      if (this.ex == null) {
-
 
41330
        sb.append("null");
-
 
41331
      } else {
-
 
41332
        sb.append(this.ex);
-
 
41333
      }
-
 
41334
      first = false;
-
 
41335
      sb.append(")");
-
 
41336
      return sb.toString();
-
 
41337
    }
-
 
41338
 
-
 
41339
    public void validate() throws org.apache.thrift.TException {
-
 
41340
      // check for required fields
-
 
41341
    }
-
 
41342
 
-
 
41343
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
41344
      try {
-
 
41345
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
41346
      } catch (org.apache.thrift.TException te) {
-
 
41347
        throw new java.io.IOException(te);
-
 
41348
      }
-
 
41349
    }
-
 
41350
 
-
 
41351
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
41352
      try {
-
 
41353
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
41354
      } catch (org.apache.thrift.TException te) {
-
 
41355
        throw new java.io.IOException(te);
-
 
41356
      }
-
 
41357
    }
-
 
41358
 
-
 
41359
  }
-
 
41360
 
39746
  public static class requestPickupNumber_args implements org.apache.thrift.TBase<requestPickupNumber_args, requestPickupNumber_args._Fields>, java.io.Serializable, Cloneable   {
41361
  public static class requestPickupNumber_args implements org.apache.thrift.TBase<requestPickupNumber_args, requestPickupNumber_args._Fields>, java.io.Serializable, Cloneable   {
39747
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_args");
41362
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_args");
39748
 
41363
 
39749
    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);
41364
    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);
39750
 
41365
 
Line 40025... Line 41640...
40025
      }
41640
      }
40026
    }
41641
    }
40027
 
41642
 
40028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40029
      try {
41644
      try {
40030
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
40031
        __isset_bit_vector = new BitSet(1);
-
 
40032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40033
      } catch (org.apache.thrift.TException te) {
41646
      } catch (org.apache.thrift.TException te) {
40034
        throw new java.io.IOException(te);
41647
        throw new java.io.IOException(te);
40035
      }
41648
      }
40036
    }
41649
    }
Line 43056... Line 44669...
43056
      }
44669
      }
43057
    }
44670
    }
43058
 
44671
 
43059
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44672
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43060
      try {
44673
      try {
-
 
44674
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
44675
        __isset_bit_vector = new BitSet(1);
43061
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43062
      } catch (org.apache.thrift.TException te) {
44677
      } catch (org.apache.thrift.TException te) {
43063
        throw new java.io.IOException(te);
44678
        throw new java.io.IOException(te);
43064
      }
44679
      }
43065
    }
44680
    }