Subversion Repositories SmartDukaan

Rev

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

Rev 12614 Rev 12653
Line 1086... Line 1086...
1086
 
1086
 
1087
    public List<FlipkartAdvantageOrder> getAllFAOrdersList() throws TransactionServiceException, org.apache.thrift.TException;
1087
    public List<FlipkartAdvantageOrder> getAllFAOrdersList() throws TransactionServiceException, org.apache.thrift.TException;
1088
 
1088
 
1089
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList) throws TransactionServiceException, org.apache.thrift.TException;
1089
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList) throws TransactionServiceException, org.apache.thrift.TException;
1090
 
1090
 
-
 
1091
    public void addInvoiceDetailsToOrders(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1092
 
1091
  }
1093
  }
1092
 
1094
 
1093
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1095
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1094
 
1096
 
1095
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1097
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1558... Line 1560...
1558
 
1560
 
1559
    public void getAllFAOrdersList(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFAOrdersList_call> resultHandler) throws org.apache.thrift.TException;
1561
    public void getAllFAOrdersList(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFAOrdersList_call> resultHandler) throws org.apache.thrift.TException;
1560
 
1562
 
1561
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateFaOrdersBulk_call> resultHandler) throws org.apache.thrift.TException;
1563
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateFaOrdersBulk_call> resultHandler) throws org.apache.thrift.TException;
1562
 
1564
 
-
 
1565
    public void addInvoiceDetailsToOrders(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInvoiceDetailsToOrders_call> resultHandler) throws org.apache.thrift.TException;
-
 
1566
 
1563
  }
1567
  }
1564
 
1568
 
1565
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1569
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1566
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1570
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1567
      public Factory() {}
1571
      public Factory() {}
Line 7349... Line 7353...
7349
        throw result.ex;
7353
        throw result.ex;
7350
      }
7354
      }
7351
      return;
7355
      return;
7352
    }
7356
    }
7353
 
7357
 
-
 
7358
    public void addInvoiceDetailsToOrders(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException
-
 
7359
    {
-
 
7360
      send_addInvoiceDetailsToOrders(transactionId, customerId);
-
 
7361
      recv_addInvoiceDetailsToOrders();
-
 
7362
    }
-
 
7363
 
-
 
7364
    public void send_addInvoiceDetailsToOrders(long transactionId, long customerId) throws org.apache.thrift.TException
-
 
7365
    {
-
 
7366
      addInvoiceDetailsToOrders_args args = new addInvoiceDetailsToOrders_args();
-
 
7367
      args.setTransactionId(transactionId);
-
 
7368
      args.setCustomerId(customerId);
-
 
7369
      sendBase("addInvoiceDetailsToOrders", args);
-
 
7370
    }
-
 
7371
 
-
 
7372
    public void recv_addInvoiceDetailsToOrders() throws TransactionServiceException, org.apache.thrift.TException
-
 
7373
    {
-
 
7374
      addInvoiceDetailsToOrders_result result = new addInvoiceDetailsToOrders_result();
-
 
7375
      receiveBase(result, "addInvoiceDetailsToOrders");
-
 
7376
      if (result.ex != null) {
-
 
7377
        throw result.ex;
-
 
7378
      }
-
 
7379
      return;
-
 
7380
    }
-
 
7381
 
7354
  }
7382
  }
7355
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7383
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7356
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7384
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7357
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7385
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7358
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
7386
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 15485... Line 15513...
15485
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
15513
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
15486
        (new Client(prot)).recv_addUpdateFaOrdersBulk();
15514
        (new Client(prot)).recv_addUpdateFaOrdersBulk();
15487
      }
15515
      }
15488
    }
15516
    }
15489
 
15517
 
-
 
15518
    public void addInvoiceDetailsToOrders(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<addInvoiceDetailsToOrders_call> resultHandler) throws org.apache.thrift.TException {
-
 
15519
      checkReady();
-
 
15520
      addInvoiceDetailsToOrders_call method_call = new addInvoiceDetailsToOrders_call(transactionId, customerId, resultHandler, this, ___protocolFactory, ___transport);
-
 
15521
      this.___currentMethod = method_call;
-
 
15522
      ___manager.call(method_call);
-
 
15523
    }
-
 
15524
 
-
 
15525
    public static class addInvoiceDetailsToOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
15526
      private long transactionId;
-
 
15527
      private long customerId;
-
 
