Subversion Repositories SmartDukaan

Rev

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

Rev 11801 Rev 13600
Line 244... Line 244...
244
     * 
244
     * 
245
     * @param id
245
     * @param id
246
     */
246
     */
247
    public PurchaseReturn getPurchaseReturn(long id) throws PurchaseServiceException, org.apache.thrift.TException;
247
    public PurchaseReturn getPurchaseReturn(long id) throws PurchaseServiceException, org.apache.thrift.TException;
248
 
248
 
-
 
249
    public boolean markPurchasereturnSettled(long id, SettlementType settlementType, String documentNumber, String settlementBy, long settledAmount) throws PurchaseServiceException, org.apache.thrift.TException;
-
 
250
 
-
 
251
    public List<PurchaseReturnSettlement> getPrSettlementsForPurchaseReturn(long purchaseReturnId) throws PurchaseServiceException, org.apache.thrift.TException;
-
 
252
 
-
 
253
    public void updatePurchaseReturn(PurchaseReturn purchaseReturn) throws PurchaseServiceException, org.apache.thrift.TException;
-
 
254
 
249
  }
255
  }
250
 
256
 
251
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
257
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
252
 
258
 
253
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
259
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
Line 308... Line 314...
308
 
314
 
309
    public void changePOStatus(long id, POStatus poStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changePOStatus_call> resultHandler) throws org.apache.thrift.TException;
315
    public void changePOStatus(long id, POStatus poStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changePOStatus_call> resultHandler) throws org.apache.thrift.TException;
310
 
316
 
311
    public void getPurchaseReturn(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
317
    public void getPurchaseReturn(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
312
 
318
 
-
 
319
    public void markPurchasereturnSettled(long id, SettlementType settlementType, String documentNumber, String settlementBy, long settledAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPurchasereturnSettled_call> resultHandler) throws org.apache.thrift.TException;
-
 
320
 
-
 
321
    public void getPrSettlementsForPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrSettlementsForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
322
 
-
 
323
    public void updatePurchaseReturn(PurchaseReturn purchaseReturn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
324
 
313
  }
325
  }
314
 
326
 
315
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
327
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
316
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
328
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
317
      public Factory() {}
329
      public Factory() {}
Line 1060... Line 1072...
1060
        throw result.e;
1072
        throw result.e;
1061
      }
1073
      }
1062
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseReturn failed: unknown result");
1074
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseReturn failed: unknown result");
1063
    }
1075
    }
1064
 
1076
 
-
 
1077
    public boolean markPurchasereturnSettled(long id, SettlementType settlementType, String documentNumber, String settlementBy, long settledAmount) throws PurchaseServiceException, org.apache.thrift.TException
-
 
1078
    {
-
 
1079
      send_markPurchasereturnSettled(id, settlementType, documentNumber, settlementBy, settledAmount);
-
 
1080
      return recv_markPurchasereturnSettled();
-
 
1081
    }
-
 
1082
 
-
 
1083
    public void send_markPurchasereturnSettled(long id, SettlementType settlementType, String documentNumber, String settlementBy, long settledAmount) throws org.apache.thrift.TException
-
 
1084
    {
-
 
1085
      markPurchasereturnSettled_args args = new markPurchasereturnSettled_args();
-
 
1086
      args.setId(id);
-
 
1087
      args.setSettlementType(settlementType);
-
 
1088
      args.setDocumentNumber(documentNumber);
-
 
1089
      args.setSettlementBy(settlementBy);
-
 
1090
      args.setSettledAmount(settledAmount);
-
 
1091
      sendBase("markPurchasereturnSettled", args);
-
 
1092
    }
-
 
1093
 
-
 
1094
    public boolean recv_markPurchasereturnSettled() throws PurchaseServiceException, org.apache.thrift.TException
-
 
1095
    {
-
 
1096
      markPurchasereturnSettled_result result = new markPurchasereturnSettled_result();
-
 
1097
      receiveBase(result, "markPurchasereturnSettled");
-
 
1098
      if (result.isSetSuccess()) {
-
 
1099
        return result.success;
-
 
1100
      }
-
 
1101
      if (result.e != null) {
-
 
1102
        throw result.e;
-
 
1103
      }
-
 
1104
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markPurchasereturnSettled failed: unknown result");
-
 
1105
    }
-
 
1106
 
-
 
1107
    public List<PurchaseReturnSettlement> getPrSettlementsForPurchaseReturn(long purchaseReturnId) throws PurchaseServiceException, org.apache.thrift.TException
-
 
1108
    {
-
 
1109
      send_getPrSettlementsForPurchaseReturn(purchaseReturnId);
-
 
1110
      return recv_getPrSettlementsForPurchaseReturn();
-
 
1111
    }
-
 
1112
 
-
 
1113
    public void send_getPrSettlementsForPurchaseReturn(long purchaseReturnId) throws org.apache.thrift.TException
-
 
1114
    {
-
 
1115
      getPrSettlementsForPurchaseReturn_args args = new getPrSettlementsForPurchaseReturn_args();
-
 
1116
      args.setPurchaseReturnId(purchaseReturnId);
-
 
1117
      sendBase("getPrSettlementsForPurchaseReturn", args);
-
 
1118
    }
-
 
1119
 
-
 
1120
    public List<PurchaseReturnSettlement> recv_getPrSettlementsForPurchaseReturn() throws PurchaseServiceException, org.apache.thrift.TException
-
 
1121
    {
-
 
1122
      getPrSettlementsForPurchaseReturn_result result = new getPrSettlementsForPurchaseReturn_result();
-
 
1123
      receiveBase(result, "getPrSettlementsForPurchaseReturn");
-
 
1124
      if (result.isSetSuccess()) {
-
 
1125
        return result.success;
-
 
1126
      }
-
 
1127
      if (result.e != null) {
-
 
1128
        throw result.e;
-
 
1129
      }
-
 
1130
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrSettlementsForPurchaseReturn failed: unknown result");
-
 
1131
    }
-
 
1132
 
-
 
1133
    public void updatePurchaseReturn(PurchaseReturn purchaseReturn) throws PurchaseServiceException, org.apache.thrift.TException
-
 
1134
    {
-
 
1135
      send_updatePurchaseReturn(purchaseReturn);
-
 
1136
      recv_updatePurchaseReturn();
-
 
1137
    }
-
 
1138
 
-
 
1139
    public void send_updatePurchaseReturn(PurchaseReturn purchaseReturn) throws org.apache.thrift.TException
-
 
1140
    {
-
 
1141
      updatePurchaseReturn_args args = new updatePurchaseReturn_args();
-
 
1142
      args.setPurchaseReturn(purchaseReturn);
-
 
1143
      sendBase("updatePurchaseReturn", args);
-
 
1144
    }
-
 
1145
 
-
 
1146
    public void recv_updatePurchaseReturn() throws PurchaseServiceException, org.apache.thrift.TException
-
 
1147
    {
-
 
1148
      updatePurchaseReturn_result result = new updatePurchaseReturn_result();
-
 
1149
      receiveBase(result, "updatePurchaseReturn");
-
 
1150
      if (result.e != null) {
-
 
1151
        throw result.e;
-
 
1152
      }
-
 
1153
      return;
-
 
1154
    }
-
 
1155
 
1065
  }
1156
  }
1066
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1157
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1067
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1158
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1068
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1159
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1069
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1160
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2086... Line 2177...
2086
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2177
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2087
        return (new Client(prot)).recv_getPurchaseReturn();
2178
        return (new Client(prot)).recv_getPurchaseReturn();
2088
      }
2179
      }
2089
    }
2180
    }
2090
 
2181
 
-
 
2182
    public void markPurchasereturnSettled(long id, SettlementType settlementType, String documentNumber, String settlementBy, long settledAmount, org.apache.thrift.async.AsyncMethodCallback<markPurchasereturnSettled_call> resultHandler) throws org.apache.thrift.TException {
-
 
2183
      checkReady();
-
 
2184
      markPurchasereturnSettled_call method_call = new markPurchasereturnSettled_call(id, settlementType, documentNumber, settlementBy, settledAmount, resultHandler, this, ___protocolFactory, ___transport);
-
 
2185
      this.___currentMethod = method_call;
-
 
2186
      ___manager.call(method_call);
-
 
2187
    }
-
 
2188
 
-
 
2189
    public static class markPurchasereturnSettled_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2190
      private long id;
-
 
2191
      private SettlementType settlementType;
-
 
2192
      private String documentNumber;
-
 
2193
      private String settlementBy;
-
 
2194
      private long settledAmount;
-
 
2195
      public markPurchasereturnSettled_call(long id, SettlementType settlementType, String documentNumber, String settlementBy, long settledAmount, org.apache.thrift.async.AsyncMethodCallback<markPurchasereturnSettled_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 {
-
 
2196
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2197
        this.id = id;
-
 
2198
        this.settlementType = settlementType;
-
 
2199
        this.documentNumber = documentNumber;
-
 
2200
        this.settlementBy = settlementBy;
-
 
2201
        this.settledAmount = settledAmount;
-
 
2202
      }
-
 
2203
 
-
 
2204
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2205
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPurchasereturnSettled", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2206
        markPurchasereturnSettled_args args = new markPurchasereturnSettled_args();
-
 
2207
        args.setId(id);
-
 
2208
        args.setSettlementType(settlementType);
-
 
2209
        args.setDocumentNumber(documentNumber);
-
 
2210
        args.setSettlementBy(settlementBy);
-
 
2211
        args.setSettledAmount(settledAmount);
-
 
2212
        args.write(prot);
-
 
2213
        prot.writeMessageEnd();
-
 
2214
      }
-
 
2215
 
-
 
2216
      public boolean getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
2217
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2218
          throw new IllegalStateException("Method call not finished!");
-
 
2219
        }
-
 
2220
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2221
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2222
        return (new Client(prot)).recv_markPurchasereturnSettled();
-
 
2223
      }
-
 
2224
    }
-
 
2225
 
-
 
2226
    public void getPrSettlementsForPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<getPrSettlementsForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
2227
      checkReady();
-
 
2228
      getPrSettlementsForPurchaseReturn_call method_call = new getPrSettlementsForPurchaseReturn_call(purchaseReturnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2229
      this.___currentMethod = method_call;
-
 
2230
      ___manager.call(method_call);
-
 
2231
    }
-
 
2232
 
-
 
2233
    public static class getPrSettlementsForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2234
      private long purchaseReturnId;
-
 
2235
      public getPrSettlementsForPurchaseReturn_call(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<getPrSettlementsForPurchaseReturn_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 {
-
 
2236
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2237
        this.purchaseReturnId = purchaseReturnId;
-
 
2238
      }
-
 
2239
 
-
 
2240
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2241
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrSettlementsForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2242
        getPrSettlementsForPurchaseReturn_args args = new getPrSettlementsForPurchaseReturn_args();
-
 
2243
        args.setPurchaseReturnId(purchaseReturnId);
-
 
2244
        args.write(prot);
-
 
2245
        prot.writeMessageEnd();
-
 
2246
      }
-
 
2247
 
-
 
2248
      public List<PurchaseReturnSettlement> getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
2249
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2250
          throw new IllegalStateException("Method call not finished!");
-
 
2251
        }
-
 
2252
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2253
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2254
        return (new Client(prot)).recv_getPrSettlementsForPurchaseReturn();
-
 
2255
      }
-
 
2256
    }
-
 
2257
 
-
 
2258
    public void updatePurchaseReturn(PurchaseReturn purchaseReturn, org.apache.thrift.async.AsyncMethodCallback<updatePurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
2259
      checkReady();
-
 
2260
      updatePurchaseReturn_call method_call = new updatePurchaseReturn_call(purchaseReturn, resultHandler, this, ___protocolFactory, ___transport);
-
 
2261
      this.___currentMethod = method_call;
-
 
2262
      ___manager.call(method_call);
-
 
2263
    }
-
 
2264
 
-
 
2265
    public static class updatePurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2266
      private PurchaseReturn purchaseReturn;
-
 
2267
      public updatePurchaseReturn_call(PurchaseReturn purchaseReturn, org.apache.thrift.async.AsyncMethodCallback<updatePurchaseReturn_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 {
-
 
2268
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2269
        this.purchaseReturn = purchaseReturn;
-
 
2270
      }
-
 
2271
 
-
 
2272
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2273
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2274
        updatePurchaseReturn_args args = new updatePurchaseReturn_args();
-
 
2275
        args.setPurchaseReturn(purchaseReturn);
-
 
2276
        args.write(prot);
-
 
2277
        prot.writeMessageEnd();
-
 
2278
      }
-
 
2279
 
-
 
2280
      public void getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
2281
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2282
          throw new IllegalStateException("Method call not finished!");
-
 
2283
        }
-
 
2284
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2285
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2286
        (new Client(prot)).recv_updatePurchaseReturn();
-
 
2287
      }
-
 
2288
    }
-
 
2289
 
2091
  }
2290
  }
2092
 
2291
 
