Subversion Repositories SmartDukaan

Rev

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

Rev 4192 Rev 4246
Line 505... Line 505...
505
     * Returns a map containing the number of risky orders keyed by item id. A risky order
505
     * Returns a map containing the number of risky orders keyed by item id. A risky order
506
     * is defined as one whose shipping date is about to expire.
506
     * is defined as one whose shipping date is about to expire.
507
     */
507
     */
508
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;
508
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;
509
 
509
 
-
 
510
    /**
-
 
511
     * Mark order as cancellation request received. If customer sends request of cancellation of
-
 
512
     * a particular order, this method will be called. It will just change status of the order
-
 
513
     * depending on its current status. It also records the previous status, so that we can move
-
 
514
     * back to that status if cancellation request is denied.
-
 
515
     * 
-
 
516
     * @param orderId
-
 
517
     */
-
 
518
    public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
519
 
-
 
520
    /**
-
 
521
     * If we decide to to cancel order, CRM will call this method to move the status of order to
-
 
522
     * cancellation request confirmed. After this OM will be able to cancel the order.
-
 
523
     * 
-
 
524
     * @param orderId
-
 
525
     */
-
 
526
    public void markOrderCancellationRequestConfirmed(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
527
 
-
 
528
    /**
-
 
529
     * If we decide to not to cancel order, we will move the order ro previous status.
-
 
530
     * 
-
 
531
     * @param orderId
-
 
532
     */
-
 
533
    public void markOrderCancellationRequestDenied(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
534
 
-
 
535
    /**
-
 
536
     * If we and/or payment has decided to accept the order, this method needs to be called.
-
 
537
     * Changed order status and payment status
-
 
538
     * 
-
 
539
     * @param orderId
-
 
540
     */
-
 
541
    public void markOrderAsPaymentFlagRemoved(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
542
 
510
  }
543
  }
511
 
544
 
512
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
545
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
513
 
546
 
514
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
547
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 629... Line 662...
629
 
662
 
630
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
663
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
631
 
664
 
632
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;
665
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;
633
 
666
 
-
 
667
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
-
 
668
 
-
 
669
    public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException;
-
 
670
 
-
 
671
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException;
-
 
672
 
-
 
673
    public void markOrderAsPaymentFlagRemoved(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException;
-
 
674
 
634
  }
675
  }
635
 
676
 
636
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
677
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
637
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
678
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
638
      public Factory() {}
679
      public Factory() {}
Line 2215... Line 2256...
2215
        return result.success;
2256
        return result.success;
2216
      }
2257
      }
2217
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2258
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2218
    }
2259
    }
2219
 
2260
 
-
 
2261
    public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
2262
    {
-
 
2263
      send_markOrderCancellationRequestReceived(orderId);
-
 
2264
      recv_markOrderCancellationRequestReceived();
-
 
2265
    }
-
 
2266
 
-
 
2267
    public void send_markOrderCancellationRequestReceived(long orderId) throws org.apache.thrift.TException
-
 
2268
    {
-
 
2269
      markOrderCancellationRequestReceived_args args = new markOrderCancellationRequestReceived_args();
-
 
2270
      args.setOrderId(orderId);
-
 
2271
      sendBase("markOrderCancellationRequestReceived", args);
-
 
2272
    }
-
 
2273
 
-
 
2274
    public void recv_markOrderCancellationRequestReceived() throws TransactionServiceException, org.apache.thrift.TException
-
 
2275
    {
-
 
2276
      markOrderCancellationRequestReceived_result result = new markOrderCancellationRequestReceived_result();
-
 
2277
      receiveBase(result, "markOrderCancellationRequestReceived");
-
 
2278
      if (result.ex != null) {
-
 
2279
        throw result.ex;
-
 
2280
      }
-
 
2281
      return;
-
 
2282
    }
-
 
2283
 
-
 
2284
    public void markOrderCancellationRequestConfirmed(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
2285
    {
-
 
2286
      send_markOrderCancellationRequestConfirmed(orderId);
-
 
2287
      recv_markOrderCancellationRequestConfirmed();
-
 
2288
    }
-
 
2289
 
-
 
2290
    public void send_markOrderCancellationRequestConfirmed(long orderId) throws org.apache.thrift.TException
-
 
2291
    {
-
 
2292
      markOrderCancellationRequestConfirmed_args args = new markOrderCancellationRequestConfirmed_args();
-
 
2293
      args.setOrderId(orderId);
-
 
2294
      sendBase("markOrderCancellationRequestConfirmed", args);
-
 
2295
    }
-
 
2296
 
-
 
2297
    public void recv_markOrderCancellationRequestConfirmed() throws TransactionServiceException, org.apache.thrift.TException
-
 
2298
    {
-
 
2299
      markOrderCancellationRequestConfirmed_result result = new markOrderCancellationRequestConfirmed_result();
-
 
2300
      receiveBase(result, "markOrderCancellationRequestConfirmed");
-
 
2301
      if (result.ex != null) {
-
 
2302
        throw result.ex;
-
 
2303
      }
-
 
2304
      return;
-
 
2305
    }
-
 
2306
 
-
 
2307
    public void markOrderCancellationRequestDenied(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
2308
    {
-
 
2309
      send_markOrderCancellationRequestDenied(orderId);
-
 
2310
      recv_markOrderCancellationRequestDenied();
-
 
2311
    }
-
 
2312
 
-
 
2313
    public void send_markOrderCancellationRequestDenied(long orderId) throws org.apache.thrift.TException
-
 
2314
    {
-
 
2315
      markOrderCancellationRequestDenied_args args = new markOrderCancellationRequestDenied_args();
-
 
2316
      args.setOrderId(orderId);
-
 
2317
      sendBase("markOrderCancellationRequestDenied", args);
-
 
2318
    }
-
 
2319
 
-
 
2320
    public void recv_markOrderCancellationRequestDenied() throws TransactionServiceException, org.apache.thrift.TException
-
 
2321
    {
-
 
2322
      markOrderCancellationRequestDenied_result result = new markOrderCancellationRequestDenied_result();
-
 
2323
      receiveBase(result, "markOrderCancellationRequestDenied");
-
 
2324
      if (result.ex != null) {
-
 
2325
        throw result.ex;
-
 
2326
      }
-
 
2327
      return;
-
 
2328
    }
-
 
2329
 
-
 
2330
    public void markOrderAsPaymentFlagRemoved(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
2331
    {
-
 
2332
      send_markOrderAsPaymentFlagRemoved(orderId);
-
 
2333
      recv_markOrderAsPaymentFlagRemoved();
-
 
2334
    }
-
 
2335
 
-
 
2336
    public void send_markOrderAsPaymentFlagRemoved(long orderId) throws org.apache.thrift.TException
-
 
2337
    {
-
 
2338
      markOrderAsPaymentFlagRemoved_args args = new markOrderAsPaymentFlagRemoved_args();
-
 
2339
      args.setOrderId(orderId);
-
 
2340
      sendBase("markOrderAsPaymentFlagRemoved", args);
-
 
2341
    }
-
 
2342
 
-
 
2343
    public void recv_markOrderAsPaymentFlagRemoved() throws TransactionServiceException, org.apache.thrift.TException
-
 
2344
    {
-
 
2345
      markOrderAsPaymentFlagRemoved_result result = new markOrderAsPaymentFlagRemoved_result();
-
 
2346
      receiveBase(result, "markOrderAsPaymentFlagRemoved");
-
 
2347
      if (result.ex != null) {
-
 
2348
        throw result.ex;
-
 
2349
      }
-
 
2350
      return;
-
 
2351
    }
-
 
2352
 
2220
  }
2353
  }
2221
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2354
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2222
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2355
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2223
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2356
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2224
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2357
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4327... Line 4460...
4327
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4460
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4328
        return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();
4461
        return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();
4329
      }
4462
      }
4330
    }
4463
    }
4331
 
4464
 
-
 
4465
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
-
 
4466
      checkReady();
-
 
4467
      markOrderCancellationRequestReceived_call method_call = new markOrderCancellationRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4468
      this.___currentMethod = method_call;
-
 
4469
      ___manager.call(method_call);
-
 
4470
    }
-
 
4471
 
-
 
4472
    public static class markOrderCancellationRequestReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4473
      private long orderId;
-
 
4474
      public markOrderCancellationRequestReceived_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestReceived_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 {
-
 
4475
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4476
        this.orderId = orderId;
-
 
4477
      }
-
 
4478
 
-
 
4479
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4480
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4481
        markOrderCancellationRequestReceived_args args = new markOrderCancellationRequestReceived_args();
-
 
4482
        args.setOrderId(orderId);
-
 
4483
        args.write(prot);
-
 
4484
        prot.writeMessageEnd();
-
 
4485
      }
-
 
4486
 
-
 
4487
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4488
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4489
          throw new IllegalStateException("Method call not finished!");
-
 
4490
        }
-
 
4491
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4492
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4493
        (new Client(prot)).recv_markOrderCancellationRequestReceived();
-
 
4494
      }
-
 
4495
    }
-
 
4496
 
-
 
4497
    public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException {
-
 
4498
      checkReady();
-
 
4499
      markOrderCancellationRequestConfirmed_call method_call = new markOrderCancellationRequestConfirmed_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4500
      this.___currentMethod = method_call;
-
 
4501
      ___manager.call(method_call);
-
 
4502
    }
-
 
4503
 
-
 
4504
    public static class markOrderCancellationRequestConfirmed_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4505
      private long orderId;
-
 
4506
      public markOrderCancellationRequestConfirmed_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestConfirmed_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 {
-
 
4507
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4508
        this.orderId = orderId;
-
 
4509
      }
-
 
4510
 
-
 
4511
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4512
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestConfirmed", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4513
        markOrderCancellationRequestConfirmed_args args = new markOrderCancellationRequestConfirmed_args();
-
 
4514
        args.setOrderId(orderId);
-
 
4515
        args.write(prot);
-
 
4516
        prot.writeMessageEnd();
-
 
4517
      }
-
 
4518
 
-
 
4519
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4520
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4521
          throw new IllegalStateException("Method call not finished!");
-
 
4522
        }
-
 
4523
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4524
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4525
        (new Client(prot)).recv_markOrderCancellationRequestConfirmed();
-
 
4526
      }
-
 
4527
    }
-
 
4528
 
-
 
4529
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException {
-
 
4530
      checkReady();
-
 
4531
      markOrderCancellationRequestDenied_call method_call = new markOrderCancellationRequestDenied_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4532
      this.___currentMethod = method_call;
-
 
4533
      ___manager.call(method_call);
-
 
4534
    }
-
 
4535
 
-
 
4536
    public static class markOrderCancellationRequestDenied_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4537
      private long orderId;
-
 
4538
      public markOrderCancellationRequestDenied_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestDenied_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 {
-
 
4539
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4540
        this.orderId = orderId;
-
 
4541
      }
-
 
4542
 
-
 
4543
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4544
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestDenied", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4545
        markOrderCancellationRequestDenied_args args = new markOrderCancellationRequestDenied_args();
-
 
4546
        args.setOrderId(orderId);
-
 
4547
        args.write(prot);
-
 
4548
        prot.writeMessageEnd();
-
 
4549
      }
-
 
4550
 
-
 
4551
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4552
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4553
          throw new IllegalStateException("Method call not finished!");
-
 
4554
        }
-
 
4555
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4556
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4557
        (new Client(prot)).recv_markOrderCancellationRequestDenied();
-
 
4558
      }
-
 
4559
    }
-
 
4560
 
-
 
4561
    public void markOrderAsPaymentFlagRemoved(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException {
-
 
4562
      checkReady();
-
 
4563
      markOrderAsPaymentFlagRemoved_call method_call = new markOrderAsPaymentFlagRemoved_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4564
      this.___currentMethod = method_call;
-
 
4565
      ___manager.call(method_call);
-
 
4566
    }
-
 
4567
 
-
 
4568
    public static class markOrderAsPaymentFlagRemoved_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4569
      private long orderId;
-
 
4570
      public markOrderAsPaymentFlagRemoved_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsPaymentFlagRemoved_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 {
-
 
4571
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4572
        this.orderId = orderId;
-
 
4573
      }
-
 
4574
 
-
 
4575
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4576
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsPaymentFlagRemoved", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4577
        markOrderAsPaymentFlagRemoved_args args = new markOrderAsPaymentFlagRemoved_args();
-
 
4578
        args.setOrderId(orderId);
-
 
4579
        args.write(prot);
-
 
4580
        prot.writeMessageEnd();
-
 
4581
      }
-
 
4582
 
-
 
4583
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4584
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4585
          throw new IllegalStateException("Method call not finished!");
-
 
4586
        }
-
 
4587
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4588
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4589
        (new Client(prot)).recv_markOrderAsPaymentFlagRemoved();
-
 
