Subversion Repositories SmartDukaan

Rev

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

Rev 6985 Rev 6988
Line 912... Line 912...
912
 
912
 
913
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException;
913
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException;
914
 
914
 
915
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException;
915
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException;
916
 
916
 
-
 
917
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException;
-
 
918
 
917
  }
919
  }
918
 
920
 
919
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
921
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
920
 
922
 
921
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
923
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1218... Line 1220...
1218
 
1220
 
1219
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDocument_call> resultHandler) throws org.apache.thrift.TException;
1221
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDocument_call> resultHandler) throws org.apache.thrift.TException;
1220
 
1222
 
1221
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException;
1223
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException;
1222
 
1224
 
-
 
1225
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException;
-
 
1226
 
1223
  }
1227
  }
1224
 
1228
 
1225
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1229
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1226
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1230
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1227
      public Factory() {}
1231
      public Factory() {}
Line 5047... Line 5051...
5047
        return result.success;
5051
        return result.success;
5048
      }
5052
      }
5049
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeShippingAddress failed: unknown result");
5053
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeShippingAddress failed: unknown result");
5050
    }
5054
    }
5051
 
5055
 
-
 
5056
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException
-
 
5057
    {
-
 
5058
      send_retrieveInvoice(orderId);
-
 
5059
      return recv_retrieveInvoice();
-
 
5060
    }
-
 
5061
 
-
 
5062
    public void send_retrieveInvoice(long orderId) throws org.apache.thrift.TException
-
 
5063
    {
-
 
5064
      retrieveInvoice_args args = new retrieveInvoice_args();
-
 
5065
      args.setOrderId(orderId);
-
 
5066
      sendBase("retrieveInvoice", args);
-
 
5067
    }
-
 
5068
 
-
 
5069
    public ByteBuffer recv_retrieveInvoice() throws org.apache.thrift.TException
-
 
5070
    {
-
 
5071
      retrieveInvoice_result result = new retrieveInvoice_result();
-
 
5072
      receiveBase(result, "retrieveInvoice");
-
 
5073
      if (result.isSetSuccess()) {
-
 
5074
        return result.success;
-
 
5075
      }
-
 
5076
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveInvoice failed: unknown result");
-
 
5077
    }
-
 
5078
 
5052
  }
5079
  }
5053
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5080
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5054
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5081
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5055
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5082
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5056
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5083
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10350... Line 10377...
10350
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10377
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10351
        return (new Client(prot)).recv_changeShippingAddress();
10378
        return (new Client(prot)).recv_changeShippingAddress();
10352
      }
10379
      }
10353
    }
10380
    }
10354
 
10381
 
-
 
10382
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException {
-
 
10383
      checkReady();
-
 
10384
      retrieveInvoice_call method_call = new retrieveInvoice_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
10385
      this.___currentMethod = method_call;
-
 
10386
      ___manager.call(method_call);
-
 
10387
    }
-
 
10388
 
-
 
10389
    public static class retrieveInvoice_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10390
      private long orderId;
-
 
10391
      public retrieveInvoice_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<retrieveInvoice_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 {
-
 
10392
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10393
        this.orderId = orderId;
-
 
10394
      }
-
 
10395
 
-
 
10396
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10397
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retrieveInvoice", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10398
        retrieveInvoice_args args = new retrieveInvoice_args();
-
 
10399
        args.setOrderId(orderId);
-
 
10400
        args.write(prot);
-
 
10401
        prot.writeMessageEnd();
-
 
10402
      }
-
 
10403
 
-
 
10404
      public ByteBuffer getResult() throws org.apache.thrift.TException {
-
 
10405
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10406
          throw new IllegalStateException("Method call not finished!");
-
 
10407
        }
-
 
10408
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10409
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10410
        return (new Client(prot)).recv_retrieveInvoice();
-
 
10411
      }
-
 
10412
    }
-
 
10413
 
10355
  }
10414
  }
10356
 
10415
 