15528
      public addInvoiceDetailsToOrders_call(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<addInvoiceDetailsToOrders_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 {
-
 
15529
        super(client, protocolFactory, transport, resultHandler, false);
-
 
15530
        this.transactionId = transactionId;
-
 
15531
        this.customerId = customerId;
-
 
15532
      }
-
 
15533
 
-
 
15534
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
15535
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInvoiceDetailsToOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
15536
        addInvoiceDetailsToOrders_args args = new addInvoiceDetailsToOrders_args();
-
 
15537
        args.setTransactionId(transactionId);
-
 
15538
        args.setCustomerId(customerId);
-
 
15539
        args.write(prot);
-
 
15540
        prot.writeMessageEnd();
-
 
15541
      }
-
 
15542
 
-
 
15543
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
15544
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
15545
          throw new IllegalStateException("Method call not finished!");
-
 
15546
        }
-
 
15547
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
15548
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
15549
        (new Client(prot)).recv_addInvoiceDetailsToOrders();
-
 
15550
      }
-
 
15551
    }
-
 
15552
 
15490
  }
15553
  }
15491
 
15554
 
15492
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
15555
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
15493
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
15556
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
15494
    public Processor(I iface) {
15557
    public Processor(I iface) {
Line 15732... Line 15795...
15732
      processMap.put("getTotalSaleReturnsFbaSkusCurentTime", new getTotalSaleReturnsFbaSkusCurentTime());
15795
      processMap.put("getTotalSaleReturnsFbaSkusCurentTime", new getTotalSaleReturnsFbaSkusCurentTime());
15733
      processMap.put("getVerificationPendingOrdersFK", new getVerificationPendingOrdersFK());
15796
      processMap.put("getVerificationPendingOrdersFK", new getVerificationPendingOrdersFK());
15734
      processMap.put("getFAOrderByFkOrderId", new getFAOrderByFkOrderId());
15797
      processMap.put("getFAOrderByFkOrderId", new getFAOrderByFkOrderId());
15735
      processMap.put("getAllFAOrdersList", new getAllFAOrdersList());
15798
      processMap.put("getAllFAOrdersList", new getAllFAOrdersList());
15736
      processMap.put("addUpdateFaOrdersBulk", new addUpdateFaOrdersBulk());
15799
      processMap.put("addUpdateFaOrdersBulk", new addUpdateFaOrdersBulk());
-
 
15800
      processMap.put("addInvoiceDetailsToOrders", new addInvoiceDetailsToOrders());
15737
      return processMap;
15801
      return processMap;
15738
    }
15802
    }
15739
 
15803
 
15740
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15804
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15741
      public createTransaction() {
15805
      public createTransaction() {
Line 19977... Line 20041...
19977
        }
20041
        }
19978
        return result;
20042
        return result;
19979
      }
20043
      }
19980
    }
20044
    }
19981
 
20045
 
-
 
20046
    private static class addInvoiceDetailsToOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInvoiceDetailsToOrders_args> {
-
 
20047
      public addInvoiceDetailsToOrders() {
-
 
20048
        super("addInvoiceDetailsToOrders");
-
 
20049
      }
-
 
20050
 
-
 
20051
      protected addInvoiceDetailsToOrders_args getEmptyArgsInstance() {
-
 
20052
        return new addInvoiceDetailsToOrders_args();
-
 
20053
      }
-
 
20054
 
-
 
20055
      protected addInvoiceDetailsToOrders_result getResult(I iface, addInvoiceDetailsToOrders_args args) throws org.apache.thrift.TException {
-
 
20056
        addInvoiceDetailsToOrders_result result = new addInvoiceDetailsToOrders_result();
-
 
20057
        try {
-
 
20058
          iface.addInvoiceDetailsToOrders(args.transactionId, args.customerId);
-
 
20059
        } catch (TransactionServiceException ex) {
-
 
20060
          result.ex = ex;
-
 
20061
        }
-
 
20062
        return result;
-
 
20063
      }
-
 
20064
    }
-
 
20065
 
19982
  }
20066
  }
19983
 
20067
 
19984
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
20068
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
19985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
20069
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
19986
 
20070
 
Line 184586... Line 184670...
184586
  }
184670
  }
184587
 
184671
 
