Subversion Repositories SmartDukaan

Rev

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

Rev 4488 Rev 4495
Line 382... Line 382...
382
     * @param orderId
382
     * @param orderId
383
     * @param isValid
383
     * @param isValid
384
     */
384
     */
385
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;
385
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;
386
 
386
 
-
 
387
    public boolean validateReturnProduct(long orderId, boolean isUsable) throws TransactionServiceException, org.apache.thrift.TException;
-
 
388
 
387
    /**
389
    /**
388
     * If the order is in RTO_RECEIVED_PRESTINE or DOA_CERT_INVALID state, it does the following:
390
     * If the order is in RTO_RECEIVED_PRESTINE or DOA_CERT_INVALID state, it does the following:
389
     * 	1. Creates a new order for processing in the BILLED state. All billing information is saved.
391
     * 	1. Creates a new order for processing in the BILLED state. All billing information is saved.
390
     * 	2. Marks the current order as one of the final states RTO_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
392
     * 	2. Marks the current order as one of the final states RTO_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
391
     * 	
393
     * 	
Line 729... Line 731...
729
 
731
 
730
    public void receiveReturn(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;
732
    public void receiveReturn(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;
731
 
733
 
732
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;
734
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;
733
 
735
 
-
 
736
    public void validateReturnProduct(long orderId, boolean isUsable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateReturnProduct_call> resultHandler) throws org.apache.thrift.TException;
-
 
737
 
734
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;
738
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;
735
 
739
 
736
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundOrder_call> resultHandler) throws org.apache.thrift.TException;
740
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundOrder_call> resultHandler) throws org.apache.thrift.TException;
737
 
741
 
738
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrders_call> resultHandler) throws org.apache.thrift.TException;
742
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrders_call> resultHandler) throws org.apache.thrift.TException;
Line 2115... Line 2119...
2115
        throw result.ex;
2119
        throw result.ex;
2116
      }
2120
      }
2117
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
2121
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
2118
    }
2122
    }
2119
 
2123
 
-
 
2124
    public boolean validateReturnProduct(long orderId, boolean isUsable) throws TransactionServiceException, org.apache.thrift.TException
-
 
2125
    {
-
 
2126
      send_validateReturnProduct(orderId, isUsable);
-
 
2127
      return recv_validateReturnProduct();
-
 
2128
    }
-
 
2129
 
-
 
2130
    public void send_validateReturnProduct(long orderId, boolean isUsable) throws org.apache.thrift.TException
-
 
2131
    {
-
 
2132
      validateReturnProduct_args args = new validateReturnProduct_args();
-
 
2133
      args.setOrderId(orderId);
-
 
2134
      args.setIsUsable(isUsable);
-
 
2135
      sendBase("validateReturnProduct", args);
-
 
2136
    }
-
 
2137
 
-
 
2138
    public boolean recv_validateReturnProduct() throws TransactionServiceException, org.apache.thrift.TException
-
 
2139
    {
-
 
2140
      validateReturnProduct_result result = new validateReturnProduct_result();
-
 
2141
      receiveBase(result, "validateReturnProduct");
-
 
2142
      if (result.isSetSuccess()) {
-
 
2143
        return result.success;
-
 
2144
      }
-
 
2145
      if (result.ex != null) {
-
 
2146
        throw result.ex;
-
 
2147
      }
-
 
2148
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateReturnProduct failed: unknown result");
-
 
2149
    }
-
 
2150
 
2120
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2151
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2121
    {
2152
    {
2122
      send_reshipOrder(orderId);
2153
      send_reshipOrder(orderId);
2123
      return recv_reshipOrder();
2154
      return recv_reshipOrder();
2124
    }
2155
    }
Line 4571... Line 4602...
4571
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4602
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4572
        return (new Client(prot)).recv_validateDoa();
4603
        return (new Client(prot)).recv_validateDoa();
4573
      }
4604
      }
4574
    }
4605
    }
4575
 
4606
 
-
 
4607
    public void validateReturnProduct(long orderId, boolean isUsable, org.apache.thrift.async.AsyncMethodCallback<validateReturnProduct_call> resultHandler) throws org.apache.thrift.TException {
-
 
4608
      checkReady();
-
 
4609
      validateReturnProduct_call method_call = new validateReturnProduct_call(orderId, isUsable, resultHandler, this, ___protocolFactory, ___transport);
-
 
4610
      this.___currentMethod = method_call;
-
 
4611
      ___manager.call(method_call);
-
 
4612
    }
-
 
4613
 
-
 
4614
    public static class validateReturnProduct_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4615
      private long orderId;
-
 
4616
      private boolean isUsable;
-
 
4617
      public validateReturnProduct_call(long orderId, boolean isUsable, org.apache.thrift.async.AsyncMethodCallback<validateReturnProduct_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 {
-
 
4618
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4619
        this.orderId = orderId;
-
 
4620
        this.isUsable = isUsable;
-
 
4621
      }
-
 
4622
 
-
 
4623
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4624
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateReturnProduct", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4625
        validateReturnProduct_args args = new validateReturnProduct_args();
-
 
4626
        args.setOrderId(orderId);
-
 
4627
        args.setIsUsable(isUsable);
-
 
4628
        args.write(prot);
-
 
4629
        prot.writeMessageEnd();
-
 
4630
      }
-
 
4631
 
-
 
4632
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4633
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4634
          throw new IllegalStateException("Method call not finished!");
-
 
4635
        }
-
 
4636
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4637
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4638
        return (new Client(prot)).recv_validateReturnProduct();
-
 
4639
      }
-
 
4640
    }
-
 
4641
 
4576
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<reshipOrder_call> resultHandler) throws org.apache.thrift.TException {
4642
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<reshipOrder_call> resultHandler) throws org.apache.thrift.TException {
4577
      checkReady();
4643
      checkReady();
4578
      reshipOrder_call method_call = new reshipOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4644
      reshipOrder_call method_call = new reshipOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4579
      this.___currentMethod = method_call;
4645
      this.___currentMethod = method_call;
4580
      ___manager.call(method_call);
4646
      ___manager.call(method_call);
Line 5582... Line 5648...
5582
      processMap.put("requestPickupNumber", new requestPickupNumber());
5648
      processMap.put("requestPickupNumber", new requestPickupNumber());
5583
      processMap.put("authorizePickup", new authorizePickup());
5649
      processMap.put("authorizePickup", new authorizePickup());
5584
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
5650
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
5585
      processMap.put("receiveReturn", new receiveReturn());
5651
      processMap.put("receiveReturn", new receiveReturn());
5586
      processMap.put("validateDoa", new validateDoa());
5652
      processMap.put("validateDoa", new validateDoa());
-
 
5653
      processMap.put("validateReturnProduct", new validateReturnProduct());
5587
      processMap.put("reshipOrder", new reshipOrder());
5654
      processMap.put("reshipOrder", new reshipOrder());
5588
      processMap.put("refundOrder", new refundOrder());
5655
      processMap.put("refundOrder", new refundOrder());
5589
      processMap.put("getReturnOrders", new getReturnOrders());
5656
      processMap.put("getReturnOrders", new getReturnOrders());
5590
      processMap.put("getReturnOrder", new getReturnOrder());
5657
      processMap.put("getReturnOrder", new getReturnOrder());
5591
      processMap.put("processReturn", new processReturn());
5658
      processMap.put("processReturn", new processReturn());
Line 6599... Line 6666...
6599
        }
6666
        }
6600
        return result;
6667
        return result;
6601
      }
6668
      }
6602
    }
6669
    }
6603
 
6670
 
-
 
6671
    private static class validateReturnProduct<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateReturnProduct_args> {
-
 
6672
      public validateReturnProduct() {
-
 
6673
        super("validateReturnProduct");
-
 
6674
      }
-
 
6675
 
-
 
6676
      protected validateReturnProduct_args getEmptyArgsInstance() {
-
 
6677
        return new validateReturnProduct_args();
-
 
6678
      }
-
 
6679
 
-
 
6680
      protected validateReturnProduct_result getResult(I iface, validateReturnProduct_args args) throws org.apache.thrift.TException {
-
 
6681
        validateReturnProduct_result result = new validateReturnProduct_result();
-
 
6682
        try {
-
 
6683
          result.success = iface.validateReturnProduct(args.orderId, args.isUsable);
-
 
6684
          result.setSuccessIsSet(true);
-
 
6685
        } catch (TransactionServiceException ex) {
-
 
6686
          result.ex = ex;
-
 
6687
        }
-
 
6688
        return result;
-
 
6689
      }
-
 
6690
    }
-
 
6691
 
6604
    private static class reshipOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipOrder_args> {
6692
    private static class reshipOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipOrder_args> {
6605
      public reshipOrder() {
6693
      public reshipOrder() {
6606
        super("reshipOrder");
6694
        super("reshipOrder");
6607
      }
6695
      }
6608
 
6696
 
Line 45026... Line 45114...
45026
      boolean first = true;
45114
      boolean first = true;
45027
 
45115
 
45028
      sb.append("success:");
45116
      sb.append("success:");
45029
      sb.append(this.success);
45117
      sb.append(this.success);
45030
      first = false;
45118
      first = false;
-
 
45119
      if (!first) sb.append(", ");
-
 
45120
      sb.append("ex:");
-
 
45121
      if (this.ex == null) {
-
 
45122
        sb.append("null");
-
 
45123
      } else {
-
 
45124
        sb.append(this.ex);
-
 
45125
      }
-
 
45126
      first = false;
-
 
45127
      sb.append(")");
-
 
45128
      return sb.toString();
-
 
45129
    }
-
 
45130
 
-
 
45131
    public void validate() throws org.apache.thrift.TException {
-
 
45132
      // check for required fields
-
 
45133
    }
-
 
45134
 
-
 
45135
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45136
      try {
-
 
45137
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45138
      } catch (org.apache.thrift.TException te) {
-
 
45139
        throw new java.io.IOException(te);
-
 
45140
      }
-
 
45141
    }
-
 
45142
 
-
 
45143
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45144
      try {
-
 
45145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45146
      } catch (org.apache.thrift.TException te) {
-
 
45147
        throw new java.io.IOException(te);
-
 
45148
      }
-
 
45149
    }
-
 
45150
 
-
 
45151
  }
-
 
45152
 
-
 
45153
  public static class validateReturnProduct_args implements org.apache.thrift.TBase<validateReturnProduct_args, validateReturnProduct_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateReturnProduct_args");
-
 
45155
 
-
 
45156
    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);
-
 
45157
    private static final org.apache.thrift.protocol.TField IS_USABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("isUsable", org.apache.thrift.protocol.TType.BOOL, (short)2);
-
 
45158
 
-
 
45159
    private long orderId; // required
-
 
45160
    private boolean isUsable; // required
-
 
45161
 
-
 
45162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45164
      ORDER_ID((short)1, "orderId"),
-
 
45165
      IS_USABLE((short)2, "isUsable");
-
 
45166
 
-
 
45167
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45168
 
-
 
45169
      static {
-
 
45170
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45171
          byName.put(field.getFieldName(), field);
-
 
45172
        }
-
 
45173
      }
-
 
45174
 
-
 
45175
      /**
-
 
45176
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45177
       */