10357
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10416
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10358
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10417
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10359
    public Processor(I iface) {
10418
    public Processor(I iface) {
Line 10514... Line 10573...
10514
      processMap.put("getMiscCharges", new getMiscCharges());
10573
      processMap.put("getMiscCharges", new getMiscCharges());
10515
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10574
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10516
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10575
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10517
      processMap.put("getDocument", new getDocument());
10576
      processMap.put("getDocument", new getDocument());
10518
      processMap.put("changeShippingAddress", new changeShippingAddress());
10577
      processMap.put("changeShippingAddress", new changeShippingAddress());
-
 
10578
      processMap.put("retrieveInvoice", new retrieveInvoice());
10519
      return processMap;
10579
      return processMap;
10520
    }
10580
    }
10521
 
10581
 
10522
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10582
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10523
      public createTransaction() {
10583
      public createTransaction() {
Line 13361... Line 13421...
13361
        result.setSuccessIsSet(true);
13421
        result.setSuccessIsSet(true);
13362
        return result;
13422
        return result;
13363
      }
13423
      }
13364
    }
13424
    }
13365
 
13425
 
-
 
13426
    private static class retrieveInvoice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retrieveInvoice_args> {
-
 
13427
      public retrieveInvoice() {
-
 
13428
        super("retrieveInvoice");
-
 
13429
      }
-
 
13430
 
-
 
13431
      protected retrieveInvoice_args getEmptyArgsInstance() {
-
 
13432
        return new retrieveInvoice_args();
-
 
13433
      }
-
 
13434
 
-
 
13435
      protected retrieveInvoice_result getResult(I iface, retrieveInvoice_args args) throws org.apache.thrift.TException {
-
 
13436
        retrieveInvoice_result result = new retrieveInvoice_result();
-
 
13437
        result.success = iface.retrieveInvoice(args.orderId);
-
 
13438
        return result;
-
 
13439
      }
-
 
13440
    }
-
 
13441
 
13366
  }
13442
  }
13367
 
13443
 
13368
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13444
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13369
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13370
 
13446
 
Line 57467... Line 57543...
57467
      }
57543
      }
57468
    }
57544
    }
57469
 
57545
 
57470
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57471
      try {
57547
      try {
57472
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57473
        __isset_bit_vector = new BitSet(1);
-
 
57474
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57475
      } catch (org.apache.thrift.TException te) {
57549
      } catch (org.apache.thrift.TException te) {
57476
        throw new java.io.IOException(te);
57550
        throw new java.io.IOException(te);
57477
      }
57551
      }
57478
    }
57552
    }
Line 62319... Line 62393...
62319
      }
62393
      }
62320
    }
62394
    }
62321
 
62395
 
62322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62396
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62323
      try {
62397
      try {
62324
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62325
        __isset_bit_vector = new BitSet(1);
-
 
62326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62398
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62327
      } catch (org.apache.thrift.TException te) {
62399
      } catch (org.apache.thrift.TException te) {
62328
        throw new java.io.IOException(te);
62400
        throw new java.io.IOException(te);
62329
      }
62401
      }
62330
    }
62402
    }
Line 63752... Line 63824...
63752
      }
63824
      }
63753
    }
63825
    }
63754
 
63826
 
63755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63827
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63756
      try {
63828
      try {
63757
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63758
        __isset_bit_vector = new BitSet(1);
-
 
63759
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63829
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63760
      } catch (org.apache.thrift.TException te) {
63830
      } catch (org.apache.thrift.TException te) {
63761
        throw new java.io.IOException(te);
63831
        throw new java.io.IOException(te);
63762
      }
63832
      }
63763
    }
63833
    }
Line 123448... Line 123518...
123448
      first = false;
123518
      first = false;
123449
      sb.append(")");
123519
      sb.append(")");
123450
      return sb.toString();
123520
      return sb.toString();
123451
    }
123521
    }
123452
 
123522
 
-
 
123523
    public void validate() throws org.apache.thrift.TException {
-
 
123524
      // check for required fields
-
 
123525
    }
-
 
123526
 
-
 
123527
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
123528
      try {
-
 
123529
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
123530
      } catch (org.apache.thrift.TException te) {
-
 
123531
        throw new java.io.IOException(te);
-
 
123532
      }
-
 
123533
    }
-
 
123534
 
-
 
123535
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
123536
      try {
-
 
123537
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
123538
      } catch (org.apache.thrift.TException te) {
-
 
123539
        throw new java.io.IOException(te);
-
 
123540
      }
-
 
123541
    }
-
 