184588
  public static class addUpdateFaOrdersBulk_args implements org.apache.thrift.TBase<addUpdateFaOrdersBulk_args, addUpdateFaOrdersBulk_args._Fields>, java.io.Serializable, Cloneable   {
184672
  public static class addUpdateFaOrdersBulk_args implements org.apache.thrift.TBase<addUpdateFaOrdersBulk_args, addUpdateFaOrdersBulk_args._Fields>, java.io.Serializable, Cloneable   {
184589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateFaOrdersBulk_args");
184673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateFaOrdersBulk_args");
184590
 
184674
 
184591
    private static final org.apache.thrift.protocol.TField FA_ORDERS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("faOrdersList", org.apache.thrift.protocol.TType.LIST, (short)-1);
184675
    private static final org.apache.thrift.protocol.TField FA_ORDERS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("faOrdersList", org.apache.thrift.protocol.TType.LIST, (short)1);
184592
 
184676
 
184593
    private List<FlipkartAdvantageOrder> faOrdersList; // required
184677
    private List<FlipkartAdvantageOrder> faOrdersList; // required
184594
 
184678
 
184595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
184679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
184596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
184680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
184597
      FA_ORDERS_LIST((short)-1, "faOrdersList");
184681
      FA_ORDERS_LIST((short)1, "faOrdersList");
184598
 
184682
 
184599
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
184683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
184600
 
184684
 
184601
      static {
184685
      static {
184602
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
184686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 184607... Line 184691...
184607
      /**
184691
      /**
184608
       * Find the _Fields constant that matches fieldId, or null if its not found.
184692
       * Find the _Fields constant that matches fieldId, or null if its not found.
184609
       */
184693
       */
184610
      public static _Fields findByThriftId(int fieldId) {
184694
      public static _Fields findByThriftId(int fieldId) {
184611
        switch(fieldId) {
184695
        switch(fieldId) {
184612
          case -1: // FA_ORDERS_LIST
184696
          case 1: // FA_ORDERS_LIST
184613
            return FA_ORDERS_LIST;
184697
            return FA_ORDERS_LIST;
184614
          default:
184698
          default:
184615
            return null;
184699
            return null;
184616
        }
184700
        }
184617
      }
184701
      }
Line 184830... Line 184914...
184830
        field = iprot.readFieldBegin();
184914
        field = iprot.readFieldBegin();
184831
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
184915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
184832
          break;
184916
          break;
184833
        }
184917
        }
184834
        switch (field.id) {
184918
        switch (field.id) {
184835
          case -1: // FA_ORDERS_LIST
184919
          case 1: // FA_ORDERS_LIST
184836
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
184920
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
184837
              {
184921
              {
184838
                org.apache.thrift.protocol.TList _list585 = iprot.readListBegin();
184922
                org.apache.thrift.protocol.TList _list585 = iprot.readListBegin();
184839
                this.faOrdersList = new ArrayList<FlipkartAdvantageOrder>(_list585.size);
184923
                this.faOrdersList = new ArrayList<FlipkartAdvantageOrder>(_list585.size);
184840
                for (int _i586 = 0; _i586 < _list585.size; ++_i586)
184924
                for (int _i586 = 0; _i586 < _list585.size; ++_i586)
Line 185179... Line 185263...
185179
      boolean first = true;
185263
      boolean first = true;
185180
 
185264
 
185181
      sb.append("ex:");
185265
      sb.append("ex:");
185182
      if (this.ex == null) {
185266
      if (this.ex == null) {
185183
        sb.append("null");
185267
        sb.append("null");
-
 
185268
      } else {
-
 
185269
        sb.append(this.ex);
-
 
185270
      }
-
 
185271
      first = false;
-
 
185272
      sb.append(")");
-
 
185273
      return sb.toString();
-
 
185274
    }
-
 
185275
 
-
 
185276
    public void validate() throws org.apache.thrift.TException {
-
 
185277
      // check for required fields
-
 
185278
    }
-
 
185279
 
-
 
185280
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
185281
      try {
-
 
185282
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
185283
      } catch (org.apache.thrift.TException te) {
-
 
185284
        throw new java.io.IOException(te);
-
 
185285
      }
-
 
185286
    }
-
 
185287
 
-
 
185288
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
185289
      try {
-
 
185290
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
185291
      } catch (org.apache.thrift.TException te) {
-
 
185292
        throw new java.io.IOException(te);
-
 
185293
      }
-
 
185294
    }
-
 
185295
 
-
 
185296
  }
-
 
185297
 
-
 
185298
  public static class addInvoiceDetailsToOrders_args implements org.apache.thrift.TBase<addInvoiceDetailsToOrders_args, addInvoiceDetailsToOrders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
185299
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInvoiceDetailsToOrders_args");
-
 
185300
 
-
 
185301
    private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
185302
    private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
185303
 
-
 
185304
    private long transactionId; // required
-
 
185305
    private long customerId; // required
-
 
185306
 
-
 
185307
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
185308
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
185309
      TRANSACTION_ID((short)1, "transactionId"),
-
 
185310
      CUSTOMER_ID((short)2, "customerId");
-
 
185311
 
-
 
185312
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
185313
 
-
 
185314
      static {
-
 
185315
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
185316
          byName.put(field.getFieldName(), field);
-
 
185317
        }
-
 
185318
      }
-
 
185319
 
-
 
185320
      /**
-
 
185321
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
185322
       */
-
 
185323
      public static _Fields findByThriftId(int fieldId) {
-
 
185324
        switch(fieldId) {
-
 
185325
          case 1: // TRANSACTION_ID
-
 
185326
            return TRANSACTION_ID;
-
 
185327
          case 2: // CUSTOMER_ID
-
 
185328
            return CUSTOMER_ID;
-
 
185329
          default:
-
 
185330
            return null;
-
 
185331
        }
-
 
185332
      }
-
 
185333
 
-
 
185334
      /**
-
 
185335
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
185336
       * if it is not found.
-
 
185337
       */
-
 
185338
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
185339
        _Fields fields = findByThriftId(fieldId);
-
 
185340
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
185341
        return fields;
-
 
185342
      }
-
 
185343
 
-
 
185344
      /**
-
 
185345
       * Find the _Fields constant that matches name, or null if its not found.
-
 
185346
       */
-
 
185347
      public static _Fields findByName(String name) {
-
 
185348
        return byName.get(name);
-
 
185349
      }
-
 
185350
 
-
 
185351
      private final short _thriftId;
-
 
185352
      private final String _fieldName;
-
 
185353
 
-
 
185354
      _Fields(short thriftId, String fieldName) {
-
 
185355
        _thriftId = thriftId;
-
 
185356
        _fieldName = fieldName;
-
 
185357
      }
-
 
185358
 
-
 
185359
      public short getThriftFieldId() {
-
 
185360
        return _thriftId;
-
 
185361
      }
-
 
185362
 
-
 
185363
      public String getFieldName() {
-
 
185364
        return _fieldName;
-
 
185365
      }
-
 
185366
    }
-
 
185367
 
-
 
185368
    // isset id assignments
-
 
185369
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
185370
    private static final int __CUSTOMERID_ISSET_ID = 1;
-
 
185371
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
185372
 
-
 
185373
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
185374
    static {
-
 
185375
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
185376
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
185378
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
185380
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
185381
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInvoiceDetailsToOrders_args.class, metaDataMap);
-
 
185382
    }
-
 
185383
 
-
 
185384
    public addInvoiceDetailsToOrders_args() {
-
 
185385
    }
-
 
185386
 
-
 
185387
    public addInvoiceDetailsToOrders_args(
-
 
185388
      long transactionId,
-
 
185389
      long customerId)
-
 
185390
    {
-
 
185391
      this();
-
 
185392
      this.transactionId = transactionId;
-
 
185393
      setTransactionIdIsSet(true);
-
 
185394
      this.customerId = customerId;
-
 
185395
      setCustomerIdIsSet(true);
-
 
185396
    }
-
 
185397
 
-
 
185398
    /**
-
 
185399
     * Performs a deep copy on <i>other</i>.
-
 
185400
     */
-
 
185401
    public addInvoiceDetailsToOrders_args(addInvoiceDetailsToOrders_args other) {
-
 
185402
      __isset_bit_vector.clear();
-
 
185403
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
185404
      this.transactionId = other.transactionId;
-
 
185405
      this.customerId = other.customerId;
-
 
185406
    }
-
 
185407
 
-
 
185408
    public addInvoiceDetailsToOrders_args deepCopy() {
-
 
185409
      return new addInvoiceDetailsToOrders_args(this);
-
 
185410
    }
-
 
185411
 
-
 
185412
    @Override
-
 
185413
    public void clear() {
-
 
185414
      setTransactionIdIsSet(false);
-
 
185415
      this.transactionId = 0;
-
 
185416
      setCustomerIdIsSet(false);
-
 
185417
      this.customerId = 0;
-
 
185418
    }
-
 
185419
 
-
 
185420
    public long getTransactionId() {
-
 
185421
      return this.transactionId;
-
 
185422
    }
-
 
185423
 
-
 
185424
    public void setTransactionId(long transactionId) {
-
 
185425
      this.transactionId = transactionId;
-
 
185426
      setTransactionIdIsSet(true);
-
 
185427
    }
-
 
185428
 
-
 
185429
    public void unsetTransactionId() {
-
 
185430
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
185431
    }
-
 
185432
 
-
 
185433
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
-
 
185434
    public boolean isSetTransactionId() {
-
 
185435
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
185436
    }
-
 
185437
 
-
 
185438
    public void setTransactionIdIsSet(boolean value) {
-
 
185439
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
185440
    }
-
 
185441
 
-
 
185442
    public long getCustomerId() {
-
 
185443
      return this.customerId;
-
 
185444
    }
-
 
185445
 
-
 
185446
    public void setCustomerId(long customerId) {
-
 
185447
      this.customerId = customerId;
-
 
185448
      setCustomerIdIsSet(true);
-
 
185449
    }