-
 
45178
      public static _Fields findByThriftId(int fieldId) {
-
 
45179
        switch(fieldId) {
-
 
45180
          case 1: // ORDER_ID
-
 
45181
            return ORDER_ID;
-
 
45182
          case 2: // IS_USABLE
-
 
45183
            return IS_USABLE;
-
 
45184
          default:
-
 
45185
            return null;
-
 
45186
        }
-
 
45187
      }
-
 
45188
 
-
 
45189
      /**
-
 
45190
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45191
       * if it is not found.
-
 
45192
       */
-
 
45193
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45194
        _Fields fields = findByThriftId(fieldId);
-
 
45195
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45196
        return fields;
-
 
45197
      }
-
 
45198
 
-
 
45199
      /**
-
 
45200
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45201
       */
-
 
45202
      public static _Fields findByName(String name) {
-
 
45203
        return byName.get(name);
-
 
45204
      }
-
 
45205
 
-
 
45206
      private final short _thriftId;
-
 
45207
      private final String _fieldName;
-
 
45208
 
-
 
45209
      _Fields(short thriftId, String fieldName) {
-
 
45210
        _thriftId = thriftId;
-
 
45211
        _fieldName = fieldName;
-
 
45212
      }
-
 
45213
 
-
 
45214
      public short getThriftFieldId() {
-
 
45215
        return _thriftId;
-
 
45216
      }