123542
 
-
 
123543
  }
-
 
123544
 
-
 
123545
  public static class retrieveInvoice_args implements org.apache.thrift.TBase<retrieveInvoice_args, retrieveInvoice_args._Fields>, java.io.Serializable, Cloneable   {
-
 
123546
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retrieveInvoice_args");
-
 
123547
 
-
 
123548
    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);
-
 
123549
 
-
 
123550
    private long orderId; // required
-
 
123551
 
-
 
123552
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
123553
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
123554
      ORDER_ID((short)1, "orderId");
-
 
123555
 
-
 
123556
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
123557
 
-
 
123558
      static {
-
 
123559
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
123560
          byName.put(field.getFieldName(), field);
-
 
123561
        }
-
 
123562
      }
-
 
123563
 
-
 
123564
      /**
-
 
123565
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
123566
       */
-
 
123567
      public static _Fields findByThriftId(int fieldId) {
-
 
123568
        switch(fieldId) {
-
 
123569
          case 1: // ORDER_ID
-
 
123570
            return ORDER_ID;
-
 
123571
          default:
-
 
123572
            return null;
-
 
123573
        }
-
 
123574
      }
-
 
123575
 
-
 
123576
      /**
-
 
123577
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
123578
       * if it is not found.
-
 
123579
       */
-
 
123580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
123581
        _Fields fields = findByThriftId(fieldId);
-
 
123582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
123583
        return fields;
-
 
123584
      }
-
 
123585
 
-
 
123586
      /**
-
 
123587
       * Find the _Fields constant that matches name, or null if its not found.
-
 
123588
       */
-
 
123589
      public static _Fields findByName(String name) {
-
 
123590
        return byName.get(name);
-
 
123591
      }
-
 
123592
 
-
 
123593
      private final short _thriftId;
-
 
123594
      private final String _fieldName;
-
 
123595
 
-
 
123596
      _Fields(short thriftId, String fieldName) {
-
 
123597
        _thriftId = thriftId;
-
 
123598
        _fieldName = fieldName;
-
 
123599
      }
-
 
123600
 
-
 
123601
      public short getThriftFieldId() {
-
 
123602
        return _thriftId;
-
 
123603
      }
-
 
123604
 
-
 
123605
      public String getFieldName() {
-
 
123606
        return _fieldName;
-
 
123607
      }
-
 
123608
    }
-
 
123609
 
-
 
123610
    // isset id assignments
-
 
123611
    private static final int __ORDERID_ISSET_ID = 0;
-
 
123612
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
123613
 
-
 
123614
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
123615
    static {
-
 
123616
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
123617
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
123618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
123619
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
123620
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retrieveInvoice_args.class, metaDataMap);
-
 
123621
    }
-
 
123622
 
-
 
123623
    public retrieveInvoice_args() {
-
 
123624
    }
-
 
123625
 
-
 
123626
    public retrieveInvoice_args(
-
 
123627
      long orderId)
-
 
123628
    {
-
 
123629
      this();
-
 
123630
      this.orderId = orderId;
-
 
123631
      setOrderIdIsSet(true);
-
 
123632
    }
-
 
123633
 
-
 
123634
    /**
-
 
123635
     * Performs a deep copy on <i>other</i>.
-
 
123636
     */
-
 
123637
    public retrieveInvoice_args(retrieveInvoice_args other) {
-
 
123638
      __isset_bit_vector.clear();
-
 
123639
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
123640
      this.orderId = other.orderId;
-
 
123641
    }
-
 
123642
 
-
 
123643
    public retrieveInvoice_args deepCopy() {
-
 
123644
      return new retrieveInvoice_args(this);
-
 
123645
    }
-
 
123646
 
-
 
123647
    @Override
-
 
123648
    public void clear() {
-
 
123649
      setOrderIdIsSet(false);
-
 
123650
      this.orderId = 0;
-
 
123651
    }
-
 
123652
 
-
 
123653
    public long getOrderId() {
-
 
123654
      return this.orderId;
-
 
123655
    }
-
 
123656
 
-
 
123657
    public void setOrderId(long orderId) {
-
 
123658
      this.orderId = orderId;
-
 
123659
      setOrderIdIsSet(true);
-
 
123660
    }
-
 
123661
 
-
 