-
 
185450
 
-
 
185451
    public void unsetCustomerId() {
-
 
185452
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
-
 
185453
    }
-
 
185454
 
-
 
185455
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
-
 
185456
    public boolean isSetCustomerId() {
-
 
185457
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
-
 
185458
    }
-
 
185459
 
-
 
185460
    public void setCustomerIdIsSet(boolean value) {
-
 
185461
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
-
 
185462
    }
-
 
185463
 
-
 
185464
    public void setFieldValue(_Fields field, Object value) {
-
 
185465
      switch (field) {
-
 
185466
      case TRANSACTION_ID:
-
 
185467
        if (value == null) {
-
 
185468
          unsetTransactionId();
-
 
185469
        } else {
-
 
185470
          setTransactionId((Long)value);
-
 
185471
        }
-
 
185472
        break;
-
 
185473
 
-
 
185474
      case CUSTOMER_ID:
-
 
185475
        if (value == null) {
-
 
185476
          unsetCustomerId();
-
 
185477
        } else {
-
 
185478
          setCustomerId((Long)value);
-
 
185479
        }
-
 
185480
        break;
-
 
185481
 
-
 
185482
      }
-
 
185483
    }
-
 
185484
 
-
 
185485
    public Object getFieldValue(_Fields field) {
-
 
185486
      switch (field) {
-
 
185487
      case TRANSACTION_ID:
-
 
185488
        return Long.valueOf(getTransactionId());
-
 
185489
 
-
 
185490
      case CUSTOMER_ID:
-
 
185491
        return Long.valueOf(getCustomerId());
-
 
185492
 
-
 
185493
      }
-
 
185494
      throw new IllegalStateException();
-
 
185495
    }
-
 
185496
 
-
 
185497
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
185498
    public boolean isSet(_Fields field) {
-
 
185499
      if (field == null) {
-
 
185500
        throw new IllegalArgumentException();
-
 
185501
      }
-
 
185502
 
-
 
185503
      switch (field) {
-
 
185504
      case TRANSACTION_ID:
-
 
185505
        return isSetTransactionId();
-
 
185506
      case CUSTOMER_ID:
-
 
185507
        return isSetCustomerId();
-
 
185508
      }
-
 
185509
      throw new IllegalStateException();
-
 
185510
    }
-
 
185511
 
-
 
185512
    @Override
-
 
185513
    public boolean equals(Object that) {
-
 
185514
      if (that == null)
-
 
185515
        return false;
-
 
185516
      if (that instanceof addInvoiceDetailsToOrders_args)
-
 
185517
        return this.equals((addInvoiceDetailsToOrders_args)that);
-
 
185518
      return false;
-
 
185519
    }
-
 
185520
 
-
 
185521
    public boolean equals(addInvoiceDetailsToOrders_args that) {
-
 
185522
      if (that == null)
-
 
185523
        return false;
-
 
185524
 
-
 
185525
      boolean this_present_transactionId = true;
-
 
185526
      boolean that_present_transactionId = true;
-
 
185527
      if (this_present_transactionId || that_present_transactionId) {
-
 
185528
        if (!(this_present_transactionId && that_present_transactionId))
-
 
185529
          return false;
-
 
185530
        if (this.transactionId != that.transactionId)
-
 
185531
          return false;
-
 
185532
      }
-
 
185533
 
-
 
185534
      boolean this_present_customerId = true;
-
 
185535
      boolean that_present_customerId = true;
-
 
185536
      if (this_present_customerId || that_present_customerId) {
-
 
185537
        if (!(this_present_customerId && that_present_customerId))
-
 
185538
          return false;
-
 
185539
        if (this.customerId != that.customerId)
-
 
185540
          return false;
-
 
185541
      }
-
 
185542
 
-
 
185543
      return true;
-
 
185544
    }
-
 
185545
 
-
 
185546
    @Override
-
 
185547
    public int hashCode() {
-
 
185548
      return 0;
-
 
185549
    }
-
 
185550
 
-
 
185551
    public int compareTo(addInvoiceDetailsToOrders_args other) {
-
 
185552
      if (!getClass().equals(other.getClass())) {
-
 
185553
        return getClass().getName().compareTo(other.getClass().getName());
-
 
185554
      }
-
 
185555
 
-
 
185556
      int lastComparison = 0;
-
 
185557
      addInvoiceDetailsToOrders_args typedOther = (addInvoiceDetailsToOrders_args)other;
-
 
185558
 
-
 
185559
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
-
 
185560
      if (lastComparison != 0) {
-
 
185561
        return lastComparison;
-
 
185562
      }
-
 
185563
      if (isSetTransactionId()) {
-
 
185564
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
-
 
185565
        if (lastComparison != 0) {
-
 
185566
          return lastComparison;
-
 
185567
        }
-
 
185568
      }
-
 
185569
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
-
 
185570
      if (lastComparison != 0) {
-
 
185571
        return lastComparison;
-
 
185572
      }
-
 
185573
      if (isSetCustomerId()) {
-
 
185574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
-
 
185575
        if (lastComparison != 0) {
-
 
185576
          return lastComparison;
-
 
185577
        }
-
 
185578
      }
-
 
185579
      return 0;
-
 
185580
    }
-
 
185581
 
-
 
185582
    public _Fields fieldForId(int fieldId) {
-
 
185583
      return _Fields.findByThriftId(fieldId);
-
 
185584
    }
-
 
185585
 
-
 
185586
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
185587
      org.apache.thrift.protocol.TField field;
-
 
185588
      iprot.readStructBegin();
-
 
185589
      while (true)
-
 
185590
      {
-
 
185591
        field = iprot.readFieldBegin();
-
 
185592
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
185593
          break;
-
 
185594
        }
-
 
185595
        switch (field.id) {
-
 
185596
          case 1: // TRANSACTION_ID
-
 
185597
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
185598
              this.transactionId = iprot.readI64();
-
 
185599
              setTransactionIdIsSet(true);
-
 
185600
            } else { 
-
 
185601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
185602
            }
-
 
185603
            break;
-
 
185604
          case 2: // CUSTOMER_ID
-
 
185605
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
185606
              this.customerId = iprot.readI64();
-
 
185607
              setCustomerIdIsSet(true);
-
 
185608
            } else { 
-
 
185609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
185610
            }
-
 
185611
            break;
-
 
185612
          default:
-
 
185613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
185614
        }
-
 
185615
        iprot.readFieldEnd();
-
 
185616
      }
-
 
185617
      iprot.readStructEnd();
-
 
185618
      validate();
-
 
185619
    }
-
 
185620
 
-
 
185621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
185622
      validate();
-
 
185623
 
-
 
185624
      oprot.writeStructBegin(STRUCT_DESC);
-
 
185625
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
185626
      oprot.writeI64(this.transactionId);
-
 
185627
      oprot.writeFieldEnd();
-
 
185628
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
185629
      oprot.writeI64(this.customerId);
-
 
185630
      oprot.writeFieldEnd();
-
 
185631
      oprot.writeFieldStop();
-
 
185632
      oprot.writeStructEnd();
-
 
185633
    }
-
 
185634
 
-
 
185635
    @Override
-
 
185636
    public String toString() {
-
 
185637
      StringBuilder sb = new StringBuilder("addInvoiceDetailsToOrders_args(");
-
 
185638
      boolean first = true;
-
 
185639
 
-
 
185640
      sb.append("transactionId:");
-
 
185641
      sb.append(this.transactionId);
-
 
185642
      first = false;
-
 
185643
      if (!first) sb.append(", ");
-
 
185644
      sb.append("customerId:");
-
 
185645
      sb.append(this.customerId);
-
 
185646
      first = false;
-
 
185647
      sb.append(")");
-
 
185648
      return sb.toString();
-
 
185649
    }
-
 
185650
 
-
 
185651
    public void validate() throws org.apache.thrift.TException {
-
 
185652
      // check for required fields
-
 
185653
    }
-
 
185654
 
-
 
185655
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
185656
      try {
-
 
185657
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
185658
      } catch (org.apache.thrift.TException te) {
-
 
185659
        throw new java.io.IOException(te);
-
 
185660
      }
-
 
185661
    }
-
 
185662
 
-
 
185663
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
185664
      try {
-
 
185665
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
185666
        __isset_bit_vector = new BitSet(1);
-
 
185667
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
185668
      } catch (org.apache.thrift.TException te) {
-
 
185669
        throw new java.io.IOException(te);
-
 
185670
      }
-
 
185671
    }
-
 
185672
 
-
 
185673
  }
-
 
185674
 
-
 
185675
  public static class addInvoiceDetailsToOrders_result implements org.apache.thrift.TBase<addInvoiceDetailsToOrders_result, addInvoiceDetailsToOrders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
185676
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInvoiceDetailsToOrders_result");
-
 
185677
 
-
 
185678
    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);
-
 
185679
 
-
 
185680
    private TransactionServiceException ex; // required
-
 
185681
 
-
 
185682
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
185683
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
185684
      EX((short)1, "ex");
-
 
185685
 
-
 
185686
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
185687
 
-
 
185688
      static {
-
 
185689
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
185690
          byName.put(field.getFieldName(), field);
-
 
185691
        }
-
 
185692
      }
-
 