-
 
45217
 
-
 
45218
      public String getFieldName() {
-
 
45219
        return _fieldName;
-
 
45220
      }
-
 
45221
    }
-
 
45222
 
-
 
45223
    // isset id assignments
-
 
45224
    private static final int __ORDERID_ISSET_ID = 0;
-
 
45225
    private static final int __ISUSABLE_ISSET_ID = 1;
-
 
45226
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
45227
 
-
 
45228
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45229
    static {
-
 
45230
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45231
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45233
      tmpMap.put(_Fields.IS_USABLE, new org.apache.thrift.meta_data.FieldMetaData("isUsable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
45235
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45236
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateReturnProduct_args.class, metaDataMap);
-
 
45237
    }
-
 
45238
 
-
 
45239
    public validateReturnProduct_args() {
-
 
45240
    }
-
 
45241
 
-
 
45242
    public validateReturnProduct_args(
-
 
45243
      long orderId,
-
 
45244
      boolean isUsable)
-
 
45245
    {
-
 
45246
      this();
-
 
45247
      this.orderId = orderId;
-
 
45248
      setOrderIdIsSet(true);
-
 
45249
      this.isUsable = isUsable;
-
 
45250
      setIsUsableIsSet(true);
-
 
45251
    }
-
 
45252
 
-
 
45253
    /**
-
 
45254
     * Performs a deep copy on <i>other</i>.
-
 
45255
     */
-
 
45256
    public validateReturnProduct_args(validateReturnProduct_args other) {
-
 
45257
      __isset_bit_vector.clear();
-
 
45258
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45259
      this.orderId = other.orderId;
-
 
45260
      this.isUsable = other.isUsable;
-
 
45261
    }
-
 
45262
 
-
 
45263
    public validateReturnProduct_args deepCopy() {
-
 
45264
      return new validateReturnProduct_args(this);
-
 
45265
    }
-
 
45266
 
-
 
45267
    @Override
-
 
45268
    public void clear() {
-
 
45269
      setOrderIdIsSet(false);
-
 
45270
      this.orderId = 0;
-
 
45271
      setIsUsableIsSet(false);
-
 
45272
      this.isUsable = false;
-
 
45273
    }
-
 
45274
 
-
 
45275
    public long getOrderId() {
-
 
45276
      return this.orderId;
-
 
45277
    }
-
 
45278
 
-
 
45279
    public void setOrderId(long orderId) {
-
 
45280
      this.orderId = orderId;
-
 
45281
      setOrderIdIsSet(true);
-
 
45282
    }
-
 
45283
 
-
 
45284
    public void unsetOrderId() {
-
 
45285
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
45286
    }
-
 
45287
 
-
 
45288
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
45289
    public boolean isSetOrderId() {
-
 
45290
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
45291
    }
-
 
45292
 
-
 
45293
    public void setOrderIdIsSet(boolean value) {
-
 
45294
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
45295
    }
-
 
45296
 
-
 
45297
    public boolean isIsUsable() {
-
 
45298
      return this.isUsable;
-
 
45299
    }
-
 
45300
 
-
 
45301
    public void setIsUsable(boolean isUsable) {
-
 
45302
      this.isUsable = isUsable;
-
 
45303
      setIsUsableIsSet(true);
-
 
45304
    }
-
 
45305
 
-
 
45306
    public void unsetIsUsable() {
-
 
45307
      __isset_bit_vector.clear(__ISUSABLE_ISSET_ID);
-
 
45308
    }
-
 
45309
 
-
 
45310
    /** Returns true if field isUsable is set (has been assigned a value) and false otherwise */
-
 
45311
    public boolean isSetIsUsable() {
-
 
45312
      return __isset_bit_vector.get(__ISUSABLE_ISSET_ID);
-
 
45313
    }
-
 
45314
 
-
 
45315
    public void setIsUsableIsSet(boolean value) {
-
 
45316
      __isset_bit_vector.set(__ISUSABLE_ISSET_ID, value);
-
 
45317
    }
-
 
45318
 
-
 
45319
    public void setFieldValue(_Fields field, Object value) {
-
 
45320
      switch (field) {
-
 
45321
      case ORDER_ID:
-
 
45322
        if (value == null) {
-
 
45323
          unsetOrderId();
-
 
45324
        } else {
-
 
45325
          setOrderId((Long)value);
-
 
45326
        }
-
 
45327
        break;
-
 
45328
 
-
 
45329
      case IS_USABLE:
-
 
45330
        if (value == null) {
-
 
45331
          unsetIsUsable();
-
 
45332
        } else {
-
 
45333
          setIsUsable((Boolean)value);
-
 
45334
        }
-
 
45335
        break;
-
 
45336
 
-
 
45337
      }
-
 
45338
    }
-
 
45339
 
-
 
45340
    public Object getFieldValue(_Fields field) {
-
 
45341
      switch (field) {
-
 
45342
      case ORDER_ID:
-
 
45343
        return Long.valueOf(getOrderId());
-
 
45344
 
-
 
45345
      case IS_USABLE:
-
 
45346
        return Boolean.valueOf(isIsUsable());
-
 
45347
 
-
 
45348
      }
-
 
45349
      throw new IllegalStateException();
-
 
45350
    }
-
 
45351
 
-
 
45352
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45353
    public boolean isSet(_Fields field) {
-
 
45354
      if (field == null) {
-
 
45355
        throw new IllegalArgumentException();
-
 
45356
      }
-
 
45357
 
-
 
45358
      switch (field) {
-
 
45359
      case ORDER_ID:
-
 
45360
        return isSetOrderId();
-
 
45361
      case IS_USABLE:
-
 
45362
        return isSetIsUsable();
-
 
45363
      }
-
 
45364
      throw new IllegalStateException();
-
 
45365
    }
-
 
45366
 
-
 
45367
    @Override
-
 
45368
    public boolean equals(Object that) {
-
 
45369
      if (that == null)
-
 
45370
        return false;
-
 
45371
      if (that instanceof validateReturnProduct_args)
-
 
45372
        return this.equals((validateReturnProduct_args)that);
-
 
45373
      return false;
-
 
45374
    }
-
 
45375
 
-
 
45376
    public boolean equals(validateReturnProduct_args that) {
-
 
45377
      if (that == null)
-
 
45378
        return false;
-
 
45379
 
-
 
45380
      boolean this_present_orderId = true;
-
 
45381
      boolean that_present_orderId = true;
-
 
45382
      if (this_present_orderId || that_present_orderId) {
-
 
45383
        if (!(this_present_orderId && that_present_orderId))
-
 
45384
          return false;
-
 
45385
        if (this.orderId != that.orderId)
-
 
45386
          return false;
-
 
45387
      }
-
 
45388
 
-
 
45389
      boolean this_present_isUsable = true;
-
 
45390
      boolean that_present_isUsable = true;
-
 
45391
      if (this_present_isUsable || that_present_isUsable) {
-
 
45392
        if (!(this_present_isUsable && that_present_isUsable))
-
 
45393
          return false;
-
 
45394
        if (this.isUsable != that.isUsable)
-
 
45395
          return false;
-
 
45396
      }
-
 
45397
 
-
 
45398
      return true;
-
 
45399
    }
-
 
45400
 
-
 
45401
    @Override
-
 
45402
    public int hashCode() {
-
 
45403
      return 0;
-
 
45404
    }
-
 
45405
 
-
 
45406
    public int compareTo(validateReturnProduct_args other) {
-
 
45407
      if (!getClass().equals(other.getClass())) {
-
 
45408
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45409
      }
-
 
45410
 
-
 
45411
      int lastComparison = 0;
-
 
45412
      validateReturnProduct_args typedOther = (validateReturnProduct_args)other;
-
 
45413
 
-
 
45414
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
45415
      if (lastComparison != 0) {
-
 
45416
        return lastComparison;
-
 
45417
      }
-
 
45418
      if (isSetOrderId()) {
-
 
45419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
45420
        if (lastComparison != 0) {
-
 
45421
          return lastComparison;
-
 
45422
        }
-
 
45423
      }
-
 
45424
      lastComparison = Boolean.valueOf(isSetIsUsable()).compareTo(typedOther.isSetIsUsable());
-
 
45425
      if (lastComparison != 0) {
-
 
45426
        return lastComparison;
-
 
45427
      }
-
 
45428
      if (isSetIsUsable()) {
-
 
45429
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isUsable, typedOther.isUsable);
-
 
45430
        if (lastComparison != 0) {
-
 
45431
          return lastComparison;
-
 
45432
        }
-
 
45433
      }
-
 
45434
      return 0;
-
 
45435
    }
-
 
45436
 
-
 
45437
    public _Fields fieldForId(int fieldId) {
-
 
45438
      return _Fields.findByThriftId(fieldId);
-
 
45439
    }
-
 
45440
 
-
 
45441
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45442
      org.apache.thrift.protocol.TField field;
-
 
45443
      iprot.readStructBegin();
-
 
45444
      while (true)
-
 
45445
      {
-
 
45446
        field = iprot.readFieldBegin();
-
 
45447
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45448
          break;
-
 
45449
        }
-
 
45450
        switch (field.id) {
-
 
45451
          case 1: // ORDER_ID
-
 
45452
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
45453
              this.orderId = iprot.readI64();
-
 
45454
              setOrderIdIsSet(true);
-
 
45455
            } else { 
-
 
45456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45457
            }
-
 
45458
            break;
-
 
45459
          case 2: // IS_USABLE
-
 
45460
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
45461
              this.isUsable = iprot.readBool();
-
 
45462
              setIsUsableIsSet(true);
-
 
45463
            } else { 
-
 
45464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45465
            }
-
 
45466
            break;
-
 
45467
          default:
-
 
45468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45469
        }
-
 
45470
        iprot.readFieldEnd();
-
 
45471
      }
-
 
45472
      iprot.readStructEnd();
-
 
45473
      validate();
-
 
45474
    }
-
 
45475
 
-
 
45476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45477
      validate();
-
 
45478
 
-
 
45479
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45480
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
45481
      oprot.writeI64(this.orderId);
-
 
45482
      oprot.writeFieldEnd();
-
 
45483
      oprot.writeFieldBegin(IS_USABLE_FIELD_DESC);
-
 
45484
      oprot.writeBool(this.isUsable);
-
 
45485
      oprot.writeFieldEnd();
-
 
45486
      oprot.writeFieldStop();
-
 
45487
      oprot.writeStructEnd();
-
 
45488
    }
-
 
45489
 
-
 
45490
    @Override
-
 
45491
    public String toString() {
-
 
45492
      StringBuilder sb = new StringBuilder("validateReturnProduct_args(");
-
 
45493
      boolean first = true;
-
 
45494
 
-
 
45495
      sb.append("orderId:");
-
 
45496
      sb.append(this.orderId);
-
 
45497
      first = false;
-
 
45498
      if (!first) sb.append(", ");
-
 
45499
      sb.append("isUsable:");
-
 
45500
      sb.append(this.isUsable);
-
 
45501
      first = false;
-
 
45502
      sb.append(")");
-
 
45503
      return sb.toString();
-
 
45504
    }
-
 
45505
 
-
 
45506
    public void validate() throws org.apache.thrift.TException {
-
 
45507
      // check for required fields
-
 
45508
    }
-
 
45509
 
-
 
45510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45511
      try {
-
 
45512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45513
      } catch (org.apache.thrift.TException te) {
-
 
45514
        throw new java.io.IOException(te);
-
 
45515
      }
-
 
45516
    }
-
 
45517
 
-
 
45518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45519
      try {
-
 
45520
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
45521
        __isset_bit_vector = new BitSet(1);
-
 
45522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45523
      } catch (org.apache.thrift.TException te) {
-
 
45524
        throw new java.io.IOException(te);
-
 
45525
      }
-
 
45526
    }
-
 
45527
 
-
 
45528
  }
-
 
45529
 
-
 
45530
  public static class validateReturnProduct_result implements org.apache.thrift.TBase<validateReturnProduct_result, validateReturnProduct_result._Fields>, java.io.Serializable, Cloneable   {
-
 
45531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateReturnProduct_result");
-
 
45532
 
-
 
45533
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
45534
    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);
-
 
45535
 
-
 
45536
    private boolean success; // required
-
 
45537
    private TransactionServiceException ex; // required
-
 
45538
 
-
 
45539
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45540
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45541
      SUCCESS((short)0, "success"),
-
 
45542
      EX((short)1, "ex");
-
 
45543
 
-
 
45544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45545
 
-
 
45546
      static {
-
 
45547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45548
          byName.put(field.getFieldName(), field);
-
 
45549
        }
-
 
45550
      }
-
 
45551
 
-
 
45552
      /**
-
 
45553
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45554
       */
-
 
45555
      public static _Fields findByThriftId(int fieldId) {
-
 
45556
        switch(fieldId) {
-
 
45557
          case 0: // SUCCESS
-
 
45558
            return SUCCESS;
-
 
45559
          case 1: // EX
-
 
45560
            return EX;
-
 
45561
          default:
-
 
45562
            return null;
-
 
45563
        }
-
 
45564
      }
-
 
45565
 
-
 
45566
      /**
-
 
45567
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45568
       * if it is not found.
-
 
45569
       */
-
 
45570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45571
        _Fields fields = findByThriftId(fieldId);
-
 
45572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45573
        return fields;
-
 
45574
      }
-
 
45575
 
-
 
45576
      /**
-
 
45577
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45578
       */
-
 
45579
      public static _Fields findByName(String name) {
-
 
45580
        return byName.get(name);
-
 
45581
      }
-
 
45582
 
-
 
45583
      private final short _thriftId;
-
 
45584
      private final String _fieldName;
-
 
45585
 
-
 
45586
      _Fields(short thriftId, String fieldName) {
-
 
45587
        _thriftId = thriftId;
-
 
45588
        _fieldName = fieldName;
-
 
45589
      }
-
 
45590
 
-
 
45591
      public short getThriftFieldId() {
-
 
45592
        return _thriftId;
-
 
45593
      }
-
 
45594
 
-
 
45595
      public String getFieldName() {
-
 
45596
        return _fieldName;
-
 
45597
      }
-
 
45598
    }
-
 
45599
 
-
 
45600
    // isset id assignments
-
 
45601
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
45602
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
45603
 
-
 
45604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45605
    static {
-
 
45606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45607
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
45609
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
45611
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45612
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateReturnProduct_result.class, metaDataMap);
-
 
45613
    }
-
 
45614
 
-
 
45615
    public validateReturnProduct_result() {
-
 
45616
    }
-
 
45617
 
-
 
45618
    public validateReturnProduct_result(
-
 
45619
      boolean success,
-
 
45620
      TransactionServiceException ex)
-
 
45621
    {
-
 
45622
      this();
-
 
45623
      this.success = success;
-
 
45624
      setSuccessIsSet(true);
-
 
45625
      this.ex = ex;
-
 
45626
    }
-
 
45627
 
-
 
45628
    /**
-
 
45629
     * Performs a deep copy on <i>other</i>.
-
 
45630
     */
-
 
45631
    public validateReturnProduct_result(validateReturnProduct_result other) {
-
 
45632
      __isset_bit_vector.clear();
-
 
45633
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45634
      this.success = other.success;
-
 
45635
      if (other.isSetEx()) {
-
 
45636
        this.ex = new TransactionServiceException(other.ex);
-
 
45637
      }
-
 
45638
    }
-
 
45639
 
-
 
45640
    public validateReturnProduct_result deepCopy() {
-
 
45641
      return new validateReturnProduct_result(this);
-
 
45642
    }
-
 
45643
 
-
 
45644
    @Override
-
 
45645
    public void clear() {
-
 
45646
      setSuccessIsSet(false);
-
 
45647
      this.success = false;
-
 
45648
      this.ex = null;
-
 
45649
    }
-
 
45650
 
-
 
45651
    public boolean isSuccess() {
-
 
45652
      return this.success;
-
 
45653
    }
-
 
45654
 
-
 
45655
    public void setSuccess(boolean success) {
-
 
45656
      this.success = success;
-
 
45657
      setSuccessIsSet(true);
-
 
45658
    }
-
 
45659
 
-
 
45660
    public void unsetSuccess() {
-
 
45661
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
45662
    }
-
 
45663
 
-
 
45664
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
45665
    public boolean isSetSuccess() {
-
 
45666
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
45667
    }
-
 
45668
 
-
 
45669
    public void setSuccessIsSet(boolean value) {
-
 
45670
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
45671
    }
-
 
45672
 
-
 
45673
    public TransactionServiceException getEx() {
-
 
45674
      return this.ex;
-
 
45675
    }
-
 
45676
 
-
 
45677
    public void setEx(TransactionServiceException ex) {
-
 
45678
      this.ex = ex;
-
 
45679
    }
-
 
45680
 
-
 
45681
    public void unsetEx() {
-
 
45682
      this.ex = null;
-
 
45683
    }
-
 
45684
 
-
 
45685
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
45686
    public boolean isSetEx() {
-
 
45687
      return this.ex != null;
-
 
45688
    }
-
 
45689
 
-
 
45690
    public void setExIsSet(boolean value) {
-
 
45691
      if (!value) {
-
 
45692
        this.ex = null;
-
 
45693
      }
-
 
45694
    }
-
 
45695
 
-
 
45696
    public void setFieldValue(_Fields field, Object value) {
-
 
45697
      switch (field) {
-
 
45698
      case SUCCESS:
-
 
45699
        if (value == null) {
-
 
45700
          unsetSuccess();
-
 
45701
        } else {
-
 
45702
          setSuccess((Boolean)value);
-
 
45703
        }
-
 
45704
        break;
-
 
45705
 
-
 
45706
      case EX:
-
 
45707
        if (value == null) {
-
 
45708
          unsetEx();
-
 
45709
        } else {
-
 
45710
          setEx((TransactionServiceException)value);
-
 
45711
        }
-
 
45712
        break;
-
 
45713
 
-
 
45714
      }
-
 
45715
    }
-
 
45716
 
-
 
45717
    public Object getFieldValue(_Fields field) {
-
 
45718
      switch (field) {
-
 
45719
      case SUCCESS:
-
 
45720
        return Boolean.valueOf(isSuccess());
-
 
45721
 
-
 
45722
      case EX:
-
 
45723
        return getEx();
-
 
45724
 
-
 
45725
      }
-
 
45726
      throw new IllegalStateException();
-
 
45727
    }
-
 
45728
 
-
 
45729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45730
    public boolean isSet(_Fields field) {
-
 
45731
      if (field == null) {
-
 
45732
        throw new IllegalArgumentException();
-
 
45733
      }
-
 
45734
 
-
 
45735
      switch (field) {
-
 
45736
      case SUCCESS:
-
 
45737
        return isSetSuccess();
-
 
45738
      case EX:
-
 
45739
        return isSetEx();
-
 
45740
      }
-
 
45741
      throw new IllegalStateException();
-
 
45742
    }
-
 
45743
 
-
 
45744
    @Override
-
 
45745
    public boolean equals(Object that) {
-
 
45746
      if (that == null)
-
 
45747
        return false;
-
 
45748
      if (that instanceof validateReturnProduct_result)
-
 
45749
        return this.equals((validateReturnProduct_result)that);
-
 
45750
      return false;
-
 
45751
    }
-
 
45752
 
-
 
45753
    public boolean equals(validateReturnProduct_result that) {
-
 
45754
      if (that == null)
-
 
45755
        return false;
-
 
45756
 
-
 
45757
      boolean this_present_success = true;
-
 
45758
      boolean that_present_success = true;
-
 
45759
      if (this_present_success || that_present_success) {
-
 
45760
        if (!(this_present_success && that_present_success))
-
 
45761
          return false;
-
 
45762
        if (this.success != that.success)
-
 
45763
          return false;
-
 
45764
      }
-
 
45765
 
-
 
45766
      boolean this_present_ex = true && this.isSetEx();
-
 
45767
      boolean that_present_ex = true && that.isSetEx();
-
 
45768
      if (this_present_ex || that_present_ex) {
-
 
45769
        if (!(this_present_ex && that_present_ex))
-
 
45770
          return false;
-
 
45771
        if (!this.ex.equals(that.ex))
-
 
45772
          return false;
-
 
45773
      }
-
 
45774
 
-
 
45775
      return true;
-
 
45776
    }
-
 
45777
 
-
 
45778
    @Override
-
 
45779
    public int hashCode() {
-
 
45780
      return 0;
-
 
45781
    }
-
 
45782
 
-
 
45783
    public int compareTo(validateReturnProduct_result other) {
-
 
45784
      if (!getClass().equals(other.getClass())) {
-
 
45785
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45786
      }
-
 
45787
 
-
 
45788
      int lastComparison = 0;
-
 
45789
      validateReturnProduct_result typedOther = (validateReturnProduct_result)other;
-
 
45790
 
-
 
45791
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
45792
      if (lastComparison != 0) {
-
 
45793
        return lastComparison;
-
 
45794
      }
-
 
45795
      if (isSetSuccess()) {
-
 
45796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
45797
        if (lastComparison != 0) {
-
 
45798
          return lastComparison;
-
 
45799
        }
-
 
45800
      }
-
 
45801
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
45802
      if (lastComparison != 0) {
-
 
45803
        return lastComparison;
-
 
45804
      }
-
 
45805
      if (isSetEx()) {
-
 
45806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
45807
        if (lastComparison != 0) {
-
 
45808
          return lastComparison;
-
 
45809
        }
-
 
45810
      }
-
 
45811
      return 0;
-
 
45812
    }
-
 
45813
 
-
 
45814
    public _Fields fieldForId(int fieldId) {
-
 
45815
      return _Fields.findByThriftId(fieldId);
-
 
45816
    }
-
 
45817
 
-
 
45818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
45819
      org.apache.thrift.protocol.TField field;
-
 
45820
      iprot.readStructBegin();
-
 
45821
      while (true)
-
 
45822
      {
-
 
45823
        field = iprot.readFieldBegin();
-
 
45824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
45825
          break;
-
 
45826
        }
-
 
45827
        switch (field.id) {
-
 
45828
          case 0: // SUCCESS
-
 
45829
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
45830
              this.success = iprot.readBool();
-
 
45831
              setSuccessIsSet(true);
-
 
45832
            } else { 
-
 
45833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45834
            }
-
 
45835
            break;
-
 
45836
          case 1: // EX
-
 
45837
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
45838
              this.ex = new TransactionServiceException();
-
 
45839
              this.ex.read(iprot);
-
 
45840
            } else { 
-
 
45841
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45842
            }
-
 
45843
            break;
-
 
45844
          default:
-
 
45845
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45846
        }
-
 
45847
        iprot.readFieldEnd();
-
 
45848
      }
-
 
45849
      iprot.readStructEnd();
-
 
45850
      validate();
-
 
45851
    }
-
 
45852
 
-
 
45853
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
45854
      oprot.writeStructBegin(STRUCT_DESC);
-
 
45855
 
-
 
45856
      if (this.isSetSuccess()) {
-
 
45857
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
45858
        oprot.writeBool(this.success);
-
 
45859
        oprot.writeFieldEnd();
-
 
45860
      } else if (this.isSetEx()) {
-
 
45861
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
45862
        this.ex.write(oprot);
-
 
45863
        oprot.writeFieldEnd();
-
 
45864
      }
-
 
45865
      oprot.writeFieldStop();
-
 
45866
      oprot.writeStructEnd();
-
 
45867
    }
-
 
45868
 
-
 
45869
    @Override
-
 
45870
    public String toString() {
-
 
45871
      StringBuilder sb = new StringBuilder("validateReturnProduct_result(");
-
 
45872
      boolean first = true;
-
 
45873
 
-
 
45874
      sb.append("success:");
-
 
45875
      sb.append(this.success);
-
 
45876
      first = false;
45031
      if (!first) sb.append(", ");
45877
      if (!first) sb.append(", ");
45032
      sb.append("ex:");
45878
      sb.append("ex:");
45033
      if (this.ex == null) {
45879
      if (this.ex == null) {
45034
        sb.append("null");
45880
        sb.append("null");
45035
      } else {
45881
      } else {