123662
    public void unsetOrderId() {
-
 
123663
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
123664
    }
-
 
123665
 
-
 
123666
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
123667
    public boolean isSetOrderId() {
-
 
123668
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
123669
    }
-
 
123670
 
-
 
123671
    public void setOrderIdIsSet(boolean value) {
-
 
123672
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
123673
    }
-
 
123674
 
-
 
123675
    public void setFieldValue(_Fields field, Object value) {
-
 
123676
      switch (field) {
-
 
123677
      case ORDER_ID:
-
 
123678
        if (value == null) {
-
 
123679
          unsetOrderId();
-
 
123680
        } else {
-
 
123681
          setOrderId((Long)value);
-
 
123682
        }
-
 
123683
        break;
-
 
123684
 
-
 
123685
      }
-
 
123686
    }
-
 
123687
 
-
 
123688
    public Object getFieldValue(_Fields field) {
-
 
123689
      switch (field) {
-
 
123690
      case ORDER_ID:
-
 
123691
        return Long.valueOf(getOrderId());
-
 
123692
 
-
 
123693
      }
-
 
123694
      throw new IllegalStateException();
-
 
123695
    }
-
 
123696
 
-
 
123697
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
123698
    public boolean isSet(_Fields field) {
-
 
123699
      if (field == null) {
-
 
123700
        throw new IllegalArgumentException();
-
 
123701
      }
-
 
123702
 
-
 
123703
      switch (field) {
-
 
123704
      case ORDER_ID:
-
 
123705
        return isSetOrderId();
-
 
123706
      }
-
 
123707
      throw new IllegalStateException();
-
 
123708
    }
-
 
123709
 
-
 
123710
    @Override
-
 
123711
    public boolean equals(Object that) {
-
 
123712
      if (that == null)
-
 
123713
        return false;
-
 
123714
      if (that instanceof retrieveInvoice_args)
-
 
123715
        return this.equals((retrieveInvoice_args)that);
-
 
123716
      return false;
-
 
123717
    }
-
 
123718
 
-
 
123719
    public boolean equals(retrieveInvoice_args that) {
-
 
123720
      if (that == null)
-
 
123721
        return false;
-
 
123722
 
-
 
123723
      boolean this_present_orderId = true;
-
 
123724
      boolean that_present_orderId = true;
-
 
123725
      if (this_present_orderId || that_present_orderId) {
-
 
123726
        if (!(this_present_orderId && that_present_orderId))
-
 
123727
          return false;
-
 
123728
        if (this.orderId != that.orderId)
-
 
123729
          return false;
-
 
123730
      }
-
 
123731
 
-
 
123732
      return true;
-
 
123733
    }
-
 
123734
 
-
 
123735
    @Override
-
 
123736
    public int hashCode() {
-
 
123737
      return 0;
-
 
123738
    }
-
 
123739
 
-
 
123740
    public int compareTo(retrieveInvoice_args other) {
-
 
123741
      if (!getClass().equals(other.getClass())) {
-
 
123742
        return getClass().getName().compareTo(other.getClass().getName());
-
 
123743
      }
-
 
123744
 
-
 
123745
      int lastComparison = 0;
-
 
123746
      retrieveInvoice_args typedOther = (retrieveInvoice_args)other;
-
 
123747
 
-
 
123748
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
123749
      if (lastComparison != 0) {
-
 
123750
        return lastComparison;
-
 
123751
      }
-
 
123752
      if (isSetOrderId()) {
-
 
123753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
123754
        if (lastComparison != 0) {
-
 
123755
          return lastComparison;
-
 
123756
        }
-
 
123757
      }
-
 
123758
      return 0;
-
 
123759
    }
-
 
123760
 
-
 
123761
    public _Fields fieldForId(int fieldId) {
-
 
123762
      return _Fields.findByThriftId(fieldId);
-
 
123763
    }
-
 
123764
 
-
 
123765
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
123766
      org.apache.thrift.protocol.TField field;
-
 
123767
      iprot.readStructBegin();
-
 
123768
      while (true)
-
 
123769
      {
-
 
123770
        field = iprot.readFieldBegin();
-
 
123771
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
123772
          break;
-
 
123773
        }
-
 