2093
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2292
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2094
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2293
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2095
    public Processor(I iface) {
2294
    public Processor(I iface) {
Line 2129... Line 2328...
2129
      processMap.put("closePO", new closePO());
2328
      processMap.put("closePO", new closePO());
2130
      processMap.put("isInvoiceReceived", new isInvoiceReceived());
2329
      processMap.put("isInvoiceReceived", new isInvoiceReceived());
2131
      processMap.put("changeWarehouseForPO", new changeWarehouseForPO());
2330
      processMap.put("changeWarehouseForPO", new changeWarehouseForPO());
2132
      processMap.put("changePOStatus", new changePOStatus());
2331
      processMap.put("changePOStatus", new changePOStatus());
2133
      processMap.put("getPurchaseReturn", new getPurchaseReturn());
2332
      processMap.put("getPurchaseReturn", new getPurchaseReturn());
-
 
2333
      processMap.put("markPurchasereturnSettled", new markPurchasereturnSettled());
-
 
2334
      processMap.put("getPrSettlementsForPurchaseReturn", new getPrSettlementsForPurchaseReturn());
-
 
2335
      processMap.put("updatePurchaseReturn", new updatePurchaseReturn());
2134
      return processMap;
2336
      return processMap;
2135
    }
2337
    }
2136
 
2338
 
2137
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
2339
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
2138
      public createPurchaseOrder() {
2340
      public createPurchaseOrder() {
Line 2690... Line 2892...
2690
        }
2892
        }
2691
        return result;
2893
        return result;
2692
      }
2894
      }
2693
    }
2895
    }
2694
 
2896
 
-
 
2897
    private static class markPurchasereturnSettled<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPurchasereturnSettled_args> {
-
 
2898
      public markPurchasereturnSettled() {
-
 
2899
        super("markPurchasereturnSettled");
-
 
2900
      }
-
 
2901
 
-
 
2902
      protected markPurchasereturnSettled_args getEmptyArgsInstance() {
-
 
2903
        return new markPurchasereturnSettled_args();
-
 
2904
      }
-
 
2905
 
-
 
2906
      protected markPurchasereturnSettled_result getResult(I iface, markPurchasereturnSettled_args args) throws org.apache.thrift.TException {
-
 
2907
        markPurchasereturnSettled_result result = new markPurchasereturnSettled_result();
-
 
2908
        try {
-
 
2909
          result.success = iface.markPurchasereturnSettled(args.id, args.settlementType, args.documentNumber, args.settlementBy, args.settledAmount);
-
 
2910
          result.setSuccessIsSet(true);
-
 
2911
        } catch (PurchaseServiceException e) {
-
 
2912
          result.e = e;
-
 
2913
        }
-
 
2914
        return result;
-
 
2915
      }
-
 
2916
    }
-
 
2917
 
-
 
2918
    private static class getPrSettlementsForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrSettlementsForPurchaseReturn_args> {
-
 
2919
      public getPrSettlementsForPurchaseReturn() {
-
 
2920
        super("getPrSettlementsForPurchaseReturn");
-
 
2921
      }
-
 
2922
 
-
 
2923
      protected getPrSettlementsForPurchaseReturn_args getEmptyArgsInstance() {
-
 
2924
        return new getPrSettlementsForPurchaseReturn_args();
-
 
2925
      }
-
 
2926
 
-
 
2927
      protected getPrSettlementsForPurchaseReturn_result getResult(I iface, getPrSettlementsForPurchaseReturn_args args) throws org.apache.thrift.TException {
-
 
2928
        getPrSettlementsForPurchaseReturn_result result = new getPrSettlementsForPurchaseReturn_result();
-
 
2929
        try {
-
 
2930
          result.success = iface.getPrSettlementsForPurchaseReturn(args.purchaseReturnId);
-
 
2931
        } catch (PurchaseServiceException e) {
-
 
2932
          result.e = e;
-
 
2933
        }
-
 
2934
        return result;
-
 
2935
      }
-
 
2936
    }
-
 
2937
 
-
 
2938
    private static class updatePurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePurchaseReturn_args> {
-
 
2939
      public updatePurchaseReturn() {
-
 
2940
        super("updatePurchaseReturn");
-
 
2941
      }
-
 
2942
 
-
 
2943
      protected updatePurchaseReturn_args getEmptyArgsInstance() {
-
 
2944
        return new updatePurchaseReturn_args();
-
 
2945
      }
-
 
2946
 
-
 
2947
      protected updatePurchaseReturn_result getResult(I iface, updatePurchaseReturn_args args) throws org.apache.thrift.TException {
-
 
2948
        updatePurchaseReturn_result result = new updatePurchaseReturn_result();
-
 
2949
        try {
-
 
2950
          iface.updatePurchaseReturn(args.purchaseReturn);
-
 
2951
        } catch (PurchaseServiceException e) {
-
 
2952
          result.e = e;
-
 
2953
        }
-
 
2954
        return result;
-
 
2955
      }
-
 
2956
    }
-
 
2957
 
2695
  }
2958
  }
2696
 
2959
 
2697
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
2960
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
2698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2699
 
2962
 
Line 22664... Line 22927...
22664
      sb.append("e:");
22927
      sb.append("e:");
22665
      if (this.e == null) {
22928
      if (this.e == null) {
22666
        sb.append("null");
22929
        sb.append("null");
22667
      } else {
22930
      } else {
22668
        sb.append(this.e);
22931
        sb.append(this.e);
-
 
22932
      }
-
 
22933
      first = false;
-
 
22934
      sb.append(")");
-
 
22935
      return sb.toString();
-
 
22936
    }
-
 
22937
 
-
 
22938
    public void validate() throws org.apache.thrift.TException {
-
 
22939
      // check for required fields
-
 
22940
    }
-
 
22941
 
-
 
22942
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22943
      try {
-
 
22944
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22945
      } catch (org.apache.thrift.TException te) {
-
 
22946
        throw new java.io.IOException(te);
-
 
22947
      }
-
 
22948
    }
-
 
22949
 
-
 
22950
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22951
      try {
-
 
22952
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22953
      } catch (org.apache.thrift.TException te) {
-
 
22954
        throw new java.io.IOException(te);
-
 
22955
      }
-
 
22956
    }
-
 
22957
 
-
 
22958
  }
-
 
22959
 
-
 
22960
  public static class markPurchasereturnSettled_args implements org.apache.thrift.TBase<markPurchasereturnSettled_args, markPurchasereturnSettled_args._Fields>, java.io.Serializable, Cloneable   {
-
 
22961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPurchasereturnSettled_args");
-
 
22962
 
-
 
22963
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
22964
    private static final org.apache.thrift.protocol.TField SETTLEMENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementType", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
22965
    private static final org.apache.thrift.protocol.TField DOCUMENT_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("documentNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
22966
    private static final org.apache.thrift.protocol.TField SETTLEMENT_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementBy", org.apache.thrift.protocol.TType.STRING, (short)4);
-
 
22967
    private static final org.apache.thrift.protocol.TField SETTLED_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("settledAmount", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
22968
 
-
 
22969
    private long id; // required
-
 
22970
    private SettlementType settlementType; // required
-
 
22971
    private String documentNumber; // required
-
 
22972
    private String settlementBy; // required
-
 
22973
    private long settledAmount; // required
-
 
22974
 
-
 
22975
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22976
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22977
      ID((short)1, "id"),
-
 
22978
      /**
-
 
22979
       * 
-
 
22980
       * @see SettlementType
-
 
22981
       */
-
 
22982
      SETTLEMENT_TYPE((short)2, "settlementType"),
-
 
22983
      DOCUMENT_NUMBER((short)3, "documentNumber"),
-
 
22984
      SETTLEMENT_BY((short)4, "settlementBy"),
-
 
22985
      SETTLED_AMOUNT((short)5, "settledAmount");
-
 
22986
 
-
 
22987
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22988
 
-
 
22989
      static {
-
 
22990
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22991
          byName.put(field.getFieldName(), field);
-
 
22992
        }
-
 
22993
      }
-
 
22994
 
-
 
22995
      /**
-
 
22996
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22997
       */
-
 
22998
      public static _Fields findByThriftId(int fieldId) {
-
 
22999
        switch(fieldId) {
-
 
23000
          case 1: // ID
-
 
23001
            return ID;
-
 
23002
          case 2: // SETTLEMENT_TYPE
-
 
23003
            return SETTLEMENT_TYPE;
-
 
23004
          case 3: // DOCUMENT_NUMBER
-
 
23005
            return DOCUMENT_NUMBER;
-
 
23006
          case 4: // SETTLEMENT_BY
-
 
23007
            return SETTLEMENT_BY;
-
 
23008
          case 5: // SETTLED_AMOUNT
-
 
23009
            return SETTLED_AMOUNT;
-
 
23010
          default:
-
 
23011
            return null;
-
 
23012
        }
-
 
23013
      }
-
 
23014
 
-
 
23015
      /**
-
 
23016
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23017
       * if it is not found.
-
 
23018
       */
-
 
23019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23020
        _Fields fields = findByThriftId(fieldId);
-
 
23021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23022
        return fields;
-
 
23023
      }
-
 
23024
 
-
 
23025
      /**
-
 
23026
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23027
       */
-
 
23028
      public static _Fields findByName(String name) {
-
 
23029
        return byName.get(name);
-
 
23030
      }
-
 
23031
 
-
 
23032
      private final short _thriftId;
-
 
23033
      private final String _fieldName;
-
 
23034
 
-
 
23035
      _Fields(short thriftId, String fieldName) {
-
 
23036
        _thriftId = thriftId;
-
 
23037
        _fieldName = fieldName;
-
 
23038
      }
-
 
23039
 
-
 
23040
      public short getThriftFieldId() {
-
 
23041
        return _thriftId;
-
 
23042
      }
-
 
23043
 
-
 
23044
      public String getFieldName() {
-
 
23045
        return _fieldName;
-
 
23046
      }
-
 
23047
    }
-
 
23048
 
-
 
23049
    // isset id assignments
-
 
23050
    private static final int __ID_ISSET_ID = 0;
-
 
23051
    private static final int __SETTLEDAMOUNT_ISSET_ID = 1;
-
 
23052
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
23053
 
-
 
23054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23055
    static {
-
 
23056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23057
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23059
      tmpMap.put(_Fields.SETTLEMENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("settlementType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23060
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SettlementType.class)));
-
 