185693
 
-
 
185694
      /**
-
 
185695
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
185696
       */
-
 
185697
      public static _Fields findByThriftId(int fieldId) {
-
 
185698
        switch(fieldId) {
-
 
185699
          case 1: // EX
-
 
185700
            return EX;
-
 
185701
          default:
-
 
185702
            return null;
-
 
185703
        }
-
 
185704
      }
-
 
185705
 
-
 
185706
      /**
-
 
185707
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
185708
       * if it is not found.
-
 
185709
       */
-
 
185710
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
185711
        _Fields fields = findByThriftId(fieldId);
-
 
185712
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
185713
        return fields;
-
 
185714
      }
-
 
185715
 
-
 
185716
      /**
-
 
185717
       * Find the _Fields constant that matches name, or null if its not found.
-
 
185718
       */
-
 
185719
      public static _Fields findByName(String name) {
-
 
185720
        return byName.get(name);
-
 
185721
      }
-
 
185722
 
-
 
185723
      private final short _thriftId;
-
 
185724
      private final String _fieldName;
-
 
185725
 
-
 
185726
      _Fields(short thriftId, String fieldName) {
-
 
185727
        _thriftId = thriftId;
-
 
185728
        _fieldName = fieldName;
-
 
185729
      }
-
 
185730
 
-
 
185731
      public short getThriftFieldId() {
-
 
185732
        return _thriftId;
-
 
185733
      }
-
 
185734
 
-
 
185735
      public String getFieldName() {
-
 
185736
        return _fieldName;
-
 
185737
      }
-
 
185738
    }
-
 
185739
 
-
 
185740
    // isset id assignments
-
 
185741
 
-
 
185742
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
185743
    static {
-
 
185744
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
185745
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
185747
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
185748
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInvoiceDetailsToOrders_result.class, metaDataMap);
-
 
185749
    }
-
 
185750
 
-
 
185751
    public addInvoiceDetailsToOrders_result() {
-
 
185752
    }
-
 
185753
 
-
 
185754
    public addInvoiceDetailsToOrders_result(
-
 
185755
      TransactionServiceException ex)
-
 
185756
    {
-
 
185757
      this();
-
 
185758
      this.ex = ex;
-
 
185759
    }
-
 
185760
 
-
 
185761
    /**
-
 
185762
     * Performs a deep copy on <i>other</i>.
-
 
185763
     */
-
 
185764
    public addInvoiceDetailsToOrders_result(addInvoiceDetailsToOrders_result other) {
-
 
185765
      if (other.isSetEx()) {
-
 
185766
        this.ex = new TransactionServiceException(other.ex);
-
 
185767
      }
-
 
185768
    }
-
 
185769
 
-
 
185770
    public addInvoiceDetailsToOrders_result deepCopy() {
-
 
185771
      return new addInvoiceDetailsToOrders_result(this);
-
 
185772
    }
-
 
185773
 
-
 
185774
    @Override
-
 
185775
    public void clear() {
-
 
185776
      this.ex = null;
-
 
185777
    }
-
 
185778
 
-
 
185779
    public TransactionServiceException getEx() {
-
 
185780
      return this.ex;
-
 
185781
    }
-
 
185782
 
-
 
185783
    public void setEx(TransactionServiceException ex) {
-
 
185784
      this.ex = ex;
-
 
185785
    }
-
 
185786
 
-
 
185787
    public void unsetEx() {
-
 
185788
      this.ex = null;
-
 
185789
    }
-
 
185790
 
-
 
185791
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
185792
    public boolean isSetEx() {
-
 
185793
      return this.ex != null;
-
 
185794
    }
-
 
185795
 
-
 
185796
    public void setExIsSet(boolean value) {
-
 
185797
      if (!value) {
-
 
185798
        this.ex = null;
-
 
185799
      }
-
 
185800
    }
-
 
185801
 
-
 
185802
    public void setFieldValue(_Fields field, Object value) {
-
 
185803
      switch (field) {
-
 
185804
      case EX:
-
 
185805
        if (value == null) {
-
 
185806
          unsetEx();
-
 
185807
        } else {
-
 
185808
          setEx((TransactionServiceException)value);
-
 
185809
        }
-
 
185810
        break;
-
 
185811
 
-
 
185812
      }
-
 
185813
    }
-
 
185814
 
-
 
185815
    public Object getFieldValue(_Fields field) {
-
 
185816
      switch (field) {
-
 
185817
      case EX:
-
 
185818
        return getEx();
-
 
185819
 
-
 
185820
      }
-
 
185821
      throw new IllegalStateException();
-
 
185822
    }
-
 
185823
 
-
 
185824
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
185825
    public boolean isSet(_Fields field) {
-
 
185826
      if (field == null) {
-
 
185827
        throw new IllegalArgumentException();
-
 
185828
      }
-
 
185829
 
-
 
185830
      switch (field) {
-
 
185831
      case EX:
-
 
185832
        return isSetEx();
-
 
185833
      }
-
 
185834
      throw new IllegalStateException();
-
 
185835
    }
-
 
185836
 
-
 
185837
    @Override
-
 
185838
    public boolean equals(Object that) {
-
 
185839
      if (that == null)
-
 
185840
        return false;
-
 
185841
      if (that instanceof addInvoiceDetailsToOrders_result)
-
 
185842
        return this.equals((addInvoiceDetailsToOrders_result)that);
-
 
185843
      return false;
-
 
185844
    }
-
 
185845
 
-
 
185846
    public boolean equals(addInvoiceDetailsToOrders_result that) {
-
 
185847
      if (that == null)
-
 
185848
        return false;
-
 
185849
 
-
 
185850
      boolean this_present_ex = true && this.isSetEx();
-
 
185851
      boolean that_present_ex = true && that.isSetEx();
-
 
185852
      if (this_present_ex || that_present_ex) {
-
 
185853
        if (!(this_present_ex && that_present_ex))
-
 
185854
          return false;
-
 
185855
        if (!this.ex.equals(that.ex))
-
 
185856
          return false;
-
 
185857
      }
-
 
185858
 
-
 
185859
      return true;
-
 
185860
    }
-
 
185861
 
-
 
185862
    @Override
-
 
185863
    public int hashCode() {
-
 
185864
      return 0;
-
 
185865
    }
-
 
185866
 
-
 
185867
    public int compareTo(addInvoiceDetailsToOrders_result other) {
-
 
185868
      if (!getClass().equals(other.getClass())) {
-
 
185869
        return getClass().getName().compareTo(other.getClass().getName());
-
 
185870
      }
-
 
185871
 
-
 
185872
      int lastComparison = 0;
-
 
185873
      addInvoiceDetailsToOrders_result typedOther = (addInvoiceDetailsToOrders_result)other;
-
 
185874
 
-
 
185875
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
185876
      if (lastComparison != 0) {
-
 
185877
        return lastComparison;
-
 
185878
      }
-
 
185879
      if (isSetEx()) {
-
 
185880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
185881
        if (lastComparison != 0) {
-
 
185882
          return lastComparison;
-
 
185883
        }
-
 
185884
      }
-
 
185885
      return 0;
-
 
185886
    }
-
 
185887
 
-
 
185888
    public _Fields fieldForId(int fieldId) {
-
 
185889
      return _Fields.findByThriftId(fieldId);
-
 
185890
    }
-
 
185891
 
-
 
185892
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
185893
      org.apache.thrift.protocol.TField field;
-
 
185894
      iprot.readStructBegin();
-
 
185895
      while (true)
-
 
185896
      {
-
 
185897
        field = iprot.readFieldBegin();
-
 
185898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
185899
          break;
-
 
185900
        }
-
 
185901
        switch (field.id) {
-
 
185902
          case 1: // EX
-
 
185903
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
185904
              this.ex = new TransactionServiceException();
-
 
185905
              this.ex.read(iprot);
-
 
185906
            } else { 
-
 
185907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
185908
            }
-
 
185909
            break;
-
 
185910
          default:
-
 
185911
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
185912
        }
-
 
185913
        iprot.readFieldEnd();
-
 
185914
      }
-
 
185915
      iprot.readStructEnd();
-
 
185916
      validate();
-
 
185917
    }
-
 
185918
 
-
 
185919
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
185920
      oprot.writeStructBegin(STRUCT_DESC);
-
 
185921
 
-
 
185922
      if (this.isSetEx()) {
-
 
185923
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
185924
        this.ex.write(oprot);
-
 
185925
        oprot.writeFieldEnd();
-
 
185926
      }
-
 
185927
      oprot.writeFieldStop();
-
 
185928
      oprot.writeStructEnd();
-
 
185929
    }
-
 
185930
 
-
 
185931
    @Override
-
 
185932
    public String toString() {
-
 
185933
      StringBuilder sb = new StringBuilder("addInvoiceDetailsToOrders_result(");
-
 
185934
      boolean first = true;
-
 
185935
 
-
 
185936
      sb.append("ex:");
-
 
185937
      if (this.ex == null) {
-
 
185938
        sb.append("null");
185184
      } else {
185939
      } else {
185185
        sb.append(this.ex);
185940
        sb.append(this.ex);
185186
      }
185941
      }
185187
      first = false;
185942
      first = false;
185188
      sb.append(")");
185943
      sb.append(")");