123774
        switch (field.id) {
-
 
123775
          case 1: // ORDER_ID
-
 
123776
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
123777
              this.orderId = iprot.readI64();
-
 
123778
              setOrderIdIsSet(true);
-
 
123779
            } else { 
-
 
123780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123781
            }
-
 
123782
            break;
-
 
123783
          default:
-
 
123784
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123785
        }
-
 
123786
        iprot.readFieldEnd();
-
 
123787
      }
-
 
123788
      iprot.readStructEnd();
-
 
123789
      validate();
-
 
123790
    }
-
 
123791
 
-
 
123792
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
123793
      validate();
-
 
123794
 
-
 
123795
      oprot.writeStructBegin(STRUCT_DESC);
-
 
123796
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
123797
      oprot.writeI64(this.orderId);
-
 
123798
      oprot.writeFieldEnd();
-
 
123799
      oprot.writeFieldStop();
-
 
123800
      oprot.writeStructEnd();
-
 
123801
    }
-
 
123802
 
-
 
123803
    @Override
-
 
123804
    public String toString() {
-
 
123805
      StringBuilder sb = new StringBuilder("retrieveInvoice_args(");
-
 
123806
      boolean first = true;
-
 
123807
 
-
 
123808
      sb.append("orderId:");
-
 
123809
      sb.append(this.orderId);
-
 
123810
      first = false;
-
 
123811
      sb.append(")");
-
 
123812
      return sb.toString();
-
 
123813
    }
-
 
123814
 
-
 
123815
    public void validate() throws org.apache.thrift.TException {
-
 
123816
      // check for required fields
-
 
123817
    }
-
 
123818
 
-
 
123819
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
123820
      try {
-
 
123821
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
123822
      } catch (org.apache.thrift.TException te) {
-
 
123823
        throw new java.io.IOException(te);
-
 
123824
      }
-
 
123825
    }
-
 
123826
 
-
 
123827
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
123828
      try {
-
 
123829
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
123830
        __isset_bit_vector = new BitSet(1);
-
 
123831
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
123832
      } catch (org.apache.thrift.TException te) {
-
 
123833
        throw new java.io.IOException(te);
-
 
123834
      }
-
 
123835
    }
-
 
123836
 
-
 
123837
  }
-
 
123838
 
-
 
123839
  public static class retrieveInvoice_result implements org.apache.thrift.TBase<retrieveInvoice_result, retrieveInvoice_result._Fields>, java.io.Serializable, Cloneable   {
-
 
123840
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retrieveInvoice_result");
-
 
123841
 
-
 
123842
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
123843
 
-
 
123844
    private ByteBuffer success; // required
-
 
123845
 
-
 
123846
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
123847
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
123848
      SUCCESS((short)0, "success");
-
 
123849
 
-
 
123850
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
123851
 
-
 
123852
      static {
-
 
123853
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
123854
          byName.put(field.getFieldName(), field);
-
 
123855
        }
-
 
123856
      }
-
 
123857
 
-
 
123858
      /**
-
 
123859
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
123860
       */
-
 
123861
      public static _Fields findByThriftId(int fieldId) {
-
 
123862
        switch(fieldId) {
-
 
123863
          case 0: // SUCCESS
-
 
123864
            return SUCCESS;
-
 
123865
          default:
-
 
123866
            return null;
-
 
123867
        }
-
 
123868
      }
-
 
123869
 
-
 
123870
      /**
-
 
123871
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
123872
       * if it is not found.
-
 
123873
       */
-
 
123874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
123875
        _Fields fields = findByThriftId(fieldId);
-
 
123876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
123877
        return fields;
-
 
123878
      }
-
 
123879
 
-
 
123880
      /**
-
 
123881
       * Find the _Fields constant that matches name, or null if its not found.
-
 
123882
       */
-
 
123883
      public static _Fields findByName(String name) {
-
 
123884
        return byName.get(name);
-
 
123885
      }
-
 
123886
 
-
 
123887
      private final short _thriftId;
-
 
123888
      private final String _fieldName;
-
 
123889
 
-
 
123890
      _Fields(short thriftId, String fieldName) {
-
 
123891
        _thriftId = thriftId;
-
 
123892
        _fieldName = fieldName;
-
 
123893
      }
-
 
123894
 
-
 
123895
      public short getThriftFieldId() {
-
 
123896
        return _thriftId;
-
 
123897
      }