4590
      }
-
 
4591
    }
-
 
4592
 
4332
  }
4593
  }
4333
 
4594
 
4334
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4595
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4335
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4596
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4336
    public Processor(I iface) {
4597
    public Processor(I iface) {
Line 4400... Line 4661...
4400
      processMap.put("addDelayReason", new addDelayReason());
4661
      processMap.put("addDelayReason", new addDelayReason());
4401
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4662
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4402
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4663
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4403
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
4664
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
4404
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
4665
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
-
 
4666
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
-
 
4667
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
-
 
4668
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
-
 
4669
      processMap.put("markOrderAsPaymentFlagRemoved", new markOrderAsPaymentFlagRemoved());
4405
      return processMap;
4670
      return processMap;
4406
    }
4671
    }
4407
 
4672
 
4408
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4673
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4409
      public createTransaction() {
4674
      public createTransaction() {
Line 5579... Line 5844...
5579
        result.success = iface.getItemWiseRiskyOrdersCount();
5844
        result.success = iface.getItemWiseRiskyOrdersCount();
5580
        return result;
5845
        return result;
5581
      }
5846
      }
5582
    }
5847
    }
5583
 
5848
 
-
 
5849
    private static class markOrderCancellationRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestReceived_args> {
-
 
5850
      public markOrderCancellationRequestReceived() {
-
 
5851
        super("markOrderCancellationRequestReceived");
-
 
5852
      }
-
 
5853
 
-
 
5854
      protected markOrderCancellationRequestReceived_args getEmptyArgsInstance() {
-
 
5855
        return new markOrderCancellationRequestReceived_args();
-
 
5856
      }
-
 
5857
 
-
 
5858
      protected markOrderCancellationRequestReceived_result getResult(I iface, markOrderCancellationRequestReceived_args args) throws org.apache.thrift.TException {
-
 
5859
        markOrderCancellationRequestReceived_result result = new markOrderCancellationRequestReceived_result();
-
 
5860
        try {
-
 
5861
          iface.markOrderCancellationRequestReceived(args.orderId);
-
 
5862
        } catch (TransactionServiceException ex) {
-
 
5863
          result.ex = ex;
-
 
5864
        }
-
 
5865
        return result;
-
 
5866
      }
-
 
5867
    }
-
 
5868
 
-
 
5869
    private static class markOrderCancellationRequestConfirmed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestConfirmed_args> {
-
 
5870
      public markOrderCancellationRequestConfirmed() {
-
 
5871
        super("markOrderCancellationRequestConfirmed");
-
 
5872
      }
-
 
5873
 
-
 
5874
      protected markOrderCancellationRequestConfirmed_args getEmptyArgsInstance() {
-
 
5875
        return new markOrderCancellationRequestConfirmed_args();
-
 
5876
      }
-
 
5877
 
-
 
5878
      protected markOrderCancellationRequestConfirmed_result getResult(I iface, markOrderCancellationRequestConfirmed_args args) throws org.apache.thrift.TException {
-
 
5879
        markOrderCancellationRequestConfirmed_result result = new markOrderCancellationRequestConfirmed_result();
-
 
5880
        try {
-
 
5881
          iface.markOrderCancellationRequestConfirmed(args.orderId);
-
 
5882
        } catch (TransactionServiceException ex) {
-
 
5883
          result.ex = ex;
-
 
5884
        }
-
 
5885
        return result;
-
 
5886
      }
-
 
5887
    }
-
 
5888
 
-
 
5889
    private static class markOrderCancellationRequestDenied<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestDenied_args> {
-
 
5890
      public markOrderCancellationRequestDenied() {
-
 
5891
        super("markOrderCancellationRequestDenied");
-
 
5892
      }
-
 
5893
 
-
 
5894
      protected markOrderCancellationRequestDenied_args getEmptyArgsInstance() {
-
 
5895
        return new markOrderCancellationRequestDenied_args();
-
 
5896
      }
-
 
5897
 
-
 
5898
      protected markOrderCancellationRequestDenied_result getResult(I iface, markOrderCancellationRequestDenied_args args) throws org.apache.thrift.TException {
-
 
5899
        markOrderCancellationRequestDenied_result result = new markOrderCancellationRequestDenied_result();
-
 
5900
        try {
-
 
5901
          iface.markOrderCancellationRequestDenied(args.orderId);
-
 
5902
        } catch (TransactionServiceException ex) {
-
 
5903
          result.ex = ex;
-
 
5904
        }
-
 
5905
        return result;
-
 
5906
      }
-
 
5907
    }
-
 
5908
 
-
 
5909
    private static class markOrderAsPaymentFlagRemoved<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsPaymentFlagRemoved_args> {
-
 
5910
      public markOrderAsPaymentFlagRemoved() {
-
 
5911
        super("markOrderAsPaymentFlagRemoved");
-
 
5912
      }
-
 
5913
 
-
 
5914
      protected markOrderAsPaymentFlagRemoved_args getEmptyArgsInstance() {
-
 
5915
        return new markOrderAsPaymentFlagRemoved_args();
-
 
5916
      }
-
 
5917
 
-
 
5918
      protected markOrderAsPaymentFlagRemoved_result getResult(I iface, markOrderAsPaymentFlagRemoved_args args) throws org.apache.thrift.TException {
-
 
5919
        markOrderAsPaymentFlagRemoved_result result = new markOrderAsPaymentFlagRemoved_result();
-
 
5920
        try {
-
 
5921
          iface.markOrderAsPaymentFlagRemoved(args.orderId);
-
 
5922
        } catch (TransactionServiceException ex) {
-
 
5923
          result.ex = ex;
-
 
5924
        }
-
 
5925
        return result;
-
 
5926
      }
-
 
5927
    }
-
 
5928
 
5584
  }
5929
  }
5585
 
5930
 
5586
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5931
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5932
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5588
 
5933
 
Line 26600... Line 26945...
26600
      }
26945
      }
26601
    }
26946
    }
26602
 
26947
 
26603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26604
      try {
26949
      try {
26605
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
26606
        __isset_bit_vector = new BitSet(1);
-
 
26607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26608
      } catch (org.apache.thrift.TException te) {
26951
      } catch (org.apache.thrift.TException te) {
26609
        throw new java.io.IOException(te);
26952
        throw new java.io.IOException(te);
26610
      }
26953
      }
26611
    }
26954
    }
Line 31283... Line 31626...
31283
      }
31626
      }
31284
    }
31627
    }
31285
 
31628
 
31286
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31629
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31287
      try {
31630
      try {
-
 
31631
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
31632
        __isset_bit_vector = new BitSet(1);
31288
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31633
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31289
      } catch (org.apache.thrift.TException te) {
31634
      } catch (org.apache.thrift.TException te) {
31290
        throw new java.io.IOException(te);
31635
        throw new java.io.IOException(te);
31291
      }
31636
      }
31292
    }
31637
    }
Line 50650... Line 50995...
50650
      }
50995
      }
50651
      first = false;
50996
      first = false;
50652
      sb.append(")");
50997
      sb.append(")");
50653
      return sb.toString();
50998
      return sb.toString();
50654
    }
50999
    }
-
 
51000
 
-
 
51001
    public void validate() throws org.apache.thrift.TException {
-
 
51002
      // check for required fields
-
 
51003
    }
-
 
51004
 
-
 
51005
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51006
      try {
-
 
51007
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51008
      } catch (org.apache.thrift.TException te) {
-
 
51009
        throw new java.io.IOException(te);
-
 
51010
      }
-
 
51011
    }
-
 
51012
 
-
 
51013
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51014
      try {
-
 
51015
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51016
      } catch (org.apache.thrift.TException te) {
-
 
51017
        throw new java.io.IOException(te);
-
 
51018
      }
-
 
51019
    }
-
 
51020
 
-
 
51021
  }
-
 
51022
 
-
 
51023
  public static class markOrderCancellationRequestReceived_args implements org.apache.thrift.TBase<markOrderCancellationRequestReceived_args, markOrderCancellationRequestReceived_args._Fields>, java.io.Serializable, Cloneable   {
-
 
51024
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestReceived_args");
-
 
51025
 
-
 
51026
    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);
-
 
51027
 
-
 
51028
    private long orderId; // required
-
 
51029
 
-
 
51030
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51031
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51032
      ORDER_ID((short)1, "orderId");
-
 
51033
 
-
 
51034
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51035
 
-
 
51036
      static {
-
 
51037
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51038
          byName.put(field.getFieldName(), field);
-
 
51039
        }
-
 
51040
      }
-
 
51041
 
-
 
51042
      /**
-
 
51043
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51044
       */
-
 
51045
      public static _Fields findByThriftId(int fieldId) {
-
 
51046
        switch(fieldId) {
-
 
51047
          case 1: // ORDER_ID
-
 
51048
            return ORDER_ID;
-
 
51049
          default:
-
 
51050
            return null;
-
 
51051
        }
-
 
51052
      }
-
 
51053
 
-
 
51054
      /**
-
 
51055
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51056
       * if it is not found.
-
 
51057
       */
-
 
51058
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51059
        _Fields fields = findByThriftId(fieldId);
-
 
51060
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51061
        return fields;
-
 
51062
      }
-
 
51063
 
-
 
51064
      /**
-
 
51065
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51066
       */
-
 
51067
      public static _Fields findByName(String name) {
-
 
51068
        return byName.get(name);
-
 
51069
      }
-
 
51070
 
-
 
51071
      private final short _thriftId;
-
 
51072
      private final String _fieldName;
-
 
51073
 
-
 
51074
      _Fields(short thriftId, String fieldName) {
-
 
51075
        _thriftId = thriftId;
-
 
51076
        _fieldName = fieldName;
-
 
51077
      }
-
 
51078
 
-
 
51079
      public short getThriftFieldId() {
-
 
51080
        return _thriftId;
-
 
51081
      }
-
 
51082
 
-
 
51083
      public String getFieldName() {
-
 
51084
        return _fieldName;
-
 
51085
      }
-
 
51086
    }
-
 
51087
 
-
 
51088
    // isset id assignments
-
 
51089
    private static final int __ORDERID_ISSET_ID = 0;
-
 
51090
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
51091
 
-
 
51092
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51093
    static {
-
 
51094
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51095
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51096
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51097
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51098
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestReceived_args.class, metaDataMap);
-
 
51099
    }
-
 
51100
 
-
 
51101
    public markOrderCancellationRequestReceived_args() {
-
 
51102
    }
-
 
51103
 
-
 
51104
    public markOrderCancellationRequestReceived_args(
-
 
51105
      long orderId)
-
 
51106
    {
-
 
51107
      this();
-
 
51108
      this.orderId = orderId;
-
 
51109
      setOrderIdIsSet(true);
-
 
51110
    }
-
 
51111
 
-
 
51112
    /**
-
 
51113
     * Performs a deep copy on <i>other</i>.
-
 
51114
     */
-
 
51115
    public markOrderCancellationRequestReceived_args(markOrderCancellationRequestReceived_args other) {
-
 
51116
      __isset_bit_vector.clear();
-
 
51117
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51118
      this.orderId = other.orderId;
-
 
51119
    }
-
 
51120
 
-
 
51121
    public markOrderCancellationRequestReceived_args deepCopy() {
-
 
51122
      return new markOrderCancellationRequestReceived_args(this);
-
 
51123
    }
-
 
51124
 
-
 
51125
    @Override
-
 
51126
    public void clear() {
-
 
51127
      setOrderIdIsSet(false);
-
 
51128
      this.orderId = 0;
-
 
51129
    }
-
 
51130
 
-
 
51131
    public long getOrderId() {
-
 
51132
      return this.orderId;
-
 
51133
    }
-
 
51134
 
-
 
51135
    public void setOrderId(long orderId) {
-
 
51136
      this.orderId = orderId;
-
 
51137
      setOrderIdIsSet(true);
-
 
51138
    }
-
 
51139
 
-
 
51140
    public void unsetOrderId() {
-
 
51141
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
51142
    }
-
 
51143
 
-
 
51144
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
51145
    public boolean isSetOrderId() {
-
 
51146
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
51147
    }
-
 
51148
 
-
 
51149
    public void setOrderIdIsSet(boolean value) {
-
 
51150
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
51151
    }
-
 
51152
 
-
 
51153
    public void setFieldValue(_Fields field, Object value) {
-
 
51154
      switch (field) {
-
 
51155
      case ORDER_ID:
-
 
51156
        if (value == null) {
-
 
51157
          unsetOrderId();
-
 
51158
        } else {
-
 
51159
          setOrderId((Long)value);
-
 
51160
        }
-
 
51161
        break;
-
 
51162
 
-
 
51163
      }
-
 
51164
    }
-
 
51165
 
-
 