23061
      tmpMap.put(_Fields.DOCUMENT_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("documentNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
23063
      tmpMap.put(_Fields.SETTLEMENT_BY, new org.apache.thrift.meta_data.FieldMetaData("settlementBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23064
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
23065
      tmpMap.put(_Fields.SETTLED_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("settledAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23067
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23068
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPurchasereturnSettled_args.class, metaDataMap);
-
 
23069
    }
-
 
23070
 
-
 
23071
    public markPurchasereturnSettled_args() {
-
 
23072
    }
-
 
23073
 
-
 
23074
    public markPurchasereturnSettled_args(
-
 
23075
      long id,
-
 
23076
      SettlementType settlementType,
-
 
23077
      String documentNumber,
-
 
23078
      String settlementBy,
-
 
23079
      long settledAmount)
-
 
23080
    {
-
 
23081
      this();
-
 
23082
      this.id = id;
-
 
23083
      setIdIsSet(true);
-
 
23084
      this.settlementType = settlementType;
-
 
23085
      this.documentNumber = documentNumber;
-
 
23086
      this.settlementBy = settlementBy;
-
 
23087
      this.settledAmount = settledAmount;
-
 
23088
      setSettledAmountIsSet(true);
-
 
23089
    }
-
 
23090
 
-
 
23091
    /**
-
 
23092
     * Performs a deep copy on <i>other</i>.
-
 
23093
     */
-
 
23094
    public markPurchasereturnSettled_args(markPurchasereturnSettled_args other) {
-
 
23095
      __isset_bit_vector.clear();
-
 
23096
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
23097
      this.id = other.id;
-
 
23098
      if (other.isSetSettlementType()) {
-
 
23099
        this.settlementType = other.settlementType;
-
 
23100
      }
-
 
23101
      if (other.isSetDocumentNumber()) {
-
 
23102
        this.documentNumber = other.documentNumber;
-
 
23103
      }
-
 
23104
      if (other.isSetSettlementBy()) {
-
 
23105
        this.settlementBy = other.settlementBy;
-
 
23106
      }
-
 
23107
      this.settledAmount = other.settledAmount;
-
 
23108
    }
-
 
23109
 
-
 
23110
    public markPurchasereturnSettled_args deepCopy() {
-
 
23111
      return new markPurchasereturnSettled_args(this);
-
 
23112
    }
-
 
23113
 
-
 
23114
    @Override
-
 
23115
    public void clear() {
-
 
23116
      setIdIsSet(false);
-
 
23117
      this.id = 0;
-
 
23118
      this.settlementType = null;
-
 
23119
      this.documentNumber = null;
-
 
23120
      this.settlementBy = null;
-
 
23121
      setSettledAmountIsSet(false);
-
 
23122
      this.settledAmount = 0;
-
 
23123
    }
-
 
23124
 
-
 
23125
    public long getId() {
-
 
23126
      return this.id;
-
 
23127
    }
-
 
23128
 
-
 
23129
    public void setId(long id) {
-
 
23130
      this.id = id;
-
 
23131
      setIdIsSet(true);
-
 
23132
    }
-
 
23133
 
-
 
23134
    public void unsetId() {
-
 
23135
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
23136
    }
-
 
23137
 
-
 
23138
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
23139
    public boolean isSetId() {
-
 
23140
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
23141
    }
-
 
23142
 
-
 
23143
    public void setIdIsSet(boolean value) {
-
 
23144
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
23145
    }
-
 
23146
 
-
 
23147
    /**
-
 
23148
     * 
-
 
23149
     * @see SettlementType
-
 
23150
     */
-
 
23151
    public SettlementType getSettlementType() {
-
 
23152
      return this.settlementType;
-
 
23153
    }
-
 
23154
 
-
 
23155
    /**
-
 
23156
     * 
-
 
23157
     * @see SettlementType
-
 
23158
     */
-
 
23159
    public void setSettlementType(SettlementType settlementType) {
-
 
23160
      this.settlementType = settlementType;
-
 
23161
    }
-
 
23162
 
-
 
23163
    public void unsetSettlementType() {
-
 
23164
      this.settlementType = null;
-
 
23165
    }
-
 
23166
 
-
 
23167
    /** Returns true if field settlementType is set (has been assigned a value) and false otherwise */
-
 
23168
    public boolean isSetSettlementType() {
-
 
23169
      return this.settlementType != null;
-
 
23170
    }
-
 
23171
 
-
 
23172
    public void setSettlementTypeIsSet(boolean value) {
-
 
23173
      if (!value) {
-
 
23174
        this.settlementType = null;
-
 
23175
      }
-
 
23176
    }
-
 
23177
 
-
 
23178
    public String getDocumentNumber() {
-
 
23179
      return this.documentNumber;
-
 
23180
    }
-
 
23181
 
-
 
23182
    public void setDocumentNumber(String documentNumber) {
-
 
23183
      this.documentNumber = documentNumber;
-
 
23184
    }
-
 
23185
 
-
 
23186
    public void unsetDocumentNumber() {
-
 
23187
      this.documentNumber = null;
-
 
23188
    }
-
 
23189
 
-
 
23190
    /** Returns true if field documentNumber is set (has been assigned a value) and false otherwise */
-
 
23191
    public boolean isSetDocumentNumber() {
-
 
23192
      return this.documentNumber != null;
-
 
23193
    }
-
 
23194
 
-
 
23195
    public void setDocumentNumberIsSet(boolean value) {
-
 
23196
      if (!value) {
-
 
23197
        this.documentNumber = null;
-
 
23198
      }
-
 
23199
    }
-
 
23200
 
-
 
23201
    public String getSettlementBy() {
-
 
23202
      return this.settlementBy;
-
 
23203
    }
-
 
23204
 
-
 
23205
    public void setSettlementBy(String settlementBy) {
-
 
23206
      this.settlementBy = settlementBy;
-
 
23207
    }
-
 
23208
 
-
 
23209
    public void unsetSettlementBy() {
-
 
23210
      this.settlementBy = null;
-
 
23211
    }
-
 
23212
 
-
 
23213
    /** Returns true if field settlementBy is set (has been assigned a value) and false otherwise */
-
 
23214
    public boolean isSetSettlementBy() {
-
 
23215
      return this.settlementBy != null;
-
 
23216
    }
-
 
23217
 
-
 
23218
    public void setSettlementByIsSet(boolean value) {
-
 
23219
      if (!value) {
-
 
23220
        this.settlementBy = null;
-
 
23221
      }
-
 
23222
    }
-
 
23223
 
-
 
23224
    public long getSettledAmount() {
-
 
23225
      return this.settledAmount;
-
 
23226
    }
-
 
23227
 
-
 
23228
    public void setSettledAmount(long settledAmount) {
-
 
23229
      this.settledAmount = settledAmount;
-
 
23230
      setSettledAmountIsSet(true);
-
 
23231
    }
-
 
23232
 
-
 
23233
    public void unsetSettledAmount() {
-
 
23234
      __isset_bit_vector.clear(__SETTLEDAMOUNT_ISSET_ID);
-
 
23235
    }
-
 
23236
 
-
 
23237
    /** Returns true if field settledAmount is set (has been assigned a value) and false otherwise */
-
 
23238
    public boolean isSetSettledAmount() {
-
 
23239
      return __isset_bit_vector.get(__SETTLEDAMOUNT_ISSET_ID);
-
 
23240
    }
-
 
23241
 
-
 
23242
    public void setSettledAmountIsSet(boolean value) {
-
 
23243
      __isset_bit_vector.set(__SETTLEDAMOUNT_ISSET_ID, value);
-
 
23244
    }
-
 
23245
 
-
 
23246
    public void setFieldValue(_Fields field, Object value) {
-
 
23247
      switch (field) {
-
 
23248
      case ID:
-
 
23249
        if (value == null) {
-
 
23250
          unsetId();
-
 
23251
        } else {
-
 
23252
          setId((Long)value);
-
 
23253
        }
-
 
23254
        break;
-
 
23255
 
-
 
23256
      case SETTLEMENT_TYPE:
-
 
23257
        if (value == null) {
-
 
23258
          unsetSettlementType();
-
 
23259
        } else {
-
 
23260
          setSettlementType((SettlementType)value);
-
 
23261
        }
-
 
23262
        break;
-
 
23263
 
-
 
23264
      case DOCUMENT_NUMBER:
-
 
23265
        if (value == null) {
-
 
23266
          unsetDocumentNumber();
-
 
23267
        } else {
-
 
23268
          setDocumentNumber((String)value);
-
 
23269
        }
-
 
23270
        break;
-
 
23271
 
-
 
23272
      case SETTLEMENT_BY:
-
 
23273
        if (value == null) {
-
 
23274
          unsetSettlementBy();
-
 
23275
        } else {
-
 
23276
          setSettlementBy((String)value);
-
 
23277
        }
-
 
23278
        break;
-
 
23279
 
-
 
23280
      case SETTLED_AMOUNT:
-
 
23281
        if (value == null) {
-
 
23282
          unsetSettledAmount();
-
 
23283
        } else {
-
 
23284
          setSettledAmount((Long)value);
-
 
23285
        }
-
 
23286
        break;
-
 
23287
 
-
 
23288
      }
-
 
23289
    }
-
 
23290
 
-
 
23291
    public Object getFieldValue(_Fields field) {
-
 
23292
      switch (field) {
-
 
23293
      case ID:
-
 
23294
        return Long.valueOf(getId());
-
 
23295
 
-
 
23296
      case SETTLEMENT_TYPE:
-
 
23297
        return getSettlementType();
-
 
23298
 
-
 
23299
      case DOCUMENT_NUMBER:
-
 
23300
        return getDocumentNumber();
-
 
23301
 
-
 
23302
      case SETTLEMENT_BY:
-
 
23303
        return getSettlementBy();
-
 
23304
 
-
 
23305
      case SETTLED_AMOUNT:
-
 
23306
        return Long.valueOf(getSettledAmount());
-
 
23307
 
-
 
23308
      }
-
 
23309
      throw new IllegalStateException();
-
 
23310
    }
-
 
23311
 
-
 
23312
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23313
    public boolean isSet(_Fields field) {
-
 
23314
      if (field == null) {
-
 
23315
        throw new IllegalArgumentException();
-
 
23316
      }
-
 
23317
 
-
 
23318
      switch (field) {
-
 
23319
      case ID:
-
 
23320
        return isSetId();
-
 
23321
      case SETTLEMENT_TYPE:
-
 
23322
        return isSetSettlementType();
-
 
23323
      case DOCUMENT_NUMBER:
-
 
23324
        return isSetDocumentNumber();
-
 
23325
      case SETTLEMENT_BY:
-
 
23326
        return isSetSettlementBy();
-
 
23327
      case SETTLED_AMOUNT:
-
 
23328
        return isSetSettledAmount();
-
 
23329
      }
-
 
23330
      throw new IllegalStateException();
-
 
23331
    }
-
 
23332
 
-
 
23333
    @Override
-
 
23334
    public boolean equals(Object that) {
-
 
23335
      if (that == null)
-
 
23336
        return false;
-
 
23337
      if (that instanceof markPurchasereturnSettled_args)
-
 
23338
        return this.equals((markPurchasereturnSettled_args)that);
-
 
23339
      return false;
-
 
23340
    }
-
 
23341
 
-
 
23342
    public boolean equals(markPurchasereturnSettled_args that) {
-
 
23343
      if (that == null)
-
 
23344
        return false;
-
 
23345
 
-
 
23346
      boolean this_present_id = true;
-
 
23347
      boolean that_present_id = true;
-
 
23348
      if (this_present_id || that_present_id) {
-
 
23349
        if (!(this_present_id && that_present_id))
-
 
23350
          return false;
-
 
23351
        if (this.id != that.id)
-
 
23352
          return false;
-
 
23353
      }
-
 
23354
 
-
 
23355
      boolean this_present_settlementType = true && this.isSetSettlementType();
-
 
23356
      boolean that_present_settlementType = true && that.isSetSettlementType();
-
 
23357
      if (this_present_settlementType || that_present_settlementType) {
-
 
23358
        if (!(this_present_settlementType && that_present_settlementType))
-
 
23359
          return false;
-
 
23360
        if (!this.settlementType.equals(that.settlementType))
-
 
23361
          return false;
-
 
23362
      }
-
 
23363
 
-
 
23364
      boolean this_present_documentNumber = true && this.isSetDocumentNumber();
-
 
23365
      boolean that_present_documentNumber = true && that.isSetDocumentNumber();
-
 
23366
      if (this_present_documentNumber || that_present_documentNumber) {
-
 
23367
        if (!(this_present_documentNumber && that_present_documentNumber))
-
 
23368
          return false;
-
 
23369
        if (!this.documentNumber.equals(that.documentNumber))
-
 
23370
          return false;
-
 
23371
      }
-
 
23372
 
-
 
23373
      boolean this_present_settlementBy = true && this.isSetSettlementBy();
-
 
23374
      boolean that_present_settlementBy = true && that.isSetSettlementBy();
-
 
23375
      if (this_present_settlementBy || that_present_settlementBy) {
-
 
23376
        if (!(this_present_settlementBy && that_present_settlementBy))
-
 
23377
          return false;
-
 
23378
        if (!this.settlementBy.equals(that.settlementBy))
-
 
23379
          return false;
-
 
23380
      }
-
 
23381
 
-
 
23382
      boolean this_present_settledAmount = true;
-
 
23383
      boolean that_present_settledAmount = true;
-
 
23384
      if (this_present_settledAmount || that_present_settledAmount) {
-
 
23385
        if (!(this_present_settledAmount && that_present_settledAmount))
-
 
23386
          return false;
-
 
23387
        if (this.settledAmount != that.settledAmount)
-
 
23388
          return false;
-
 
23389
      }
-
 
23390
 
-
 
23391
      return true;
-
 
23392
    }
-
 
23393
 
-
 
23394
    @Override
-
 
23395
    public int hashCode() {
-
 
23396
      return 0;
-
 
23397
    }
-
 
23398
 
-
 
23399
    public int compareTo(markPurchasereturnSettled_args other) {
-
 
23400
      if (!getClass().equals(other.getClass())) {
-
 
23401
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23402
      }
-
 
23403
 
-
 
23404
      int lastComparison = 0;
-
 
23405
      markPurchasereturnSettled_args typedOther = (markPurchasereturnSettled_args)other;
-
 
23406
 
-
 
23407
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
23408
      if (lastComparison != 0) {
-
 
23409
        return lastComparison;
-
 
23410
      }
-
 
23411
      if (isSetId()) {
-
 
23412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
23413
        if (lastComparison != 0) {
-
 
23414
          return lastComparison;
-
 
23415
        }
-
 
23416
      }
-
 
23417
      lastComparison = Boolean.valueOf(isSetSettlementType()).compareTo(typedOther.isSetSettlementType());
-
 
23418
      if (lastComparison != 0) {
-
 
23419
        return lastComparison;
-
 
23420
      }
-
 
23421
      if (isSetSettlementType()) {
-
 
23422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementType, typedOther.settlementType);
-
 
23423
        if (lastComparison != 0) {
-
 
23424
          return lastComparison;
-
 
23425
        }
-
 
23426
      }
-
 
23427
      lastComparison = Boolean.valueOf(isSetDocumentNumber()).compareTo(typedOther.isSetDocumentNumber());
-
 
23428
      if (lastComparison != 0) {
-
 
23429
        return lastComparison;
-
 
23430
      }
-
 
23431
      if (isSetDocumentNumber()) {
-
 
23432
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.documentNumber, typedOther.documentNumber);
-
 
23433
        if (lastComparison != 0) {
-
 
23434
          return lastComparison;
-
 
23435
        }
-
 
23436
      }
-
 
23437
      lastComparison = Boolean.valueOf(isSetSettlementBy()).compareTo(typedOther.isSetSettlementBy());
-
 
23438
      if (lastComparison != 0) {
-
 
23439
        return lastComparison;
-
 
23440
      }
-
 
23441
      if (isSetSettlementBy()) {
-
 
23442
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementBy, typedOther.settlementBy);
-
 
23443
        if (lastComparison != 0) {
-
 
23444
          return lastComparison;
-
 
23445
        }
-
 
23446
      }
-
 
23447
      lastComparison = Boolean.valueOf(isSetSettledAmount()).compareTo(typedOther.isSetSettledAmount());
-
 
23448
      if (lastComparison != 0) {
-
 
23449
        return lastComparison;
-
 
23450
      }
-
 
23451
      if (isSetSettledAmount()) {
-
 
23452
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settledAmount, typedOther.settledAmount);
-
 
23453
        if (lastComparison != 0) {
-
 
23454
          return lastComparison;
-
 
23455
        }
-
 
23456
      }
-
 
23457
      return 0;
-
 
23458
    }
-
 
23459
 
-
 
23460
    public _Fields fieldForId(int fieldId) {
-
 
23461
      return _Fields.findByThriftId(fieldId);
-
 
23462
    }
-
 
23463
 
-
 
23464
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23465
      org.apache.thrift.protocol.TField field;
-
 
23466
      iprot.readStructBegin();
-
 
23467
      while (true)
-
 
23468
      {
-
 
23469
        field = iprot.readFieldBegin();
-
 
23470
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23471
          break;
-
 
23472
        }
-
 
23473
        switch (field.id) {
-
 
23474
          case 1: // ID
-
 
23475
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23476
              this.id = iprot.readI64();
-
 
23477
              setIdIsSet(true);
-
 
23478
            } else { 
-
 
23479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23480
            }
-
 
23481
            break;
-
 
23482
          case 2: // SETTLEMENT_TYPE
-
 
23483
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
23484
              this.settlementType = SettlementType.findByValue(iprot.readI32());
-
 
23485
            } else { 
-
 
23486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23487
            }
-
 
23488
            break;
-
 
23489
          case 3: // DOCUMENT_NUMBER
-
 
23490
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
23491
              this.documentNumber = iprot.readString();
-
 
23492
            } else { 
-
 
23493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23494
            }
-
 
23495
            break;
-
 
23496
          case 4: // SETTLEMENT_BY
-
 
23497
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
23498
              this.settlementBy = iprot.readString();
-
 
23499
            } else { 
-
 
23500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23501
            }
-
 
23502
            break;
-
 
23503
          case 5: // SETTLED_AMOUNT
-
 
23504
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23505
              this.settledAmount = iprot.readI64();
-
 
23506
              setSettledAmountIsSet(true);
-
 
23507
            } else { 
-
 
23508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23509
            }
-
 
23510
            break;
-
 
23511
          default:
-
 
23512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23513
        }
-
 
23514
        iprot.readFieldEnd();
-
 
23515
      }
-
 
23516
      iprot.readStructEnd();
-
 
23517
      validate();
-
 
23518
    }
-
 
23519
 
-
 
23520
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23521
      validate();
-
 
23522
 
-
 
23523
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23524
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
23525
      oprot.writeI64(this.id);
-
 
23526
      oprot.writeFieldEnd();
-
 
23527
      if (this.settlementType != null) {
-
 
23528
        oprot.writeFieldBegin(SETTLEMENT_TYPE_FIELD_DESC);
-
 
23529
        oprot.writeI32(this.settlementType.getValue());
-
 
23530
        oprot.writeFieldEnd();
-
 
23531
      }
-
 
23532
      if (this.documentNumber != null) {
-
 
23533
        oprot.writeFieldBegin(DOCUMENT_NUMBER_FIELD_DESC);
-
 
23534
        oprot.writeString(this.documentNumber);
-
 
23535
        oprot.writeFieldEnd();
-
 
23536
      }
-
 
23537
      if (this.settlementBy != null) {
-
 
23538
        oprot.writeFieldBegin(SETTLEMENT_BY_FIELD_DESC);
-
 
23539
        oprot.writeString(this.settlementBy);
-
 
23540
        oprot.writeFieldEnd();
-
 
23541
      }
-
 
23542
      oprot.writeFieldBegin(SETTLED_AMOUNT_FIELD_DESC);
-
 
23543
      oprot.writeI64(this.settledAmount);
-
 
23544
      oprot.writeFieldEnd();
-
 
23545
      oprot.writeFieldStop();
-
 
23546
      oprot.writeStructEnd();
-
 
23547
    }
-
 
23548
 
-
 
23549
    @Override
-
 
23550
    public String toString() {
-
 
23551
      StringBuilder sb = new StringBuilder("markPurchasereturnSettled_args(");
-
 
23552
      boolean first = true;
-
 
23553
 
-
 
23554
      sb.append("id:");
-
 
23555
      sb.append(this.id);
-
 
23556
      first = false;
-
 
23557
      if (!first) sb.append(", ");
-
 
23558
      sb.append("settlementType:");
-
 
23559
      if (this.settlementType == null) {
-
 
23560
        sb.append("null");
-
 
23561
      } else {
-
 
23562
        sb.append(this.settlementType);
-
 
23563
      }
-
 
23564
      first = false;
-
 
23565
      if (!first) sb.append(", ");
-
 
23566
      sb.append("documentNumber:");
-
 
23567
      if (this.documentNumber == null) {
-
 
23568
        sb.append("null");
-
 
23569
      } else {
-
 
23570
        sb.append(this.documentNumber);
-
 
23571
      }
-
 
23572
      first = false;
-
 
23573
      if (!first) sb.append(", ");
-
 
23574
      sb.append("settlementBy:");
-
 
23575
      if (this.settlementBy == null) {
-
 
23576
        sb.append("null");
-
 
23577
      } else {
-
 
23578
        sb.append(this.settlementBy);
-
 
23579
      }
-
 
23580
      first = false;
-
 
23581
      if (!first) sb.append(", ");
-
 
23582
      sb.append("settledAmount:");
-
 
23583
      sb.append(this.settledAmount);
-
 
23584
      first = false;
-
 
23585
      sb.append(")");
-
 
23586
      return sb.toString();
-
 
23587
    }
-
 
23588
 
-
 
23589
    public void validate() throws org.apache.thrift.TException {
-
 
23590
      // check for required fields
-
 
23591
    }
-
 
23592
 
-
 
23593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23594
      try {
-
 
23595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23596
      } catch (org.apache.thrift.TException te) {
-
 
23597
        throw new java.io.IOException(te);
-
 
23598
      }
-
 
23599
    }
-
 
23600
 
-
 
23601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23602
      try {
-
 
23603
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
23604
        __isset_bit_vector = new BitSet(1);
-
 
23605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23606
      } catch (org.apache.thrift.TException te) {
-
 
23607
        throw new java.io.IOException(te);
-
 
23608
      }
-
 
23609
    }
-
 
23610
 
-
 
23611
  }
-
 
23612
 
-
 
23613
  public static class markPurchasereturnSettled_result implements org.apache.thrift.TBase<markPurchasereturnSettled_result, markPurchasereturnSettled_result._Fields>, java.io.Serializable, Cloneable   {
-
 
23614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPurchasereturnSettled_result");
-
 
23615
 
-
 
23616
    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);
-
 
23617
    private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
23618
 
-
 
23619
    private boolean success; // required
-
 
23620
    private PurchaseServiceException e; // required
-
 
23621
 
-
 
23622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23624
      SUCCESS((short)0, "success"),
-
 
23625
      E((short)1, "e");
-
 
23626
 
-
 
23627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23628
 
-
 
23629
      static {
-
 
23630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23631
          byName.put(field.getFieldName(), field);
-
 
23632
        }
-
 
23633
      }
-
 
23634
 
-
 
23635
      /**
-
 
23636
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23637
       */
-
 
23638
      public static _Fields findByThriftId(int fieldId) {
-
 
23639
        switch(fieldId) {
-
 
23640
          case 0: // SUCCESS
-
 
23641
            return SUCCESS;
-
 
23642
          case 1: // E
-
 
23643
            return E;
-
 
23644
          default:
-
 
23645
            return null;
-
 
23646
        }
-
 
23647
      }
-
 
23648
 
-
 
23649
      /**
-
 
23650
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23651
       * if it is not found.
-
 
23652
       */
-
 
23653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23654
        _Fields fields = findByThriftId(fieldId);
-
 
23655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23656
        return fields;
-
 
23657
      }
-
 
23658
 
-
 
23659
      /**
-
 
23660
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23661
       */
-
 
23662
      public static _Fields findByName(String name) {
-
 
23663
        return byName.get(name);
-
 
23664
      }
-
 
23665
 
-
 
23666
      private final short _thriftId;
-
 
23667
      private final String _fieldName;
-
 
23668
 
-
 
23669
      _Fields(short thriftId, String fieldName) {
-
 
23670
        _thriftId = thriftId;
-
 
23671
        _fieldName = fieldName;
-
 
23672
      }
-
 
23673
 
-
 
23674
      public short getThriftFieldId() {
-
 
23675
        return _thriftId;
-
 
23676
      }
-
 
23677
 
-
 
23678
      public String getFieldName() {
-
 
23679
        return _fieldName;
-
 
23680
      }
-
 
23681
    }
-
 
23682
 
-
 
23683
    // isset id assignments
-
 
23684
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
23685
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
23686
 
-
 
23687
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23688
    static {
-
 
23689
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23690
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
23692
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
23694
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23695
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPurchasereturnSettled_result.class, metaDataMap);
-
 
23696
    }
-
 
23697
 
-
 
23698
    public markPurchasereturnSettled_result() {
-
 
23699
    }
-
 
23700
 
-
 
23701
    public markPurchasereturnSettled_result(
-
 
23702
      boolean success,
-
 
23703
      PurchaseServiceException e)
-
 
23704
    {
-
 
23705
      this();
-
 
23706
      this.success = success;
-
 
23707
      setSuccessIsSet(true);
-
 
23708
      this.e = e;
-
 
23709
    }
-
 
23710
 
-
 
23711
    /**
-
 
23712
     * Performs a deep copy on <i>other</i>.
-
 
23713
     */
-
 
23714
    public markPurchasereturnSettled_result(markPurchasereturnSettled_result other) {
-
 
23715
      __isset_bit_vector.clear();
-
 
23716
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
23717
      this.success = other.success;
-
 
23718
      if (other.isSetE()) {
-
 
23719
        this.e = new PurchaseServiceException(other.e);
-
 
23720
      }
-
 
23721
    }
-
 
23722
 
-
 
23723
    public markPurchasereturnSettled_result deepCopy() {
-
 
23724
      return new markPurchasereturnSettled_result(this);
-
 
23725
    }
-
 
23726
 
-
 
23727
    @Override
-
 
23728
    public void clear() {
-
 
23729
      setSuccessIsSet(false);
-
 
23730
      this.success = false;
-
 
23731
      this.e = null;
-
 
23732
    }
-
 
23733
 
-
 
23734
    public boolean isSuccess() {
-
 
23735
      return this.success;
-
 
23736
    }
-
 
23737
 
-
 
23738
    public void setSuccess(boolean success) {
-
 
23739
      this.success = success;
-
 
23740
      setSuccessIsSet(true);
-
 
23741
    }
-
 
23742
 
-
 
23743
    public void unsetSuccess() {
-
 
23744
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
23745
    }
-
 
23746
 
-
 
23747
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
23748
    public boolean isSetSuccess() {
-
 
23749
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
23750
    }
-
 
23751
 
-
 
23752
    public void setSuccessIsSet(boolean value) {
-
 
23753
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
23754
    }
-
 
23755
 
-
 
23756
    public PurchaseServiceException getE() {
-
 
23757
      return this.e;
-
 
23758
    }
-
 
23759
 
-
 
23760
    public void setE(PurchaseServiceException e) {
-
 
23761
      this.e = e;
-
 
23762
    }
-
 
23763
 
-
 
23764
    public void unsetE() {
-
 
23765
      this.e = null;
-
 
23766
    }
-
 
23767
 
-
 
23768
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
23769
    public boolean isSetE() {
-
 
23770
      return this.e != null;
-
 
23771
    }
-
 
23772
 
-
 
23773
    public void setEIsSet(boolean value) {
-
 
23774
      if (!value) {
-
 
23775
        this.e = null;
-
 
23776
      }
-
 
23777
    }
-
 
23778
 
-
 
23779
    public void setFieldValue(_Fields field, Object value) {
-
 
23780
      switch (field) {
-
 
23781
      case SUCCESS:
-
 
23782
        if (value == null) {
-
 
23783
          unsetSuccess();
-
 
23784
        } else {
-
 
23785
          setSuccess((Boolean)value);
-
 
23786
        }
-
 
23787
        break;
-
 
23788
 
-
 
23789
      case E:
-
 
23790
        if (value == null) {
-
 
23791
          unsetE();
-
 
23792
        } else {
-
 
23793
          setE((PurchaseServiceException)value);
-
 
23794
        }
-
 
23795
        break;
-
 
23796
 
-
 
23797
      }
-
 
23798
    }
-
 
23799
 
-
 
23800
    public Object getFieldValue(_Fields field) {
-
 
23801
      switch (field) {
-
 
23802
      case SUCCESS:
-
 
23803
        return Boolean.valueOf(isSuccess());
-
 
23804
 
-
 
23805
      case E:
-
 
23806
        return getE();
-
 
23807
 
-
 
23808
      }
-
 
23809
      throw new IllegalStateException();
-
 
23810
    }
-
 
23811
 
-
 
23812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23813
    public boolean isSet(_Fields field) {
-
 
23814
      if (field == null) {
-
 
23815
        throw new IllegalArgumentException();
-
 
23816
      }
-
 
23817
 
-
 
23818
      switch (field) {
-
 
23819
      case SUCCESS:
-
 
23820
        return isSetSuccess();
-
 
23821
      case E:
-
 
23822
        return isSetE();
-
 
23823
      }
-
 
23824
      throw new IllegalStateException();
-
 
23825
    }
-
 
23826
 
-
 
23827
    @Override
-
 
23828
    public boolean equals(Object that) {
-
 
23829
      if (that == null)
-
 
23830
        return false;
-
 
23831
      if (that instanceof markPurchasereturnSettled_result)
-
 
23832
        return this.equals((markPurchasereturnSettled_result)that);
-
 
23833
      return false;
-
 
23834
    }
-
 
23835
 
-
 
23836
    public boolean equals(markPurchasereturnSettled_result that) {
-
 
23837
      if (that == null)
-
 
23838
        return false;
-
 
23839
 
-
 
23840
      boolean this_present_success = true;
-
 
23841
      boolean that_present_success = true;
-
 
23842
      if (this_present_success || that_present_success) {
-
 
23843
        if (!(this_present_success && that_present_success))
-
 
23844
          return false;
-
 
23845
        if (this.success != that.success)
-
 
23846
          return false;
-
 
23847
      }
-
 
23848
 
-
 
23849
      boolean this_present_e = true && this.isSetE();
-
 
23850
      boolean that_present_e = true && that.isSetE();
-
 
23851
      if (this_present_e || that_present_e) {
-
 
23852
        if (!(this_present_e && that_present_e))
-
 
23853
          return false;
-
 
23854
        if (!this.e.equals(that.e))
-
 
23855
          return false;
-
 
23856
      }
-
 
23857
 
-
 
23858
      return true;
-
 
23859
    }
-
 
23860
 
-
 
23861
    @Override
-
 
23862
    public int hashCode() {
-
 
23863
      return 0;
-
 
23864
    }
-
 
23865
 
-
 
23866
    public int compareTo(markPurchasereturnSettled_result other) {
-
 
23867
      if (!getClass().equals(other.getClass())) {
-
 
23868
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23869
      }
-
 
23870
 
-
 
23871
      int lastComparison = 0;
-
 
23872
      markPurchasereturnSettled_result typedOther = (markPurchasereturnSettled_result)other;
-
 
23873
 
-
 
23874
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
23875
      if (lastComparison != 0) {
-
 
23876
        return lastComparison;
-
 
23877
      }
-
 
23878
      if (isSetSuccess()) {
-
 
23879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
23880
        if (lastComparison != 0) {
-
 
23881
          return lastComparison;
-
 
23882
        }
-
 
23883
      }
-
 
23884
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
23885
      if (lastComparison != 0) {
-
 
23886
        return lastComparison;
-
 
23887
      }
-
 
23888
      if (isSetE()) {
-
 
23889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
23890
        if (lastComparison != 0) {
-
 
23891
          return lastComparison;
-
 
23892
        }
-
 
23893
      }
-
 
23894
      return 0;
-
 
23895
    }
-
 
23896
 
-
 
23897
    public _Fields fieldForId(int fieldId) {
-
 
23898
      return _Fields.findByThriftId(fieldId);
-
 
23899
    }
-
 
23900
 
-
 
23901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23902
      org.apache.thrift.protocol.TField field;
-
 
23903
      iprot.readStructBegin();
-
 
23904
      while (true)
-
 
23905
      {
-
 
23906
        field = iprot.readFieldBegin();
-
 
23907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23908
          break;
-
 
23909
        }
-
 
23910
        switch (field.id) {
-
 
23911
          case 0: // SUCCESS
-
 
23912
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
23913
              this.success = iprot.readBool();
-
 
23914
              setSuccessIsSet(true);
-
 
23915
            } else { 
-
 
23916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23917
            }
-
 
23918
            break;
-
 
23919
          case 1: // E
-
 
23920
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
23921
              this.e = new PurchaseServiceException();
-
 
23922
              this.e.read(iprot);
-
 
23923
            } else { 
-
 
23924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23925
            }
-
 
23926
            break;
-
 
23927
          default:
-
 
23928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23929
        }
-
 
23930
        iprot.readFieldEnd();
-
 
23931
      }
-
 
23932
      iprot.readStructEnd();
-
 
23933
      validate();
-
 
23934
    }
-
 
23935
 
-
 
23936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23937
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23938
 
-
 
23939
      if (this.isSetSuccess()) {
-
 
23940
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
23941
        oprot.writeBool(this.success);
-
 
23942
        oprot.writeFieldEnd();
-
 
23943
      } else if (this.isSetE()) {
-
 
23944
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
23945
        this.e.write(oprot);
-
 
23946
        oprot.writeFieldEnd();
-
 
23947
      }
-
 
23948
      oprot.writeFieldStop();
-
 
23949
      oprot.writeStructEnd();
-
 
23950
    }
-
 
23951
 
-
 
23952
    @Override
-
 
23953
    public String toString() {
-
 
23954
      StringBuilder sb = new StringBuilder("markPurchasereturnSettled_result(");
-
 
23955
      boolean first = true;
-
 
23956
 
-
 
23957
      sb.append("success:");
-
 
23958
      sb.append(this.success);
-
 
23959
      first = false;
-
 
23960
      if (!first) sb.append(", ");
-
 
23961
      sb.append("e:");
-
 
23962
      if (this.e == null) {
-
 
23963
        sb.append("null");
-
 
23964
      } else {
-
 
23965
        sb.append(this.e);
-
 
23966
      }
-
 
23967
      first = false;
-
 
23968
      sb.append(")");
-
 
23969
      return sb.toString();
-
 
23970
    }
-
 
23971
 
-
 
23972
    public void validate() throws org.apache.thrift.TException {
-
 
23973
      // check for required fields
-
 
23974
    }
-
 
23975
 
-
 
23976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23977
      try {
-
 
23978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23979
      } catch (org.apache.thrift.TException te) {
-
 
23980
        throw new java.io.IOException(te);
-
 
23981
      }
-
 
23982
    }
-
 
23983
 
-
 
23984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23985
      try {
-
 
23986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23987
      } catch (org.apache.thrift.TException te) {
-
 
23988
        throw new java.io.IOException(te);
-
 
23989
      }
-
 
23990
    }
-
 
23991
 
-
 
23992
  }
-
 
23993
 
-
 
23994
  public static class getPrSettlementsForPurchaseReturn_args implements org.apache.thrift.TBase<getPrSettlementsForPurchaseReturn_args, getPrSettlementsForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
23995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrSettlementsForPurchaseReturn_args");
-
 
23996
 
-
 
23997
    private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
23998
 
-
 
23999
    private long purchaseReturnId; // required
-
 
24000
 
-
 
24001
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24002
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
24003
      PURCHASE_RETURN_ID((short)1, "purchaseReturnId");
-
 
24004
 
-
 
24005
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24006
 
-
 
24007
      static {
-
 
24008
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24009
          byName.put(field.getFieldName(), field);
-
 
24010
        }
-
 
24011
      }
-
 
24012
 
-
 
24013
      /**
-
 
24014
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24015
       */
-
 
24016
      public static _Fields findByThriftId(int fieldId) {
-
 
24017
        switch(fieldId) {
-
 
24018
          case 1: // PURCHASE_RETURN_ID
-
 
24019
            return PURCHASE_RETURN_ID;
-
 
24020
          default:
-
 
24021
            return null;
-
 
24022
        }
-
 
24023
      }
-
 
24024
 
-
 
24025
      /**
-
 
24026
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24027
       * if it is not found.
-
 
24028
       */
-
 
24029
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24030
        _Fields fields = findByThriftId(fieldId);
-
 
24031
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24032
        return fields;
-
 
24033
      }
-
 
24034
 
-
 
24035
      /**
-
 
24036
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24037
       */
-
 
24038
      public static _Fields findByName(String name) {
-
 
24039
        return byName.get(name);
-
 
24040
      }
-
 
24041
 
-
 
24042
      private final short _thriftId;
-
 
24043
      private final String _fieldName;
-
 
24044
 
-
 
24045
      _Fields(short thriftId, String fieldName) {
-
 
24046
        _thriftId = thriftId;
-
 
24047
        _fieldName = fieldName;
-
 
24048
      }
-
 
24049
 
-
 
24050
      public short getThriftFieldId() {
-
 
24051
        return _thriftId;
-
 
24052
      }
-
 
24053
 
-
 
24054
      public String getFieldName() {
-
 
24055
        return _fieldName;
-
 
24056
      }
-
 
24057
    }
-
 
24058
 
-
 
24059
    // isset id assignments
-
 
24060
    private static final int __PURCHASERETURNID_ISSET_ID = 0;
-
 
24061
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
24062
 
-
 
24063
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
24064
    static {
-
 
24065
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
24066
      tmpMap.put(_Fields.PURCHASE_RETURN_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24067
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
24068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
24069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrSettlementsForPurchaseReturn_args.class, metaDataMap);
-
 
24070
    }
-
 
24071
 
-
 
24072
    public getPrSettlementsForPurchaseReturn_args() {
-
 
24073
    }
-
 
24074
 
-
 
24075
    public getPrSettlementsForPurchaseReturn_args(
-
 
24076
      long purchaseReturnId)
-
 
24077
    {
-
 
24078
      this();
-
 
24079
      this.purchaseReturnId = purchaseReturnId;
-
 
24080
      setPurchaseReturnIdIsSet(true);
-
 
24081
    }
-
 
24082
 
-
 
24083
    /**
-
 
24084
     * Performs a deep copy on <i>other</i>.
-
 
24085
     */
-
 
24086
    public getPrSettlementsForPurchaseReturn_args(getPrSettlementsForPurchaseReturn_args other) {
-
 
24087
      __isset_bit_vector.clear();
-
 
24088
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
24089
      this.purchaseReturnId = other.purchaseReturnId;
-
 
24090
    }
-
 
24091
 
-
 
24092
    public getPrSettlementsForPurchaseReturn_args deepCopy() {
-
 
24093
      return new getPrSettlementsForPurchaseReturn_args(this);
-
 
24094
    }
-
 
24095
 
-
 
24096
    @Override
-
 
24097
    public void clear() {
-
 
24098
      setPurchaseReturnIdIsSet(false);
-
 
24099
      this.purchaseReturnId = 0;
-
 
24100
    }
-
 
24101
 
-
 
24102
    public long getPurchaseReturnId() {
-
 
24103
      return this.purchaseReturnId;
-
 
24104
    }
-
 
24105
 
-
 
24106
    public void setPurchaseReturnId(long purchaseReturnId) {
-
 
24107
      this.purchaseReturnId = purchaseReturnId;
-
 
24108
      setPurchaseReturnIdIsSet(true);
-
 
24109
    }
-
 
24110
 
-
 
24111
    public void unsetPurchaseReturnId() {
-
 
24112
      __isset_bit_vector.clear(__PURCHASERETURNID_ISSET_ID);
-
 
24113
    }
-
 
24114
 
-
 
24115
    /** Returns true if field purchaseReturnId is set (has been assigned a value) and false otherwise */
-
 
24116
    public boolean isSetPurchaseReturnId() {
-
 
24117
      return __isset_bit_vector.get(__PURCHASERETURNID_ISSET_ID);
-
 
24118
    }
-
 
24119
 
-
 
24120
    public void setPurchaseReturnIdIsSet(boolean value) {
-
 
24121
      __isset_bit_vector.set(__PURCHASERETURNID_ISSET_ID, value);
-
 
24122
    }
-
 
24123
 
-
 
24124
    public void setFieldValue(_Fields field, Object value) {
-
 
24125
      switch (field) {
-
 
24126
      case PURCHASE_RETURN_ID:
-
 
24127
        if (value == null) {
-
 
24128
          unsetPurchaseReturnId();
-
 
24129
        } else {
-
 
24130
          setPurchaseReturnId((Long)value);
-
 
24131
        }
-
 
24132
        break;
-
 
24133
 
-
 
24134
      }
-
 
24135
    }
-
 
24136
 
-
 
24137
    public Object getFieldValue(_Fields field) {
-
 
24138
      switch (field) {
-
 
24139
      case PURCHASE_RETURN_ID:
-
 
24140
        return Long.valueOf(getPurchaseReturnId());
-
 
24141
 
-
 
24142
      }
-
 
24143
      throw new IllegalStateException();
-
 
24144
    }
-
 
24145
 
-
 
24146
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24147
    public boolean isSet(_Fields field) {
-
 
24148
      if (field == null) {
-
 
24149
        throw new IllegalArgumentException();
-
 
24150
      }
-
 
24151
 
-
 
24152
      switch (field) {
-
 
24153
      case PURCHASE_RETURN_ID:
-
 
24154
        return isSetPurchaseReturnId();
-
 
24155
      }
-
 
24156
      throw new IllegalStateException();
-
 
24157
    }
-
 
24158
 
-
 
24159
    @Override
-
 
24160
    public boolean equals(Object that) {
-
 
24161
      if (that == null)
-
 
24162
        return false;
-
 
24163
      if (that instanceof getPrSettlementsForPurchaseReturn_args)
-
 
24164
        return this.equals((getPrSettlementsForPurchaseReturn_args)that);
-
 
24165
      return false;
-
 
24166
    }
-
 
24167
 
-
 
24168
    public boolean equals(getPrSettlementsForPurchaseReturn_args that) {
-
 
24169
      if (that == null)
-
 
24170
        return false;
-
 
24171
 
-
 
24172
      boolean this_present_purchaseReturnId = true;
-
 
24173
      boolean that_present_purchaseReturnId = true;
-
 
24174
      if (this_present_purchaseReturnId || that_present_purchaseReturnId) {
-
 
24175
        if (!(this_present_purchaseReturnId && that_present_purchaseReturnId))
-
 
24176
          return false;
-
 
24177
        if (this.purchaseReturnId != that.purchaseReturnId)
-
 
24178
          return false;
-
 
24179
      }
-
 
24180
 
-
 
24181
      return true;
-
 
24182
    }
-
 
24183
 
-
 
24184
    @Override
-
 
24185
    public int hashCode() {
-
 
24186
      return 0;
-
 
24187
    }
-
 
24188
 
-
 
24189
    public int compareTo(getPrSettlementsForPurchaseReturn_args other) {
-
 
24190
      if (!getClass().equals(other.getClass())) {
-
 
24191
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24192
      }
-
 
24193
 
-
 
24194
      int lastComparison = 0;
-
 
24195
      getPrSettlementsForPurchaseReturn_args typedOther = (getPrSettlementsForPurchaseReturn_args)other;
-
 
24196
 
-
 
24197
      lastComparison = Boolean.valueOf(isSetPurchaseReturnId()).compareTo(typedOther.isSetPurchaseReturnId());
-
 
24198
      if (lastComparison != 0) {
-
 
24199
        return lastComparison;
-
 
24200
      }
-
 
24201
      if (isSetPurchaseReturnId()) {
-
 
24202
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnId, typedOther.purchaseReturnId);
-
 
24203
        if (lastComparison != 0) {
-
 
24204
          return lastComparison;
-
 
24205
        }
-
 
24206
      }
-
 
24207
      return 0;
-
 
24208
    }
-
 
24209
 
-
 
24210
    public _Fields fieldForId(int fieldId) {
-
 
24211
      return _Fields.findByThriftId(fieldId);
-
 
24212
    }
-
 
24213
 
-
 
24214
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24215
      org.apache.thrift.protocol.TField field;
-
 
24216
      iprot.readStructBegin();
-
 
24217
      while (true)
-
 
24218
      {
-
 
24219
        field = iprot.readFieldBegin();
-
 
24220
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24221
          break;
-
 
24222
        }
-
 
24223
        switch (field.id) {
-
 
24224
          case 1: // PURCHASE_RETURN_ID
-
 
24225
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
24226
              this.purchaseReturnId = iprot.readI64();
-
 
24227
              setPurchaseReturnIdIsSet(true);
-
 
24228
            } else { 
-
 
24229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24230
            }
-
 
24231
            break;
-
 
24232
          default:
-
 
24233
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24234
        }
-
 
24235
        iprot.readFieldEnd();
-
 
24236
      }
-
 
24237
      iprot.readStructEnd();
-
 
24238
      validate();
-
 
24239
    }
-
 
24240
 
-
 
24241
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24242
      validate();
-
 
24243
 
-
 
24244
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24245
      oprot.writeFieldBegin(PURCHASE_RETURN_ID_FIELD_DESC);
-
 
24246
      oprot.writeI64(this.purchaseReturnId);
-
 
24247
      oprot.writeFieldEnd();
-
 
24248
      oprot.writeFieldStop();
-
 
24249
      oprot.writeStructEnd();
-
 
24250
    }
-
 
24251
 
-
 
24252
    @Override
-
 
24253
    public String toString() {
-
 
24254
      StringBuilder sb = new StringBuilder("getPrSettlementsForPurchaseReturn_args(");
-
 
24255
      boolean first = true;
-
 
24256
 
-
 
24257
      sb.append("purchaseReturnId:");
-
 
24258
      sb.append(this.purchaseReturnId);
-
 
24259
      first = false;
-
 
24260
      sb.append(")");
-
 
24261
      return sb.toString();
-
 
24262
    }
-
 
24263
 
-
 
24264
    public void validate() throws org.apache.thrift.TException {
-
 
24265
      // check for required fields
-
 
24266
    }
-
 
24267
 
-
 
24268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
24269
      try {
-
 
24270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
24271
      } catch (org.apache.thrift.TException te) {
-
 
24272
        throw new java.io.IOException(te);
-
 
24273
      }
-
 
24274
    }
-
 
24275
 
-
 
24276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
24277
      try {
-
 
24278
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
24279
        __isset_bit_vector = new BitSet(1);
-
 
24280
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
24281
      } catch (org.apache.thrift.TException te) {
-
 
24282
        throw new java.io.IOException(te);
-
 
24283
      }
-
 
24284
    }
-
 
24285
 
-
 
24286
  }
-
 
24287
 
-
 
24288
  public static class getPrSettlementsForPurchaseReturn_result implements org.apache.thrift.TBase<getPrSettlementsForPurchaseReturn_result, getPrSettlementsForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
24289
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrSettlementsForPurchaseReturn_result");
-
 
24290
 
-
 
24291
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
24292
    private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
24293
 
-
 
24294
    private List<PurchaseReturnSettlement> success; // required
-
 
24295
    private PurchaseServiceException e; // required
-
 
24296
 
-
 
24297
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24298
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
24299
      SUCCESS((short)0, "success"),
-
 
24300
      E((short)1, "e");
-
 
24301
 
-
 
24302
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24303
 
-
 
24304
      static {
-
 
24305
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24306
          byName.put(field.getFieldName(), field);
-
 
24307
        }
-
 
24308
      }
-
 
24309
 
-
 
24310
      /**
-
 
24311
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24312
       */
-
 
24313
      public static _Fields findByThriftId(int fieldId) {
-
 
24314
        switch(fieldId) {
-
 
24315
          case 0: // SUCCESS
-
 
24316
            return SUCCESS;
-
 
24317
          case 1: // E
-
 
24318
            return E;
-
 
24319
          default:
-
 
24320
            return null;
-
 
24321
        }
-
 
24322
      }
-
 
24323
 
-
 
24324
      /**
-
 
24325
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24326
       * if it is not found.
-
 
24327
       */
-
 
24328
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24329
        _Fields fields = findByThriftId(fieldId);
-
 
24330
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24331
        return fields;
-
 
24332
      }
-
 
24333
 
-
 
24334
      /**
-
 
24335
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24336
       */
-
 
24337
      public static _Fields findByName(String name) {
-
 
24338
        return byName.get(name);
-
 
24339
      }
-
 
24340
 
-
 
24341
      private final short _thriftId;
-
 
24342
      private final String _fieldName;
-
 
24343
 
-
 
24344
      _Fields(short thriftId, String fieldName) {
-
 
24345
        _thriftId = thriftId;
-
 
24346
        _fieldName = fieldName;
-
 
24347
      }
-
 
24348
 
-
 
24349
      public short getThriftFieldId() {
-
 
24350
        return _thriftId;
-
 
24351
      }
-
 
24352
 
-
 
24353
      public String getFieldName() {
-
 
24354
        return _fieldName;
-
 
24355
      }
-
 
24356
    }
-
 
24357
 
-
 
24358
    // isset id assignments
-
 
24359
 
-
 
24360
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
24361
    static {
-
 
24362
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
24363
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24364
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
24365
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseReturnSettlement.class))));
-
 
24366
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24367
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
24368
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
24369
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrSettlementsForPurchaseReturn_result.class, metaDataMap);
-
 
24370
    }
-
 
24371
 
-
 
24372
    public getPrSettlementsForPurchaseReturn_result() {
-
 
24373
    }
-
 
24374
 
-
 
24375
    public getPrSettlementsForPurchaseReturn_result(
-
 
24376
      List<PurchaseReturnSettlement> success,
-
 
24377
      PurchaseServiceException e)
-
 
24378
    {
-
 
24379
      this();
-
 
24380
      this.success = success;
-
 
24381
      this.e = e;
-
 
24382
    }
-
 
24383
 
-
 
24384
    /**
-
 
24385
     * Performs a deep copy on <i>other</i>.
-
 
24386
     */
-
 
24387
    public getPrSettlementsForPurchaseReturn_result(getPrSettlementsForPurchaseReturn_result other) {
-
 
24388
      if (other.isSetSuccess()) {
-
 
24389
        List<PurchaseReturnSettlement> __this__success = new ArrayList<PurchaseReturnSettlement>();
-
 
24390
        for (PurchaseReturnSettlement other_element : other.success) {
-
 
24391
          __this__success.add(new PurchaseReturnSettlement(other_element));
-
 
24392
        }
-
 
24393
        this.success = __this__success;
-
 
24394
      }
-
 
24395
      if (other.isSetE()) {
-
 
24396
        this.e = new PurchaseServiceException(other.e);
-
 
24397
      }
-
 
24398
    }
-
 
24399
 
-
 
24400
    public getPrSettlementsForPurchaseReturn_result deepCopy() {
-
 
24401
      return new getPrSettlementsForPurchaseReturn_result(this);
-
 
24402
    }
-
 
24403
 
-
 
24404
    @Override
-
 
24405
    public void clear() {
-
 
24406
      this.success = null;
-
 
24407
      this.e = null;
-
 
24408
    }
-
 
24409
 
-
 
24410
    public int getSuccessSize() {
-
 
24411
      return (this.success == null) ? 0 : this.success.size();
-
 
24412
    }
-
 
24413
 
-
 
24414
    public java.util.Iterator<PurchaseReturnSettlement> getSuccessIterator() {
-
 
24415
      return (this.success == null) ? null : this.success.iterator();
-
 
24416
    }
-
 
24417
 
-
 
24418
    public void addToSuccess(PurchaseReturnSettlement elem) {
-
 
24419
      if (this.success == null) {
-
 
24420
        this.success = new ArrayList<PurchaseReturnSettlement>();
-
 
24421
      }
-
 
24422
      this.success.add(elem);
-
 
24423
    }
-
 
24424
 
-
 
24425
    public List<PurchaseReturnSettlement> getSuccess() {
-
 
24426
      return this.success;
-
 
24427
    }
-
 
24428
 
-
 
24429
    public void setSuccess(List<PurchaseReturnSettlement> success) {
-
 
24430
      this.success = success;
-
 
24431
    }
-
 
24432
 
-
 
24433
    public void unsetSuccess() {
-
 
24434
      this.success = null;
-
 
24435
    }
-
 
24436
 
-
 
24437
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
24438
    public boolean isSetSuccess() {
-
 
24439
      return this.success != null;
-
 
24440
    }
-
 
24441
 
-
 
24442
    public void setSuccessIsSet(boolean value) {
-
 
24443
      if (!value) {
-
 
24444
        this.success = null;
-
 
24445
      }
-
 
24446
    }
-
 
24447
 
-
 
24448
    public PurchaseServiceException getE() {
-
 
24449
      return this.e;
-
 
24450
    }
-
 
24451
 
-
 
24452
    public void setE(PurchaseServiceException e) {
-
 
24453
      this.e = e;
-
 
24454
    }
-
 
24455
 
-
 
24456
    public void unsetE() {
-
 
24457
      this.e = null;
-
 
24458
    }
-
 
24459
 
-
 
24460
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
24461
    public boolean isSetE() {
-
 
24462
      return this.e != null;
-
 
24463
    }
-
 
24464
 
-
 
24465
    public void setEIsSet(boolean value) {
-
 
24466
      if (!value) {
-
 
24467
        this.e = null;
-
 
24468
      }
-
 
24469
    }
-
 
24470
 
-
 
24471
    public void setFieldValue(_Fields field, Object value) {
-
 
24472
      switch (field) {
-
 
24473
      case SUCCESS:
-
 
24474
        if (value == null) {
-
 
24475
          unsetSuccess();
-
 
24476
        } else {
-
 
24477
          setSuccess((List<PurchaseReturnSettlement>)value);
-
 
24478
        }
-
 
24479
        break;
-
 
24480
 
-
 
24481
      case E:
-
 
24482
        if (value == null) {
-
 
24483
          unsetE();
-
 
24484
        } else {
-
 
24485
          setE((PurchaseServiceException)value);
-
 
24486
        }
-
 
24487
        break;
-
 
24488
 
-
 
24489
      }
-
 
24490
    }
-
 
24491
 
-
 
24492
    public Object getFieldValue(_Fields field) {
-
 
24493
      switch (field) {
-
 
24494
      case SUCCESS:
-
 
24495
        return getSuccess();
-
 
24496
 
-
 
24497
      case E:
-
 
24498
        return getE();
-
 
24499
 
-
 
24500
      }
-
 
24501
      throw new IllegalStateException();
-
 
24502
    }
-
 
24503
 
-
 
24504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24505
    public boolean isSet(_Fields field) {
-
 
24506
      if (field == null) {
-
 
24507
        throw new IllegalArgumentException();
-
 
24508
      }
-
 
24509
 
-
 
24510
      switch (field) {
-
 
24511
      case SUCCESS:
-
 
24512
        return isSetSuccess();
-
 
24513
      case E:
-
 
24514
        return isSetE();
-
 
24515
      }
-
 
24516
      throw new IllegalStateException();
-
 
24517
    }
-
 
24518
 
-
 
24519
    @Override
-
 
24520
    public boolean equals(Object that) {
-
 
24521
      if (that == null)
-
 
24522
        return false;
-
 
24523
      if (that instanceof getPrSettlementsForPurchaseReturn_result)
-
 
24524
        return this.equals((getPrSettlementsForPurchaseReturn_result)that);
-
 
24525
      return false;
-
 
24526
    }
-
 
24527
 
-
 
24528
    public boolean equals(getPrSettlementsForPurchaseReturn_result that) {
-
 
24529
      if (that == null)
-
 
24530
        return false;
-
 
24531
 
-
 
24532
      boolean this_present_success = true && this.isSetSuccess();
-
 
24533
      boolean that_present_success = true && that.isSetSuccess();
-
 
24534
      if (this_present_success || that_present_success) {
-
 
24535
        if (!(this_present_success && that_present_success))
-
 
24536
          return false;
-
 
24537
        if (!this.success.equals(that.success))
-
 
24538
          return false;
-
 
24539
      }
-
 
24540
 
-
 
24541
      boolean this_present_e = true && this.isSetE();
-
 
24542
      boolean that_present_e = true && that.isSetE();
-
 
24543
      if (this_present_e || that_present_e) {
-
 
24544
        if (!(this_present_e && that_present_e))
-
 
24545
          return false;
-
 
24546
        if (!this.e.equals(that.e))
-
 
24547
          return false;
-
 
24548
      }
-
 
24549
 
-
 
24550
      return true;
-
 
24551
    }
-
 
24552
 
-
 
24553
    @Override
-
 
24554
    public int hashCode() {
-
 
24555
      return 0;
-
 
24556
    }
-
 
24557
 
-
 
24558
    public int compareTo(getPrSettlementsForPurchaseReturn_result other) {
-
 
24559
      if (!getClass().equals(other.getClass())) {
-
 
24560
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24561
      }
-
 
24562
 
-
 
24563
      int lastComparison = 0;
-
 
24564
      getPrSettlementsForPurchaseReturn_result typedOther = (getPrSettlementsForPurchaseReturn_result)other;
-
 
24565
 
-
 
24566
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
24567
      if (lastComparison != 0) {
-
 
24568
        return lastComparison;
-
 
24569
      }
-
 
24570
      if (isSetSuccess()) {
-
 
24571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
24572
        if (lastComparison != 0) {
-
 
24573
          return lastComparison;
-
 
24574
        }
-
 
24575
      }
-
 
24576
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
24577
      if (lastComparison != 0) {
-
 
24578
        return lastComparison;
-
 
24579
      }
-
 
24580
      if (isSetE()) {
-
 
24581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
24582
        if (lastComparison != 0) {
-
 
24583
          return lastComparison;
-
 
24584
        }
-
 
24585
      }
-
 
24586
      return 0;
-
 
24587
    }
-
 
24588
 
-
 
24589
    public _Fields fieldForId(int fieldId) {
-
 
24590
      return _Fields.findByThriftId(fieldId);
-
 
24591
    }
-
 
24592
 
-
 
24593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24594
      org.apache.thrift.protocol.TField field;
-
 
24595
      iprot.readStructBegin();
-
 
24596
      while (true)
-
 
24597
      {
-
 
24598
        field = iprot.readFieldBegin();
-
 
24599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24600
          break;
-
 
24601
        }
-
 
24602
        switch (field.id) {
-
 
24603
          case 0: // SUCCESS
-
 
24604
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
24605
              {
-
 
24606
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
-
 
24607
                this.success = new ArrayList<PurchaseReturnSettlement>(_list40.size);
-
 
24608
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
-
 
24609
                {
-
 
24610
                  PurchaseReturnSettlement _elem42; // required
-
 
24611
                  _elem42 = new PurchaseReturnSettlement();
-
 
24612
                  _elem42.read(iprot);
-
 
24613
                  this.success.add(_elem42);
-
 
24614
                }
-
 
24615
                iprot.readListEnd();
-
 
24616
              }
-
 
24617
            } else { 
-
 
24618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24619
            }
-
 
24620
            break;
-
 
24621
          case 1: // E
-
 
24622
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
24623
              this.e = new PurchaseServiceException();
-
 
24624
              this.e.read(iprot);
-
 
24625
            } else { 
-
 
24626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24627
            }
-
 
24628
            break;
-
 
24629
          default:
-
 
24630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24631
        }
-
 
24632
        iprot.readFieldEnd();
-
 
24633
      }
-
 
24634
      iprot.readStructEnd();
-
 
24635
      validate();
-
 
24636
    }
-
 
24637
 
-
 
24638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24639
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24640
 
-
 
24641
      if (this.isSetSuccess()) {
-
 
24642
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
24643
        {
-
 
24644
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
24645
          for (PurchaseReturnSettlement _iter43 : this.success)
-
 
24646
          {
-
 
24647
            _iter43.write(oprot);
-
 
24648
          }
-
 
24649
          oprot.writeListEnd();
-
 
24650
        }
-
 
24651
        oprot.writeFieldEnd();
-
 
24652
      } else if (this.isSetE()) {
-
 
24653
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
24654
        this.e.write(oprot);
-
 
24655
        oprot.writeFieldEnd();
-
 
24656
      }
-
 
24657
      oprot.writeFieldStop();
-
 
24658
      oprot.writeStructEnd();
-
 
24659
    }
-
 
24660
 
-
 
24661
    @Override
-
 
24662
    public String toString() {
-
 
24663
      StringBuilder sb = new StringBuilder("getPrSettlementsForPurchaseReturn_result(");
-
 
24664
      boolean first = true;
-
 
24665
 
-
 
24666
      sb.append("success:");
-
 
24667
      if (this.success == null) {
-
 
24668
        sb.append("null");
-
 
24669
      } else {
-
 
24670
        sb.append(this.success);
-
 
24671
      }
-
 
24672
      first = false;
-
 
24673
      if (!first) sb.append(", ");
-
 
24674
      sb.append("e:");
-
 
24675
      if (this.e == null) {
-
 
24676
        sb.append("null");
-
 
24677
      } else {
-
 
24678
        sb.append(this.e);
-
 
24679
      }
-
 
24680
      first = false;
-
 
24681
      sb.append(")");
-
 
24682
      return sb.toString();
-
 
24683
    }
-
 
24684
 
-
 
24685
    public void validate() throws org.apache.thrift.TException {
-
 
24686
      // check for required fields
-
 
24687
    }
-
 
24688
 
-
 
24689
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
24690
      try {
-
 
24691
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
24692
      } catch (org.apache.thrift.TException te) {
-
 
24693
        throw new java.io.IOException(te);
-
 
24694
      }
-
 
24695
    }
-
 
24696
 
-
 
24697
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
24698
      try {
-
 
24699
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
24700
      } catch (org.apache.thrift.TException te) {
-
 
24701
        throw new java.io.IOException(te);
-
 
24702
      }
-
 
24703
    }
-
 
24704
 
-
 
24705
  }
-
 
24706
 
-
 
24707
  public static class updatePurchaseReturn_args implements org.apache.thrift.TBase<updatePurchaseReturn_args, updatePurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
24708
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePurchaseReturn_args");
-
 
24709
 
-
 
24710
    private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturn", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
24711
 
-
 
24712
    private PurchaseReturn purchaseReturn; // required
-
 
24713
 
-
 
24714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
24716
      PURCHASE_RETURN((short)1, "purchaseReturn");
-
 
24717
 
-
 
24718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24719
 
-
 
24720
      static {
-
 
24721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24722
          byName.put(field.getFieldName(), field);
-
 
24723
        }
-
 
24724
      }
-
 
24725
 
-
 
24726
      /**
-
 
24727
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24728
       */
-
 
24729
      public static _Fields findByThriftId(int fieldId) {
-
 
24730
        switch(fieldId) {
-
 
24731
          case 1: // PURCHASE_RETURN
-
 
24732
            return PURCHASE_RETURN;
-
 
24733
          default:
-
 
24734
            return null;
-
 
24735
        }
-
 
24736
      }
-
 
24737
 
-
 
24738
      /**
-
 
24739
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24740
       * if it is not found.
-
 
24741
       */
-
 
24742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24743
        _Fields fields = findByThriftId(fieldId);
-
 
24744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24745
        return fields;
-
 
24746
      }
-
 
24747
 
-
 
24748
      /**
-
 
24749
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24750
       */
-
 
24751
      public static _Fields findByName(String name) {
-
 
24752
        return byName.get(name);
-
 
24753
      }
-
 
24754
 
-
 
24755
      private final short _thriftId;
-
 
24756
      private final String _fieldName;
-
 
24757
 
-
 
24758
      _Fields(short thriftId, String fieldName) {
-
 
24759
        _thriftId = thriftId;
-
 
24760
        _fieldName = fieldName;
-
 
24761
      }
-
 
24762
 
-
 
24763
      public short getThriftFieldId() {
-
 
24764
        return _thriftId;
-
 
24765
      }
-
 
24766
 
-
 
24767
      public String getFieldName() {
-
 
24768
        return _fieldName;
-
 
24769
      }
-
 
24770
    }
-
 
24771
 
-
 
24772
    // isset id assignments
-
 
24773
 
-
 
24774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
24775
    static {
-
 
24776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
24777
      tmpMap.put(_Fields.PURCHASE_RETURN, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24778
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseReturn.class)));
-
 
24779
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
24780
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePurchaseReturn_args.class, metaDataMap);
-
 
24781
    }
-
 
24782
 
-
 
24783
    public updatePurchaseReturn_args() {
-
 
24784
    }
-
 
24785
 
-
 
24786
    public updatePurchaseReturn_args(
-
 
24787
      PurchaseReturn purchaseReturn)
-
 
24788
    {
-
 
24789
      this();
-
 
24790
      this.purchaseReturn = purchaseReturn;
-
 
24791
    }
-
 
24792
 
-
 
24793
    /**
-
 
24794
     * Performs a deep copy on <i>other</i>.
-
 
24795
     */
-
 
24796
    public updatePurchaseReturn_args(updatePurchaseReturn_args other) {
-
 
24797
      if (other.isSetPurchaseReturn()) {
-
 
24798
        this.purchaseReturn = new PurchaseReturn(other.purchaseReturn);
-
 
24799
      }
-
 
24800
    }
-
 
24801
 
-
 
24802
    public updatePurchaseReturn_args deepCopy() {
-
 
24803
      return new updatePurchaseReturn_args(this);
-
 
24804
    }
-
 
24805
 
-
 
24806
    @Override
-
 
24807
    public void clear() {
-
 
24808
      this.purchaseReturn = null;
-
 
24809
    }
-
 
24810
 
-
 
24811
    public PurchaseReturn getPurchaseReturn() {
-
 
24812
      return this.purchaseReturn;
-
 
24813
    }
-
 
24814
 
-
 
24815
    public void setPurchaseReturn(PurchaseReturn purchaseReturn) {
-
 
24816
      this.purchaseReturn = purchaseReturn;
-
 
24817
    }
-
 
24818
 
-
 
24819
    public void unsetPurchaseReturn() {
-
 
24820
      this.purchaseReturn = null;
-
 
24821
    }
-
 
24822
 
-
 
24823
    /** Returns true if field purchaseReturn is set (has been assigned a value) and false otherwise */
-
 
24824
    public boolean isSetPurchaseReturn() {
-
 
24825
      return this.purchaseReturn != null;
-
 
24826
    }
-
 
24827
 
-
 
24828
    public void setPurchaseReturnIsSet(boolean value) {
-
 
24829
      if (!value) {
-
 
24830
        this.purchaseReturn = null;
-
 
24831
      }
-
 
24832
    }
-
 
24833
 
-
 
24834
    public void setFieldValue(_Fields field, Object value) {
-
 
24835
      switch (field) {
-
 
24836
      case PURCHASE_RETURN:
-
 
24837
        if (value == null) {
-
 
24838
          unsetPurchaseReturn();
-
 
24839
        } else {
-
 
24840
          setPurchaseReturn((PurchaseReturn)value);
-
 
24841
        }
-
 
24842
        break;
-
 
24843
 
-
 
24844
      }
-
 
24845
    }
-
 
24846
 
-
 
24847
    public Object getFieldValue(_Fields field) {
-
 
24848
      switch (field) {
-
 
24849
      case PURCHASE_RETURN:
-
 
24850
        return getPurchaseReturn();
-
 
24851
 
-
 
24852
      }
-
 
24853
      throw new IllegalStateException();
-
 
24854
    }
-
 
24855
 
-
 
24856
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24857
    public boolean isSet(_Fields field) {
-
 
24858
      if (field == null) {
-
 
24859
        throw new IllegalArgumentException();
-
 
24860
      }
-
 
24861
 
-
 
24862
      switch (field) {
-
 
24863
      case PURCHASE_RETURN:
-
 
24864
        return isSetPurchaseReturn();
-
 
24865
      }
-
 
24866
      throw new IllegalStateException();
-
 
24867
    }
-
 
24868
 
-
 
24869
    @Override
-
 
24870
    public boolean equals(Object that) {
-
 
24871
      if (that == null)
-
 
24872
        return false;
-
 
24873
      if (that instanceof updatePurchaseReturn_args)
-
 
24874
        return this.equals((updatePurchaseReturn_args)that);
-
 
24875
      return false;
-
 
24876
    }
-
 
24877
 
-
 
24878
    public boolean equals(updatePurchaseReturn_args that) {
-
 
24879
      if (that == null)
-
 
24880
        return false;
-
 
24881
 
-
 
24882
      boolean this_present_purchaseReturn = true && this.isSetPurchaseReturn();
-
 
24883
      boolean that_present_purchaseReturn = true && that.isSetPurchaseReturn();
-
 
24884
      if (this_present_purchaseReturn || that_present_purchaseReturn) {
-
 
24885
        if (!(this_present_purchaseReturn && that_present_purchaseReturn))
-
 
24886
          return false;
-
 
24887
        if (!this.purchaseReturn.equals(that.purchaseReturn))
-
 
24888
          return false;
-
 
24889
      }
-
 
24890
 
-
 
24891
      return true;
-
 
24892
    }
-
 
24893
 
-
 
24894
    @Override
-
 
24895
    public int hashCode() {
-
 
24896
      return 0;
-
 
24897
    }
-
 
24898
 
-
 
24899
    public int compareTo(updatePurchaseReturn_args other) {
-
 
24900
      if (!getClass().equals(other.getClass())) {
-
 
24901
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24902
      }
-
 
24903
 
-
 
24904
      int lastComparison = 0;
-
 
24905
      updatePurchaseReturn_args typedOther = (updatePurchaseReturn_args)other;
-
 
24906
 
-
 
24907
      lastComparison = Boolean.valueOf(isSetPurchaseReturn()).compareTo(typedOther.isSetPurchaseReturn());
-
 
24908
      if (lastComparison != 0) {
-
 
24909
        return lastComparison;
-
 
24910
      }
-
 
24911
      if (isSetPurchaseReturn()) {
-
 
24912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturn, typedOther.purchaseReturn);
-
 
24913
        if (lastComparison != 0) {
-
 
24914
          return lastComparison;
-
 
24915
        }
-
 
24916
      }
-
 
24917
      return 0;
-
 
24918
    }
-
 
24919
 
-
 
24920
    public _Fields fieldForId(int fieldId) {
-
 
24921
      return _Fields.findByThriftId(fieldId);
-
 
24922
    }
-
 
24923
 
-
 
24924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24925
      org.apache.thrift.protocol.TField field;
-
 
24926
      iprot.readStructBegin();
-
 
24927
      while (true)
-
 
24928
      {
-
 
24929
        field = iprot.readFieldBegin();
-
 
24930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24931
          break;
-
 
24932
        }
-
 
24933
        switch (field.id) {
-
 
24934
          case 1: // PURCHASE_RETURN
-
 
24935
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
24936
              this.purchaseReturn = new PurchaseReturn();
-
 
24937
              this.purchaseReturn.read(iprot);
-
 
24938
            } else { 
-
 
24939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24940
            }
-
 
24941
            break;
-
 
24942
          default:
-
 
24943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24944
        }
-
 
24945
        iprot.readFieldEnd();
-
 
24946
      }
-
 
24947
      iprot.readStructEnd();
-
 
24948
      validate();
-
 
24949
    }
-
 
24950
 
-
 
24951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24952
      validate();
-
 
24953
 
-
 
24954
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24955
      if (this.purchaseReturn != null) {
-
 
24956
        oprot.writeFieldBegin(PURCHASE_RETURN_FIELD_DESC);
-
 
24957
        this.purchaseReturn.write(oprot);
-
 
24958
        oprot.writeFieldEnd();
-
 
24959
      }
-
 
24960
      oprot.writeFieldStop();
-
 
24961
      oprot.writeStructEnd();
-
 
24962
    }
-
 
24963
 
-
 
24964
    @Override
-
 
24965
    public String toString() {
-
 
24966
      StringBuilder sb = new StringBuilder("updatePurchaseReturn_args(");
-
 
24967
      boolean first = true;
-
 
24968
 
-
 
24969
      sb.append("purchaseReturn:");
-
 
24970
      if (this.purchaseReturn == null) {
-
 
24971
        sb.append("null");
-
 
24972
      } else {
-
 
24973
        sb.append(this.purchaseReturn);
-
 
24974
      }
-
 
24975
      first = false;
-
 
24976
      sb.append(")");
-
 
24977
      return sb.toString();
-
 
24978
    }
-
 
24979
 
-
 
24980
    public void validate() throws org.apache.thrift.TException {
-
 
24981
      // check for required fields
-
 
24982
    }
-
 
24983
 
-
 
24984
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
24985
      try {
-
 
24986
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
24987
      } catch (org.apache.thrift.TException te) {
-
 
24988
        throw new java.io.IOException(te);
-
 
24989
      }
-
 
24990
    }
-
 
24991
 
-
 
24992
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
24993
      try {
-
 
24994
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
24995
      } catch (org.apache.thrift.TException te) {
-
 
24996
        throw new java.io.IOException(te);
-
 
24997
      }
-
 
24998
    }
-
 
24999
 
-
 
25000
  }
-
 
25001
 
-
 
25002
  public static class updatePurchaseReturn_result implements org.apache.thrift.TBase<updatePurchaseReturn_result, updatePurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
25003
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePurchaseReturn_result");
-
 
25004
 
-
 
25005
    private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
25006
 
-
 
25007
    private PurchaseServiceException e; // required
-
 
25008
 
-
 
25009
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25010
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
25011
      E((short)1, "e");
-
 
25012
 
-
 
25013
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25014
 
-
 
25015
      static {
-
 
25016
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25017
          byName.put(field.getFieldName(), field);
-
 
25018
        }
-
 
25019
      }
-
 
25020
 
-
 
25021
      /**
-
 
25022
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25023
       */
-
 
25024
      public static _Fields findByThriftId(int fieldId) {
-
 
25025
        switch(fieldId) {
-
 
25026
          case 1: // E
-
 
25027
            return E;
-
 
25028
          default:
-
 
25029
            return null;
-
 
25030
        }
-
 
25031
      }
-
 
25032
 
-
 
25033
      /**
-
 
25034
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25035
       * if it is not found.
-
 
25036
       */
-
 
25037
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25038
        _Fields fields = findByThriftId(fieldId);
-
 
25039
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25040
        return fields;
-
 
25041
      }
-
 
25042
 
-
 
25043
      /**
-
 
25044
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25045
       */
-
 
25046
      public static _Fields findByName(String name) {
-
 
25047
        return byName.get(name);
-
 
25048
      }
-
 
25049
 
-
 
25050
      private final short _thriftId;
-
 
25051
      private final String _fieldName;
-
 
25052
 
-
 
25053
      _Fields(short thriftId, String fieldName) {
-
 
25054
        _thriftId = thriftId;
-
 
25055
        _fieldName = fieldName;
-
 
25056
      }
-
 
25057
 
-
 
25058
      public short getThriftFieldId() {
-
 
25059
        return _thriftId;
-
 
25060
      }
-
 
25061
 
-
 
25062
      public String getFieldName() {
-
 
25063
        return _fieldName;
-
 
25064
      }
-
 
25065
    }
-
 
25066
 
-
 
25067
    // isset id assignments
-
 
25068
 
-
 
25069
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
25070
    static {
-
 
25071
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
25072
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25073
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
25074
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
25075
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePurchaseReturn_result.class, metaDataMap);
-
 
25076
    }
-
 
25077
 
-
 
25078
    public updatePurchaseReturn_result() {
-
 
25079
    }
-
 
25080
 
-
 
25081
    public updatePurchaseReturn_result(
-
 
25082
      PurchaseServiceException e)
-
 
25083
    {
-
 
25084
      this();
-
 
25085
      this.e = e;
-
 
25086
    }
-
 
25087
 
-
 
25088
    /**
-
 
25089
     * Performs a deep copy on <i>other</i>.
-
 
25090
     */
-
 
25091
    public updatePurchaseReturn_result(updatePurchaseReturn_result other) {
-
 
25092
      if (other.isSetE()) {
-
 
25093
        this.e = new PurchaseServiceException(other.e);
-
 
25094
      }
-
 
25095
    }
-
 
25096
 
-
 
25097
    public updatePurchaseReturn_result deepCopy() {
-
 
25098
      return new updatePurchaseReturn_result(this);
-
 
25099
    }
-
 
25100
 
-
 
25101
    @Override
-
 
25102
    public void clear() {
-
 
25103
      this.e = null;
-
 
25104
    }
-
 
25105
 
-
 
25106
    public PurchaseServiceException getE() {
-
 
25107
      return this.e;
-
 
25108
    }
-
 
25109
 
-
 
25110
    public void setE(PurchaseServiceException e) {
-
 
25111
      this.e = e;
-
 
25112
    }
-
 
25113
 
-
 
25114
    public void unsetE() {
-
 
25115
      this.e = null;
-
 
25116
    }
-
 
25117
 
-
 
25118
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
25119
    public boolean isSetE() {
-
 
25120
      return this.e != null;
-
 
25121
    }
-
 
25122
 
-
 
25123
    public void setEIsSet(boolean value) {
-
 
25124
      if (!value) {
-
 
25125
        this.e = null;
-
 
25126
      }
-
 
25127
    }
-
 
25128
 
-
 
25129
    public void setFieldValue(_Fields field, Object value) {
-
 
25130
      switch (field) {
-
 
25131
      case E:
-
 
25132
        if (value == null) {
-
 
25133
          unsetE();
-
 
25134
        } else {
-
 
25135
          setE((PurchaseServiceException)value);
-
 
25136
        }
-
 
25137
        break;
-
 
25138
 
-
 
25139
      }
-
 
25140
    }
-
 
25141
 
-
 
25142
    public Object getFieldValue(_Fields field) {
-
 
25143
      switch (field) {
-
 
25144
      case E:
-
 
25145
        return getE();
-
 
25146
 
-
 
25147
      }
-
 
25148
      throw new IllegalStateException();
-
 
25149
    }
-
 
25150
 
-
 
25151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
25152
    public boolean isSet(_Fields field) {
-
 
25153
      if (field == null) {
-
 
25154
        throw new IllegalArgumentException();
-
 
25155
      }
-
 
25156
 
-
 
25157
      switch (field) {
-
 
25158
      case E:
-
 
25159
        return isSetE();
-
 
25160
      }
-
 
25161
      throw new IllegalStateException();
-
 
25162
    }
-
 
25163
 
-
 
25164
    @Override
-
 
25165
    public boolean equals(Object that) {
-
 
25166
      if (that == null)
-
 
25167
        return false;
-
 
25168
      if (that instanceof updatePurchaseReturn_result)
-
 
25169
        return this.equals((updatePurchaseReturn_result)that);
-
 
25170
      return false;
-
 
25171
    }
-
 
25172
 
-
 
25173
    public boolean equals(updatePurchaseReturn_result that) {
-
 
25174
      if (that == null)
-
 
25175
        return false;
-
 
25176
 
-
 
25177
      boolean this_present_e = true && this.isSetE();
-
 
25178
      boolean that_present_e = true && that.isSetE();
-
 
25179
      if (this_present_e || that_present_e) {
-
 
25180
        if (!(this_present_e && that_present_e))
-
 
25181
          return false;
-
 
25182
        if (!this.e.equals(that.e))
-
 
25183
          return false;
-
 
25184
      }
-
 
25185
 
-
 
25186
      return true;
-
 
25187
    }
-
 
25188
 
-
 
25189
    @Override
-
 
25190
    public int hashCode() {
-
 
25191
      return 0;
-
 
25192
    }
-
 
25193
 
-
 
25194
    public int compareTo(updatePurchaseReturn_result other) {
-
 
25195
      if (!getClass().equals(other.getClass())) {
-
 
25196
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25197
      }
-
 
25198
 
-
 
25199
      int lastComparison = 0;
-
 
25200
      updatePurchaseReturn_result typedOther = (updatePurchaseReturn_result)other;
-
 
25201
 
-
 
25202
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
25203
      if (lastComparison != 0) {
-
 
25204
        return lastComparison;
-
 
25205
      }
-
 
25206
      if (isSetE()) {
-
 
25207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
25208
        if (lastComparison != 0) {
-
 
25209
          return lastComparison;
-
 
25210
        }
-
 
25211
      }
-
 
25212
      return 0;
-
 
25213
    }
-
 
25214
 
-
 
25215
    public _Fields fieldForId(int fieldId) {
-
 
25216
      return _Fields.findByThriftId(fieldId);
-
 
25217
    }
-
 
25218
 
-
 
25219
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
25220
      org.apache.thrift.protocol.TField field;
-
 
25221
      iprot.readStructBegin();
-
 
25222
      while (true)
-
 
25223
      {
-
 
25224
        field = iprot.readFieldBegin();
-
 
25225
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
25226
          break;
-
 
25227
        }
-
 
25228
        switch (field.id) {
-
 
25229
          case 1: // E
-
 
25230
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
25231
              this.e = new PurchaseServiceException();
-
 
25232
              this.e.read(iprot);
-
 
25233
            } else { 
-
 
25234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25235
            }
-
 
25236
            break;
-
 
25237
          default:
-
 
25238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25239
        }
-
 
25240
        iprot.readFieldEnd();
-
 
25241
      }
-
 
25242
      iprot.readStructEnd();
-
 
25243
      validate();
-
 
25244
    }
-
 
25245
 
-
 
25246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
25247
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25248
 
-
 
25249
      if (this.isSetE()) {
-
 
25250
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
25251
        this.e.write(oprot);
-
 
25252
        oprot.writeFieldEnd();
-
 
25253
      }
-
 
25254
      oprot.writeFieldStop();
-
 
25255
      oprot.writeStructEnd();
-
 
25256
    }
-
 
25257
 
-
 
25258
    @Override
-
 
25259
    public String toString() {
-
 
25260
      StringBuilder sb = new StringBuilder("updatePurchaseReturn_result(");
-
 
25261
      boolean first = true;
-
 
25262
 
-
 
25263
      sb.append("e:");
-
 
25264
      if (this.e == null) {
-
 
25265
        sb.append("null");
-
 
25266
      } else {
-
 
25267
        sb.append(this.e);
22669
      }
25268
      }
22670
      first = false;
25269
      first = false;
22671
      sb.append(")");
25270
      sb.append(")");
22672
      return sb.toString();
25271
      return sb.toString();
22673
    }
25272
    }