-
 
123898
 
-
 
123899
      public String getFieldName() {
-
 
123900
        return _fieldName;
-
 
123901
      }
-
 
123902
    }
-
 
123903
 
-
 
123904
    // isset id assignments
-
 
123905
 
-
 
123906
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
123907
    static {
-
 
123908
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
123909
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
123910
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , true)));
-
 
123911
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
123912
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retrieveInvoice_result.class, metaDataMap);
-
 
123913
    }
-
 
123914
 
-
 
123915
    public retrieveInvoice_result() {
-
 
123916
    }
-
 
123917
 
-
 
123918
    public retrieveInvoice_result(
-
 
123919
      ByteBuffer success)
-
 
123920
    {
-
 
123921
      this();
-
 
123922
      this.success = success;
-
 
123923
    }
-
 
123924
 
-
 
123925
    /**
-
 
123926
     * Performs a deep copy on <i>other</i>.
-
 
123927
     */
-
 
123928
    public retrieveInvoice_result(retrieveInvoice_result other) {
-
 
123929
      if (other.isSetSuccess()) {
-
 
123930
        this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success);
-
 
123931
;
-
 
123932
      }
-
 
123933
    }
-
 
123934
 
-
 
123935
    public retrieveInvoice_result deepCopy() {
-
 
123936
      return new retrieveInvoice_result(this);
-
 
123937
    }
-
 
123938
 
-
 
123939
    @Override
-
 
123940
    public void clear() {
-
 
123941
      this.success = null;
-
 
123942
    }
-
 
123943
 
-
 
123944
    public byte[] getSuccess() {
-
 
123945
      setSuccess(org.apache.thrift.TBaseHelper.rightSize(success));
-
 
123946
      return success == null ? null : success.array();
-
 
123947
    }
-
 
123948
 
-
 
123949
    public ByteBuffer bufferForSuccess() {
-
 
123950
      return success;
-
 
123951
    }
-
 
123952
 
-
 
123953
    public void setSuccess(byte[] success) {
-
 
123954
      setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success));
-
 
123955
    }
-
 
123956
 
-
 
123957
    public void setSuccess(ByteBuffer success) {
-
 
123958
      this.success = success;
-
 
123959
    }
-
 
123960
 
-
 
123961
    public void unsetSuccess() {
-
 
123962
      this.success = null;
-
 
123963
    }
-
 
123964
 
-
 
123965
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
123966
    public boolean isSetSuccess() {
-
 
123967
      return this.success != null;
-
 
123968
    }
-
 
123969
 
-
 
123970
    public void setSuccessIsSet(boolean value) {
-
 
123971
      if (!value) {
-
 
123972
        this.success = null;
-
 
123973
      }
-
 
123974
    }
-
 
123975
 
-
 
123976
    public void setFieldValue(_Fields field, Object value) {
-
 
123977
      switch (field) {
-
 
123978
      case SUCCESS:
-
 
123979
        if (value == null) {
-
 
123980
          unsetSuccess();
-
 
123981
        } else {
-
 
123982
          setSuccess((ByteBuffer)value);
-
 
123983
        }
-
 
123984
        break;
-
 
123985
 
-
 
123986
      }
-
 
123987
    }
-
 
123988
 
-
 
123989
    public Object getFieldValue(_Fields field) {
-
 
123990
      switch (field) {
-
 
123991
      case SUCCESS:
-
 
123992
        return getSuccess();
-
 
123993
 
-
 
123994
      }
-
 
123995
      throw new IllegalStateException();
-
 
123996
    }
-
 
123997
 
-
 
123998
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
123999
    public boolean isSet(_Fields field) {
-
 
124000
      if (field == null) {
-
 
124001
        throw new IllegalArgumentException();
-
 
124002
      }
-
 
124003
 
-
 
124004
      switch (field) {
-
 
124005
      case SUCCESS:
-
 
124006
        return isSetSuccess();
-
 
124007
      }
-
 
124008
      throw new IllegalStateException();
-
 
124009
    }
-
 
124010
 
-
 
124011
    @Override
-
 
124012
    public boolean equals(Object that) {
-
 
124013
      if (that == null)
-
 
124014
        return false;
-
 
124015
      if (that instanceof retrieveInvoice_result)
-
 
124016
        return this.equals((retrieveInvoice_result)that);
-
 
124017
      return false;
-
 
124018
    }