51166
    public Object getFieldValue(_Fields field) {
-
 
51167
      switch (field) {
-
 
51168
      case ORDER_ID:
-
 
51169
        return Long.valueOf(getOrderId());
-
 
51170
 
-
 
51171
      }
-
 
51172
      throw new IllegalStateException();
-
 
51173
    }
-
 
51174
 
-
 
51175
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51176
    public boolean isSet(_Fields field) {
-
 
51177
      if (field == null) {
-
 
51178
        throw new IllegalArgumentException();
-
 
51179
      }
-
 
51180
 
-
 
51181
      switch (field) {
-
 
51182
      case ORDER_ID:
-
 
51183
        return isSetOrderId();
-
 
51184
      }
-
 
51185
      throw new IllegalStateException();
-
 
51186
    }
-
 
51187
 
-
 
51188
    @Override
-
 
51189
    public boolean equals(Object that) {
-
 
51190
      if (that == null)
-
 
51191
        return false;
-
 
51192
      if (that instanceof markOrderCancellationRequestReceived_args)
-
 
51193
        return this.equals((markOrderCancellationRequestReceived_args)that);
-
 
51194
      return false;
-
 
51195
    }
-
 
51196
 
-
 
51197
    public boolean equals(markOrderCancellationRequestReceived_args that) {
-
 
51198
      if (that == null)
-
 
51199
        return false;
-
 
51200
 
-
 
51201
      boolean this_present_orderId = true;
-
 
51202
      boolean that_present_orderId = true;
-
 
51203
      if (this_present_orderId || that_present_orderId) {
-
 
51204
        if (!(this_present_orderId && that_present_orderId))
-
 
51205
          return false;
-
 
51206
        if (this.orderId != that.orderId)
-
 
51207
          return false;
-
 
51208
      }
-
 
51209
 
-
 
51210
      return true;
-
 
51211
    }
-
 
51212
 
-
 
51213
    @Override
-
 
51214
    public int hashCode() {
-
 
51215
      return 0;
-
 
51216
    }
-
 
51217
 
-
 
51218
    public int compareTo(markOrderCancellationRequestReceived_args other) {
-
 
51219
      if (!getClass().equals(other.getClass())) {
-
 
51220
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51221
      }
-
 
51222
 
-
 
51223
      int lastComparison = 0;
-
 
51224
      markOrderCancellationRequestReceived_args typedOther = (markOrderCancellationRequestReceived_args)other;
-
 
51225
 
-
 
51226
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
51227
      if (lastComparison != 0) {
-
 
51228
        return lastComparison;
-
 
51229
      }
-
 
51230
      if (isSetOrderId()) {
-
 
51231
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
51232
        if (lastComparison != 0) {
-
 
51233
          return lastComparison;
-
 
51234
        }
-
 
51235
      }
-
 
51236
      return 0;
-
 
51237
    }
-
 
51238
 
-
 
51239
    public _Fields fieldForId(int fieldId) {
-
 
51240
      return _Fields.findByThriftId(fieldId);
-
 
51241
    }
-
 
51242
 
-
 
51243
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51244
      org.apache.thrift.protocol.TField field;
-
 
51245
      iprot.readStructBegin();
-
 
51246
      while (true)
-
 
51247
      {
-
 
51248
        field = iprot.readFieldBegin();
-
 
51249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51250
          break;
-
 
51251
        }
-
 
51252
        switch (field.id) {
-
 
51253
          case 1: // ORDER_ID
-
 
51254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51255
              this.orderId = iprot.readI64();
-
 
51256
              setOrderIdIsSet(true);
-
 
51257
            } else { 
-
 
51258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51259
            }
-
 
51260
            break;
-
 
51261
          default:
-
 
51262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51263
        }
-
 
51264
        iprot.readFieldEnd();
-
 
51265
      }
-
 
51266
      iprot.readStructEnd();
-
 
51267
      validate();
-
 
51268
    }
-
 
51269
 
-
 
51270
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51271
      validate();
-
 
51272
 
-
 
51273
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51274
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
51275
      oprot.writeI64(this.orderId);
-
 
51276
      oprot.writeFieldEnd();
-
 
51277
      oprot.writeFieldStop();
-
 
51278
      oprot.writeStructEnd();
-
 
51279
    }
-
 
51280
 
-
 
51281
    @Override
-
 
51282
    public String toString() {
-
 
51283
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestReceived_args(");
-
 
51284
      boolean first = true;
-
 
51285
 
-
 
51286
      sb.append("orderId:");
-
 
51287
      sb.append(this.orderId);
-
 
51288
      first = false;
-
 
51289
      sb.append(")");
-
 
51290
      return sb.toString();
-
 
51291
    }
-
 
51292
 
-
 
51293
    public void validate() throws org.apache.thrift.TException {
-
 
51294
      // check for required fields
-
 
51295
    }
-
 
51296
 
-
 
51297
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51298
      try {
-
 
51299
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51300
      } catch (org.apache.thrift.TException te) {
-
 
51301
        throw new java.io.IOException(te);
-
 
51302
      }
-
 
51303
    }
-
 
51304
 
-
 
51305
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51306
      try {
-
 
51307
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51308
      } catch (org.apache.thrift.TException te) {
-
 
51309
        throw new java.io.IOException(te);
-
 
51310
      }
-
 
51311
    }
-
 
51312
 
-
 
51313
  }
-
 
51314
 
-
 
51315
  public static class markOrderCancellationRequestReceived_result implements org.apache.thrift.TBase<markOrderCancellationRequestReceived_result, markOrderCancellationRequestReceived_result._Fields>, java.io.Serializable, Cloneable   {
-
 
51316
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestReceived_result");
-
 
51317
 
-
 
51318
    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);
-
 
51319
 
-
 
51320
    private TransactionServiceException ex; // required
-
 
51321
 
-
 
51322
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51323
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51324
      EX((short)1, "ex");
-
 
51325
 
-
 
51326
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51327
 
-
 
51328
      static {
-
 
51329
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51330
          byName.put(field.getFieldName(), field);
-
 
51331
        }
-
 
51332
      }
-
 
51333
 
-
 
51334
      /**
-
 
51335
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51336
       */
-
 
51337
      public static _Fields findByThriftId(int fieldId) {
-
 
51338
        switch(fieldId) {
-
 
51339
          case 1: // EX
-
 
51340
            return EX;
-
 
51341
          default:
-
 
51342
            return null;
-
 
51343
        }
-
 
51344
      }
-
 
51345
 
-
 
51346
      /**
-
 
51347
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51348
       * if it is not found.
-
 
51349
       */
-
 
51350
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51351
        _Fields fields = findByThriftId(fieldId);
-
 
51352
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51353
        return fields;
-
 
51354
      }
-
 
51355
 
-
 
51356
      /**
-
 
51357
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51358
       */
-
 
51359
      public static _Fields findByName(String name) {
-
 
51360
        return byName.get(name);
-
 
51361
      }
-
 
51362
 
-
 
51363
      private final short _thriftId;
-
 
51364
      private final String _fieldName;
-
 
51365
 
-
 
51366
      _Fields(short thriftId, String fieldName) {
-
 
51367
        _thriftId = thriftId;
-
 
51368
        _fieldName = fieldName;
-
 
51369
      }
-
 
51370
 
-
 
51371
      public short getThriftFieldId() {
-
 
51372
        return _thriftId;
-
 
51373
      }
-
 
51374
 
-
 
51375
      public String getFieldName() {
-
 
51376
        return _fieldName;
-
 
51377
      }
-
 
51378
    }
-
 
51379
 
-
 
51380
    // isset id assignments
-
 
51381
 
-
 
51382
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51383
    static {
-
 
51384
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51385
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51386
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
51387
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51388
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestReceived_result.class, metaDataMap);
-
 
51389
    }
-
 
51390
 
-
 
51391
    public markOrderCancellationRequestReceived_result() {
-
 
51392
    }
-
 
51393
 
-
 
51394
    public markOrderCancellationRequestReceived_result(
-
 
51395
      TransactionServiceException ex)
-
 
51396
    {
-
 
51397
      this();
-
 
51398
      this.ex = ex;
-
 
51399
    }
-
 
51400
 
-
 
51401
    /**
-
 
51402
     * Performs a deep copy on <i>other</i>.
-
 
51403
     */
-
 
51404
    public markOrderCancellationRequestReceived_result(markOrderCancellationRequestReceived_result other) {
-
 
51405
      if (other.isSetEx()) {
-
 
51406
        this.ex = new TransactionServiceException(other.ex);
-
 
51407
      }
-
 
51408
    }
-
 
51409
 
-
 
51410
    public markOrderCancellationRequestReceived_result deepCopy() {
-
 
51411
      return new markOrderCancellationRequestReceived_result(this);
-
 
51412
    }
-
 
51413
 
-
 
51414
    @Override
-
 
51415
    public void clear() {
-
 
51416
      this.ex = null;
-
 
51417
    }
-
 
51418
 
-
 
51419
    public TransactionServiceException getEx() {
-
 
51420
      return this.ex;
-
 
51421
    }
-
 
51422
 
-
 
51423
    public void setEx(TransactionServiceException ex) {
-
 
51424
      this.ex = ex;
-
 
51425
    }
-
 
51426
 
-
 
51427
    public void unsetEx() {
-
 
51428
      this.ex = null;
-
 
51429
    }
-
 
51430
 
-
 
51431
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
51432
    public boolean isSetEx() {
-
 
51433
      return this.ex != null;
-
 
51434
    }
-
 
51435
 
-
 
51436
    public void setExIsSet(boolean value) {
-
 
51437
      if (!value) {
-
 
51438
        this.ex = null;
-
 
51439
      }
-
 
51440
    }
-
 
51441
 
-
 
51442
    public void setFieldValue(_Fields field, Object value) {
-
 
51443
      switch (field) {
-
 
51444
      case EX:
-
 
51445
        if (value == null) {
-
 
51446
          unsetEx();
-
 
51447
        } else {
-
 
51448
          setEx((TransactionServiceException)value);
-
 
51449
        }
-
 
51450
        break;
-
 
51451
 
-
 
51452
      }
-
 
51453
    }
-
 
51454
 
-
 
51455
    public Object getFieldValue(_Fields field) {
-
 
51456
      switch (field) {
-
 
51457
      case EX:
-
 
51458
        return getEx();
-
 
51459
 
-
 
51460
      }
-
 
51461
      throw new IllegalStateException();
-
 
51462
    }
-
 
51463
 
-
 
51464
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51465
    public boolean isSet(_Fields field) {
-
 
51466
      if (field == null) {
-
 
51467
        throw new IllegalArgumentException();
-
 
51468
      }
-
 
51469
 
-
 
51470
      switch (field) {
-
 
51471
      case EX:
-
 
51472
        return isSetEx();
-
 
51473
      }
-
 
51474
      throw new IllegalStateException();
-
 
51475
    }
-
 
51476
 
-
 
51477
    @Override
-
 
51478
    public boolean equals(Object that) {
-
 
51479
      if (that == null)
-
 
51480
        return false;
-
 
51481
      if (that instanceof markOrderCancellationRequestReceived_result)
-
 
51482
        return this.equals((markOrderCancellationRequestReceived_result)that);
-
 
51483
      return false;
-
 
51484
    }
-
 
51485
 
-
 
51486
    public boolean equals(markOrderCancellationRequestReceived_result that) {
-
 
51487
      if (that == null)
-
 
51488
        return false;
-
 
51489
 
-
 
51490
      boolean this_present_ex = true && this.isSetEx();
-
 
51491
      boolean that_present_ex = true && that.isSetEx();
-
 
51492
      if (this_present_ex || that_present_ex) {
-
 
51493
        if (!(this_present_ex && that_present_ex))
-
 
51494
          return false;
-
 
51495
        if (!this.ex.equals(that.ex))
-
 
51496
          return false;
-
 
51497
      }
-
 
51498
 
-
 
51499
      return true;
-
 
51500
    }
-
 
51501
 
-
 
51502
    @Override
-
 
51503
    public int hashCode() {
-
 
51504
      return 0;
-
 
51505
    }
-
 
51506
 
-
 
51507
    public int compareTo(markOrderCancellationRequestReceived_result other) {
-
 
51508
      if (!getClass().equals(other.getClass())) {
-
 
51509
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51510
      }
-
 
51511
 
-
 
51512
      int lastComparison = 0;
-
 
51513
      markOrderCancellationRequestReceived_result typedOther = (markOrderCancellationRequestReceived_result)other;
-
 
51514
 
-
 
51515
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
51516
      if (lastComparison != 0) {
-
 
51517
        return lastComparison;
-
 
51518
      }
-
 
51519
      if (isSetEx()) {
-
 
51520
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
51521
        if (lastComparison != 0) {
-
 
51522
          return lastComparison;
-
 
51523
        }
-
 
51524
      }
-
 
51525
      return 0;
-
 
51526
    }
-
 
51527
 
-
 
51528
    public _Fields fieldForId(int fieldId) {
-
 
51529
      return _Fields.findByThriftId(fieldId);
-
 
51530
    }
-
 
51531
 
-
 
51532
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51533
      org.apache.thrift.protocol.TField field;
-
 
51534
      iprot.readStructBegin();
-
 
51535
      while (true)
-
 
51536
      {
-
 
51537
        field = iprot.readFieldBegin();
-
 
51538
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51539
          break;
-
 
51540
        }
-
 
51541
        switch (field.id) {
-
 
51542
          case 1: // EX
-
 
51543
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
51544
              this.ex = new TransactionServiceException();
-
 
51545
              this.ex.read(iprot);
-
 
51546
            } else { 
-
 
51547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51548
            }
-
 
51549
            break;
-
 
51550
          default:
-
 
51551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51552
        }
-
 
51553
        iprot.readFieldEnd();
-
 
51554
      }
-
 
51555
      iprot.readStructEnd();
-
 
51556
      validate();
-
 
51557
    }
-
 
51558
 
-
 
51559
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51560
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51561
 
-
 
51562
      if (this.isSetEx()) {
-
 
51563
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
51564
        this.ex.write(oprot);
-
 
51565
        oprot.writeFieldEnd();
-
 
51566
      }
-
 
51567
      oprot.writeFieldStop();
-
 
51568
      oprot.writeStructEnd();
-
 
51569
    }
-
 
51570
 
-
 
51571
    @Override
-
 
51572
    public String toString() {
-
 
51573
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestReceived_result(");
-
 
51574
      boolean first = true;
-
 
51575
 
-
 
51576
      sb.append("ex:");
-
 
51577
      if (this.ex == null) {
-
 
51578
        sb.append("null");
-
 
51579
      } else {
-
 
51580
        sb.append(this.ex);
-
 
51581
      }
-
 
51582
      first = false;
-
 
51583
      sb.append(")");
-
 
51584
      return sb.toString();
-
 
51585
    }
-
 
51586
 
-
 
51587
    public void validate() throws org.apache.thrift.TException {
-
 
51588
      // check for required fields
-
 
51589
    }
-
 
51590
 
-
 
51591
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51592
      try {
-
 
51593
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51594
      } catch (org.apache.thrift.TException te) {
-
 
51595
        throw new java.io.IOException(te);
-
 
51596
      }
-
 
51597
    }
-
 
51598
 
-
 
51599
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51600
      try {
-
 
51601
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51602
      } catch (org.apache.thrift.TException te) {
-
 
51603
        throw new java.io.IOException(te);
-
 
51604
      }
-
 
51605
    }
-
 
51606
 
-
 
51607
  }
-
 
51608
 
-
 
51609
  public static class markOrderCancellationRequestConfirmed_args implements org.apache.thrift.TBase<markOrderCancellationRequestConfirmed_args, markOrderCancellationRequestConfirmed_args._Fields>, java.io.Serializable, Cloneable   {
-
 
51610
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestConfirmed_args");
-
 
51611
 
-
 
51612
    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);
-
 
51613
 
-
 
51614
    private long orderId; // required
-
 
51615
 
-
 
51616
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51617
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51618
      ORDER_ID((short)1, "orderId");
-
 
51619
 
-
 
51620
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51621
 
-
 
51622
      static {
-
 
51623
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51624
          byName.put(field.getFieldName(), field);
-
 
51625
        }
-
 
51626
      }
-
 
51627
 
-
 
51628
      /**
-
 
51629
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51630
       */
-
 
51631
      public static _Fields findByThriftId(int fieldId) {
-
 
51632
        switch(fieldId) {
-
 
51633
          case 1: // ORDER_ID
-
 
51634
            return ORDER_ID;
-
 
51635
          default:
-
 
51636
            return null;
-
 
51637
        }
-
 
51638
      }
-
 
51639
 
-
 
51640
      /**
-
 
51641
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51642
       * if it is not found.
-
 
51643
       */
-
 
51644
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51645
        _Fields fields = findByThriftId(fieldId);
-
 
51646
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51647
        return fields;
-
 
51648
      }
-
 
51649
 
-
 
51650
      /**
-
 
51651
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51652
       */
-
 
51653
      public static _Fields findByName(String name) {
-
 
51654
        return byName.get(name);
-
 
51655
      }
-
 
51656
 
-
 
51657
      private final short _thriftId;
-
 
51658
      private final String _fieldName;
-
 
51659
 
-
 
51660
      _Fields(short thriftId, String fieldName) {
-
 
51661
        _thriftId = thriftId;
-
 
51662
        _fieldName = fieldName;
-
 
51663
      }
-
 
51664
 
-
 
51665
      public short getThriftFieldId() {
-
 
51666
        return _thriftId;
-
 
51667
      }
-
 
51668
 
-
 
51669
      public String getFieldName() {
-
 
51670
        return _fieldName;
-
 
51671
      }
-
 
51672
    }
-
 
51673
 
-
 
51674
    // isset id assignments
-
 
51675
    private static final int __ORDERID_ISSET_ID = 0;
-
 
51676
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
51677
 
-
 
51678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51679
    static {
-
 
51680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51681
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestConfirmed_args.class, metaDataMap);
-
 
51685
    }
-
 
51686
 
-
 
51687
    public markOrderCancellationRequestConfirmed_args() {
-
 
51688
    }
-
 
51689
 
-
 
51690
    public markOrderCancellationRequestConfirmed_args(
-
 
51691
      long orderId)
-
 
51692
    {
-
 
51693
      this();
-
 
51694
      this.orderId = orderId;
-
 
51695
      setOrderIdIsSet(true);
-
 
51696
    }
-
 
51697
 
-
 
51698
    /**
-
 
51699
     * Performs a deep copy on <i>other</i>.
-
 
51700
     */
-
 
51701
    public markOrderCancellationRequestConfirmed_args(markOrderCancellationRequestConfirmed_args other) {
-
 
51702
      __isset_bit_vector.clear();
-
 
51703
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51704
      this.orderId = other.orderId;
-
 
51705
    }
-
 
51706
 
-
 
51707
    public markOrderCancellationRequestConfirmed_args deepCopy() {
-
 
51708
      return new markOrderCancellationRequestConfirmed_args(this);
-
 
51709
    }
-
 
51710
 
-
 
51711
    @Override
-
 
51712
    public void clear() {
-
 
51713
      setOrderIdIsSet(false);
-
 
51714
      this.orderId = 0;
-
 
51715
    }
-
 
51716
 
-
 
51717
    public long getOrderId() {
-
 
51718
      return this.orderId;
-
 
51719
    }
-
 
51720
 
-
 
51721
    public void setOrderId(long orderId) {
-
 
51722
      this.orderId = orderId;
-
 
51723
      setOrderIdIsSet(true);
-
 
51724
    }
-
 
51725
 
-
 
51726
    public void unsetOrderId() {
-
 
51727
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
51728
    }
-
 
51729
 
-
 
51730
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
51731
    public boolean isSetOrderId() {
-
 
51732
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
51733
    }
-
 
51734
 
-
 
51735
    public void setOrderIdIsSet(boolean value) {
-
 
51736
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
51737
    }
-
 
51738
 
-
 
51739
    public void setFieldValue(_Fields field, Object value) {
-
 
51740
      switch (field) {
-
 
51741
      case ORDER_ID:
-
 
51742
        if (value == null) {
-
 
51743
          unsetOrderId();
-
 
51744
        } else {
-
 
51745
          setOrderId((Long)value);
-
 
51746
        }
-
 
51747
        break;
-
 
51748
 
-
 
51749
      }
-
 
51750
    }
-
 
51751
 
-
 
51752
    public Object getFieldValue(_Fields field) {
-
 
51753
      switch (field) {
-
 
51754
      case ORDER_ID:
-
 
51755
        return Long.valueOf(getOrderId());
-
 
51756
 
-
 
51757
      }
-
 
51758
      throw new IllegalStateException();
-
 
51759
    }
-
 
51760
 
-
 
51761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51762
    public boolean isSet(_Fields field) {
-
 
51763
      if (field == null) {
-
 
51764
        throw new IllegalArgumentException();
-
 
51765
      }
-
 
51766
 
-
 
51767
      switch (field) {
-
 
51768
      case ORDER_ID:
-
 
51769
        return isSetOrderId();
-
 
51770
      }
-
 
51771
      throw new IllegalStateException();
-
 
51772
    }
-
 
51773
 
-
 
51774
    @Override
-
 
51775
    public boolean equals(Object that) {
-
 
51776
      if (that == null)
-
 
51777
        return false;
-
 
51778
      if (that instanceof markOrderCancellationRequestConfirmed_args)
-
 
51779
        return this.equals((markOrderCancellationRequestConfirmed_args)that);
-
 
51780
      return false;
-
 
51781
    }
-
 
51782
 
-
 
51783
    public boolean equals(markOrderCancellationRequestConfirmed_args that) {
-
 
51784
      if (that == null)
-
 
51785
        return false;
-
 
51786
 
-
 
51787
      boolean this_present_orderId = true;
-
 
51788
      boolean that_present_orderId = true;
-
 
51789
      if (this_present_orderId || that_present_orderId) {
-
 
51790
        if (!(this_present_orderId && that_present_orderId))
-
 
51791
          return false;
-
 
51792
        if (this.orderId != that.orderId)
-
 
51793
          return false;
-
 
51794
      }
-
 
51795
 
-
 
51796
      return true;
-
 
51797
    }
-
 
51798
 
-
 
51799
    @Override
-
 
51800
    public int hashCode() {
-
 
51801
      return 0;
-
 
51802
    }
-
 
51803
 
-
 
51804
    public int compareTo(markOrderCancellationRequestConfirmed_args other) {
-
 
51805
      if (!getClass().equals(other.getClass())) {
-
 
51806
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51807
      }
-
 
51808
 
-
 
51809
      int lastComparison = 0;
-
 
51810
      markOrderCancellationRequestConfirmed_args typedOther = (markOrderCancellationRequestConfirmed_args)other;
-
 
51811
 
-
 
51812
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
51813
      if (lastComparison != 0) {
-
 
51814
        return lastComparison;
-
 
51815
      }
-
 
51816
      if (isSetOrderId()) {
-
 
51817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
51818
        if (lastComparison != 0) {
-
 
51819
          return lastComparison;
-
 
51820
        }
-
 
51821
      }
-
 
51822
      return 0;
-
 
51823
    }
-
 
51824
 
-
 
51825
    public _Fields fieldForId(int fieldId) {
-
 
51826
      return _Fields.findByThriftId(fieldId);
-
 
51827
    }
-
 
51828
 
-
 
51829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51830
      org.apache.thrift.protocol.TField field;
-
 
51831
      iprot.readStructBegin();
-
 
51832
      while (true)
-
 
51833
      {
-
 
51834
        field = iprot.readFieldBegin();
-
 
51835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51836
          break;
-
 
51837
        }
-
 
51838
        switch (field.id) {
-
 
51839
          case 1: // ORDER_ID
-
 
51840
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51841
              this.orderId = iprot.readI64();
-
 
51842
              setOrderIdIsSet(true);
-
 
51843
            } else { 
-
 
51844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51845
            }
-
 
51846
            break;
-
 
51847
          default:
-
 
51848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51849
        }
-
 
51850
        iprot.readFieldEnd();
-
 
51851
      }
-
 
51852
      iprot.readStructEnd();
-
 
51853
      validate();
-
 
51854
    }
-
 
51855
 
-
 
51856
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51857
      validate();
-
 
51858
 
-
 
51859
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51860
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
51861
      oprot.writeI64(this.orderId);
-
 
51862
      oprot.writeFieldEnd();
-
 
51863
      oprot.writeFieldStop();
-
 
51864
      oprot.writeStructEnd();
-
 
51865
    }
-
 
51866
 
-
 
51867
    @Override
-
 
51868
    public String toString() {
-
 
51869
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestConfirmed_args(");
-
 
51870
      boolean first = true;
-
 
51871
 
-
 
51872
      sb.append("orderId:");
-
 
51873
      sb.append(this.orderId);
-
 
51874
      first = false;
-
 
51875
      sb.append(")");
-
 
51876
      return sb.toString();
-
 
51877
    }
-
 
51878
 
-
 
51879
    public void validate() throws org.apache.thrift.TException {
-
 
51880
      // check for required fields
-
 
51881
    }
-
 
51882
 
-
 
51883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51884
      try {
-
 
51885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51886
      } catch (org.apache.thrift.TException te) {
-
 
51887
        throw new java.io.IOException(te);
-
 
51888
      }
-
 
51889
    }
-
 
51890
 
-
 
51891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51892
      try {
-
 
51893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51894
      } catch (org.apache.thrift.TException te) {
-
 
51895
        throw new java.io.IOException(te);
-
 
51896
      }
-
 
51897
    }
-
 
51898
 
-
 
51899
  }
-
 
51900
 
-
 
51901
  public static class markOrderCancellationRequestConfirmed_result implements org.apache.thrift.TBase<markOrderCancellationRequestConfirmed_result, markOrderCancellationRequestConfirmed_result._Fields>, java.io.Serializable, Cloneable   {
-
 
51902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestConfirmed_result");
-
 
51903
 
-
 
51904
    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);
-
 
51905
 
-
 
51906
    private TransactionServiceException ex; // required
-
 
51907
 
-
 
51908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51910
      EX((short)1, "ex");
-
 
51911
 
-
 
51912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51913
 
-
 
51914
      static {
-
 
51915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51916
          byName.put(field.getFieldName(), field);
-
 
51917
        }
-
 
51918
      }
-
 
51919
 
-
 
51920
      /**
-
 
51921
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51922
       */
-
 
51923
      public static _Fields findByThriftId(int fieldId) {
-
 
51924
        switch(fieldId) {
-
 
51925
          case 1: // EX
-
 
51926
            return EX;
-
 
51927
          default:
-
 
51928
            return null;
-
 
51929
        }
-
 
51930
      }
-
 
51931
 
-
 
51932
      /**
-
 
51933
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51934
       * if it is not found.
-
 
51935
       */
-
 
51936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51937
        _Fields fields = findByThriftId(fieldId);
-
 
51938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51939
        return fields;
-
 
51940
      }
-
 
51941
 
-
 
51942
      /**
-
 
51943
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51944
       */
-
 
51945
      public static _Fields findByName(String name) {
-
 
51946
        return byName.get(name);
-
 
51947
      }
-
 
51948
 
-
 
51949
      private final short _thriftId;
-
 
51950
      private final String _fieldName;
-
 
51951
 
-
 
51952
      _Fields(short thriftId, String fieldName) {
-
 
51953
        _thriftId = thriftId;
-
 
51954
        _fieldName = fieldName;
-
 
51955
      }
-
 
51956
 
-
 
51957
      public short getThriftFieldId() {
-
 
51958
        return _thriftId;
-
 
51959
      }
-
 
51960
 
-
 
51961
      public String getFieldName() {
-
 
51962
        return _fieldName;
-
 
51963
      }
-
 
51964
    }
-
 
51965
 
-
 
51966
    // isset id assignments
-
 
51967
 
-
 
51968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51969
    static {
-
 
51970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51971
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
51973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestConfirmed_result.class, metaDataMap);
-
 
51975
    }
-
 
51976
 
-
 
51977
    public markOrderCancellationRequestConfirmed_result() {
-
 
51978
    }
-
 
51979
 
-
 
51980
    public markOrderCancellationRequestConfirmed_result(
-
 
51981
      TransactionServiceException ex)
-
 
51982
    {
-
 
51983
      this();
-
 
51984
      this.ex = ex;
-
 
51985
    }
-
 
51986
 
-
 
51987
    /**
-
 
51988
     * Performs a deep copy on <i>other</i>.
-
 
51989
     */
-
 
51990
    public markOrderCancellationRequestConfirmed_result(markOrderCancellationRequestConfirmed_result other) {
-
 
51991
      if (other.isSetEx()) {
-
 
51992
        this.ex = new TransactionServiceException(other.ex);
-
 
51993
      }
-
 
51994
    }
-
 
51995
 
-
 
51996
    public markOrderCancellationRequestConfirmed_result deepCopy() {
-
 
51997
      return new markOrderCancellationRequestConfirmed_result(this);
-
 
51998
    }
-
 
51999
 
-
 
52000
    @Override
-
 
52001
    public void clear() {
-
 
52002
      this.ex = null;
-
 
52003
    }
-
 
52004
 
-
 
52005
    public TransactionServiceException getEx() {
-
 
52006
      return this.ex;
-
 
52007
    }
-
 
52008
 
-
 
52009
    public void setEx(TransactionServiceException ex) {
-
 
52010
      this.ex = ex;
-
 
52011
    }
-
 
52012
 
-
 
52013
    public void unsetEx() {
-
 
52014
      this.ex = null;
-
 
52015
    }
-
 
52016
 
-
 
52017
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
52018
    public boolean isSetEx() {
-
 
52019
      return this.ex != null;
-
 
52020
    }
-
 
52021
 
-
 
52022
    public void setExIsSet(boolean value) {
-
 
52023
      if (!value) {
-
 
52024
        this.ex = null;
-
 
52025
      }
-
 
52026
    }
-
 
52027
 
-
 
52028
    public void setFieldValue(_Fields field, Object value) {
-
 
52029
      switch (field) {
-
 
52030
      case EX:
-
 
52031
        if (value == null) {
-
 
52032
          unsetEx();
-
 
52033
        } else {
-
 
52034
          setEx((TransactionServiceException)value);
-
 
52035
        }
-
 
52036
        break;
-
 
52037
 
-
 
52038
      }
-
 
52039
    }
-
 
52040
 
-
 
52041
    public Object getFieldValue(_Fields field) {
-
 
52042
      switch (field) {
-
 
52043
      case EX:
-
 
52044
        return getEx();
-
 
52045
 
-
 
52046
      }
-
 
52047
      throw new IllegalStateException();
-
 
52048
    }
-
 
52049
 
-
 
52050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52051
    public boolean isSet(_Fields field) {
-
 
52052
      if (field == null) {
-
 
52053
        throw new IllegalArgumentException();
-
 
52054
      }
-
 
52055
 
-
 
52056
      switch (field) {
-
 
52057
      case EX:
-
 
52058
        return isSetEx();
-
 
52059
      }
-
 
52060
      throw new IllegalStateException();
-
 
52061
    }
-
 
52062
 
-
 
52063
    @Override
-
 
52064
    public boolean equals(Object that) {
-
 
52065
      if (that == null)
-
 
52066
        return false;
-
 
52067
      if (that instanceof markOrderCancellationRequestConfirmed_result)
-
 
52068
        return this.equals((markOrderCancellationRequestConfirmed_result)that);
-
 
52069
      return false;
-
 
52070
    }
-
 
52071
 
-
 
52072
    public boolean equals(markOrderCancellationRequestConfirmed_result that) {
-
 
52073
      if (that == null)
-
 
52074
        return false;
-
 
52075
 
-
 
52076
      boolean this_present_ex = true && this.isSetEx();
-
 
52077
      boolean that_present_ex = true && that.isSetEx();
-
 
52078
      if (this_present_ex || that_present_ex) {
-
 
52079
        if (!(this_present_ex && that_present_ex))
-
 
52080
          return false;
-
 
52081
        if (!this.ex.equals(that.ex))
-
 
52082
          return false;
-
 
52083
      }
-
 
52084
 
-
 
52085
      return true;
-
 
52086
    }
-
 
52087
 
-
 
52088
    @Override
-
 
52089
    public int hashCode() {
-
 
52090
      return 0;
-
 
52091
    }
-
 
52092
 
-
 
52093
    public int compareTo(markOrderCancellationRequestConfirmed_result other) {
-
 
52094
      if (!getClass().equals(other.getClass())) {
-
 
52095
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52096
      }
-
 
52097
 
-
 
52098
      int lastComparison = 0;
-
 
52099
      markOrderCancellationRequestConfirmed_result typedOther = (markOrderCancellationRequestConfirmed_result)other;
-
 
52100
 
-
 
52101
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
52102
      if (lastComparison != 0) {
-
 
52103
        return lastComparison;
-
 
52104
      }
-
 
52105
      if (isSetEx()) {
-
 
52106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
52107
        if (lastComparison != 0) {
-
 
52108
          return lastComparison;
-
 
52109
        }
-
 
52110
      }
-
 
52111
      return 0;
-
 
52112
    }
-
 
52113
 
-
 
52114
    public _Fields fieldForId(int fieldId) {
-
 
52115
      return _Fields.findByThriftId(fieldId);
-
 
52116
    }
-
 
52117
 
-
 
52118
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52119
      org.apache.thrift.protocol.TField field;
-
 
52120
      iprot.readStructBegin();
-
 
52121
      while (true)
-
 
52122
      {
-
 
52123
        field = iprot.readFieldBegin();
-
 
52124
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52125
          break;
-
 
52126
        }
-
 
52127
        switch (field.id) {
-
 
52128
          case 1: // EX
-
 
52129
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
52130
              this.ex = new TransactionServiceException();
-
 
52131
              this.ex.read(iprot);
-
 
52132
            } else { 
-
 
52133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52134
            }
-
 
52135
            break;
-
 
52136
          default:
-
 
52137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52138
        }
-
 
52139
        iprot.readFieldEnd();
-
 
52140
      }
-
 
52141
      iprot.readStructEnd();
-
 
52142
      validate();
-
 
52143
    }
-
 
52144
 
-
 
52145
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52146
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52147
 
-
 
52148
      if (this.isSetEx()) {
-
 
52149
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
52150
        this.ex.write(oprot);
-
 
52151
        oprot.writeFieldEnd();
-
 
52152
      }
-
 
52153
      oprot.writeFieldStop();
-
 
52154
      oprot.writeStructEnd();
-
 
52155
    }
-
 
52156
 
-
 
52157
    @Override
-
 
52158
    public String toString() {
-
 
52159
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestConfirmed_result(");
-
 
52160
      boolean first = true;
-
 
52161
 
-
 
52162
      sb.append("ex:");
-
 
52163
      if (this.ex == null) {
-
 
52164
        sb.append("null");
-
 
52165
      } else {
-
 
52166
        sb.append(this.ex);
-
 
52167
      }
-
 
52168
      first = false;
-
 
52169
      sb.append(")");
-
 
52170
      return sb.toString();
-
 
52171
    }
-
 
52172
 
-
 
52173
    public void validate() throws org.apache.thrift.TException {
-
 
52174
      // check for required fields
-
 
52175
    }
-
 
52176
 
-
 
52177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52178
      try {
-
 
52179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52180
      } catch (org.apache.thrift.TException te) {
-
 
52181
        throw new java.io.IOException(te);
-
 
52182
      }
-
 
52183
    }
-
 
52184
 
-
 
52185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52186
      try {
-
 
52187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52188
      } catch (org.apache.thrift.TException te) {
-
 
52189
        throw new java.io.IOException(te);
-
 
52190
      }
-
 
52191
    }
-
 
52192
 
-
 
52193
  }
-
 
52194
 
-
 
52195
  public static class markOrderCancellationRequestDenied_args implements org.apache.thrift.TBase<markOrderCancellationRequestDenied_args, markOrderCancellationRequestDenied_args._Fields>, java.io.Serializable, Cloneable   {
-
 
52196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestDenied_args");
-
 
52197
 
-
 
52198
    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);
-
 
52199
 
-
 
52200
    private long orderId; // required
-
 
52201
 
-
 
52202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52204
      ORDER_ID((short)1, "orderId");
-
 
52205
 
-
 
52206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52207
 
-
 
52208
      static {
-
 
52209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52210
          byName.put(field.getFieldName(), field);
-
 
52211
        }
-
 
52212
      }
-
 
52213
 
-
 
52214
      /**
-
 
52215
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52216
       */
-
 
52217
      public static _Fields findByThriftId(int fieldId) {
-
 
52218
        switch(fieldId) {
-
 
52219
          case 1: // ORDER_ID
-
 
52220
            return ORDER_ID;
-
 
52221
          default:
-
 
52222
            return null;
-
 
52223
        }
-
 
52224
      }
-
 
52225
 
-
 
52226
      /**
-
 
52227
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52228
       * if it is not found.
-
 
52229
       */
-
 
52230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52231
        _Fields fields = findByThriftId(fieldId);
-
 
52232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52233
        return fields;
-
 
52234
      }
-
 
52235
 
-
 
52236
      /**
-
 
52237
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52238
       */
-
 
52239
      public static _Fields findByName(String name) {
-
 
52240
        return byName.get(name);
-
 
52241
      }
-
 
52242
 
-
 
52243
      private final short _thriftId;
-
 
52244
      private final String _fieldName;
-
 
52245
 
-
 
52246
      _Fields(short thriftId, String fieldName) {
-
 
52247
        _thriftId = thriftId;
-
 
52248
        _fieldName = fieldName;
-
 
52249
      }
-
 
52250
 
-
 
52251
      public short getThriftFieldId() {
-
 
52252
        return _thriftId;
-
 
52253
      }
-
 
52254
 
-
 
52255
      public String getFieldName() {
-
 
52256
        return _fieldName;
-
 
52257
      }
-
 
52258
    }
-
 
52259
 
-
 
52260
    // isset id assignments
-
 
52261
    private static final int __ORDERID_ISSET_ID = 0;
-
 
52262
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
52263
 
-
 
52264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52265
    static {
-
 
52266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52267
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52268
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
52269
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52270
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestDenied_args.class, metaDataMap);
-
 
52271
    }
-
 
52272
 
-
 
52273
    public markOrderCancellationRequestDenied_args() {
-
 
52274
    }
-
 
52275
 
-
 
52276
    public markOrderCancellationRequestDenied_args(
-
 
52277
      long orderId)
-
 
52278
    {
-
 
52279
      this();
-
 
52280
      this.orderId = orderId;
-
 
52281
      setOrderIdIsSet(true);
-
 
52282
    }
-
 
52283
 
-
 
52284
    /**
-
 
52285
     * Performs a deep copy on <i>other</i>.
-
 
52286
     */
-
 
52287
    public markOrderCancellationRequestDenied_args(markOrderCancellationRequestDenied_args other) {
-
 
52288
      __isset_bit_vector.clear();
-
 
52289
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
52290
      this.orderId = other.orderId;
-
 
52291
    }
-
 
52292
 
-
 
52293
    public markOrderCancellationRequestDenied_args deepCopy() {
-
 
52294
      return new markOrderCancellationRequestDenied_args(this);
-
 
52295
    }
-
 
52296
 
-
 
52297
    @Override
-
 
52298
    public void clear() {
-
 
52299
      setOrderIdIsSet(false);
-
 
52300
      this.orderId = 0;
-
 
52301
    }
-
 
52302
 
-
 
52303
    public long getOrderId() {
-
 
52304
      return this.orderId;
-
 
52305
    }
-
 
52306
 
-
 
52307
    public void setOrderId(long orderId) {
-
 
52308
      this.orderId = orderId;
-
 
52309
      setOrderIdIsSet(true);
-
 
52310
    }
-
 
52311
 
-
 
52312
    public void unsetOrderId() {
-
 
52313
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
52314
    }
-
 
52315
 
-
 
52316
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
52317
    public boolean isSetOrderId() {
-
 
52318
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
52319
    }
-
 
52320
 
-
 
52321
    public void setOrderIdIsSet(boolean value) {
-
 
52322
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
52323
    }
-
 
52324
 
-
 
52325
    public void setFieldValue(_Fields field, Object value) {
-
 
52326
      switch (field) {
-
 
52327
      case ORDER_ID:
-
 
52328
        if (value == null) {
-
 
52329
          unsetOrderId();
-
 
52330
        } else {
-
 
52331
          setOrderId((Long)value);
-
 
52332
        }
-
 
52333
        break;
-
 
52334
 
-
 
52335
      }
-
 
52336
    }
-
 
52337
 
-
 
52338
    public Object getFieldValue(_Fields field) {
-
 
52339
      switch (field) {
-
 
52340
      case ORDER_ID:
-
 
52341
        return Long.valueOf(getOrderId());
-
 
52342
 
-
 
52343
      }
-
 
52344
      throw new IllegalStateException();
-
 
52345
    }
-
 
52346
 
-
 
52347
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52348
    public boolean isSet(_Fields field) {
-
 
52349
      if (field == null) {
-
 
52350
        throw new IllegalArgumentException();
-
 
52351
      }
-
 
52352
 
-
 
52353
      switch (field) {
-
 
52354
      case ORDER_ID:
-
 
52355
        return isSetOrderId();
-
 
52356
      }
-
 
52357
      throw new IllegalStateException();
-
 
52358
    }
-
 
52359
 
-
 
52360
    @Override
-
 
52361
    public boolean equals(Object that) {
-
 
52362
      if (that == null)
-
 
52363
        return false;
-
 
52364
      if (that instanceof markOrderCancellationRequestDenied_args)
-
 
52365
        return this.equals((markOrderCancellationRequestDenied_args)that);
-
 
52366
      return false;
-
 
52367
    }
-
 
52368
 
-
 
52369
    public boolean equals(markOrderCancellationRequestDenied_args that) {
-
 
52370
      if (that == null)
-
 
52371
        return false;
-
 
52372
 
-
 
52373
      boolean this_present_orderId = true;
-
 
52374
      boolean that_present_orderId = true;
-
 
52375
      if (this_present_orderId || that_present_orderId) {
-
 
52376
        if (!(this_present_orderId && that_present_orderId))
-
 
52377
          return false;
-
 
52378
        if (this.orderId != that.orderId)
-
 
52379
          return false;
-
 
52380
      }
-
 
52381
 
-
 
52382
      return true;
-
 
52383
    }
-
 
52384
 
-
 
52385
    @Override
-
 
52386
    public int hashCode() {
-
 
52387
      return 0;
-
 
52388
    }
-
 
52389
 
-
 
52390
    public int compareTo(markOrderCancellationRequestDenied_args other) {
-
 
52391
      if (!getClass().equals(other.getClass())) {
-
 
52392
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52393
      }
-
 
52394
 
-
 
52395
      int lastComparison = 0;
-
 
52396
      markOrderCancellationRequestDenied_args typedOther = (markOrderCancellationRequestDenied_args)other;
-
 
52397
 
-
 
52398
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
52399
      if (lastComparison != 0) {
-
 
52400
        return lastComparison;
-
 
52401
      }
-
 
52402
      if (isSetOrderId()) {
-
 
52403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
52404
        if (lastComparison != 0) {
-
 
52405
          return lastComparison;
-
 
52406
        }
-
 
52407
      }
-
 
52408
      return 0;
-
 
52409
    }
-
 
52410
 
-
 
52411
    public _Fields fieldForId(int fieldId) {
-
 
52412
      return _Fields.findByThriftId(fieldId);
-
 
52413
    }
-
 
52414
 
-
 
52415
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52416
      org.apache.thrift.protocol.TField field;
-
 
52417
      iprot.readStructBegin();
-
 
52418
      while (true)
-
 
52419
      {
-
 
52420
        field = iprot.readFieldBegin();
-
 
52421
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52422
          break;
-
 
52423
        }
-
 
52424
        switch (field.id) {
-
 
52425
          case 1: // ORDER_ID
-
 
52426
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
52427
              this.orderId = iprot.readI64();
-
 
52428
              setOrderIdIsSet(true);
-
 
52429
            } else { 
-
 
52430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52431
            }
-
 
52432
            break;
-
 
52433
          default:
-
 
52434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52435
        }
-
 
52436
        iprot.readFieldEnd();
-
 
52437
      }
-
 
52438
      iprot.readStructEnd();
-
 
52439
      validate();
-
 
52440
    }
-
 
52441
 
-
 
52442
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52443
      validate();
-
 
52444
 
-
 
52445
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52446
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
52447
      oprot.writeI64(this.orderId);
-
 
52448
      oprot.writeFieldEnd();
-
 
52449
      oprot.writeFieldStop();
-
 
52450
      oprot.writeStructEnd();
-
 
52451
    }
-
 
52452
 
-
 
52453
    @Override
-
 
52454
    public String toString() {
-
 
52455
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestDenied_args(");
-
 
52456
      boolean first = true;
-
 
52457
 
-
 
52458
      sb.append("orderId:");
-
 
52459
      sb.append(this.orderId);
-
 
52460
      first = false;
-
 
52461
      sb.append(")");
-
 
52462
      return sb.toString();
-
 
52463
    }
-
 
52464
 
-
 
52465
    public void validate() throws org.apache.thrift.TException {
-
 
52466
      // check for required fields
-
 
52467
    }
-
 
52468
 
-
 
52469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52470
      try {
-
 
52471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52472
      } catch (org.apache.thrift.TException te) {
-
 
52473
        throw new java.io.IOException(te);
-
 
52474
      }
-
 
52475
    }
-
 
52476
 
-
 
52477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52478
      try {
-
 
52479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52480
      } catch (org.apache.thrift.TException te) {
-
 
52481
        throw new java.io.IOException(te);
-
 
52482
      }
-
 
52483
    }
-
 
52484
 
-
 
52485
  }
-
 
52486
 
-
 
52487
  public static class markOrderCancellationRequestDenied_result implements org.apache.thrift.TBase<markOrderCancellationRequestDenied_result, markOrderCancellationRequestDenied_result._Fields>, java.io.Serializable, Cloneable   {
-
 
52488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestDenied_result");
-
 
52489
 
-
 
52490
    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);
-
 
52491
 
-
 
52492
    private TransactionServiceException ex; // required
-
 
52493
 
-
 
52494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52496
      EX((short)1, "ex");
-
 
52497
 
-
 
52498
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52499
 
-
 
52500
      static {
-
 
52501
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52502
          byName.put(field.getFieldName(), field);
-
 
52503
        }
-
 
52504
      }
-
 
52505
 
-
 
52506
      /**
-
 
52507
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52508
       */
-
 
52509
      public static _Fields findByThriftId(int fieldId) {
-
 
52510
        switch(fieldId) {
-
 
52511
          case 1: // EX
-
 
52512
            return EX;
-
 
52513
          default:
-
 
52514
            return null;
-
 
52515
        }
-
 
52516
      }
-
 
52517
 
-
 
52518
      /**
-
 
52519
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52520
       * if it is not found.
-
 
52521
       */
-
 
52522
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52523
        _Fields fields = findByThriftId(fieldId);
-
 
52524
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52525
        return fields;
-
 
52526
      }
-
 
52527
 
-
 
52528
      /**
-
 
52529
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52530
       */
-
 
52531
      public static _Fields findByName(String name) {
-
 
52532
        return byName.get(name);
-
 
52533
      }
-
 
52534
 
-
 
52535
      private final short _thriftId;
-
 
52536
      private final String _fieldName;
-
 
52537
 
-
 
52538
      _Fields(short thriftId, String fieldName) {
-
 
52539
        _thriftId = thriftId;
-
 
52540
        _fieldName = fieldName;
-
 
52541
      }
-
 
52542
 
-
 
52543
      public short getThriftFieldId() {
-
 
52544
        return _thriftId;
-
 
52545
      }
-
 
52546
 
-
 
52547
      public String getFieldName() {
-
 
52548
        return _fieldName;
-
 
52549
      }
-
 
52550
    }
-
 
52551
 
-
 
52552
    // isset id assignments
-
 
52553
 
-
 
52554
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52555
    static {
-
 
52556
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52557
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52558
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
52559
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52560
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestDenied_result.class, metaDataMap);
-
 
52561
    }
-
 
52562
 
-
 
52563
    public markOrderCancellationRequestDenied_result() {
-
 
52564
    }
-
 
52565
 
-
 
52566
    public markOrderCancellationRequestDenied_result(
-
 
52567
      TransactionServiceException ex)
-
 
52568
    {
-
 
52569
      this();
-
 
52570
      this.ex = ex;
-
 
52571
    }
-
 
52572
 
-
 
52573
    /**
-
 
52574
     * Performs a deep copy on <i>other</i>.
-
 
52575
     */
-
 
52576
    public markOrderCancellationRequestDenied_result(markOrderCancellationRequestDenied_result other) {
-
 
52577
      if (other.isSetEx()) {
-
 
52578
        this.ex = new TransactionServiceException(other.ex);
-
 
52579
      }
-
 
52580
    }
-
 
52581
 
-
 
52582
    public markOrderCancellationRequestDenied_result deepCopy() {
-
 
52583
      return new markOrderCancellationRequestDenied_result(this);
-
 
52584
    }
-
 
52585
 
-
 
52586
    @Override
-
 
52587
    public void clear() {
-
 
52588
      this.ex = null;
-
 
52589
    }
-
 
52590
 
-
 
52591
    public TransactionServiceException getEx() {
-
 
52592
      return this.ex;
-
 
52593
    }
-
 
52594
 
-
 
52595
    public void setEx(TransactionServiceException ex) {
-
 
52596
      this.ex = ex;
-
 
52597
    }
-
 
52598
 
-
 
52599
    public void unsetEx() {
-
 
52600
      this.ex = null;
-
 
52601
    }
-
 
52602
 
-
 
52603
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
52604
    public boolean isSetEx() {
-
 
52605
      return this.ex != null;
-
 
52606
    }
-
 
52607
 
-
 
52608
    public void setExIsSet(boolean value) {
-
 
52609
      if (!value) {
-
 
52610
        this.ex = null;
-
 
52611
      }
-
 
52612
    }
-
 
52613
 
-
 
52614
    public void setFieldValue(_Fields field, Object value) {
-
 
52615
      switch (field) {
-
 
52616
      case EX:
-
 
52617
        if (value == null) {
-
 
52618
          unsetEx();
-
 
52619
        } else {
-
 
52620
          setEx((TransactionServiceException)value);
-
 
52621
        }
-
 
52622
        break;
-
 
52623
 
-
 
52624
      }
-
 
52625
    }
-
 
52626
 
-
 
52627
    public Object getFieldValue(_Fields field) {
-
 
52628
      switch (field) {
-
 
52629
      case EX:
-
 
52630
        return getEx();
-
 
52631
 
-
 
52632
      }
-
 
52633
      throw new IllegalStateException();
-
 
52634
    }
-
 
52635
 
-
 
52636
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52637
    public boolean isSet(_Fields field) {
-
 
52638
      if (field == null) {
-
 
52639
        throw new IllegalArgumentException();
-
 
52640
      }
-
 
52641
 
-
 
52642
      switch (field) {
-
 
52643
      case EX:
-
 
52644
        return isSetEx();
-
 
52645
      }
-
 
52646
      throw new IllegalStateException();
-
 
52647
    }
-
 
52648
 
-
 
52649
    @Override
-
 
52650
    public boolean equals(Object that) {
-
 
52651
      if (that == null)
-
 
52652
        return false;
-
 
52653
      if (that instanceof markOrderCancellationRequestDenied_result)
-
 
52654
        return this.equals((markOrderCancellationRequestDenied_result)that);
-
 
52655
      return false;
-
 
52656
    }
-
 
52657
 
-
 
52658
    public boolean equals(markOrderCancellationRequestDenied_result that) {
-
 
52659
      if (that == null)
-
 
52660
        return false;
-
 
52661
 
-
 
52662
      boolean this_present_ex = true && this.isSetEx();
-
 
52663
      boolean that_present_ex = true && that.isSetEx();
-
 
52664
      if (this_present_ex || that_present_ex) {
-
 
52665
        if (!(this_present_ex && that_present_ex))
-
 
52666
          return false;
-
 
52667
        if (!this.ex.equals(that.ex))
-
 
52668
          return false;
-
 
52669
      }
-
 
52670
 
-
 
52671
      return true;
-
 
52672
    }
-
 
52673
 
-
 
52674
    @Override
-
 
52675
    public int hashCode() {
-
 
52676
      return 0;
-
 
52677
    }
-
 
52678
 
-
 
52679
    public int compareTo(markOrderCancellationRequestDenied_result other) {
-
 
52680
      if (!getClass().equals(other.getClass())) {
-
 
52681
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52682
      }
-
 
52683
 
-
 
52684
      int lastComparison = 0;
-
 
52685
      markOrderCancellationRequestDenied_result typedOther = (markOrderCancellationRequestDenied_result)other;
-
 
52686
 
-
 
52687
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
52688
      if (lastComparison != 0) {
-
 
52689
        return lastComparison;
-
 
52690
      }
-
 
52691
      if (isSetEx()) {
-
 
52692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
52693
        if (lastComparison != 0) {
-
 
52694
          return lastComparison;
-
 
52695
        }
-
 
52696
      }
-
 
52697
      return 0;
-
 
52698
    }
-
 
52699
 
-
 
52700
    public _Fields fieldForId(int fieldId) {
-
 
52701
      return _Fields.findByThriftId(fieldId);
-
 
52702
    }
-
 
52703
 
-
 
52704
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52705
      org.apache.thrift.protocol.TField field;
-
 
52706
      iprot.readStructBegin();
-
 
52707
      while (true)
-
 
52708
      {
-
 
52709
        field = iprot.readFieldBegin();
-
 
52710
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52711
          break;
-
 
52712
        }
-
 
52713
        switch (field.id) {
-
 
52714
          case 1: // EX
-
 
52715
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
52716
              this.ex = new TransactionServiceException();
-
 
52717
              this.ex.read(iprot);
-
 
52718
            } else { 
-
 
52719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52720
            }
-
 
52721
            break;
-
 
52722
          default:
-
 
52723
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52724
        }
-
 
52725
        iprot.readFieldEnd();
-
 
52726
      }
-
 
52727
      iprot.readStructEnd();
-
 
52728
      validate();
-
 
52729
    }
-
 
52730
 
-
 
52731
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52732
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52733
 
-
 
52734
      if (this.isSetEx()) {
-
 
52735
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
52736
        this.ex.write(oprot);
-
 
52737
        oprot.writeFieldEnd();
-
 
52738
      }
-
 
52739
      oprot.writeFieldStop();
-
 
52740
      oprot.writeStructEnd();
-
 
52741
    }
-
 
52742
 
-
 
52743
    @Override
-
 
52744
    public String toString() {
-
 
52745
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestDenied_result(");
-
 
52746
      boolean first = true;
-
 
52747
 
-
 
52748
      sb.append("ex:");
-
 
52749
      if (this.ex == null) {
-
 
52750
        sb.append("null");
-
 
52751
      } else {
-
 
52752
        sb.append(this.ex);
-
 
52753
      }
-
 
52754
      first = false;
-
 
52755
      sb.append(")");
-
 
52756
      return sb.toString();
-
 
52757
    }
-
 
52758
 
-
 
52759
    public void validate() throws org.apache.thrift.TException {
-
 
52760
      // check for required fields
-
 
52761
    }
-
 
52762
 
-
 
52763
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52764
      try {
-
 
52765
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52766
      } catch (org.apache.thrift.TException te) {
-
 
52767
        throw new java.io.IOException(te);
-
 
52768
      }
-
 
52769
    }
-
 
52770
 
-
 
52771
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52772
      try {
-
 
52773
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52774
      } catch (org.apache.thrift.TException te) {
-
 
52775
        throw new java.io.IOException(te);
-
 
52776
      }
-
 
52777
    }
-
 
52778
 
-
 
52779
  }
-
 
52780
 
-
 
52781
  public static class markOrderAsPaymentFlagRemoved_args implements org.apache.thrift.TBase<markOrderAsPaymentFlagRemoved_args, markOrderAsPaymentFlagRemoved_args._Fields>, java.io.Serializable, Cloneable   {
-
 
52782
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsPaymentFlagRemoved_args");
-
 
52783
 
-
 
52784
    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);
-
 
52785
 
-
 
52786
    private long orderId; // required
-
 
52787
 
-
 
52788
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52789
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52790
      ORDER_ID((short)1, "orderId");
-
 
52791
 
-
 
52792
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52793
 
-
 
52794
      static {
-
 
52795
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52796
          byName.put(field.getFieldName(), field);
-
 
52797
        }
-
 
52798
      }
-
 
52799
 
-
 
52800
      /**
-
 
52801
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52802
       */
-
 
52803
      public static _Fields findByThriftId(int fieldId) {
-
 
52804
        switch(fieldId) {
-
 
52805
          case 1: // ORDER_ID
-
 
52806
            return ORDER_ID;
-
 
52807
          default:
-
 
52808
            return null;
-
 
52809
        }
-
 
52810
      }
-
 
52811
 
-
 
52812
      /**
-
 
52813
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52814
       * if it is not found.
-
 
52815
       */
-
 
52816
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52817
        _Fields fields = findByThriftId(fieldId);
-
 
52818
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52819
        return fields;
-
 
52820
      }
-
 
52821
 
-
 
52822
      /**
-
 
52823
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52824
       */
-
 
52825
      public static _Fields findByName(String name) {
-
 
52826
        return byName.get(name);
-
 
52827
      }
-
 
52828
 
-
 
52829
      private final short _thriftId;
-
 
52830
      private final String _fieldName;
-
 
52831
 
-
 
52832
      _Fields(short thriftId, String fieldName) {
-
 
52833
        _thriftId = thriftId;
-
 
52834
        _fieldName = fieldName;
-
 
52835
      }
-
 
52836
 
-
 
52837
      public short getThriftFieldId() {
-
 
52838
        return _thriftId;
-
 
52839
      }
-
 
52840
 
-
 
52841
      public String getFieldName() {
-
 
52842
        return _fieldName;
-
 
52843
      }
-
 
52844
    }
-
 
52845
 
-
 
52846
    // isset id assignments
-
 
52847
    private static final int __ORDERID_ISSET_ID = 0;
-
 
52848
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
52849
 
-
 
52850
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52851
    static {
-
 
52852
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52853
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52854
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
52855
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52856
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsPaymentFlagRemoved_args.class, metaDataMap);
-
 
52857
    }
-
 
52858
 
-
 
52859
    public markOrderAsPaymentFlagRemoved_args() {
-
 
52860
    }
-
 
52861
 
-
 
52862
    public markOrderAsPaymentFlagRemoved_args(
-
 
52863
      long orderId)
-
 
52864
    {
-
 
52865
      this();
-
 
52866
      this.orderId = orderId;
-
 
52867
      setOrderIdIsSet(true);
-
 
52868
    }
-
 
52869
 
-
 
52870
    /**
-
 
52871
     * Performs a deep copy on <i>other</i>.
-
 
52872
     */
-
 
52873
    public markOrderAsPaymentFlagRemoved_args(markOrderAsPaymentFlagRemoved_args other) {
-
 
52874
      __isset_bit_vector.clear();
-
 
52875
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
52876
      this.orderId = other.orderId;
-
 
52877
    }
-
 
52878
 
-
 
52879
    public markOrderAsPaymentFlagRemoved_args deepCopy() {
-
 
52880
      return new markOrderAsPaymentFlagRemoved_args(this);
-
 
52881
    }
-
 
52882
 
-
 
52883
    @Override
-
 
52884
    public void clear() {
-
 
52885
      setOrderIdIsSet(false);
-
 
52886
      this.orderId = 0;
-
 
52887
    }
-
 
52888
 
-
 
52889
    public long getOrderId() {
-
 
52890
      return this.orderId;
-
 
52891
    }
-
 
52892
 
-
 
52893
    public void setOrderId(long orderId) {
-
 
52894
      this.orderId = orderId;
-
 
52895
      setOrderIdIsSet(true);
-
 
52896
    }
-
 
52897
 
-
 
52898
    public void unsetOrderId() {
-
 
52899
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
52900
    }
-
 
52901
 
-
 
52902
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
52903
    public boolean isSetOrderId() {
-
 
52904
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
52905
    }
-
 
52906
 
-
 
52907
    public void setOrderIdIsSet(boolean value) {
-
 
52908
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
52909
    }
-
 
52910
 
-
 
52911
    public void setFieldValue(_Fields field, Object value) {
-
 
52912
      switch (field) {
-
 
52913
      case ORDER_ID:
-
 
52914
        if (value == null) {
-
 
52915
          unsetOrderId();
-
 
52916
        } else {
-
 
52917
          setOrderId((Long)value);
-
 
52918
        }
-
 
52919
        break;
-
 
52920
 
-
 
52921
      }
-
 
52922
    }
-
 
52923
 
-
 
52924
    public Object getFieldValue(_Fields field) {
-
 
52925
      switch (field) {
-
 
52926
      case ORDER_ID:
-
 
52927
        return Long.valueOf(getOrderId());
-
 
52928
 
-
 
52929
      }
-
 
52930
      throw new IllegalStateException();
-
 
52931
    }
-
 
52932
 
-
 
52933
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52934
    public boolean isSet(_Fields field) {
-
 
52935
      if (field == null) {
-
 
52936
        throw new IllegalArgumentException();
-
 
52937
      }
-
 
52938
 
-
 
52939
      switch (field) {
-
 
52940
      case ORDER_ID:
-
 
52941
        return isSetOrderId();
-
 
52942
      }
-
 
52943
      throw new IllegalStateException();
-
 
52944
    }
-
 
52945
 
-
 
52946
    @Override
-
 
52947
    public boolean equals(Object that) {
-
 
52948
      if (that == null)
-
 
52949
        return false;
-
 
52950
      if (that instanceof markOrderAsPaymentFlagRemoved_args)
-
 
52951
        return this.equals((markOrderAsPaymentFlagRemoved_args)that);
-
 
52952
      return false;
-
 
52953
    }
-
 
52954
 
-
 
52955
    public boolean equals(markOrderAsPaymentFlagRemoved_args that) {
-
 
52956
      if (that == null)
-
 
52957
        return false;
-
 
52958
 
-
 
52959
      boolean this_present_orderId = true;
-
 
52960
      boolean that_present_orderId = true;
-
 
52961
      if (this_present_orderId || that_present_orderId) {
-
 
52962
        if (!(this_present_orderId && that_present_orderId))
-
 
52963
          return false;
-
 
52964
        if (this.orderId != that.orderId)
-
 
52965
          return false;
-
 
52966
      }
-
 
52967
 
-
 
52968
      return true;
-
 
52969
    }
-
 
52970
 
-
 
52971
    @Override
-
 
52972
    public int hashCode() {
-
 
52973
      return 0;
-
 
52974
    }
-
 
52975
 
-
 
52976
    public int compareTo(markOrderAsPaymentFlagRemoved_args other) {
-
 
52977
      if (!getClass().equals(other.getClass())) {
-
 
52978
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52979
      }
-
 
52980
 
-
 
52981
      int lastComparison = 0;
-
 
52982
      markOrderAsPaymentFlagRemoved_args typedOther = (markOrderAsPaymentFlagRemoved_args)other;
-
 
52983
 
-
 
52984
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
52985
      if (lastComparison != 0) {
-
 
52986
        return lastComparison;
-
 
52987
      }
-
 
52988
      if (isSetOrderId()) {
-
 
52989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
52990
        if (lastComparison != 0) {
-
 
52991
          return lastComparison;
-
 
52992
        }
-
 
52993
      }
-
 
52994
      return 0;
-
 
52995
    }
-
 
52996
 
-
 
52997
    public _Fields fieldForId(int fieldId) {
-
 
52998
      return _Fields.findByThriftId(fieldId);
-
 
52999
    }
-
 
53000
 
-
 
53001
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53002
      org.apache.thrift.protocol.TField field;
-
 
53003
      iprot.readStructBegin();
-
 
53004
      while (true)
-
 
53005
      {
-
 
53006
        field = iprot.readFieldBegin();
-
 
53007
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53008
          break;
-
 
53009
        }
-
 
53010
        switch (field.id) {
-
 
53011
          case 1: // ORDER_ID
-
 
53012
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53013
              this.orderId = iprot.readI64();
-
 
53014
              setOrderIdIsSet(true);
-
 
53015
            } else { 
-
 
53016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53017
            }
-
 
53018
            break;
-
 
53019
          default:
-
 
53020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53021
        }
-
 
53022
        iprot.readFieldEnd();
-
 
53023
      }
-
 
53024
      iprot.readStructEnd();
-
 
53025
      validate();
-
 
53026
    }
-
 
53027
 
-
 
53028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53029
      validate();
-
 
53030
 
-
 
53031
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53032
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
53033
      oprot.writeI64(this.orderId);
-
 
53034
      oprot.writeFieldEnd();
-
 
53035
      oprot.writeFieldStop();
-
 
53036
      oprot.writeStructEnd();
-
 
53037
    }
-
 
53038
 
-
 
53039
    @Override
-
 
53040
    public String toString() {
-
 
53041
      StringBuilder sb = new StringBuilder("markOrderAsPaymentFlagRemoved_args(");
-
 
53042
      boolean first = true;
-
 
53043
 
-
 
53044
      sb.append("orderId:");
-
 
53045
      sb.append(this.orderId);
-
 
53046
      first = false;
-
 
53047
      sb.append(")");
-
 
53048
      return sb.toString();
-
 
53049
    }
-
 
53050
 
-
 
53051
    public void validate() throws org.apache.thrift.TException {
-
 
53052
      // check for required fields
-
 
53053
    }
-
 
53054
 
-
 
53055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53056
      try {
-
 
53057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53058
      } catch (org.apache.thrift.TException te) {
-
 
53059
        throw new java.io.IOException(te);
-
 
53060
      }
-
 
53061
    }
-
 
53062
 
-
 
53063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53064
      try {
-
 
53065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53066
      } catch (org.apache.thrift.TException te) {
-
 
53067
        throw new java.io.IOException(te);
-
 
53068
      }
-
 
53069
    }
-
 
53070
 
-
 
53071
  }
-
 
53072
 
-
 
53073
  public static class markOrderAsPaymentFlagRemoved_result implements org.apache.thrift.TBase<markOrderAsPaymentFlagRemoved_result, markOrderAsPaymentFlagRemoved_result._Fields>, java.io.Serializable, Cloneable   {
-
 
53074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsPaymentFlagRemoved_result");
-
 
53075
 
-
 
53076
    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);
-
 
53077
 
-
 
53078
    private TransactionServiceException ex; // required
-
 
53079
 
-
 
53080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53081
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53082
      EX((short)1, "ex");
-
 
53083
 
-
 
53084
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53085
 
-
 
53086
      static {
-
 
53087
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53088
          byName.put(field.getFieldName(), field);
-
 
53089
        }
-
 
53090
      }
-
 
53091
 
-
 
53092
      /**
-
 
53093
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53094
       */
-
 
53095
      public static _Fields findByThriftId(int fieldId) {
-
 
53096
        switch(fieldId) {
-
 
53097
          case 1: // EX
-
 
53098
            return EX;
-
 
53099
          default:
-
 
53100
            return null;
-
 
53101
        }
-
 
53102
      }
-
 
53103
 
-
 
53104
      /**
-
 
53105
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53106
       * if it is not found.
-
 
53107
       */
-
 
53108
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53109
        _Fields fields = findByThriftId(fieldId);
-
 
53110
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53111
        return fields;
-
 
53112
      }
-
 
53113
 
-
 
53114
      /**
-
 
53115
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53116
       */
-
 
53117
      public static _Fields findByName(String name) {
-
 
53118
        return byName.get(name);
-
 
53119
      }
-
 
53120
 
-
 
53121
      private final short _thriftId;
-
 
53122
      private final String _fieldName;
-
 
53123
 
-
 
53124
      _Fields(short thriftId, String fieldName) {
-
 
53125
        _thriftId = thriftId;
-
 
53126
        _fieldName = fieldName;
-
 
53127
      }
-
 
53128
 
-
 
53129
      public short getThriftFieldId() {
-
 
53130
        return _thriftId;
-
 
53131
      }
-
 
53132
 
-
 
53133
      public String getFieldName() {
-
 
53134
        return _fieldName;
-
 
53135
      }
-
 
53136
    }
-
 
53137
 
-
 
53138
    // isset id assignments
-
 
53139
 
-
 
53140
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53141
    static {
-
 
53142
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53143
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
53145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsPaymentFlagRemoved_result.class, metaDataMap);
-
 
53147
    }
-
 
53148
 
-
 
53149
    public markOrderAsPaymentFlagRemoved_result() {
-
 
53150
    }
-
 
53151
 
-
 
53152
    public markOrderAsPaymentFlagRemoved_result(
-
 
53153
      TransactionServiceException ex)
-
 
53154
    {
-
 
53155
      this();
-
 
53156
      this.ex = ex;
-
 
53157
    }
-
 
53158
 
-
 
53159
    /**
-
 
53160
     * Performs a deep copy on <i>other</i>.
-
 
53161
     */
-
 
53162
    public markOrderAsPaymentFlagRemoved_result(markOrderAsPaymentFlagRemoved_result other) {
-
 
53163
      if (other.isSetEx()) {
-
 
53164
        this.ex = new TransactionServiceException(other.ex);
-
 
53165
      }
-
 
53166
    }
-
 
53167
 
-
 
53168
    public markOrderAsPaymentFlagRemoved_result deepCopy() {
-
 
53169
      return new markOrderAsPaymentFlagRemoved_result(this);
-
 
53170
    }
-
 
53171
 
-
 
53172
    @Override
-
 
53173
    public void clear() {
-
 
53174
      this.ex = null;
-
 
53175
    }
-
 
53176
 
-
 
53177
    public TransactionServiceException getEx() {
-
 
53178
      return this.ex;
-
 
53179
    }
-
 
53180
 
-
 
53181
    public void setEx(TransactionServiceException ex) {
-
 
53182
      this.ex = ex;
-
 
53183
    }
-
 
53184
 
-
 
53185
    public void unsetEx() {
-
 
53186
      this.ex = null;
-
 
53187
    }
-
 
53188
 
-
 
53189
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
53190
    public boolean isSetEx() {
-
 
53191
      return this.ex != null;
-
 
53192
    }
-
 
53193
 
-
 
53194
    public void setExIsSet(boolean value) {
-
 
53195
      if (!value) {
-
 
53196
        this.ex = null;
-
 
53197
      }
-
 
53198
    }
-
 
53199
 
-
 
53200
    public void setFieldValue(_Fields field, Object value) {
-
 
53201
      switch (field) {
-
 
53202
      case EX:
-
 
53203
        if (value == null) {
-
 
53204
          unsetEx();
-
 
53205
        } else {
-
 
53206
          setEx((TransactionServiceException)value);
-
 
53207
        }
-
 
53208
        break;
-
 
53209
 
-
 
53210
      }
-
 
53211
    }
-
 
53212
 
-
 
53213
    public Object getFieldValue(_Fields field) {
-
 
53214
      switch (field) {
-
 
53215
      case EX:
-
 
53216
        return getEx();
-
 
53217
 
-
 
53218
      }
-
 
53219
      throw new IllegalStateException();
-
 
53220
    }
-
 
53221
 
-
 
53222
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53223
    public boolean isSet(_Fields field) {
-
 
53224
      if (field == null) {
-
 
53225
        throw new IllegalArgumentException();
-
 
53226
      }
-
 
53227
 
-
 
53228
      switch (field) {
-
 
53229
      case EX:
-
 
53230
        return isSetEx();
-
 
53231
      }
-
 
53232
      throw new IllegalStateException();
-
 
53233
    }
-
 
53234
 
-
 
53235
    @Override
-
 
53236
    public boolean equals(Object that) {
-
 
53237
      if (that == null)
-
 
53238
        return false;
-
 
53239
      if (that instanceof markOrderAsPaymentFlagRemoved_result)
-
 
53240
        return this.equals((markOrderAsPaymentFlagRemoved_result)that);
-
 
53241
      return false;
-
 
53242
    }
-
 
53243
 
-
 
53244
    public boolean equals(markOrderAsPaymentFlagRemoved_result that) {
-
 
53245
      if (that == null)
-
 
53246
        return false;
-
 
53247
 
-
 
53248
      boolean this_present_ex = true && this.isSetEx();
-
 
53249
      boolean that_present_ex = true && that.isSetEx();
-
 
53250
      if (this_present_ex || that_present_ex) {
-
 
53251
        if (!(this_present_ex && that_present_ex))
-
 
53252
          return false;
-
 
53253
        if (!this.ex.equals(that.ex))
-
 
53254
          return false;
-
 
53255
      }
-
 
53256
 
-
 
53257
      return true;
-
 
53258
    }
-
 
53259
 
-
 
53260
    @Override
-
 
53261
    public int hashCode() {
-
 
53262
      return 0;
-
 
53263
    }
-
 
53264
 
-
 
53265
    public int compareTo(markOrderAsPaymentFlagRemoved_result other) {
-
 
53266
      if (!getClass().equals(other.getClass())) {
-
 
53267
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53268
      }
-
 
53269
 
-
 
53270
      int lastComparison = 0;
-
 
53271
      markOrderAsPaymentFlagRemoved_result typedOther = (markOrderAsPaymentFlagRemoved_result)other;
-
 
53272
 
-
 
53273
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
53274
      if (lastComparison != 0) {
-
 
53275
        return lastComparison;
-
 
53276
      }
-
 
53277
      if (isSetEx()) {
-
 
53278
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
53279
        if (lastComparison != 0) {
-
 
53280
          return lastComparison;
-
 
53281
        }
-
 
53282
      }
-
 
53283
      return 0;
-
 
53284
    }
-
 
53285
 
-
 
53286
    public _Fields fieldForId(int fieldId) {
-
 
53287
      return _Fields.findByThriftId(fieldId);
-
 
53288
    }
-
 
53289
 
-
 
53290
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53291
      org.apache.thrift.protocol.TField field;
-
 
53292
      iprot.readStructBegin();
-
 
53293
      while (true)
-
 
53294
      {
-
 
53295
        field = iprot.readFieldBegin();
-
 
53296
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53297
          break;
-
 
53298
        }
-
 
53299
        switch (field.id) {
-
 
53300
          case 1: // EX
-
 
53301
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
53302
              this.ex = new TransactionServiceException();
-
 
53303
              this.ex.read(iprot);
-
 
53304
            } else { 
-
 
53305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53306
            }
-
 
53307
            break;
-
 
53308
          default:
-
 
53309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53310
        }
-
 
53311
        iprot.readFieldEnd();
-
 
53312
      }
-
 
53313
      iprot.readStructEnd();
-
 
53314
      validate();
-
 
53315
    }
-
 
53316
 
-
 
53317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53318
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53319
 
-
 
53320
      if (this.isSetEx()) {
-
 
53321
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
53322
        this.ex.write(oprot);
-
 
53323
        oprot.writeFieldEnd();
-
 
53324
      }
-
 
53325
      oprot.writeFieldStop();
-
 
53326
      oprot.writeStructEnd();
-
 
53327
    }
-
 
53328
 
-
 
53329
    @Override
-
 
53330
    public String toString() {
-
 
53331
      StringBuilder sb = new StringBuilder("markOrderAsPaymentFlagRemoved_result(");
-
 
53332
      boolean first = true;
-
 
53333
 
-
 
53334
      sb.append("ex:");
-
 
53335
      if (this.ex == null) {
-
 
53336
        sb.append("null");
-
 
53337
      } else {
-
 
53338
        sb.append(this.ex);
-
 
53339
      }
-
 
53340
      first = false;
-
 
53341
      sb.append(")");
-
 
53342
      return sb.toString();
-
 
53343
    }
50655
 
53344
 
50656
    public void validate() throws org.apache.thrift.TException {
53345
    public void validate() throws org.apache.thrift.TException {
50657
      // check for required fields
53346
      // check for required fields
50658
    }
53347
    }
50659
 
53348