-
 
124019
 
-
 
124020
    public boolean equals(retrieveInvoice_result that) {
-
 
124021
      if (that == null)
-
 
124022
        return false;
-
 
124023
 
-
 
124024
      boolean this_present_success = true && this.isSetSuccess();
-
 
124025
      boolean that_present_success = true && that.isSetSuccess();
-
 
124026
      if (this_present_success || that_present_success) {
-
 
124027
        if (!(this_present_success && that_present_success))
-
 
124028
          return false;
-
 
124029
        if (!this.success.equals(that.success))
-
 
124030
          return false;
-
 
124031
      }
-
 
124032
 
-
 
124033
      return true;
-
 
124034
    }
-
 
124035
 
-
 
124036
    @Override
-
 
124037
    public int hashCode() {
-
 
124038
      return 0;
-
 
124039
    }
-
 
124040
 
-
 
124041
    public int compareTo(retrieveInvoice_result other) {
-
 
124042
      if (!getClass().equals(other.getClass())) {
-
 
124043
        return getClass().getName().compareTo(other.getClass().getName());
-
 
124044
      }
-
 
124045
 
-
 
124046
      int lastComparison = 0;
-
 
124047
      retrieveInvoice_result typedOther = (retrieveInvoice_result)other;
-
 
124048
 
-
 
124049
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
124050
      if (lastComparison != 0) {
-
 
124051
        return lastComparison;
-
 
124052
      }
-
 
124053
      if (isSetSuccess()) {
-
 
124054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
124055
        if (lastComparison != 0) {
-
 
124056
          return lastComparison;
-
 
124057
        }
-
 
124058
      }
-
 
124059
      return 0;
-
 
124060
    }
-
 
124061
 
-
 
124062
    public _Fields fieldForId(int fieldId) {
-
 
124063
      return _Fields.findByThriftId(fieldId);
-
 
124064
    }
-
 
124065
 
-
 
124066
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
124067
      org.apache.thrift.protocol.TField field;
-
 
124068
      iprot.readStructBegin();
-
 
124069
      while (true)
-
 
124070
      {
-
 
124071
        field = iprot.readFieldBegin();
-
 
124072
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
124073
          break;
-
 
124074
        }
-
 
124075
        switch (field.id) {
-
 
124076
          case 0: // SUCCESS
-
 
124077
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
124078
              this.success = iprot.readBinary();
-
 
124079
            } else { 
-
 
124080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124081
            }
-
 
124082
            break;
-
 
124083
          default:
-
 
124084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124085
        }
-
 
124086
        iprot.readFieldEnd();
-
 
124087
      }
-
 
124088
      iprot.readStructEnd();
-
 
124089
      validate();
-
 
124090
    }
-
 
124091
 
-
 
124092
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
124093
      oprot.writeStructBegin(STRUCT_DESC);
-
 
124094
 
-
 
124095
      if (this.isSetSuccess()) {
-
 
124096
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
124097
        oprot.writeBinary(this.success);
-
 
124098
        oprot.writeFieldEnd();
-
 
124099
      }
-
 
124100
      oprot.writeFieldStop();
-
 
124101
      oprot.writeStructEnd();
-
 
124102
    }
-
 
124103
 
-
 
124104
    @Override
-
 
124105
    public String toString() {
-
 
124106
      StringBuilder sb = new StringBuilder("retrieveInvoice_result(");
-
 
124107
      boolean first = true;
-
 
124108
 
-
 
124109
      sb.append("success:");
-
 
124110
      if (this.success == null) {
-
 
124111
        sb.append("null");
-
 
124112
      } else {
-
 
124113
        org.apache.thrift.TBaseHelper.toString(this.success, sb);
-
 
124114
      }
-
 
124115
      first = false;
-
 
124116
      sb.append(")");
-
 
124117
      return sb.toString();
-
 
124118
    }
-
 
124119
 
123453
    public void validate() throws org.apache.thrift.TException {
124120
    public void validate() throws org.apache.thrift.TException {
123454
      // check for required fields
124121
      // check for required fields
123455
    }
124122
    }
123456
 
124123
 
123457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
124124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {