Subversion Repositories SmartDukaan

Rev

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

Rev 10269 Rev 18577
Line 234... Line 234...
234
     */
234
     */
235
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
235
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
236
 
236
 
237
    public PaymentStatus getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
237
    public PaymentStatus getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
238
 
238
 
-
 
239
    public Creditor getCreditorInfo(long id, String name) throws org.apache.thrift.TException;
-
 
240
 
-
 
241
    public boolean updateCreditorInfo(Creditor creditor) throws org.apache.thrift.TException;
-
 
242
 
-
 
243
    public List<UserSanction> getUserSanctionDetails(long userId) throws org.apache.thrift.TException;
-
 
244
 
-
 
245
    public UserSanction getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException;
-
 
246
 
-
 
247
    public boolean updateUserSanction(UserSanction userSanaction) throws PaymentException, org.apache.thrift.TException;
-
 
248
 
-
 
249
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException;
-
 
250
 
-
 
251
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException;
-
 
252
 
-
 
253
    public boolean processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws PaymentException, org.apache.thrift.TException;
-
 
254
 
-
 
255
    public List<CreditHistory> getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException;
-
 
256
 
239
  }
257
  }
240
 
258
 
241
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
259
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
242
 
260
 
243
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
261
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
Line 282... Line 300...
282
 
300
 
283
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
301
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
284
 
302
 
285
    public void getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentStatusAtGateway_call> resultHandler) throws org.apache.thrift.TException;
303
    public void getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentStatusAtGateway_call> resultHandler) throws org.apache.thrift.TException;
286
 
304
 
-
 
305
    public void getCreditorInfo(long id, String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditorInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
306
 
-
 
307
    public void updateCreditorInfo(Creditor creditor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateCreditorInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
308
 
-
 
309
    public void getUserSanctionDetails(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSanctionDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
310
 
-
 
311
    public void getUserSanctionDetailsForCreditor(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSanctionDetailsForCreditor_call> resultHandler) throws org.apache.thrift.TException;
-
 
312
 
-
 
313
    public void updateUserSanction(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSanction_call> resultHandler) throws org.apache.thrift.TException;
-
 
314
 
-
 
315
    public void getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
316
 
-
 
317
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException;
-
 
318
 
-
 
319
    public void processCreditTransaction(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
320
 
-
 
321
    public void getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLoanPayableForUserToCreditor_call> resultHandler) throws org.apache.thrift.TException;
-
 
322
 
287
  }
323
  }
288
 
324
 
289
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
325
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
290
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
326
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
291
      public Factory() {}
327
      public Factory() {}
Line 903... Line 939...
903
        throw result.pe;
939
        throw result.pe;
904
      }
940
      }
905
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentStatusAtGateway failed: unknown result");
941
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentStatusAtGateway failed: unknown result");
906
    }
942
    }
907
 
943
 
-
 
944
    public Creditor getCreditorInfo(long id, String name) throws org.apache.thrift.TException
-
 
945
    {
-
 
946
      send_getCreditorInfo(id, name);
-
 
947
      return recv_getCreditorInfo();
-
 
948
    }
-
 
949
 
-
 
950
    public void send_getCreditorInfo(long id, String name) throws org.apache.thrift.TException
-
 
951
    {
-
 
952
      getCreditorInfo_args args = new getCreditorInfo_args();
-
 
953
      args.setId(id);
-
 
954
      args.setName(name);
-
 
955
      sendBase("getCreditorInfo", args);
-
 
956
    }
-
 
957
 
-
 
958
    public Creditor recv_getCreditorInfo() throws org.apache.thrift.TException
-
 
959
    {
-
 
960
      getCreditorInfo_result result = new getCreditorInfo_result();
-
 
961
      receiveBase(result, "getCreditorInfo");
-
 
962
      if (result.isSetSuccess()) {
-
 
963
        return result.success;
-
 
964
      }
-
 
965
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditorInfo failed: unknown result");
-
 
966
    }
-
 
967
 
-
 
968
    public boolean updateCreditorInfo(Creditor creditor) throws org.apache.thrift.TException
-
 
969
    {
-
 
970
      send_updateCreditorInfo(creditor);
-
 
971
      return recv_updateCreditorInfo();
-
 
972
    }
-
 
973
 
-
 
974
    public void send_updateCreditorInfo(Creditor creditor) throws org.apache.thrift.TException
-
 
975
    {
-
 
976
      updateCreditorInfo_args args = new updateCreditorInfo_args();
-
 
977
      args.setCreditor(creditor);
-
 
978
      sendBase("updateCreditorInfo", args);
-
 
979
    }
-
 
980
 
-
 
981
    public boolean recv_updateCreditorInfo() throws org.apache.thrift.TException
-
 
982
    {
-
 
983
      updateCreditorInfo_result result = new updateCreditorInfo_result();
-
 
984
      receiveBase(result, "updateCreditorInfo");
-
 
985
      if (result.isSetSuccess()) {
-
 
986
        return result.success;
-
 
987
      }
-
 
988
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateCreditorInfo failed: unknown result");
-
 
989
    }
-
 
990
 
-
 
991
    public List<UserSanction> getUserSanctionDetails(long userId) throws org.apache.thrift.TException
-
 
992
    {
-
 
993
      send_getUserSanctionDetails(userId);
-
 
994
      return recv_getUserSanctionDetails();
-
 
995
    }
-
 
996
 
-
 
997
    public void send_getUserSanctionDetails(long userId) throws org.apache.thrift.TException
-
 
998
    {
-
 
999
      getUserSanctionDetails_args args = new getUserSanctionDetails_args();
-
 
1000
      args.setUserId(userId);
-
 
1001
      sendBase("getUserSanctionDetails", args);
-
 
1002
    }
-
 
1003
 
-
 
1004
    public List<UserSanction> recv_getUserSanctionDetails() throws org.apache.thrift.TException
-
 
1005
    {
-
 
1006
      getUserSanctionDetails_result result = new getUserSanctionDetails_result();
-
 
1007
      receiveBase(result, "getUserSanctionDetails");
-
 
1008
      if (result.isSetSuccess()) {
-
 
1009
        return result.success;
-
 
1010
      }
-
 
1011
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSanctionDetails failed: unknown result");
-
 
1012
    }
-
 
1013
 
-
 
1014
    public UserSanction getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException
-
 
1015
    {
-
 
1016
      send_getUserSanctionDetailsForCreditor(userId, creditorId);
-
 
1017
      return recv_getUserSanctionDetailsForCreditor();
-
 
1018
    }
-
 
1019
 
-
 
1020
    public void send_getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException
-
 
1021
    {
-
 
1022
      getUserSanctionDetailsForCreditor_args args = new getUserSanctionDetailsForCreditor_args();
-
 
1023
      args.setUserId(userId);
-
 
1024
      args.setCreditorId(creditorId);
-
 
1025
      sendBase("getUserSanctionDetailsForCreditor", args);
-
 
1026
    }
-
 
1027
 
-
 
1028
    public UserSanction recv_getUserSanctionDetailsForCreditor() throws org.apache.thrift.TException
-
 
1029
    {
-
 
1030
      getUserSanctionDetailsForCreditor_result result = new getUserSanctionDetailsForCreditor_result();
-
 
1031
      receiveBase(result, "getUserSanctionDetailsForCreditor");
-
 
1032
      if (result.isSetSuccess()) {
-
 
1033
        return result.success;
-
 
1034
      }
-
 
1035
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSanctionDetailsForCreditor failed: unknown result");
-
 
1036
    }
-
 
1037
 
-
 
1038
    public boolean updateUserSanction(UserSanction userSanaction) throws PaymentException, org.apache.thrift.TException
-
 
1039
    {
-
 
1040
      send_updateUserSanction(userSanaction);
-
 
1041
      return recv_updateUserSanction();
-
 
1042
    }
-
 
1043
 
-
 
1044
    public void send_updateUserSanction(UserSanction userSanaction) throws org.apache.thrift.TException
-
 
1045
    {
-
 
1046
      updateUserSanction_args args = new updateUserSanction_args();
-
 
1047
      args.setUserSanaction(userSanaction);
-
 
1048
      sendBase("updateUserSanction", args);
-
 
1049
    }
-
 
1050
 
-
 
1051
    public boolean recv_updateUserSanction() throws PaymentException, org.apache.thrift.TException
-
 
1052
    {
-
 
1053
      updateUserSanction_result result = new updateUserSanction_result();
-
 
1054
      receiveBase(result, "updateUserSanction");
-
 
1055
      if (result.isSetSuccess()) {
-
 
1056
        return result.success;
-
 
1057
      }
-
 
1058
      if (result.pe != null) {
-
 
1059
        throw result.pe;
-
 
1060
      }
-
 
1061
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSanction failed: unknown result");
-
 
1062
    }
-
 
1063
 
-
 
1064
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException
-
 
1065
    {
-
 
1066
      send_getCreditHistoryRecordsForTransaction(paymentId, creditorId, creditTxnType);
-
 
1067
      return recv_getCreditHistoryRecordsForTransaction();
-
 
1068
    }
-
 
1069
 
-
 
1070
    public void send_getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException
-
 
1071
    {
-
 
1072
      getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
-
 
1073
      args.setPaymentId(paymentId);
-
 
1074
      args.setCreditorId(creditorId);
-
 
1075
      args.setCreditTxnType(creditTxnType);
-
 
1076
      sendBase("getCreditHistoryRecordsForTransaction", args);
-
 
1077
    }
-
 
1078
 
-
 
1079
    public List<CreditHistory> recv_getCreditHistoryRecordsForTransaction() throws org.apache.thrift.TException
-
 
1080
    {
-
 
1081
      getCreditHistoryRecordsForTransaction_result result = new getCreditHistoryRecordsForTransaction_result();
-
 
1082
      receiveBase(result, "getCreditHistoryRecordsForTransaction");
-
 
1083
      if (result.isSetSuccess()) {
-
 
1084
        return result.success;
-
 
1085
      }
-
 
1086
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForTransaction failed: unknown result");
-
 
1087
    }
-
 
1088
 
-
 
1089
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException
-
 
1090
    {
-
 
1091
      send_getCreditHistoryRecordsForUserAndCreditor(userId, creditTxnType);
-
 
1092
      return recv_getCreditHistoryRecordsForUserAndCreditor();
-
 
1093
    }
-
 
1094
 
-
 
1095
    public void send_getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException
-
 
1096
    {
-
 
1097
      getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
-
 
1098
      args.setUserId(userId);
-
 
1099
      args.setCreditTxnType(creditTxnType);
-
 
1100
      sendBase("getCreditHistoryRecordsForUserAndCreditor", args);
-
 
1101
    }
-
 
1102
 
-
 
1103
    public List<CreditHistory> recv_getCreditHistoryRecordsForUserAndCreditor() throws org.apache.thrift.TException
-
 
1104
    {
-
 
1105
      getCreditHistoryRecordsForUserAndCreditor_result result = new getCreditHistoryRecordsForUserAndCreditor_result();
-
 
1106
      receiveBase(result, "getCreditHistoryRecordsForUserAndCreditor");
-
 
1107
      if (result.isSetSuccess()) {
-
 
1108
        return result.success;
-
 
1109
      }
-
 
1110
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForUserAndCreditor failed: unknown result");
-
 
1111
    }
-
 
1112
 
-
 
1113
    public boolean processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws PaymentException, org.apache.thrift.TException
-
 
1114
    {
-
 
1115
      send_processCreditTransaction(paymentId, creditTxns);
-
 
1116
      return recv_processCreditTransaction();
-
 
1117
    }
-
 
1118
 
-
 
1119
    public void send_processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws org.apache.thrift.TException
-
 
1120
    {
-
 
1121
      processCreditTransaction_args args = new processCreditTransaction_args();
-
 
1122
      args.setPaymentId(paymentId);
-
 
1123
      args.setCreditTxns(creditTxns);
-
 
1124
      sendBase("processCreditTransaction", args);
-
 
1125
    }
-
 
1126
 
-
 
1127
    public boolean recv_processCreditTransaction() throws PaymentException, org.apache.thrift.TException
-
 
1128
    {
-
 
1129
      processCreditTransaction_result result = new processCreditTransaction_result();
-
 
1130
      receiveBase(result, "processCreditTransaction");
-
 
1131
      if (result.isSetSuccess()) {
-
 
1132
        return result.success;
-
 
1133
      }
-
 
1134
      if (result.pe != null) {
-
 
1135
        throw result.pe;
-
 
1136
      }
-
 
1137
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "processCreditTransaction failed: unknown result");
-
 
1138
    }
-
 
1139
 
-
 
1140
    public List<CreditHistory> getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException
-
 
1141
    {
-
 
1142
      send_getLoanPayableForUserToCreditor(userId, creditorId, dueDate);
-
 
1143
      return recv_getLoanPayableForUserToCreditor();
-
 
1144
    }
-
 
1145
 
-
 
1146
    public void send_getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException
-
 
1147
    {
-
 
1148
      getLoanPayableForUserToCreditor_args args = new getLoanPayableForUserToCreditor_args();
-
 
1149
      args.setUserId(userId);
-
 
1150
      args.setCreditorId(creditorId);
-
 
1151
      args.setDueDate(dueDate);
-
 
1152
      sendBase("getLoanPayableForUserToCreditor", args);
-
 
1153
    }
-
 
1154
 
-
 
1155
    public List<CreditHistory> recv_getLoanPayableForUserToCreditor() throws org.apache.thrift.TException
-
 
1156
    {
-
 
1157
      getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
-
 
1158
      receiveBase(result, "getLoanPayableForUserToCreditor");
-
 
1159
      if (result.isSetSuccess()) {
-
 
1160
        return result.success;
-
 
1161
      }
-
 
1162
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLoanPayableForUserToCreditor failed: unknown result");
-
 
1163
    }
-
 
1164
 
908
  }
1165
  }
909
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1166
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
910
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1167
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
911
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1168
      private org.apache.thrift.async.TAsyncClientManager clientManager;
912
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1169
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1742... Line 1999...
1742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1999
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1743
        return (new Client(prot)).recv_getPaymentStatusAtGateway();
2000
        return (new Client(prot)).recv_getPaymentStatusAtGateway();
1744
      }
2001
      }
1745
    }
2002
    }
1746
 
2003
 
-
 
2004
    public void getCreditorInfo(long id, String name, org.apache.thrift.async.AsyncMethodCallback<getCreditorInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
2005
      checkReady();
-
 
2006
      getCreditorInfo_call method_call = new getCreditorInfo_call(id, name, resultHandler, this, ___protocolFactory, ___transport);
-
 
2007
      this.___currentMethod = method_call;
-
 
2008
      ___manager.call(method_call);
-
 
2009
    }
-
 
2010
 
-
 
2011
    public static class getCreditorInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2012
      private long id;
-
 
2013
      private String name;
-
 
2014
      public getCreditorInfo_call(long id, String name, org.apache.thrift.async.AsyncMethodCallback<getCreditorInfo_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 {
-
 
2015
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2016
        this.id = id;
-
 
2017
        this.name = name;
-
 
2018
      }
-
 
2019
 
-
 
2020
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2021
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditorInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2022
        getCreditorInfo_args args = new getCreditorInfo_args();
-
 
2023
        args.setId(id);
-
 
2024
        args.setName(name);
-
 
2025
        args.write(prot);
-
 
2026
        prot.writeMessageEnd();
-
 
2027
      }
-
 
2028
 
-
 
2029
      public Creditor getResult() throws org.apache.thrift.TException {
-
 
2030
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2031
          throw new IllegalStateException("Method call not finished!");
-
 
2032
        }
-
 
2033
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2034
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2035
        return (new Client(prot)).recv_getCreditorInfo();
-
 
2036
      }
-
 
2037
    }
-
 
2038
 
-
 
2039
    public void updateCreditorInfo(Creditor creditor, org.apache.thrift.async.AsyncMethodCallback<updateCreditorInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
2040
      checkReady();
-
 
2041
      updateCreditorInfo_call method_call = new updateCreditorInfo_call(creditor, resultHandler, this, ___protocolFactory, ___transport);
-
 
2042
      this.___currentMethod = method_call;
-
 
2043
      ___manager.call(method_call);
-
 
2044
    }
-
 
2045
 
-
 
2046
    public static class updateCreditorInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2047
      private Creditor creditor;
-
 
2048
      public updateCreditorInfo_call(Creditor creditor, org.apache.thrift.async.AsyncMethodCallback<updateCreditorInfo_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 {
-
 
2049
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2050
        this.creditor = creditor;
-
 
2051
      }
-
 
2052
 
-
 
2053
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2054
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateCreditorInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2055
        updateCreditorInfo_args args = new updateCreditorInfo_args();
-
 
2056
        args.setCreditor(creditor);
-
 
2057
        args.write(prot);
-
 
2058
        prot.writeMessageEnd();
-
 
2059
      }
-
 
2060
 
-
 
2061
      public boolean getResult() throws org.apache.thrift.TException {
-
 
2062
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2063
          throw new IllegalStateException("Method call not finished!");
-
 
2064
        }
-
 
2065
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2066
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2067
        return (new Client(prot)).recv_updateCreditorInfo();
-
 
2068
      }
-
 
2069
    }
-
 
2070
 
-
 
2071
    public void getUserSanctionDetails(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
2072
      checkReady();
-
 
2073
      getUserSanctionDetails_call method_call = new getUserSanctionDetails_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2074
      this.___currentMethod = method_call;
-
 
2075
      ___manager.call(method_call);
-
 
2076
    }
-
 
2077
 
-
 
2078
    public static class getUserSanctionDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2079
      private long userId;
-
 
2080
      public getUserSanctionDetails_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetails_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 {
-
 
2081
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2082
        this.userId = userId;
-
 
2083
      }
-
 
2084
 
-
 
2085
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2086
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSanctionDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2087
        getUserSanctionDetails_args args = new getUserSanctionDetails_args();
-
 
2088
        args.setUserId(userId);
-
 
2089
        args.write(prot);
-
 
2090
        prot.writeMessageEnd();
-
 
2091
      }
-
 
2092
 
-
 
2093
      public List<UserSanction> getResult() throws org.apache.thrift.TException {
-
 
2094
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2095
          throw new IllegalStateException("Method call not finished!");
-
 
2096
        }
-
 
2097
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2098
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2099
        return (new Client(prot)).recv_getUserSanctionDetails();
-
 
2100
      }
-
 
2101
    }
-
 
2102
 
-
 
2103
    public void getUserSanctionDetailsForCreditor(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetailsForCreditor_call> resultHandler) throws org.apache.thrift.TException {
-
 
2104
      checkReady();
-
 
2105
      getUserSanctionDetailsForCreditor_call method_call = new getUserSanctionDetailsForCreditor_call(userId, creditorId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2106
      this.___currentMethod = method_call;
-
 
2107
      ___manager.call(method_call);
-
 
2108
    }
-
 
2109
 
-
 
2110
    public static class getUserSanctionDetailsForCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2111
      private long userId;
-
 
2112
      private long creditorId;
-
 
2113
      public getUserSanctionDetailsForCreditor_call(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetailsForCreditor_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 {
-
 
2114
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2115
        this.userId = userId;
-
 
2116
        this.creditorId = creditorId;
-
 
2117
      }
-
 
2118
 
-
 
2119
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2120
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSanctionDetailsForCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2121
        getUserSanctionDetailsForCreditor_args args = new getUserSanctionDetailsForCreditor_args();
-
 
2122
        args.setUserId(userId);
-
 
2123
        args.setCreditorId(creditorId);
-
 
2124
        args.write(prot);
-
 
2125
        prot.writeMessageEnd();
-
 
2126
      }
-
 
2127
 
-
 
2128
      public UserSanction getResult() throws org.apache.thrift.TException {
-
 
2129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2130
          throw new IllegalStateException("Method call not finished!");
-
 
2131
        }
-
 
2132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2134
        return (new Client(prot)).recv_getUserSanctionDetailsForCreditor();
-
 
2135
      }
-
 
2136
    }
-
 
2137
 
-
 
2138
    public void updateUserSanction(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<updateUserSanction_call> resultHandler) throws org.apache.thrift.TException {
-
 
2139
      checkReady();
-
 
2140
      updateUserSanction_call method_call = new updateUserSanction_call(userSanaction, resultHandler, this, ___protocolFactory, ___transport);
-
 
2141
      this.___currentMethod = method_call;
-
 
2142
      ___manager.call(method_call);
-
 
2143
    }
-
 
2144
 
-
 
2145
    public static class updateUserSanction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2146
      private UserSanction userSanaction;
-
 
2147
      public updateUserSanction_call(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<updateUserSanction_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 {
-
 
2148
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2149
        this.userSanaction = userSanaction;
-
 
2150
      }
-
 
2151
 
-
 
2152
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2153
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserSanction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2154
        updateUserSanction_args args = new updateUserSanction_args();
-
 
2155
        args.setUserSanaction(userSanaction);
-
 
2156
        args.write(prot);
-
 
2157
        prot.writeMessageEnd();
-
 
2158
      }
-
 
2159
 
-
 
2160
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
-
 
2161
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2162
          throw new IllegalStateException("Method call not finished!");
-
 
2163
        }
-
 
2164
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2166
        return (new Client(prot)).recv_updateUserSanction();
-
 
2167
      }
-
 
2168
    }
-
 
2169
 
-
 
2170
    public void getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
2171
      checkReady();
-
 
2172
      getCreditHistoryRecordsForTransaction_call method_call = new getCreditHistoryRecordsForTransaction_call(paymentId, creditorId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
-
 
2173
      this.___currentMethod = method_call;
-
 
2174
      ___manager.call(method_call);
-
 
2175
    }
-
 
2176
 
-
 
2177
    public static class getCreditHistoryRecordsForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2178
      private long paymentId;
-
 
2179
      private long creditorId;
-
 
2180
      private String creditTxnType;
-
 
2181
      public getCreditHistoryRecordsForTransaction_call(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForTransaction_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 {
-
 
2182
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2183
        this.paymentId = paymentId;
-
 
2184
        this.creditorId = creditorId;
-
 
2185
        this.creditTxnType = creditTxnType;
-
 
2186
      }
-
 
2187
 
-
 
2188
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2189
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2190
        getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
-
 
2191
        args.setPaymentId(paymentId);
-
 
2192
        args.setCreditorId(creditorId);
-
 
2193
        args.setCreditTxnType(creditTxnType);
-
 
2194
        args.write(prot);
-
 
2195
        prot.writeMessageEnd();
-
 
2196
      }
-
 
2197
 
-
 
2198
      public List<CreditHistory> getResult() throws org.apache.thrift.TException {
-
 
2199
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2200
          throw new IllegalStateException("Method call not finished!");
-
 
2201
        }
-
 
2202
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2203
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2204
        return (new Client(prot)).recv_getCreditHistoryRecordsForTransaction();
-
 
2205
      }
-
 
2206
    }
-
 
2207
 
-
 
2208
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException {
-
 
2209
      checkReady();
-
 
2210
      getCreditHistoryRecordsForUserAndCreditor_call method_call = new getCreditHistoryRecordsForUserAndCreditor_call(userId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
-
 
2211
      this.___currentMethod = method_call;
-
 
2212
      ___manager.call(method_call);
-
 
2213
    }
-
 
2214
 
-
 
2215
    public static class getCreditHistoryRecordsForUserAndCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2216
      private long userId;
-
 
2217
      private String creditTxnType;
-
 
2218
      public getCreditHistoryRecordsForUserAndCreditor_call(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForUserAndCreditor_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 {
-
 
2219
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2220
        this.userId = userId;
-
 
2221
        this.creditTxnType = creditTxnType;
-
 
2222
      }
-
 
2223
 
-
 
2224
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2225
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForUserAndCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2226
        getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
-
 
2227
        args.setUserId(userId);
-
 
2228
        args.setCreditTxnType(creditTxnType);
-
 
2229
        args.write(prot);
-
 
2230
        prot.writeMessageEnd();
-
 
2231
      }
-
 
2232
 
-
 
2233
      public List<CreditHistory> getResult() throws org.apache.thrift.TException {
-
 
2234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2235
          throw new IllegalStateException("Method call not finished!");
-
 
2236
        }
-
 
2237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2239
        return (new Client(prot)).recv_getCreditHistoryRecordsForUserAndCreditor();
-
 
2240
      }
-
 
2241
    }
-
 
2242
 
-
 
2243
    public void processCreditTransaction(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
2244
      checkReady();
-
 
2245
      processCreditTransaction_call method_call = new processCreditTransaction_call(paymentId, creditTxns, resultHandler, this, ___protocolFactory, ___transport);
-
 
2246
      this.___currentMethod = method_call;
-
 
2247
      ___manager.call(method_call);
-
 
2248
    }
-
 
2249
 
-
 
2250
    public static class processCreditTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2251
      private long paymentId;
-
 
2252
      private List<CreditHistory> creditTxns;
-
 
2253
      public processCreditTransaction_call(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processCreditTransaction_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 {
-
 
2254
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2255
        this.paymentId = paymentId;
-
 
2256
        this.creditTxns = creditTxns;
-
 
2257
      }
-
 
2258
 
-
 
2259
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2260
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processCreditTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2261
        processCreditTransaction_args args = new processCreditTransaction_args();
-
 
2262
        args.setPaymentId(paymentId);
-
 
2263
        args.setCreditTxns(creditTxns);
-
 
2264
        args.write(prot);
-
 
2265
        prot.writeMessageEnd();
-
 
2266
      }
-
 
2267
 
-
 
2268
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
-
 
2269
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2270
          throw new IllegalStateException("Method call not finished!");
-
 
2271
        }
-
 
2272
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2273
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2274
        return (new Client(prot)).recv_processCreditTransaction();
-
 
2275
      }
-
 
2276
    }
-
 
2277
 
-
 
2278
    public void getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<getLoanPayableForUserToCreditor_call> resultHandler) throws org.apache.thrift.TException {
-
 
2279
      checkReady();
-
 
2280
      getLoanPayableForUserToCreditor_call method_call = new getLoanPayableForUserToCreditor_call(userId, creditorId, dueDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
2281
      this.___currentMethod = method_call;
-
 
2282
      ___manager.call(method_call);
-
 
2283
    }
-
 
2284
 
-
 
2285
    public static class getLoanPayableForUserToCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2286
      private long userId;
-
 
2287
      private long creditorId;
-
 
2288
      private long dueDate;
-
 
2289
      public getLoanPayableForUserToCreditor_call(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<getLoanPayableForUserToCreditor_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 {
-
 
2290
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2291
        this.userId = userId;
-
 
2292
        this.creditorId = creditorId;
-
 
2293
        this.dueDate = dueDate;
-
 
2294
      }
-
 
2295
 
-
 
2296
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2297
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLoanPayableForUserToCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2298
        getLoanPayableForUserToCreditor_args args = new getLoanPayableForUserToCreditor_args();
-
 
2299
        args.setUserId(userId);
-
 
2300
        args.setCreditorId(creditorId);
-
 
2301
        args.setDueDate(dueDate);
-
 
2302
        args.write(prot);
-
 
2303
        prot.writeMessageEnd();
-
 
2304
      }
-
 
2305
 
-
 
2306
      public List<CreditHistory> getResult() throws org.apache.thrift.TException {
-
 
2307
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2308
          throw new IllegalStateException("Method call not finished!");
-
 
2309
        }
-
 
2310
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2311
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2312
        return (new Client(prot)).recv_getLoanPayableForUserToCreditor();
-
 
2313
      }
-
 
2314
    }
-
 
2315
 
1747
  }
2316
  }
1748
 
2317
 
1749
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2318
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1750
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2319
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1751
    public Processor(I iface) {
2320
    public Processor(I iface) {
Line 1777... Line 2346...
1777
      processMap.put("refundPayment", new refundPayment());
2346
      processMap.put("refundPayment", new refundPayment());
1778
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
2347
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
1779
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
2348
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
1780
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
2349
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
1781
      processMap.put("getPaymentStatusAtGateway", new getPaymentStatusAtGateway());
2350
      processMap.put("getPaymentStatusAtGateway", new getPaymentStatusAtGateway());
-
 
2351
      processMap.put("getCreditorInfo", new getCreditorInfo());
-
 
2352
      processMap.put("updateCreditorInfo", new updateCreditorInfo());
-
 
2353
      processMap.put("getUserSanctionDetails", new getUserSanctionDetails());
-
 
2354
      processMap.put("getUserSanctionDetailsForCreditor", new getUserSanctionDetailsForCreditor());
-
 
2355
      processMap.put("updateUserSanction", new updateUserSanction());
-
 
2356
      processMap.put("getCreditHistoryRecordsForTransaction", new getCreditHistoryRecordsForTransaction());
-
 
2357
      processMap.put("getCreditHistoryRecordsForUserAndCreditor", new getCreditHistoryRecordsForUserAndCreditor());
-
 
2358
      processMap.put("processCreditTransaction", new processCreditTransaction());
-
 
2359
      processMap.put("getLoanPayableForUserToCreditor", new getLoanPayableForUserToCreditor());
1782
      return processMap;
2360
      return processMap;
1783
    }
2361
    }
1784
 
2362
 
1785
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
2363
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
1786
      public createPayment() {
2364
      public createPayment() {
Line 2214... Line 2792...
2214
        }
2792
        }
2215
        return result;
2793
        return result;
2216
      }
2794
      }
2217
    }
2795
    }
2218
 
2796
 
-
 
2797
    private static class getCreditorInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditorInfo_args> {
-
 
2798
      public getCreditorInfo() {
-
 
2799
        super("getCreditorInfo");
-
 
2800
      }
-
 
2801
 
-
 
2802
      protected getCreditorInfo_args getEmptyArgsInstance() {
-
 
2803
        return new getCreditorInfo_args();
-
 
2804
      }
-
 
2805
 
-
 
2806
      protected getCreditorInfo_result getResult(I iface, getCreditorInfo_args args) throws org.apache.thrift.TException {
-
 
2807
        getCreditorInfo_result result = new getCreditorInfo_result();
-
 
2808
        result.success = iface.getCreditorInfo(args.id, args.name);
-
 
2809
        return result;
-
 
2810
      }
-
 
2811
    }
-
 
2812
 
-
 
2813
    private static class updateCreditorInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateCreditorInfo_args> {
-
 
2814
      public updateCreditorInfo() {
-
 
2815
        super("updateCreditorInfo");
-
 
2816
      }
-
 
2817
 
-
 
2818
      protected updateCreditorInfo_args getEmptyArgsInstance() {
-
 
2819
        return new updateCreditorInfo_args();
-
 
2820
      }
-
 
2821
 
-
 
2822
      protected updateCreditorInfo_result getResult(I iface, updateCreditorInfo_args args) throws org.apache.thrift.TException {
-
 
2823
        updateCreditorInfo_result result = new updateCreditorInfo_result();
-
 
2824
        result.success = iface.updateCreditorInfo(args.creditor);
-
 
2825
        result.setSuccessIsSet(true);
-
 
2826
        return result;
-
 
2827
      }
-
 
2828
    }
-
 
2829
 
-
 
2830
    private static class getUserSanctionDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSanctionDetails_args> {
-
 
2831
      public getUserSanctionDetails() {
-
 
2832
        super("getUserSanctionDetails");
-
 
2833
      }
-
 
2834
 
-
 
2835
      protected getUserSanctionDetails_args getEmptyArgsInstance() {
-
 
2836
        return new getUserSanctionDetails_args();
-
 
2837
      }
-
 
2838
 
-
 
2839
      protected getUserSanctionDetails_result getResult(I iface, getUserSanctionDetails_args args) throws org.apache.thrift.TException {
-
 
2840
        getUserSanctionDetails_result result = new getUserSanctionDetails_result();
-
 
2841
        result.success = iface.getUserSanctionDetails(args.userId);
-
 
2842
        return result;
-
 
2843
      }
-
 
2844
    }
-
 
2845
 
-
 
2846
    private static class getUserSanctionDetailsForCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSanctionDetailsForCreditor_args> {
-
 
2847
      public getUserSanctionDetailsForCreditor() {
-
 
2848
        super("getUserSanctionDetailsForCreditor");
-
 
2849
      }
-
 
2850
 
-
 
2851
      protected getUserSanctionDetailsForCreditor_args getEmptyArgsInstance() {
-
 
2852
        return new getUserSanctionDetailsForCreditor_args();
-
 
2853
      }
-
 
2854
 
-
 
2855
      protected getUserSanctionDetailsForCreditor_result getResult(I iface, getUserSanctionDetailsForCreditor_args args) throws org.apache.thrift.TException {
-
 
2856
        getUserSanctionDetailsForCreditor_result result = new getUserSanctionDetailsForCreditor_result();
-
 
2857
        result.success = iface.getUserSanctionDetailsForCreditor(args.userId, args.creditorId);
-
 
2858
        return result;
-
 
2859
      }
-
 
2860
    }
-
 
2861
 
-
 
2862
    private static class updateUserSanction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserSanction_args> {
-
 
2863
      public updateUserSanction() {
-
 
2864
        super("updateUserSanction");
-
 
2865
      }
-
 
2866
 
-
 
2867
      protected updateUserSanction_args getEmptyArgsInstance() {
-
 
2868
        return new updateUserSanction_args();
-
 
2869
      }
-
 
2870
 
-
 
2871
      protected updateUserSanction_result getResult(I iface, updateUserSanction_args args) throws org.apache.thrift.TException {
-
 
2872
        updateUserSanction_result result = new updateUserSanction_result();
-
 
2873
        try {
-
 
2874
          result.success = iface.updateUserSanction(args.userSanaction);
-
 
2875
          result.setSuccessIsSet(true);
-
 
2876
        } catch (PaymentException pe) {
-
 
2877
          result.pe = pe;
-
 
2878
        }
-
 
2879
        return result;
-
 
2880
      }
-
 
2881
    }
-
 
2882
 
-
 
2883
    private static class getCreditHistoryRecordsForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditHistoryRecordsForTransaction_args> {
-
 
2884
      public getCreditHistoryRecordsForTransaction() {
-
 
2885
        super("getCreditHistoryRecordsForTransaction");
-
 
2886
      }
-
 
2887
 
-
 
2888
      protected getCreditHistoryRecordsForTransaction_args getEmptyArgsInstance() {
-
 
2889
        return new getCreditHistoryRecordsForTransaction_args();
-
 
2890
      }
-
 
2891
 
-
 
2892
      protected getCreditHistoryRecordsForTransaction_result getResult(I iface, getCreditHistoryRecordsForTransaction_args args) throws org.apache.thrift.TException {
-
 
2893
        getCreditHistoryRecordsForTransaction_result result = new getCreditHistoryRecordsForTransaction_result();
-
 
2894
        result.success = iface.getCreditHistoryRecordsForTransaction(args.paymentId, args.creditorId, args.creditTxnType);
-
 
2895
        return result;
-
 
2896
      }
-
 
2897
    }
-
 
2898
 
-
 
2899
    private static class getCreditHistoryRecordsForUserAndCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditHistoryRecordsForUserAndCreditor_args> {
-
 
2900
      public getCreditHistoryRecordsForUserAndCreditor() {
-
 
2901
        super("getCreditHistoryRecordsForUserAndCreditor");
-
 
2902
      }
-
 
2903
 
-
 
2904
      protected getCreditHistoryRecordsForUserAndCreditor_args getEmptyArgsInstance() {
-
 
2905
        return new getCreditHistoryRecordsForUserAndCreditor_args();
-
 
2906
      }
-
 
2907
 
-
 
2908
      protected getCreditHistoryRecordsForUserAndCreditor_result getResult(I iface, getCreditHistoryRecordsForUserAndCreditor_args args) throws org.apache.thrift.TException {
-
 
2909
        getCreditHistoryRecordsForUserAndCreditor_result result = new getCreditHistoryRecordsForUserAndCreditor_result();
-
 
2910
        result.success = iface.getCreditHistoryRecordsForUserAndCreditor(args.userId, args.creditTxnType);
-
 
2911
        return result;
-
 
2912
      }
-
 
2913
    }
-
 
2914
 
-
 
2915
    private static class processCreditTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processCreditTransaction_args> {
-
 
2916
      public processCreditTransaction() {
-
 
2917
        super("processCreditTransaction");
-
 
2918
      }
-
 
2919
 
-
 
2920
      protected processCreditTransaction_args getEmptyArgsInstance() {
-
 
2921
        return new processCreditTransaction_args();
-
 
2922
      }
-
 
2923
 
-
 
2924
      protected processCreditTransaction_result getResult(I iface, processCreditTransaction_args args) throws org.apache.thrift.TException {
-
 
2925
        processCreditTransaction_result result = new processCreditTransaction_result();
-
 
2926
        try {
-
 
2927
          result.success = iface.processCreditTransaction(args.paymentId, args.creditTxns);
-
 
2928
          result.setSuccessIsSet(true);
-
 
2929
        } catch (PaymentException pe) {
-
 
2930
          result.pe = pe;
-
 
2931
        }
-
 
2932
        return result;
-
 
2933
      }
-
 
2934
    }
-
 
2935
 
-
 
2936
    private static class getLoanPayableForUserToCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLoanPayableForUserToCreditor_args> {
-
 
2937
      public getLoanPayableForUserToCreditor() {
-
 
2938
        super("getLoanPayableForUserToCreditor");
-
 
2939
      }
-
 
2940
 
-
 
2941
      protected getLoanPayableForUserToCreditor_args getEmptyArgsInstance() {
-
 
2942
        return new getLoanPayableForUserToCreditor_args();
-
 
2943
      }
-
 
2944
 
-
 
2945
      protected getLoanPayableForUserToCreditor_result getResult(I iface, getLoanPayableForUserToCreditor_args args) throws org.apache.thrift.TException {
-
 
2946
        getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
-
 
2947
        result.success = iface.getLoanPayableForUserToCreditor(args.userId, args.creditorId, args.dueDate);
-
 
2948
        return result;
-
 
2949
      }
-
 
2950
    }
-
 
2951
 
2219
  }
2952
  }
2220
 
2953
 
2221
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
2954
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
2222
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
2955
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
2223
 
2956
 
Line 20378... Line 21111...
20378
      }
21111
      }
20379
      first = false;
21112
      first = false;
20380
      sb.append(")");
21113
      sb.append(")");
20381
      return sb.toString();
21114
      return sb.toString();
20382
    }
21115
    }
-
 
21116
 
-
 
21117
    public void validate() throws org.apache.thrift.TException {
-
 
21118
      // check for required fields
-
 
21119
    }
-
 
21120
 
-
 
21121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
21122
      try {
-
 
21123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
21124
      } catch (org.apache.thrift.TException te) {
-
 
21125
        throw new java.io.IOException(te);
-
 
21126
      }
-
 
21127
    }
-
 
21128
 
-
 
21129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
21130
      try {
-
 
21131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
21132
      } catch (org.apache.thrift.TException te) {
-
 
21133
        throw new java.io.IOException(te);
-
 
21134
      }
-
 
21135
    }
-
 
21136
 
-
 
21137
  }
-
 
21138
 
-
 
21139
  public static class getCreditorInfo_args implements org.apache.thrift.TBase<getCreditorInfo_args, getCreditorInfo_args._Fields>, java.io.Serializable, Cloneable   {
-
 
21140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditorInfo_args");
-
 
21141
 
-
 
21142
    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);
-
 
21143
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
21144
 
-
 
21145
    private long id; // required
-
 
21146
    private String name; // required
-
 
21147
 
-
 
21148
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
21149
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21150
      ID((short)1, "id"),
-
 
21151
      NAME((short)2, "name");
-
 
21152
 
-
 
21153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21154
 
-
 
21155
      static {
-
 
21156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21157
          byName.put(field.getFieldName(), field);
-
 
21158
        }
-
 
21159
      }
-
 
21160
 
-
 
21161
      /**
-
 
21162
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21163
       */
-
 
21164
      public static _Fields findByThriftId(int fieldId) {
-
 
21165
        switch(fieldId) {
-
 
21166
          case 1: // ID
-
 
21167
            return ID;
-
 
21168
          case 2: // NAME
-
 
21169
            return NAME;
-
 
21170
          default:
-
 
21171
            return null;
-
 
21172
        }
-
 
21173
      }
-
 
21174
 
-
 
21175
      /**
-
 
21176
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21177
       * if it is not found.
-
 
21178
       */
-
 
21179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21180
        _Fields fields = findByThriftId(fieldId);
-
 
21181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21182
        return fields;
-
 
21183
      }
-
 
21184
 
-
 
21185
      /**
-
 
21186
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21187
       */
-
 
21188
      public static _Fields findByName(String name) {
-
 
21189
        return byName.get(name);
-
 
21190
      }
-
 
21191
 
-
 
21192
      private final short _thriftId;
-
 
21193
      private final String _fieldName;
-
 
21194
 
-
 
21195
      _Fields(short thriftId, String fieldName) {
-
 
21196
        _thriftId = thriftId;
-
 
21197
        _fieldName = fieldName;
-
 
21198
      }
-
 
21199
 
-
 
21200
      public short getThriftFieldId() {
-
 
21201
        return _thriftId;
-
 
21202
      }
-
 
21203
 
-
 
21204
      public String getFieldName() {
-
 
21205
        return _fieldName;
-
 
21206
      }
-
 
21207
    }
-
 
21208
 
-
 
21209
    // isset id assignments
-
 
21210
    private static final int __ID_ISSET_ID = 0;
-
 
21211
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
21212
 
-
 
21213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21214
    static {
-
 
21215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21216
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
21218
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
21220
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21221
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditorInfo_args.class, metaDataMap);
-
 
21222
    }
-
 
21223
 
-
 
21224
    public getCreditorInfo_args() {
-
 
21225
    }
-
 
21226
 
-
 
21227
    public getCreditorInfo_args(
-
 
21228
      long id,
-
 
21229
      String name)
-
 
21230
    {
-
 
21231
      this();
-
 
21232
      this.id = id;
-
 
21233
      setIdIsSet(true);
-
 
21234
      this.name = name;
-
 
21235
    }
-
 
21236
 
-
 
21237
    /**
-
 
21238
     * Performs a deep copy on <i>other</i>.
-
 
21239
     */
-
 
21240
    public getCreditorInfo_args(getCreditorInfo_args other) {
-
 
21241
      __isset_bit_vector.clear();
-
 
21242
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
21243
      this.id = other.id;
-
 
21244
      if (other.isSetName()) {
-
 
21245
        this.name = other.name;
-
 
21246
      }
-
 
21247
    }
-
 
21248
 
-
 
21249
    public getCreditorInfo_args deepCopy() {
-
 
21250
      return new getCreditorInfo_args(this);
-
 
21251
    }
-
 
21252
 
-
 
21253
    @Override
-
 
21254
    public void clear() {
-
 
21255
      setIdIsSet(false);
-
 
21256
      this.id = 0;
-
 
21257
      this.name = null;
-
 
21258
    }
-
 
21259
 
-
 
21260
    public long getId() {
-
 
21261
      return this.id;
-
 
21262
    }
-
 
21263
 
-
 
21264
    public void setId(long id) {
-
 
21265
      this.id = id;
-
 
21266
      setIdIsSet(true);
-
 
21267
    }
-
 
21268
 
-
 
21269
    public void unsetId() {
-
 
21270
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
21271
    }
-
 
21272
 
-
 
21273
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
21274
    public boolean isSetId() {
-
 
21275
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
21276
    }
-
 
21277
 
-
 
21278
    public void setIdIsSet(boolean value) {
-
 
21279
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
21280
    }
-
 
21281
 
-
 
21282
    public String getName() {
-
 
21283
      return this.name;
-
 
21284
    }
-
 
21285
 
-
 
21286
    public void setName(String name) {
-
 
21287
      this.name = name;
-
 
21288
    }
-
 
21289
 
-
 
21290
    public void unsetName() {
-
 
21291
      this.name = null;
-
 
21292
    }
-
 
21293
 
-
 
21294
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
-
 
21295
    public boolean isSetName() {
-
 
21296
      return this.name != null;
-
 
21297
    }
-
 
21298
 
-
 
21299
    public void setNameIsSet(boolean value) {
-
 
21300
      if (!value) {
-
 
21301
        this.name = null;
-
 
21302
      }
-
 
21303
    }
-
 
21304
 
-
 
21305
    public void setFieldValue(_Fields field, Object value) {
-
 
21306
      switch (field) {
-
 
21307
      case ID:
-
 
21308
        if (value == null) {
-
 
21309
          unsetId();
-
 
21310
        } else {
-
 
21311
          setId((Long)value);
-
 
21312
        }
-
 
21313
        break;
-
 
21314
 
-
 
21315
      case NAME:
-
 
21316
        if (value == null) {
-
 
21317
          unsetName();
-
 
21318
        } else {
-
 
21319
          setName((String)value);
-
 
21320
        }
-
 
21321
        break;
-
 
21322
 
-
 
21323
      }
-
 
21324
    }
-
 
21325
 
-
 
21326
    public Object getFieldValue(_Fields field) {
-
 
21327
      switch (field) {
-
 
21328
      case ID:
-
 
21329
        return Long.valueOf(getId());
-
 
21330
 
-
 
21331
      case NAME:
-
 
21332
        return getName();
-
 
21333
 
-
 
21334
      }
-
 
21335
      throw new IllegalStateException();
-
 
21336
    }
-
 
21337
 
-
 
21338
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
21339
    public boolean isSet(_Fields field) {
-
 
21340
      if (field == null) {
-
 
21341
        throw new IllegalArgumentException();
-
 
21342
      }
-
 
21343
 
-
 
21344
      switch (field) {
-
 
21345
      case ID:
-
 
21346
        return isSetId();
-
 
21347
      case NAME:
-
 
21348
        return isSetName();
-
 
21349
      }
-
 
21350
      throw new IllegalStateException();
-
 
21351
    }
-
 
21352
 
-
 
21353
    @Override
-
 
21354
    public boolean equals(Object that) {
-
 
21355
      if (that == null)
-
 
21356
        return false;
-
 
21357
      if (that instanceof getCreditorInfo_args)
-
 
21358
        return this.equals((getCreditorInfo_args)that);
-
 
21359
      return false;
-
 
21360
    }
-
 
21361
 
-
 
21362
    public boolean equals(getCreditorInfo_args that) {
-
 
21363
      if (that == null)
-
 
21364
        return false;
-
 
21365
 
-
 
21366
      boolean this_present_id = true;
-
 
21367
      boolean that_present_id = true;
-
 
21368
      if (this_present_id || that_present_id) {
-
 
21369
        if (!(this_present_id && that_present_id))
-
 
21370
          return false;
-
 
21371
        if (this.id != that.id)
-
 
21372
          return false;
-
 
21373
      }
-
 
21374
 
-
 
21375
      boolean this_present_name = true && this.isSetName();
-
 
21376
      boolean that_present_name = true && that.isSetName();
-
 
21377
      if (this_present_name || that_present_name) {
-
 
21378
        if (!(this_present_name && that_present_name))
-
 
21379
          return false;
-
 
21380
        if (!this.name.equals(that.name))
-
 
21381
          return false;
-
 
21382
      }
-
 
21383
 
-
 
21384
      return true;
-
 
21385
    }
-
 
21386
 
-
 
21387
    @Override
-
 
21388
    public int hashCode() {
-
 
21389
      return 0;
-
 
21390
    }
-
 
21391
 
-
 
21392
    public int compareTo(getCreditorInfo_args other) {
-
 
21393
      if (!getClass().equals(other.getClass())) {
-
 
21394
        return getClass().getName().compareTo(other.getClass().getName());
-
 
21395
      }
-
 
21396
 
-
 
21397
      int lastComparison = 0;
-
 
21398
      getCreditorInfo_args typedOther = (getCreditorInfo_args)other;
-
 
21399
 
-
 
21400
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
21401
      if (lastComparison != 0) {
-
 
21402
        return lastComparison;
-
 
21403
      }
-
 
21404
      if (isSetId()) {
-
 
21405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
21406
        if (lastComparison != 0) {
-
 
21407
          return lastComparison;
-
 
21408
        }
-
 
21409
      }
-
 
21410
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
-
 
21411
      if (lastComparison != 0) {
-
 
21412
        return lastComparison;
-
 
21413
      }
-
 
21414
      if (isSetName()) {
-
 
21415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
-
 
21416
        if (lastComparison != 0) {
-
 
21417
          return lastComparison;
-
 
21418
        }
-
 
21419
      }
-
 
21420
      return 0;
-
 
21421
    }
-
 
21422
 
-
 
21423
    public _Fields fieldForId(int fieldId) {
-
 
21424
      return _Fields.findByThriftId(fieldId);
-
 
21425
    }
-
 
21426
 
-
 
21427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
21428
      org.apache.thrift.protocol.TField field;
-
 
21429
      iprot.readStructBegin();
-
 
21430
      while (true)
-
 
21431
      {
-
 
21432
        field = iprot.readFieldBegin();
-
 
21433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
21434
          break;
-
 
21435
        }
-
 
21436
        switch (field.id) {
-
 
21437
          case 1: // ID
-
 
21438
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
21439
              this.id = iprot.readI64();
-
 
21440
              setIdIsSet(true);
-
 
21441
            } else { 
-
 
21442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21443
            }
-
 
21444
            break;
-
 
21445
          case 2: // NAME
-
 
21446
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
21447
              this.name = iprot.readString();
-
 
21448
            } else { 
-
 
21449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21450
            }
-
 
21451
            break;
-
 
21452
          default:
-
 
21453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21454
        }
-
 
21455
        iprot.readFieldEnd();
-
 
21456
      }
-
 
21457
      iprot.readStructEnd();
-
 
21458
      validate();
-
 
21459
    }
-
 
21460
 
-
 
21461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21462
      validate();
-
 
21463
 
-
 
21464
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21465
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
21466
      oprot.writeI64(this.id);
-
 
21467
      oprot.writeFieldEnd();
-
 
21468
      if (this.name != null) {
-
 
21469
        oprot.writeFieldBegin(NAME_FIELD_DESC);
-
 
21470
        oprot.writeString(this.name);
-
 
21471
        oprot.writeFieldEnd();
-
 
21472
      }
-
 
21473
      oprot.writeFieldStop();
-
 
21474
      oprot.writeStructEnd();
-
 
21475
    }
-
 
21476
 
-
 
21477
    @Override
-
 
21478
    public String toString() {
-
 
21479
      StringBuilder sb = new StringBuilder("getCreditorInfo_args(");
-
 
21480
      boolean first = true;
-
 
21481
 
-
 
21482
      sb.append("id:");
-
 
21483
      sb.append(this.id);
-
 
21484
      first = false;
-
 
21485
      if (!first) sb.append(", ");
-
 
21486
      sb.append("name:");
-
 
21487
      if (this.name == null) {
-
 
21488
        sb.append("null");
-
 
21489
      } else {
-
 
21490
        sb.append(this.name);
-
 
21491
      }
-
 
21492
      first = false;
-
 
21493
      sb.append(")");
-
 
21494
      return sb.toString();
-
 
21495
    }
-
 
21496
 
-
 
21497
    public void validate() throws org.apache.thrift.TException {
-
 
21498
      // check for required fields
-
 
21499
    }
-
 
21500
 
-
 
21501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
21502
      try {
-
 
21503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
21504
      } catch (org.apache.thrift.TException te) {
-
 
21505
        throw new java.io.IOException(te);
-
 
21506
      }
-
 
21507
    }
-
 
21508
 
-
 
21509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
21510
      try {
-
 
21511
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
21512
        __isset_bit_vector = new BitSet(1);
-
 
21513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
21514
      } catch (org.apache.thrift.TException te) {
-
 
21515
        throw new java.io.IOException(te);
-
 
21516
      }
-
 
21517
    }
-
 
21518
 
-
 
21519
  }
-
 
21520
 
-
 
21521
  public static class getCreditorInfo_result implements org.apache.thrift.TBase<getCreditorInfo_result, getCreditorInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
21522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditorInfo_result");
-
 
21523
 
-
 
21524
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
21525
 
-
 
21526
    private Creditor success; // required
-
 
21527
 
-
 
21528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
21529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21530
      SUCCESS((short)0, "success");
-
 
21531
 
-
 
21532
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21533
 
-
 
21534
      static {
-
 
21535
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21536
          byName.put(field.getFieldName(), field);
-
 
21537
        }
-
 
21538
      }
-
 
21539
 
-
 
21540
      /**
-
 
21541
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21542
       */
-
 
21543
      public static _Fields findByThriftId(int fieldId) {
-
 
21544
        switch(fieldId) {
-
 
21545
          case 0: // SUCCESS
-
 
21546
            return SUCCESS;
-
 
21547
          default:
-
 
21548
            return null;
-
 
21549
        }
-
 
21550
      }
-
 
21551
 
-
 
21552
      /**
-
 
21553
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21554
       * if it is not found.
-
 
21555
       */
-
 
21556
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21557
        _Fields fields = findByThriftId(fieldId);
-
 
21558
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21559
        return fields;
-
 
21560
      }
-
 
21561
 
-
 
21562
      /**
-
 
21563
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21564
       */
-
 
21565
      public static _Fields findByName(String name) {
-
 
21566
        return byName.get(name);
-
 
21567
      }
-
 
21568
 
-
 
21569
      private final short _thriftId;
-
 
21570
      private final String _fieldName;
-
 
21571
 
-
 
21572
      _Fields(short thriftId, String fieldName) {
-
 
21573
        _thriftId = thriftId;
-
 
21574
        _fieldName = fieldName;
-
 
21575
      }
-
 
21576
 
-
 
21577
      public short getThriftFieldId() {
-
 
21578
        return _thriftId;
-
 
21579
      }
-
 
21580
 
-
 
21581
      public String getFieldName() {
-
 
21582
        return _fieldName;
-
 
21583
      }
-
 
21584
    }
-
 
21585
 
-
 
21586
    // isset id assignments
-
 
21587
 
-
 
21588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21589
    static {
-
 
21590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21591
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21592
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Creditor.class)));
-
 
21593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditorInfo_result.class, metaDataMap);
-
 
21595
    }
-
 
21596
 
-
 
21597
    public getCreditorInfo_result() {
-
 
21598
    }
-
 
21599
 
-
 
21600
    public getCreditorInfo_result(
-
 
21601
      Creditor success)
-
 
21602
    {
-
 
21603
      this();
-
 
21604
      this.success = success;
-
 
21605
    }
-
 
21606
 
-
 
21607
    /**
-
 
21608
     * Performs a deep copy on <i>other</i>.
-
 
21609
     */
-
 
21610
    public getCreditorInfo_result(getCreditorInfo_result other) {
-
 
21611
      if (other.isSetSuccess()) {
-
 
21612
        this.success = new Creditor(other.success);
-
 
21613
      }
-
 
21614
    }
-
 
21615
 
-
 
21616
    public getCreditorInfo_result deepCopy() {
-
 
21617
      return new getCreditorInfo_result(this);
-
 
21618
    }
-
 
21619
 
-
 
21620
    @Override
-
 
21621
    public void clear() {
-
 
21622
      this.success = null;
-
 
21623
    }
-
 
21624
 
-
 
21625
    public Creditor getSuccess() {
-
 
21626
      return this.success;
-
 
21627
    }
-
 
21628
 
-
 
21629
    public void setSuccess(Creditor success) {
-
 
21630
      this.success = success;
-
 
21631
    }
-
 
21632
 
-
 
21633
    public void unsetSuccess() {
-
 
21634
      this.success = null;
-
 
21635
    }
-
 
21636
 
-
 
21637
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
21638
    public boolean isSetSuccess() {
-
 
21639
      return this.success != null;
-
 
21640
    }
-
 
21641
 
-
 
21642
    public void setSuccessIsSet(boolean value) {
-
 
21643
      if (!value) {
-
 
21644
        this.success = null;
-
 
21645
      }
-
 
21646
    }
-
 
21647
 
-
 
21648
    public void setFieldValue(_Fields field, Object value) {
-
 
21649
      switch (field) {
-
 
21650
      case SUCCESS:
-
 
21651
        if (value == null) {
-
 
21652
          unsetSuccess();
-
 
21653
        } else {
-
 
21654
          setSuccess((Creditor)value);
-
 
21655
        }
-
 
21656
        break;
-
 
21657
 
-
 
21658
      }
-
 
21659
    }
-
 
21660
 
-
 
21661
    public Object getFieldValue(_Fields field) {
-
 
21662
      switch (field) {
-
 
21663
      case SUCCESS:
-
 
21664
        return getSuccess();
-
 
21665
 
-
 
21666
      }
-
 
21667
      throw new IllegalStateException();
-
 
21668
    }
-
 
21669
 
-
 
21670
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
21671
    public boolean isSet(_Fields field) {
-
 
21672
      if (field == null) {
-
 
21673
        throw new IllegalArgumentException();
-
 
21674
      }
-
 
21675
 
-
 
21676
      switch (field) {
-
 
21677
      case SUCCESS:
-
 
21678
        return isSetSuccess();
-
 
21679
      }
-
 
21680
      throw new IllegalStateException();
-
 
21681
    }
-
 
21682
 
-
 
21683
    @Override
-
 
21684
    public boolean equals(Object that) {
-
 
21685
      if (that == null)
-
 
21686
        return false;
-
 
21687
      if (that instanceof getCreditorInfo_result)
-
 
21688
        return this.equals((getCreditorInfo_result)that);
-
 
21689
      return false;
-
 
21690
    }
-
 
21691
 
-
 
21692
    public boolean equals(getCreditorInfo_result that) {
-
 
21693
      if (that == null)
-
 
21694
        return false;
-
 
21695
 
-
 
21696
      boolean this_present_success = true && this.isSetSuccess();
-
 
21697
      boolean that_present_success = true && that.isSetSuccess();
-
 
21698
      if (this_present_success || that_present_success) {
-
 
21699
        if (!(this_present_success && that_present_success))
-
 
21700
          return false;
-
 
21701
        if (!this.success.equals(that.success))
-
 
21702
          return false;
-
 
21703
      }
-
 
21704
 
-
 
21705
      return true;
-
 
21706
    }
-
 
21707
 
-
 
21708
    @Override
-
 
21709
    public int hashCode() {
-
 
21710
      return 0;
-
 
21711
    }
-
 
21712
 
-
 
21713
    public int compareTo(getCreditorInfo_result other) {
-
 
21714
      if (!getClass().equals(other.getClass())) {
-
 
21715
        return getClass().getName().compareTo(other.getClass().getName());
-
 
21716
      }
-
 
21717
 
-
 
21718
      int lastComparison = 0;
-
 
21719
      getCreditorInfo_result typedOther = (getCreditorInfo_result)other;
-
 
21720
 
-
 
21721
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
21722
      if (lastComparison != 0) {
-
 
21723
        return lastComparison;
-
 
21724
      }
-
 
21725
      if (isSetSuccess()) {
-
 
21726
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
21727
        if (lastComparison != 0) {
-
 
21728
          return lastComparison;
-
 
21729
        }
-
 
21730
      }
-
 
21731
      return 0;
-
 
21732
    }
-
 
21733
 
-
 
21734
    public _Fields fieldForId(int fieldId) {
-
 
21735
      return _Fields.findByThriftId(fieldId);
-
 
21736
    }
-
 
21737
 
-
 
21738
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
21739
      org.apache.thrift.protocol.TField field;
-
 
21740
      iprot.readStructBegin();
-
 
21741
      while (true)
-
 
21742
      {
-
 
21743
        field = iprot.readFieldBegin();
-
 
21744
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
21745
          break;
-
 
21746
        }
-
 
21747
        switch (field.id) {
-
 
21748
          case 0: // SUCCESS
-
 
21749
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
21750
              this.success = new Creditor();
-
 
21751
              this.success.read(iprot);
-
 
21752
            } else { 
-
 
21753
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21754
            }
-
 
21755
            break;
-
 
21756
          default:
-
 
21757
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21758
        }
-
 
21759
        iprot.readFieldEnd();
-
 
21760
      }
-
 
21761
      iprot.readStructEnd();
-
 
21762
      validate();
-
 
21763
    }
-
 
21764
 
-
 
21765
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21766
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21767
 
-
 
21768
      if (this.isSetSuccess()) {
-
 
21769
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
21770
        this.success.write(oprot);
-
 
21771
        oprot.writeFieldEnd();
-
 
21772
      }
-
 
21773
      oprot.writeFieldStop();
-
 
21774
      oprot.writeStructEnd();
-
 
21775
    }
-
 
21776
 
-
 
21777
    @Override
-
 
21778
    public String toString() {
-
 
21779
      StringBuilder sb = new StringBuilder("getCreditorInfo_result(");
-
 
21780
      boolean first = true;
-
 
21781
 
-
 
21782
      sb.append("success:");
-
 
21783
      if (this.success == null) {
-
 
21784
        sb.append("null");
-
 
21785
      } else {
-
 
21786
        sb.append(this.success);
-
 
21787
      }
-
 
21788
      first = false;
-
 
21789
      sb.append(")");
-
 
21790
      return sb.toString();
-
 
21791
    }
-
 
21792
 
-
 
21793
    public void validate() throws org.apache.thrift.TException {
-
 
21794
      // check for required fields
-
 
21795
    }
-
 
21796
 
-
 
21797
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
21798
      try {
-
 
21799
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
21800
      } catch (org.apache.thrift.TException te) {
-
 
21801
        throw new java.io.IOException(te);
-
 
21802
      }
-
 
21803
    }
-
 
21804
 
-
 
21805
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
21806
      try {
-
 
21807
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
21808
      } catch (org.apache.thrift.TException te) {
-
 
21809
        throw new java.io.IOException(te);
-
 
21810
      }
-
 
21811
    }
-
 
21812
 
-
 
21813
  }
-
 
21814
 
-
 
21815
  public static class updateCreditorInfo_args implements org.apache.thrift.TBase<updateCreditorInfo_args, updateCreditorInfo_args._Fields>, java.io.Serializable, Cloneable   {
-
 
21816
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCreditorInfo_args");
-
 
21817
 
-
 
21818
    private static final org.apache.thrift.protocol.TField CREDITOR_FIELD_DESC = new org.apache.thrift.protocol.TField("creditor", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
21819
 
-
 
21820
    private Creditor creditor; // required
-
 
21821
 
-
 
21822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
21823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21824
      CREDITOR((short)1, "creditor");
-
 
21825
 
-
 
21826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21827
 
-
 
21828
      static {
-
 
21829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21830
          byName.put(field.getFieldName(), field);
-
 
21831
        }
-
 
21832
      }
-
 
21833
 
-
 
21834
      /**
-
 
21835
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21836
       */
-
 
21837
      public static _Fields findByThriftId(int fieldId) {
-
 
21838
        switch(fieldId) {
-
 
21839
          case 1: // CREDITOR
-
 
21840
            return CREDITOR;
-
 
21841
          default:
-
 
21842
            return null;
-
 
21843
        }
-
 
21844
      }
-
 
21845
 
-
 
21846
      /**
-
 
21847
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21848
       * if it is not found.
-
 
21849
       */
-
 
21850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21851
        _Fields fields = findByThriftId(fieldId);
-
 
21852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21853
        return fields;
-
 
21854
      }
-
 
21855
 
-
 
21856
      /**
-
 
21857
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21858
       */
-
 
21859
      public static _Fields findByName(String name) {
-
 
21860
        return byName.get(name);
-
 
21861
      }
-
 
21862
 
-
 
21863
      private final short _thriftId;
-
 
21864
      private final String _fieldName;
-
 
21865
 
-
 
21866
      _Fields(short thriftId, String fieldName) {
-
 
21867
        _thriftId = thriftId;
-
 
21868
        _fieldName = fieldName;
-
 
21869
      }
-
 
21870
 
-
 
21871
      public short getThriftFieldId() {
-
 
21872
        return _thriftId;
-
 
21873
      }
-
 
21874
 
-
 
21875
      public String getFieldName() {
-
 
21876
        return _fieldName;
-
 
21877
      }
-
 
21878
    }
-
 
21879
 
-
 
21880
    // isset id assignments
-
 
21881
 
-
 
21882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21883
    static {
-
 
21884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21885
      tmpMap.put(_Fields.CREDITOR, new org.apache.thrift.meta_data.FieldMetaData("creditor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21886
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Creditor.class)));
-
 
21887
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21888
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCreditorInfo_args.class, metaDataMap);
-
 
21889
    }
-
 
21890
 
-
 
21891
    public updateCreditorInfo_args() {
-
 
21892
    }
-
 
21893
 
-
 
21894
    public updateCreditorInfo_args(
-
 
21895
      Creditor creditor)
-
 
21896
    {
-
 
21897
      this();
-
 
21898
      this.creditor = creditor;
-
 
21899
    }
-
 
21900
 
-
 
21901
    /**
-
 
21902
     * Performs a deep copy on <i>other</i>.
-
 
21903
     */
-
 
21904
    public updateCreditorInfo_args(updateCreditorInfo_args other) {
-
 
21905
      if (other.isSetCreditor()) {
-
 
21906
        this.creditor = new Creditor(other.creditor);
-
 
21907
      }
-
 
21908
    }
-
 
21909
 
-
 
21910
    public updateCreditorInfo_args deepCopy() {
-
 
21911
      return new updateCreditorInfo_args(this);
-
 
21912
    }
-
 
21913
 
-
 
21914
    @Override
-
 
21915
    public void clear() {
-
 
21916
      this.creditor = null;
-
 
21917
    }
-
 
21918
 
-
 
21919
    public Creditor getCreditor() {
-
 
21920
      return this.creditor;
-
 
21921
    }
-
 
21922
 
-
 
21923
    public void setCreditor(Creditor creditor) {
-
 
21924
      this.creditor = creditor;
-
 
21925
    }
-
 
21926
 
-
 
21927
    public void unsetCreditor() {
-
 
21928
      this.creditor = null;
-
 
21929
    }
-
 
21930
 
-
 
21931
    /** Returns true if field creditor is set (has been assigned a value) and false otherwise */
-
 
21932
    public boolean isSetCreditor() {
-
 
21933
      return this.creditor != null;
-
 
21934
    }
-
 
21935
 
-
 
21936
    public void setCreditorIsSet(boolean value) {
-
 
21937
      if (!value) {
-
 
21938
        this.creditor = null;
-
 
21939
      }
-
 
21940
    }
-
 
21941
 
-
 
21942
    public void setFieldValue(_Fields field, Object value) {
-
 
21943
      switch (field) {
-
 
21944
      case CREDITOR:
-
 
21945
        if (value == null) {
-
 
21946
          unsetCreditor();
-
 
21947
        } else {
-
 
21948
          setCreditor((Creditor)value);
-
 
21949
        }
-
 
21950
        break;
-
 
21951
 
-
 
21952
      }
-
 
21953
    }
-
 
21954
 
-
 
21955
    public Object getFieldValue(_Fields field) {
-
 
21956
      switch (field) {
-
 
21957
      case CREDITOR:
-
 
21958
        return getCreditor();
-
 
21959
 
-
 
21960
      }
-
 
21961
      throw new IllegalStateException();
-
 
21962
    }
-
 
21963
 
-
 
21964
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
21965
    public boolean isSet(_Fields field) {
-
 
21966
      if (field == null) {
-
 
21967
        throw new IllegalArgumentException();
-
 
21968
      }
-
 
21969
 
-
 
21970
      switch (field) {
-
 
21971
      case CREDITOR:
-
 
21972
        return isSetCreditor();
-
 
21973
      }
-
 
21974
      throw new IllegalStateException();
-
 
21975
    }
-
 
21976
 
-
 
21977
    @Override
-
 
21978
    public boolean equals(Object that) {
-
 
21979
      if (that == null)
-
 
21980
        return false;
-
 
21981
      if (that instanceof updateCreditorInfo_args)
-
 
21982
        return this.equals((updateCreditorInfo_args)that);
-
 
21983
      return false;
-
 
21984
    }
-
 
21985
 
-
 
21986
    public boolean equals(updateCreditorInfo_args that) {
-
 
21987
      if (that == null)
-
 
21988
        return false;
-
 
21989
 
-
 
21990
      boolean this_present_creditor = true && this.isSetCreditor();
-
 
21991
      boolean that_present_creditor = true && that.isSetCreditor();
-
 
21992
      if (this_present_creditor || that_present_creditor) {
-
 
21993
        if (!(this_present_creditor && that_present_creditor))
-
 
21994
          return false;
-
 
21995
        if (!this.creditor.equals(that.creditor))
-
 
21996
          return false;
-
 
21997
      }
-
 
21998
 
-
 
21999
      return true;
-
 
22000
    }
-
 
22001
 
-
 
22002
    @Override
-
 
22003
    public int hashCode() {
-
 
22004
      return 0;
-
 
22005
    }
-
 
22006
 
-
 
22007
    public int compareTo(updateCreditorInfo_args other) {
-
 
22008
      if (!getClass().equals(other.getClass())) {
-
 
22009
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22010
      }
-
 
22011
 
-
 
22012
      int lastComparison = 0;
-
 
22013
      updateCreditorInfo_args typedOther = (updateCreditorInfo_args)other;
-
 
22014
 
-
 
22015
      lastComparison = Boolean.valueOf(isSetCreditor()).compareTo(typedOther.isSetCreditor());
-
 
22016
      if (lastComparison != 0) {
-
 
22017
        return lastComparison;
-
 
22018
      }
-
 
22019
      if (isSetCreditor()) {
-
 
22020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditor, typedOther.creditor);
-
 
22021
        if (lastComparison != 0) {
-
 
22022
          return lastComparison;
-
 
22023
        }
-
 
22024
      }
-
 
22025
      return 0;
-
 
22026
    }
-
 
22027
 
-
 
22028
    public _Fields fieldForId(int fieldId) {
-
 
22029
      return _Fields.findByThriftId(fieldId);
-
 
22030
    }
-
 
22031
 
-
 
22032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22033
      org.apache.thrift.protocol.TField field;
-
 
22034
      iprot.readStructBegin();
-
 
22035
      while (true)
-
 
22036
      {
-
 
22037
        field = iprot.readFieldBegin();
-
 
22038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22039
          break;
-
 
22040
        }
-
 
22041
        switch (field.id) {
-
 
22042
          case 1: // CREDITOR
-
 
22043
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
22044
              this.creditor = new Creditor();
-
 
22045
              this.creditor.read(iprot);
-
 
22046
            } else { 
-
 
22047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22048
            }
-
 
22049
            break;
-
 
22050
          default:
-
 
22051
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22052
        }
-
 
22053
        iprot.readFieldEnd();
-
 
22054
      }
-
 
22055
      iprot.readStructEnd();
-
 
22056
      validate();
-
 
22057
    }
-
 
22058
 
-
 
22059
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22060
      validate();
-
 
22061
 
-
 
22062
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22063
      if (this.creditor != null) {
-
 
22064
        oprot.writeFieldBegin(CREDITOR_FIELD_DESC);
-
 
22065
        this.creditor.write(oprot);
-
 
22066
        oprot.writeFieldEnd();
-
 
22067
      }
-
 
22068
      oprot.writeFieldStop();
-
 
22069
      oprot.writeStructEnd();
-
 
22070
    }
-
 
22071
 
-
 
22072
    @Override
-
 
22073
    public String toString() {
-
 
22074
      StringBuilder sb = new StringBuilder("updateCreditorInfo_args(");
-
 
22075
      boolean first = true;
-
 
22076
 
-
 
22077
      sb.append("creditor:");
-
 
22078
      if (this.creditor == null) {
-
 
22079
        sb.append("null");
-
 
22080
      } else {
-
 
22081
        sb.append(this.creditor);
-
 
22082
      }
-
 
22083
      first = false;
-
 
22084
      sb.append(")");
-
 
22085
      return sb.toString();
-
 
22086
    }
-
 
22087
 
-
 
22088
    public void validate() throws org.apache.thrift.TException {
-
 
22089
      // check for required fields
-
 
22090
    }
-
 
22091
 
-
 
22092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22093
      try {
-
 
22094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22095
      } catch (org.apache.thrift.TException te) {
-
 
22096
        throw new java.io.IOException(te);
-
 
22097
      }
-
 
22098
    }
-
 
22099
 
-
 
22100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22101
      try {
-
 
22102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22103
      } catch (org.apache.thrift.TException te) {
-
 
22104
        throw new java.io.IOException(te);
-
 
22105
      }
-
 
22106
    }
-
 
22107
 
-
 
22108
  }
-
 
22109
 
-
 
22110
  public static class updateCreditorInfo_result implements org.apache.thrift.TBase<updateCreditorInfo_result, updateCreditorInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
22111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCreditorInfo_result");
-
 
22112
 
-
 
22113
    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);
-
 
22114
 
-
 
22115
    private boolean success; // required
-
 
22116
 
-
 
22117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22119
      SUCCESS((short)0, "success");
-
 
22120
 
-
 
22121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22122
 
-
 
22123
      static {
-
 
22124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22125
          byName.put(field.getFieldName(), field);
-
 
22126
        }
-
 
22127
      }
-
 
22128
 
-
 
22129
      /**
-
 
22130
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22131
       */
-
 
22132
      public static _Fields findByThriftId(int fieldId) {
-
 
22133
        switch(fieldId) {
-
 
22134
          case 0: // SUCCESS
-
 
22135
            return SUCCESS;
-
 
22136
          default:
-
 
22137
            return null;
-
 
22138
        }
-
 
22139
      }
-
 
22140
 
-
 
22141
      /**
-
 
22142
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22143
       * if it is not found.
-
 
22144
       */
-
 
22145
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22146
        _Fields fields = findByThriftId(fieldId);
-
 
22147
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22148
        return fields;
-
 
22149
      }
-
 
22150
 
-
 
22151
      /**
-
 
22152
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22153
       */
-
 
22154
      public static _Fields findByName(String name) {
-
 
22155
        return byName.get(name);
-
 
22156
      }
-
 
22157
 
-
 
22158
      private final short _thriftId;
-
 
22159
      private final String _fieldName;
-
 
22160
 
-
 
22161
      _Fields(short thriftId, String fieldName) {
-
 
22162
        _thriftId = thriftId;
-
 
22163
        _fieldName = fieldName;
-
 
22164
      }
-
 
22165
 
-
 
22166
      public short getThriftFieldId() {
-
 
22167
        return _thriftId;
-
 
22168
      }
-
 
22169
 
-
 
22170
      public String getFieldName() {
-
 
22171
        return _fieldName;
-
 
22172
      }
-
 
22173
    }
-
 
22174
 
-
 
22175
    // isset id assignments
-
 
22176
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
22177
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
22178
 
-
 
22179
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22180
    static {
-
 
22181
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22182
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22183
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
22184
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22185
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCreditorInfo_result.class, metaDataMap);
-
 
22186
    }
-
 
22187
 
-
 
22188
    public updateCreditorInfo_result() {
-
 
22189
    }
-
 
22190
 
-
 
22191
    public updateCreditorInfo_result(
-
 
22192
      boolean success)
-
 
22193
    {
-
 
22194
      this();
-
 
22195
      this.success = success;
-
 
22196
      setSuccessIsSet(true);
-
 
22197
    }
-
 
22198
 
-
 
22199
    /**
-
 
22200
     * Performs a deep copy on <i>other</i>.
-
 
22201
     */
-
 
22202
    public updateCreditorInfo_result(updateCreditorInfo_result other) {
-
 
22203
      __isset_bit_vector.clear();
-
 
22204
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
22205
      this.success = other.success;
-
 
22206
    }
-
 
22207
 
-
 
22208
    public updateCreditorInfo_result deepCopy() {
-
 
22209
      return new updateCreditorInfo_result(this);
-
 
22210
    }
-
 
22211
 
-
 
22212
    @Override
-
 
22213
    public void clear() {
-
 
22214
      setSuccessIsSet(false);
-
 
22215
      this.success = false;
-
 
22216
    }
-
 
22217
 
-
 
22218
    public boolean isSuccess() {
-
 
22219
      return this.success;
-
 
22220
    }
-
 
22221
 
-
 
22222
    public void setSuccess(boolean success) {
-
 
22223
      this.success = success;
-
 
22224
      setSuccessIsSet(true);
-
 
22225
    }
-
 
22226
 
-
 
22227
    public void unsetSuccess() {
-
 
22228
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
22229
    }
-
 
22230
 
-
 
22231
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
22232
    public boolean isSetSuccess() {
-
 
22233
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
22234
    }
-
 
22235
 
-
 
22236
    public void setSuccessIsSet(boolean value) {
-
 
22237
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
22238
    }
-
 
22239
 
-
 
22240
    public void setFieldValue(_Fields field, Object value) {
-
 
22241
      switch (field) {
-
 
22242
      case SUCCESS:
-
 
22243
        if (value == null) {
-
 
22244
          unsetSuccess();
-
 
22245
        } else {
-
 
22246
          setSuccess((Boolean)value);
-
 
22247
        }
-
 
22248
        break;
-
 
22249
 
-
 
22250
      }
-
 
22251
    }
-
 
22252
 
-
 
22253
    public Object getFieldValue(_Fields field) {
-
 
22254
      switch (field) {
-
 
22255
      case SUCCESS:
-
 
22256
        return Boolean.valueOf(isSuccess());
-
 
22257
 
-
 
22258
      }
-
 
22259
      throw new IllegalStateException();
-
 
22260
    }
-
 
22261
 
-
 
22262
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22263
    public boolean isSet(_Fields field) {
-
 
22264
      if (field == null) {
-
 
22265
        throw new IllegalArgumentException();
-
 
22266
      }
-
 
22267
 
-
 
22268
      switch (field) {
-
 
22269
      case SUCCESS:
-
 
22270
        return isSetSuccess();
-
 
22271
      }
-
 
22272
      throw new IllegalStateException();
-
 
22273
    }
-
 
22274
 
-
 
22275
    @Override
-
 
22276
    public boolean equals(Object that) {
-
 
22277
      if (that == null)
-
 
22278
        return false;
-
 
22279
      if (that instanceof updateCreditorInfo_result)
-
 
22280
        return this.equals((updateCreditorInfo_result)that);
-
 
22281
      return false;
-
 
22282
    }
-
 
22283
 
-
 
22284
    public boolean equals(updateCreditorInfo_result that) {
-
 
22285
      if (that == null)
-
 
22286
        return false;
-
 
22287
 
-
 
22288
      boolean this_present_success = true;
-
 
22289
      boolean that_present_success = true;
-
 
22290
      if (this_present_success || that_present_success) {
-
 
22291
        if (!(this_present_success && that_present_success))
-
 
22292
          return false;
-
 
22293
        if (this.success != that.success)
-
 
22294
          return false;
-
 
22295
      }
-
 
22296
 
-
 
22297
      return true;
-
 
22298
    }
-
 
22299
 
-
 
22300
    @Override
-
 
22301
    public int hashCode() {
-
 
22302
      return 0;
-
 
22303
    }
-
 
22304
 
-
 
22305
    public int compareTo(updateCreditorInfo_result other) {
-
 
22306
      if (!getClass().equals(other.getClass())) {
-
 
22307
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22308
      }
-
 
22309
 
-
 
22310
      int lastComparison = 0;
-
 
22311
      updateCreditorInfo_result typedOther = (updateCreditorInfo_result)other;
-
 
22312
 
-
 
22313
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
22314
      if (lastComparison != 0) {
-
 
22315
        return lastComparison;
-
 
22316
      }
-
 
22317
      if (isSetSuccess()) {
-
 
22318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
22319
        if (lastComparison != 0) {
-
 
22320
          return lastComparison;
-
 
22321
        }
-
 
22322
      }
-
 
22323
      return 0;
-
 
22324
    }
-
 
22325
 
-
 
22326
    public _Fields fieldForId(int fieldId) {
-
 
22327
      return _Fields.findByThriftId(fieldId);
-
 
22328
    }
-
 
22329
 
-
 
22330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22331
      org.apache.thrift.protocol.TField field;
-
 
22332
      iprot.readStructBegin();
-
 
22333
      while (true)
-
 
22334
      {
-
 
22335
        field = iprot.readFieldBegin();
-
 
22336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22337
          break;
-
 
22338
        }
-
 
22339
        switch (field.id) {
-
 
22340
          case 0: // SUCCESS
-
 
22341
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
22342
              this.success = iprot.readBool();
-
 
22343
              setSuccessIsSet(true);
-
 
22344
            } else { 
-
 
22345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22346
            }
-
 
22347
            break;
-
 
22348
          default:
-
 
22349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22350
        }
-
 
22351
        iprot.readFieldEnd();
-
 
22352
      }
-
 
22353
      iprot.readStructEnd();
-
 
22354
      validate();
-
 
22355
    }
-
 
22356
 
-
 
22357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22358
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22359
 
-
 
22360
      if (this.isSetSuccess()) {
-
 
22361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
22362
        oprot.writeBool(this.success);
-
 
22363
        oprot.writeFieldEnd();
-
 
22364
      }
-
 
22365
      oprot.writeFieldStop();
-
 
22366
      oprot.writeStructEnd();
-
 
22367
    }
-
 
22368
 
-
 
22369
    @Override
-
 
22370
    public String toString() {
-
 
22371
      StringBuilder sb = new StringBuilder("updateCreditorInfo_result(");
-
 
22372
      boolean first = true;
-
 
22373
 
-
 
22374
      sb.append("success:");
-
 
22375
      sb.append(this.success);
-
 
22376
      first = false;
-
 
22377
      sb.append(")");
-
 
22378
      return sb.toString();
-
 
22379
    }
-
 
22380
 
-
 
22381
    public void validate() throws org.apache.thrift.TException {
-
 
22382
      // check for required fields
-
 
22383
    }
-
 
22384
 
-
 
22385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22386
      try {
-
 
22387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22388
      } catch (org.apache.thrift.TException te) {
-
 
22389
        throw new java.io.IOException(te);
-
 
22390
      }
-
 
22391
    }
-
 
22392
 
-
 
22393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22394
      try {
-
 
22395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22396
      } catch (org.apache.thrift.TException te) {
-
 
22397
        throw new java.io.IOException(te);
-
 
22398
      }
-
 
22399
    }
-
 
22400
 
-
 
22401
  }
-
 
22402
 
-
 
22403
  public static class getUserSanctionDetails_args implements org.apache.thrift.TBase<getUserSanctionDetails_args, getUserSanctionDetails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
22404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetails_args");
-
 
22405
 
-
 
22406
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
22407
 
-
 
22408
    private long userId; // required
-
 
22409
 
-
 
22410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22412
      USER_ID((short)1, "userId");
-
 
22413
 
-
 
22414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22415
 
-
 
22416
      static {
-
 
22417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22418
          byName.put(field.getFieldName(), field);
-
 
22419
        }
-
 
22420
      }
-
 
22421
 
-
 
22422
      /**
-
 
22423
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22424
       */
-
 
22425
      public static _Fields findByThriftId(int fieldId) {
-
 
22426
        switch(fieldId) {
-
 
22427
          case 1: // USER_ID
-
 
22428
            return USER_ID;
-
 
22429
          default:
-
 
22430
            return null;
-
 
22431
        }
-
 
22432
      }
-
 
22433
 
-
 
22434
      /**
-
 
22435
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22436
       * if it is not found.
-
 
22437
       */
-
 
22438
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22439
        _Fields fields = findByThriftId(fieldId);
-
 
22440
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22441
        return fields;
-
 
22442
      }
-
 
22443
 
-
 
22444
      /**
-
 
22445
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22446
       */
-
 
22447
      public static _Fields findByName(String name) {
-
 
22448
        return byName.get(name);
-
 
22449
      }
-
 
22450
 
-
 
22451
      private final short _thriftId;
-
 
22452
      private final String _fieldName;
-
 
22453
 
-
 
22454
      _Fields(short thriftId, String fieldName) {
-
 
22455
        _thriftId = thriftId;
-
 
22456
        _fieldName = fieldName;
-
 
22457
      }
-
 
22458
 
-
 
22459
      public short getThriftFieldId() {
-
 
22460
        return _thriftId;
-
 
22461
      }
-
 
22462
 
-
 
22463
      public String getFieldName() {
-
 
22464
        return _fieldName;
-
 
22465
      }
-
 
22466
    }
-
 
22467
 
-
 
22468
    // isset id assignments
-
 
22469
    private static final int __USERID_ISSET_ID = 0;
-
 
22470
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
22471
 
-
 
22472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22473
    static {
-
 
22474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22475
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22476
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
22477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetails_args.class, metaDataMap);
-
 
22479
    }
-
 
22480
 
-
 
22481
    public getUserSanctionDetails_args() {
-
 
22482
    }
-
 
22483
 
-
 
22484
    public getUserSanctionDetails_args(
-
 
22485
      long userId)
-
 
22486
    {
-
 
22487
      this();
-
 
22488
      this.userId = userId;
-
 
22489
      setUserIdIsSet(true);
-
 
22490
    }
-
 
22491
 
-
 
22492
    /**
-
 
22493
     * Performs a deep copy on <i>other</i>.
-
 
22494
     */
-
 
22495
    public getUserSanctionDetails_args(getUserSanctionDetails_args other) {
-
 
22496
      __isset_bit_vector.clear();
-
 
22497
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
22498
      this.userId = other.userId;
-
 
22499
    }
-
 
22500
 
-
 
22501
    public getUserSanctionDetails_args deepCopy() {
-
 
22502
      return new getUserSanctionDetails_args(this);
-
 
22503
    }
-
 
22504
 
-
 
22505
    @Override
-
 
22506
    public void clear() {
-
 
22507
      setUserIdIsSet(false);
-
 
22508
      this.userId = 0;
-
 
22509
    }
-
 
22510
 
-
 
22511
    public long getUserId() {
-
 
22512
      return this.userId;
-
 
22513
    }
-
 
22514
 
-
 
22515
    public void setUserId(long userId) {
-
 
22516
      this.userId = userId;
-
 
22517
      setUserIdIsSet(true);
-
 
22518
    }
-
 
22519
 
-
 
22520
    public void unsetUserId() {
-
 
22521
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
22522
    }
-
 
22523
 
-
 
22524
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
22525
    public boolean isSetUserId() {
-
 
22526
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
22527
    }
-
 
22528
 
-
 
22529
    public void setUserIdIsSet(boolean value) {
-
 
22530
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
22531
    }
-
 
22532
 
-
 
22533
    public void setFieldValue(_Fields field, Object value) {
-
 
22534
      switch (field) {
-
 
22535
      case USER_ID:
-
 
22536
        if (value == null) {
-
 
22537
          unsetUserId();
-
 
22538
        } else {
-
 
22539
          setUserId((Long)value);
-
 
22540
        }
-
 
22541
        break;
-
 
22542
 
-
 
22543
      }
-
 
22544
    }
-
 
22545
 
-
 
22546
    public Object getFieldValue(_Fields field) {
-
 
22547
      switch (field) {
-
 
22548
      case USER_ID:
-
 
22549
        return Long.valueOf(getUserId());
-
 
22550
 
-
 
22551
      }
-
 
22552
      throw new IllegalStateException();
-
 
22553
    }
-
 
22554
 
-
 
22555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22556
    public boolean isSet(_Fields field) {
-
 
22557
      if (field == null) {
-
 
22558
        throw new IllegalArgumentException();
-
 
22559
      }
-
 
22560
 
-
 
22561
      switch (field) {
-
 
22562
      case USER_ID:
-
 
22563
        return isSetUserId();
-
 
22564
      }
-
 
22565
      throw new IllegalStateException();
-
 
22566
    }
-
 
22567
 
-
 
22568
    @Override
-
 
22569
    public boolean equals(Object that) {
-
 
22570
      if (that == null)
-
 
22571
        return false;
-
 
22572
      if (that instanceof getUserSanctionDetails_args)
-
 
22573
        return this.equals((getUserSanctionDetails_args)that);
-
 
22574
      return false;
-
 
22575
    }
-
 
22576
 
-
 
22577
    public boolean equals(getUserSanctionDetails_args that) {
-
 
22578
      if (that == null)
-
 
22579
        return false;
-
 
22580
 
-
 
22581
      boolean this_present_userId = true;
-
 
22582
      boolean that_present_userId = true;
-
 
22583
      if (this_present_userId || that_present_userId) {
-
 
22584
        if (!(this_present_userId && that_present_userId))
-
 
22585
          return false;
-
 
22586
        if (this.userId != that.userId)
-
 
22587
          return false;
-
 
22588
      }
-
 
22589
 
-
 
22590
      return true;
-
 
22591
    }
-
 
22592
 
-
 
22593
    @Override
-
 
22594
    public int hashCode() {
-
 
22595
      return 0;
-
 
22596
    }
-
 
22597
 
-
 
22598
    public int compareTo(getUserSanctionDetails_args other) {
-
 
22599
      if (!getClass().equals(other.getClass())) {
-
 
22600
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22601
      }
-
 
22602
 
-
 
22603
      int lastComparison = 0;
-
 
22604
      getUserSanctionDetails_args typedOther = (getUserSanctionDetails_args)other;
-
 
22605
 
-
 
22606
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
22607
      if (lastComparison != 0) {
-
 
22608
        return lastComparison;
-
 
22609
      }
-
 
22610
      if (isSetUserId()) {
-
 
22611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
22612
        if (lastComparison != 0) {
-
 
22613
          return lastComparison;
-
 
22614
        }
-
 
22615
      }
-
 
22616
      return 0;
-
 
22617
    }
-
 
22618
 
-
 
22619
    public _Fields fieldForId(int fieldId) {
-
 
22620
      return _Fields.findByThriftId(fieldId);
-
 
22621
    }
-
 
22622
 
-
 
22623
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22624
      org.apache.thrift.protocol.TField field;
-
 
22625
      iprot.readStructBegin();
-
 
22626
      while (true)
-
 
22627
      {
-
 
22628
        field = iprot.readFieldBegin();
-
 
22629
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22630
          break;
-
 
22631
        }
-
 
22632
        switch (field.id) {
-
 
22633
          case 1: // USER_ID
-
 
22634
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
22635
              this.userId = iprot.readI64();
-
 
22636
              setUserIdIsSet(true);
-
 
22637
            } else { 
-
 
22638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22639
            }
-
 
22640
            break;
-
 
22641
          default:
-
 
22642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22643
        }
-
 
22644
        iprot.readFieldEnd();
-
 
22645
      }
-
 
22646
      iprot.readStructEnd();
-
 
22647
      validate();
-
 
22648
    }
-
 
22649
 
-
 
22650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22651
      validate();
-
 
22652
 
-
 
22653
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22654
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
22655
      oprot.writeI64(this.userId);
-
 
22656
      oprot.writeFieldEnd();
-
 
22657
      oprot.writeFieldStop();
-
 
22658
      oprot.writeStructEnd();
-
 
22659
    }
-
 
22660
 
-
 
22661
    @Override
-
 
22662
    public String toString() {
-
 
22663
      StringBuilder sb = new StringBuilder("getUserSanctionDetails_args(");
-
 
22664
      boolean first = true;
-
 
22665
 
-
 
22666
      sb.append("userId:");
-
 
22667
      sb.append(this.userId);
-
 
22668
      first = false;
-
 
22669
      sb.append(")");
-
 
22670
      return sb.toString();
-
 
22671
    }
-
 
22672
 
-
 
22673
    public void validate() throws org.apache.thrift.TException {
-
 
22674
      // check for required fields
-
 
22675
    }
-
 
22676
 
-
 
22677
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22678
      try {
-
 
22679
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22680
      } catch (org.apache.thrift.TException te) {
-
 
22681
        throw new java.io.IOException(te);
-
 
22682
      }
-
 
22683
    }
-
 
22684
 
-
 
22685
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22686
      try {
-
 
22687
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
22688
        __isset_bit_vector = new BitSet(1);
-
 
22689
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22690
      } catch (org.apache.thrift.TException te) {
-
 
22691
        throw new java.io.IOException(te);
-
 
22692
      }
-
 
22693
    }
-
 
22694
 
-
 
22695
  }
-
 
22696
 
-
 
22697
  public static class getUserSanctionDetails_result implements org.apache.thrift.TBase<getUserSanctionDetails_result, getUserSanctionDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
22698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetails_result");
-
 
22699
 
-
 
22700
    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);
-
 
22701
 
-
 
22702
    private List<UserSanction> success; // required
-
 
22703
 
-
 
22704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22706
      SUCCESS((short)0, "success");
-
 
22707
 
-
 
22708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22709
 
-
 
22710
      static {
-
 
22711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22712
          byName.put(field.getFieldName(), field);
-
 
22713
        }
-
 
22714
      }
-
 
22715
 
-
 
22716
      /**
-
 
22717
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22718
       */
-
 
22719
      public static _Fields findByThriftId(int fieldId) {
-
 
22720
        switch(fieldId) {
-
 
22721
          case 0: // SUCCESS
-
 
22722
            return SUCCESS;
-
 
22723
          default:
-
 
22724
            return null;
-
 
22725
        }
-
 
22726
      }
-
 
22727
 
-
 
22728
      /**
-
 
22729
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22730
       * if it is not found.
-
 
22731
       */
-
 
22732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22733
        _Fields fields = findByThriftId(fieldId);
-
 
22734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22735
        return fields;
-
 
22736
      }
-
 
22737
 
-
 
22738
      /**
-
 
22739
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22740
       */
-
 
22741
      public static _Fields findByName(String name) {
-
 
22742
        return byName.get(name);
-
 
22743
      }
-
 
22744
 
-
 
22745
      private final short _thriftId;
-
 
22746
      private final String _fieldName;
-
 
22747
 
-
 
22748
      _Fields(short thriftId, String fieldName) {
-
 
22749
        _thriftId = thriftId;
-
 
22750
        _fieldName = fieldName;
-
 
22751
      }
-
 
22752
 
-
 
22753
      public short getThriftFieldId() {
-
 
22754
        return _thriftId;
-
 
22755
      }
-
 
22756
 
-
 
22757
      public String getFieldName() {
-
 
22758
        return _fieldName;
-
 
22759
      }
-
 
22760
    }
-
 
22761
 
-
 
22762
    // isset id assignments
-
 
22763
 
-
 
22764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22765
    static {
-
 
22766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22767
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22768
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
22769
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSanction.class))));
-
 
22770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetails_result.class, metaDataMap);
-
 
22772
    }
-
 
22773
 
-
 
22774
    public getUserSanctionDetails_result() {
-
 
22775
    }
-
 
22776
 
-
 
22777
    public getUserSanctionDetails_result(
-
 
22778
      List<UserSanction> success)
-
 
22779
    {
-
 
22780
      this();
-
 
22781
      this.success = success;
-
 
22782
    }
-
 
22783
 
-
 
22784
    /**
-
 
22785
     * Performs a deep copy on <i>other</i>.
-
 
22786
     */
-
 
22787
    public getUserSanctionDetails_result(getUserSanctionDetails_result other) {
-
 
22788
      if (other.isSetSuccess()) {
-
 
22789
        List<UserSanction> __this__success = new ArrayList<UserSanction>();
-
 
22790
        for (UserSanction other_element : other.success) {
-
 
22791
          __this__success.add(new UserSanction(other_element));
-
 
22792
        }
-
 
22793
        this.success = __this__success;
-
 
22794
      }
-
 
22795
    }
-
 
22796
 
-
 
22797
    public getUserSanctionDetails_result deepCopy() {
-
 
22798
      return new getUserSanctionDetails_result(this);
-
 
22799
    }
-
 
22800
 
-
 
22801
    @Override
-
 
22802
    public void clear() {
-
 
22803
      this.success = null;
-
 
22804
    }
-
 
22805
 
-
 
22806
    public int getSuccessSize() {
-
 
22807
      return (this.success == null) ? 0 : this.success.size();
-
 
22808
    }
-
 
22809
 
-
 
22810
    public java.util.Iterator<UserSanction> getSuccessIterator() {
-
 
22811
      return (this.success == null) ? null : this.success.iterator();
-
 
22812
    }
-
 
22813
 
-
 
22814
    public void addToSuccess(UserSanction elem) {
-
 
22815
      if (this.success == null) {
-
 
22816
        this.success = new ArrayList<UserSanction>();
-
 
22817
      }
-
 
22818
      this.success.add(elem);
-
 
22819
    }
-
 
22820
 
-
 
22821
    public List<UserSanction> getSuccess() {
-
 
22822
      return this.success;
-
 
22823
    }
-
 
22824
 
-
 
22825
    public void setSuccess(List<UserSanction> success) {
-
 
22826
      this.success = success;
-
 
22827
    }
-
 
22828
 
-
 
22829
    public void unsetSuccess() {
-
 
22830
      this.success = null;
-
 
22831
    }
-
 
22832
 
-
 
22833
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
22834
    public boolean isSetSuccess() {
-
 
22835
      return this.success != null;
-
 
22836
    }
-
 
22837
 
-
 
22838
    public void setSuccessIsSet(boolean value) {
-
 
22839
      if (!value) {
-
 
22840
        this.success = null;
-
 
22841
      }
-
 
22842
    }
-
 
22843
 
-
 
22844
    public void setFieldValue(_Fields field, Object value) {
-
 
22845
      switch (field) {
-
 
22846
      case SUCCESS:
-
 
22847
        if (value == null) {
-
 
22848
          unsetSuccess();
-
 
22849
        } else {
-
 
22850
          setSuccess((List<UserSanction>)value);
-
 
22851
        }
-
 
22852
        break;
-
 
22853
 
-
 
22854
      }
-
 
22855
    }
-
 
22856
 
-
 
22857
    public Object getFieldValue(_Fields field) {
-
 
22858
      switch (field) {
-
 
22859
      case SUCCESS:
-
 
22860
        return getSuccess();
-
 
22861
 
-
 
22862
      }
-
 
22863
      throw new IllegalStateException();
-
 
22864
    }
-
 
22865
 
-
 
22866
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22867
    public boolean isSet(_Fields field) {
-
 
22868
      if (field == null) {
-
 
22869
        throw new IllegalArgumentException();
-
 
22870
      }
-
 
22871
 
-
 
22872
      switch (field) {
-
 
22873
      case SUCCESS:
-
 
22874
        return isSetSuccess();
-
 
22875
      }
-
 
22876
      throw new IllegalStateException();
-
 
22877
    }
-
 
22878
 
-
 
22879
    @Override
-
 
22880
    public boolean equals(Object that) {
-
 
22881
      if (that == null)
-
 
22882
        return false;
-
 
22883
      if (that instanceof getUserSanctionDetails_result)
-
 
22884
        return this.equals((getUserSanctionDetails_result)that);
-
 
22885
      return false;
-
 
22886
    }
-
 
22887
 
-
 
22888
    public boolean equals(getUserSanctionDetails_result that) {
-
 
22889
      if (that == null)
-
 
22890
        return false;
-
 
22891
 
-
 
22892
      boolean this_present_success = true && this.isSetSuccess();
-
 
22893
      boolean that_present_success = true && that.isSetSuccess();
-
 
22894
      if (this_present_success || that_present_success) {
-
 
22895
        if (!(this_present_success && that_present_success))
-
 
22896
          return false;
-
 
22897
        if (!this.success.equals(that.success))
-
 
22898
          return false;
-
 
22899
      }
-
 
22900
 
-
 
22901
      return true;
-
 
22902
    }
-
 
22903
 
-
 
22904
    @Override
-
 
22905
    public int hashCode() {
-
 
22906
      return 0;
-
 
22907
    }
-
 
22908
 
-
 
22909
    public int compareTo(getUserSanctionDetails_result other) {
-
 
22910
      if (!getClass().equals(other.getClass())) {
-
 
22911
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22912
      }
-
 
22913
 
-
 
22914
      int lastComparison = 0;
-
 
22915
      getUserSanctionDetails_result typedOther = (getUserSanctionDetails_result)other;
-
 
22916
 
-
 
22917
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
22918
      if (lastComparison != 0) {
-
 
22919
        return lastComparison;
-
 
22920
      }
-
 
22921
      if (isSetSuccess()) {
-
 
22922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
22923
        if (lastComparison != 0) {
-
 
22924
          return lastComparison;
-
 
22925
        }
-
 
22926
      }
-
 
22927
      return 0;
-
 
22928
    }
-
 
22929
 
-
 
22930
    public _Fields fieldForId(int fieldId) {
-
 
22931
      return _Fields.findByThriftId(fieldId);
-
 
22932
    }
-
 
22933
 
-
 
22934
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22935
      org.apache.thrift.protocol.TField field;
-
 
22936
      iprot.readStructBegin();
-
 
22937
      while (true)
-
 
22938
      {
-
 
22939
        field = iprot.readFieldBegin();
-
 
22940
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22941
          break;
-
 
22942
        }
-
 
22943
        switch (field.id) {
-
 
22944
          case 0: // SUCCESS
-
 
22945
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
22946
              {
-
 
22947
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
-
 
22948
                this.success = new ArrayList<UserSanction>(_list48.size);
-
 
22949
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
-
 
22950
                {
-
 
22951
                  UserSanction _elem50; // required
-
 
22952
                  _elem50 = new UserSanction();
-
 
22953
                  _elem50.read(iprot);
-
 
22954
                  this.success.add(_elem50);
-
 
22955
                }
-
 
22956
                iprot.readListEnd();
-
 
22957
              }
-
 
22958
            } else { 
-
 
22959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22960
            }
-
 
22961
            break;
-
 
22962
          default:
-
 
22963
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22964
        }
-
 
22965
        iprot.readFieldEnd();
-
 
22966
      }
-
 
22967
      iprot.readStructEnd();
-
 
22968
      validate();
-
 
22969
    }
-
 
22970
 
-
 
22971
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22972
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22973
 
-
 
22974
      if (this.isSetSuccess()) {
-
 
22975
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
22976
        {
-
 
22977
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
22978
          for (UserSanction _iter51 : this.success)
-
 
22979
          {
-
 
22980
            _iter51.write(oprot);
-
 
22981
          }
-
 
22982
          oprot.writeListEnd();
-
 
22983
        }
-
 
22984
        oprot.writeFieldEnd();
-
 
22985
      }
-
 
22986
      oprot.writeFieldStop();
-
 
22987
      oprot.writeStructEnd();
-
 
22988
    }
-
 
22989
 
-
 
22990
    @Override
-
 
22991
    public String toString() {
-
 
22992
      StringBuilder sb = new StringBuilder("getUserSanctionDetails_result(");
-
 
22993
      boolean first = true;
-
 
22994
 
-
 
22995
      sb.append("success:");
-
 
22996
      if (this.success == null) {
-
 
22997
        sb.append("null");
-
 
22998
      } else {
-
 
22999
        sb.append(this.success);
-
 
23000
      }
-
 
23001
      first = false;
-
 
23002
      sb.append(")");
-
 
23003
      return sb.toString();
-
 
23004
    }
-
 
23005
 
-
 
23006
    public void validate() throws org.apache.thrift.TException {
-
 
23007
      // check for required fields
-
 
23008
    }
-
 
23009
 
-
 
23010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23011
      try {
-
 
23012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23013
      } catch (org.apache.thrift.TException te) {
-
 
23014
        throw new java.io.IOException(te);
-
 
23015
      }
-
 
23016
    }
-
 
23017
 
-
 
23018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23019
      try {
-
 
23020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23021
      } catch (org.apache.thrift.TException te) {
-
 
23022
        throw new java.io.IOException(te);
-
 
23023
      }
-
 
23024
    }
-
 
23025
 
-
 
23026
  }
-
 
23027
 
-
 
23028
  public static class getUserSanctionDetailsForCreditor_args implements org.apache.thrift.TBase<getUserSanctionDetailsForCreditor_args, getUserSanctionDetailsForCreditor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
23029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetailsForCreditor_args");
-
 
23030
 
-
 
23031
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
23032
    private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorId", org.apache.thrift.protocol.TType.I64, (short)-1);
-
 
23033
 
-
 
23034
    private long userId; // required
-
 
23035
    private long creditorId; // required
-
 
23036
 
-
 
23037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23039
      USER_ID((short)1, "userId"),
-
 
23040
      CREDITOR_ID((short)-1, "creditorId");
-
 
23041
 
-
 
23042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23043
 
-
 
23044
      static {
-
 
23045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23046
          byName.put(field.getFieldName(), field);
-
 
23047
        }
-
 
23048
      }
-
 
23049
 
-
 
23050
      /**
-
 
23051
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23052
       */
-
 
23053
      public static _Fields findByThriftId(int fieldId) {
-
 
23054
        switch(fieldId) {
-
 
23055
          case 1: // USER_ID
-
 
23056
            return USER_ID;
-
 
23057
          case -1: // CREDITOR_ID
-
 
23058
            return CREDITOR_ID;
-
 
23059
          default:
-
 
23060
            return null;
-
 
23061
        }
-
 
23062
      }
-
 
23063
 
-
 
23064
      /**
-
 
23065
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23066
       * if it is not found.
-
 
23067
       */
-
 
23068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23069
        _Fields fields = findByThriftId(fieldId);
-
 
23070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23071
        return fields;
-
 
23072
      }
-
 
23073
 
-
 
23074
      /**
-
 
23075
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23076
       */
-
 
23077
      public static _Fields findByName(String name) {
-
 
23078
        return byName.get(name);
-
 
23079
      }
-
 
23080
 
-
 
23081
      private final short _thriftId;
-
 
23082
      private final String _fieldName;
-
 
23083
 
-
 
23084
      _Fields(short thriftId, String fieldName) {
-
 
23085
        _thriftId = thriftId;
-
 
23086
        _fieldName = fieldName;
-
 
23087
      }
-
 
23088
 
-
 
23089
      public short getThriftFieldId() {
-
 
23090
        return _thriftId;
-
 
23091
      }
-
 
23092
 
-
 
23093
      public String getFieldName() {
-
 
23094
        return _fieldName;
-
 
23095
      }
-
 
23096
    }
-
 
23097
 
-
 
23098
    // isset id assignments
-
 
23099
    private static final int __USERID_ISSET_ID = 0;
-
 
23100
    private static final int __CREDITORID_ISSET_ID = 1;
-
 
23101
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
23102
 
-
 
23103
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23104
    static {
-
 
23105
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23106
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23108
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23109
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23110
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23111
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetailsForCreditor_args.class, metaDataMap);
-
 
23112
    }
-
 
23113
 
-
 
23114
    public getUserSanctionDetailsForCreditor_args() {
-
 
23115
    }
-
 
23116
 
-
 
23117
    public getUserSanctionDetailsForCreditor_args(
-
 
23118
      long userId,
-
 
23119
      long creditorId)
-
 
23120
    {
-
 
23121
      this();
-
 
23122
      this.userId = userId;
-
 
23123
      setUserIdIsSet(true);
-
 
23124
      this.creditorId = creditorId;
-
 
23125
      setCreditorIdIsSet(true);
-
 
23126
    }
-
 
23127
 
-
 
23128
    /**
-
 
23129
     * Performs a deep copy on <i>other</i>.
-
 
23130
     */
-
 
23131
    public getUserSanctionDetailsForCreditor_args(getUserSanctionDetailsForCreditor_args other) {
-
 
23132
      __isset_bit_vector.clear();
-
 
23133
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
23134
      this.userId = other.userId;
-
 
23135
      this.creditorId = other.creditorId;
-
 
23136
    }
-
 
23137
 
-
 
23138
    public getUserSanctionDetailsForCreditor_args deepCopy() {
-
 
23139
      return new getUserSanctionDetailsForCreditor_args(this);
-
 
23140
    }
-
 
23141
 
-
 
23142
    @Override
-
 
23143
    public void clear() {
-
 
23144
      setUserIdIsSet(false);
-
 
23145
      this.userId = 0;
-
 
23146
      setCreditorIdIsSet(false);
-
 
23147
      this.creditorId = 0;
-
 
23148
    }
-
 
23149
 
-
 
23150
    public long getUserId() {
-
 
23151
      return this.userId;
-
 
23152
    }
-
 
23153
 
-
 
23154
    public void setUserId(long userId) {
-
 
23155
      this.userId = userId;
-
 
23156
      setUserIdIsSet(true);
-
 
23157
    }
-
 
23158
 
-
 
23159
    public void unsetUserId() {
-
 
23160
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
23161
    }
-
 
23162
 
-
 
23163
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
23164
    public boolean isSetUserId() {
-
 
23165
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
23166
    }
-
 
23167
 
-
 
23168
    public void setUserIdIsSet(boolean value) {
-
 
23169
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
23170
    }
-
 
23171
 
-
 
23172
    public long getCreditorId() {
-
 
23173
      return this.creditorId;
-
 
23174
    }
-
 
23175
 
-
 
23176
    public void setCreditorId(long creditorId) {
-
 
23177
      this.creditorId = creditorId;
-
 
23178
      setCreditorIdIsSet(true);
-
 
23179
    }
-
 
23180
 
-
 
23181
    public void unsetCreditorId() {
-
 
23182
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
23183
    }
-
 
23184
 
-
 
23185
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
23186
    public boolean isSetCreditorId() {
-
 
23187
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
23188
    }
-
 
23189
 
-
 
23190
    public void setCreditorIdIsSet(boolean value) {
-
 
23191
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
23192
    }
-
 
23193
 
-
 
23194
    public void setFieldValue(_Fields field, Object value) {
-
 
23195
      switch (field) {
-
 
23196
      case USER_ID:
-
 
23197
        if (value == null) {
-
 
23198
          unsetUserId();
-
 
23199
        } else {
-
 
23200
          setUserId((Long)value);
-
 
23201
        }
-
 
23202
        break;
-
 
23203
 
-
 
23204
      case CREDITOR_ID:
-
 
23205
        if (value == null) {
-
 
23206
          unsetCreditorId();
-
 
23207
        } else {
-
 
23208
          setCreditorId((Long)value);
-
 
23209
        }
-
 
23210
        break;
-
 
23211
 
-
 
23212
      }
-
 
23213
    }
-
 
23214
 
-
 
23215
    public Object getFieldValue(_Fields field) {
-
 
23216
      switch (field) {
-
 
23217
      case USER_ID:
-
 
23218
        return Long.valueOf(getUserId());
-
 
23219
 
-
 
23220
      case CREDITOR_ID:
-
 
23221
        return Long.valueOf(getCreditorId());
-
 
23222
 
-
 
23223
      }
-
 
23224
      throw new IllegalStateException();
-
 
23225
    }
-
 
23226
 
-
 
23227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23228
    public boolean isSet(_Fields field) {
-
 
23229
      if (field == null) {
-
 
23230
        throw new IllegalArgumentException();
-
 
23231
      }
-
 
23232
 
-
 
23233
      switch (field) {
-
 
23234
      case USER_ID:
-
 
23235
        return isSetUserId();
-
 
23236
      case CREDITOR_ID:
-
 
23237
        return isSetCreditorId();
-
 
23238
      }
-
 
23239
      throw new IllegalStateException();
-
 
23240
    }
-
 
23241
 
-
 
23242
    @Override
-
 
23243
    public boolean equals(Object that) {
-
 
23244
      if (that == null)
-
 
23245
        return false;
-
 
23246
      if (that instanceof getUserSanctionDetailsForCreditor_args)
-
 
23247
        return this.equals((getUserSanctionDetailsForCreditor_args)that);
-
 
23248
      return false;
-
 
23249
    }
-
 
23250
 
-
 
23251
    public boolean equals(getUserSanctionDetailsForCreditor_args that) {
-
 
23252
      if (that == null)
-
 
23253
        return false;
-
 
23254
 
-
 
23255
      boolean this_present_userId = true;
-
 
23256
      boolean that_present_userId = true;
-
 
23257
      if (this_present_userId || that_present_userId) {
-
 
23258
        if (!(this_present_userId && that_present_userId))
-
 
23259
          return false;
-
 
23260
        if (this.userId != that.userId)
-
 
23261
          return false;
-
 
23262
      }
-
 
23263
 
-
 
23264
      boolean this_present_creditorId = true;
-
 
23265
      boolean that_present_creditorId = true;
-
 
23266
      if (this_present_creditorId || that_present_creditorId) {
-
 
23267
        if (!(this_present_creditorId && that_present_creditorId))
-
 
23268
          return false;
-
 
23269
        if (this.creditorId != that.creditorId)
-
 
23270
          return false;
-
 
23271
      }
-
 
23272
 
-
 
23273
      return true;
-
 
23274
    }
-
 
23275
 
-
 
23276
    @Override
-
 
23277
    public int hashCode() {
-
 
23278
      return 0;
-
 
23279
    }
-
 
23280
 
-
 
23281
    public int compareTo(getUserSanctionDetailsForCreditor_args other) {
-
 
23282
      if (!getClass().equals(other.getClass())) {
-
 
23283
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23284
      }
-
 
23285
 
-
 
23286
      int lastComparison = 0;
-
 
23287
      getUserSanctionDetailsForCreditor_args typedOther = (getUserSanctionDetailsForCreditor_args)other;
-
 
23288
 
-
 
23289
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
23290
      if (lastComparison != 0) {
-
 
23291
        return lastComparison;
-
 
23292
      }
-
 
23293
      if (isSetUserId()) {
-
 
23294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
23295
        if (lastComparison != 0) {
-
 
23296
          return lastComparison;
-
 
23297
        }
-
 
23298
      }
-
 
23299
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
23300
      if (lastComparison != 0) {
-
 
23301
        return lastComparison;
-
 
23302
      }
-
 
23303
      if (isSetCreditorId()) {
-
 
23304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
23305
        if (lastComparison != 0) {
-
 
23306
          return lastComparison;
-
 
23307
        }
-
 
23308
      }
-
 
23309
      return 0;
-
 
23310
    }
-
 
23311
 
-
 
23312
    public _Fields fieldForId(int fieldId) {
-
 
23313
      return _Fields.findByThriftId(fieldId);
-
 
23314
    }
-
 
23315
 
-
 
23316
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23317
      org.apache.thrift.protocol.TField field;
-
 
23318
      iprot.readStructBegin();
-
 
23319
      while (true)
-
 
23320
      {
-
 
23321
        field = iprot.readFieldBegin();
-
 
23322
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23323
          break;
-
 
23324
        }
-
 
23325
        switch (field.id) {
-
 
23326
          case 1: // USER_ID
-
 
23327
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23328
              this.userId = iprot.readI64();
-
 
23329
              setUserIdIsSet(true);
-
 
23330
            } else { 
-
 
23331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23332
            }
-
 
23333
            break;
-
 
23334
          case -1: // CREDITOR_ID
-
 
23335
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23336
              this.creditorId = iprot.readI64();
-
 
23337
              setCreditorIdIsSet(true);
-
 
23338
            } else { 
-
 
23339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23340
            }
-
 
23341
            break;
-
 
23342
          default:
-
 
23343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23344
        }
-
 
23345
        iprot.readFieldEnd();
-
 
23346
      }
-
 
23347
      iprot.readStructEnd();
-
 
23348
      validate();
-
 
23349
    }
-
 
23350
 
-
 
23351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23352
      validate();
-
 
23353
 
-
 
23354
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23355
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
23356
      oprot.writeI64(this.creditorId);
-
 
23357
      oprot.writeFieldEnd();
-
 
23358
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
23359
      oprot.writeI64(this.userId);
-
 
23360
      oprot.writeFieldEnd();
-
 
23361
      oprot.writeFieldStop();
-
 
23362
      oprot.writeStructEnd();
-
 
23363
    }
-
 
23364
 
-
 
23365
    @Override
-
 
23366
    public String toString() {
-
 
23367
      StringBuilder sb = new StringBuilder("getUserSanctionDetailsForCreditor_args(");
-
 
23368
      boolean first = true;
-
 
23369
 
-
 
23370
      sb.append("userId:");
-
 
23371
      sb.append(this.userId);
-
 
23372
      first = false;
-
 
23373
      if (!first) sb.append(", ");
-
 
23374
      sb.append("creditorId:");
-
 
23375
      sb.append(this.creditorId);
-
 
23376
      first = false;
-
 
23377
      sb.append(")");
-
 
23378
      return sb.toString();
-
 
23379
    }
-
 
23380
 
-
 
23381
    public void validate() throws org.apache.thrift.TException {
-
 
23382
      // check for required fields
-
 
23383
    }
-
 
23384
 
-
 
23385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23386
      try {
-
 
23387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23388
      } catch (org.apache.thrift.TException te) {
-
 
23389
        throw new java.io.IOException(te);
-
 
23390
      }
-
 
23391
    }
-
 
23392
 
-
 
23393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23394
      try {
-
 
23395
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
23396
        __isset_bit_vector = new BitSet(1);
-
 
23397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23398
      } catch (org.apache.thrift.TException te) {
-
 
23399
        throw new java.io.IOException(te);
-
 
23400
      }
-
 
23401
    }
-
 
23402
 
-
 
23403
  }
-
 
23404
 
-
 
23405
  public static class getUserSanctionDetailsForCreditor_result implements org.apache.thrift.TBase<getUserSanctionDetailsForCreditor_result, getUserSanctionDetailsForCreditor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
23406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetailsForCreditor_result");
-
 
23407
 
-
 
23408
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
23409
 
-
 
23410
    private UserSanction success; // required
-
 
23411
 
-
 
23412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23414
      SUCCESS((short)0, "success");
-
 
23415
 
-
 
23416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23417
 
-
 
23418
      static {
-
 
23419
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23420
          byName.put(field.getFieldName(), field);
-
 
23421
        }
-
 
23422
      }
-
 
23423
 
-
 
23424
      /**
-
 
23425
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23426
       */
-
 
23427
      public static _Fields findByThriftId(int fieldId) {
-
 
23428
        switch(fieldId) {
-
 
23429
          case 0: // SUCCESS
-
 
23430
            return SUCCESS;
-
 
23431
          default:
-
 
23432
            return null;
-
 
23433
        }
-
 
23434
      }
-
 
23435
 
-
 
23436
      /**
-
 
23437
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23438
       * if it is not found.
-
 
23439
       */
-
 
23440
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23441
        _Fields fields = findByThriftId(fieldId);
-
 
23442
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23443
        return fields;
-
 
23444
      }
-
 
23445
 
-
 
23446
      /**
-
 
23447
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23448
       */
-
 
23449
      public static _Fields findByName(String name) {
-
 
23450
        return byName.get(name);
-
 
23451
      }
-
 
23452
 
-
 
23453
      private final short _thriftId;
-
 
23454
      private final String _fieldName;
-
 
23455
 
-
 
23456
      _Fields(short thriftId, String fieldName) {
-
 
23457
        _thriftId = thriftId;
-
 
23458
        _fieldName = fieldName;
-
 
23459
      }
-
 
23460
 
-
 
23461
      public short getThriftFieldId() {
-
 
23462
        return _thriftId;
-
 
23463
      }
-
 
23464
 
-
 
23465
      public String getFieldName() {
-
 
23466
        return _fieldName;
-
 
23467
      }
-
 
23468
    }
-
 
23469
 
-
 
23470
    // isset id assignments
-
 
23471
 
-
 
23472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23473
    static {
-
 
23474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23475
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23476
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSanction.class)));
-
 
23477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetailsForCreditor_result.class, metaDataMap);
-
 
23479
    }
-
 
23480
 
-
 
23481
    public getUserSanctionDetailsForCreditor_result() {
-
 
23482
    }
-
 
23483
 
-
 
23484
    public getUserSanctionDetailsForCreditor_result(
-
 
23485
      UserSanction success)
-
 
23486
    {
-
 
23487
      this();
-
 
23488
      this.success = success;
-
 
23489
    }
-
 
23490
 
-
 
23491
    /**
-
 
23492
     * Performs a deep copy on <i>other</i>.
-
 
23493
     */
-
 
23494
    public getUserSanctionDetailsForCreditor_result(getUserSanctionDetailsForCreditor_result other) {
-
 
23495
      if (other.isSetSuccess()) {
-
 
23496
        this.success = new UserSanction(other.success);
-
 
23497
      }
-
 
23498
    }
-
 
23499
 
-
 
23500
    public getUserSanctionDetailsForCreditor_result deepCopy() {
-
 
23501
      return new getUserSanctionDetailsForCreditor_result(this);
-
 
23502
    }
-
 
23503
 
-
 
23504
    @Override
-
 
23505
    public void clear() {
-
 
23506
      this.success = null;
-
 
23507
    }
-
 
23508
 
-
 
23509
    public UserSanction getSuccess() {
-
 
23510
      return this.success;
-
 
23511
    }
-
 
23512
 
-
 
23513
    public void setSuccess(UserSanction success) {
-
 
23514
      this.success = success;
-
 
23515
    }
-
 
23516
 
-
 
23517
    public void unsetSuccess() {
-
 
23518
      this.success = null;
-
 
23519
    }
-
 
23520
 
-
 
23521
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
23522
    public boolean isSetSuccess() {
-
 
23523
      return this.success != null;
-
 
23524
    }
-
 
23525
 
-
 
23526
    public void setSuccessIsSet(boolean value) {
-
 
23527
      if (!value) {
-
 
23528
        this.success = null;
-
 
23529
      }
-
 
23530
    }
-
 
23531
 
-
 
23532
    public void setFieldValue(_Fields field, Object value) {
-
 
23533
      switch (field) {
-
 
23534
      case SUCCESS:
-
 
23535
        if (value == null) {
-
 
23536
          unsetSuccess();
-
 
23537
        } else {
-
 
23538
          setSuccess((UserSanction)value);
-
 
23539
        }
-
 
23540
        break;
-
 
23541
 
-
 
23542
      }
-
 
23543
    }
-
 
23544
 
-
 
23545
    public Object getFieldValue(_Fields field) {
-
 
23546
      switch (field) {
-
 
23547
      case SUCCESS:
-
 
23548
        return getSuccess();
-
 
23549
 
-
 
23550
      }
-
 
23551
      throw new IllegalStateException();
-
 
23552
    }
-
 
23553
 
-
 
23554
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23555
    public boolean isSet(_Fields field) {
-
 
23556
      if (field == null) {
-
 
23557
        throw new IllegalArgumentException();
-
 
23558
      }
-
 
23559
 
-
 
23560
      switch (field) {
-
 
23561
      case SUCCESS:
-
 
23562
        return isSetSuccess();
-
 
23563
      }
-
 
23564
      throw new IllegalStateException();
-
 
23565
    }
-
 
23566
 
-
 
23567
    @Override
-
 
23568
    public boolean equals(Object that) {
-
 
23569
      if (that == null)
-
 
23570
        return false;
-
 
23571
      if (that instanceof getUserSanctionDetailsForCreditor_result)
-
 
23572
        return this.equals((getUserSanctionDetailsForCreditor_result)that);
-
 
23573
      return false;
-
 
23574
    }
-
 
23575
 
-
 
23576
    public boolean equals(getUserSanctionDetailsForCreditor_result that) {
-
 
23577
      if (that == null)
-
 
23578
        return false;
-
 
23579
 
-
 
23580
      boolean this_present_success = true && this.isSetSuccess();
-
 
23581
      boolean that_present_success = true && that.isSetSuccess();
-
 
23582
      if (this_present_success || that_present_success) {
-
 
23583
        if (!(this_present_success && that_present_success))
-
 
23584
          return false;
-
 
23585
        if (!this.success.equals(that.success))
-
 
23586
          return false;
-
 
23587
      }
-
 
23588
 
-
 
23589
      return true;
-
 
23590
    }
-
 
23591
 
-
 
23592
    @Override
-
 
23593
    public int hashCode() {
-
 
23594
      return 0;
-
 
23595
    }
-
 
23596
 
-
 
23597
    public int compareTo(getUserSanctionDetailsForCreditor_result other) {
-
 
23598
      if (!getClass().equals(other.getClass())) {
-
 
23599
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23600
      }
-
 
23601
 
-
 
23602
      int lastComparison = 0;
-
 
23603
      getUserSanctionDetailsForCreditor_result typedOther = (getUserSanctionDetailsForCreditor_result)other;
-
 
23604
 
-
 
23605
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
23606
      if (lastComparison != 0) {
-
 
23607
        return lastComparison;
-
 
23608
      }
-
 
23609
      if (isSetSuccess()) {
-
 
23610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
23611
        if (lastComparison != 0) {
-
 
23612
          return lastComparison;
-
 
23613
        }
-
 
23614
      }
-
 
23615
      return 0;
-
 
23616
    }
-
 
23617
 
-
 
23618
    public _Fields fieldForId(int fieldId) {
-
 
23619
      return _Fields.findByThriftId(fieldId);
-
 
23620
    }
-
 
23621
 
-
 
23622
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23623
      org.apache.thrift.protocol.TField field;
-
 
23624
      iprot.readStructBegin();
-
 
23625
      while (true)
-
 
23626
      {
-
 
23627
        field = iprot.readFieldBegin();
-
 
23628
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23629
          break;
-
 
23630
        }
-
 
23631
        switch (field.id) {
-
 
23632
          case 0: // SUCCESS
-
 
23633
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
23634
              this.success = new UserSanction();
-
 
23635
              this.success.read(iprot);
-
 
23636
            } else { 
-
 
23637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23638
            }
-
 
23639
            break;
-
 
23640
          default:
-
 
23641
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23642
        }
-
 
23643
        iprot.readFieldEnd();
-
 
23644
      }
-
 
23645
      iprot.readStructEnd();
-
 
23646
      validate();
-
 
23647
    }
-
 
23648
 
-
 
23649
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23650
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23651
 
-
 
23652
      if (this.isSetSuccess()) {
-
 
23653
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
23654
        this.success.write(oprot);
-
 
23655
        oprot.writeFieldEnd();
-
 
23656
      }
-
 
23657
      oprot.writeFieldStop();
-
 
23658
      oprot.writeStructEnd();
-
 
23659
    }
-
 
23660
 
-
 
23661
    @Override
-
 
23662
    public String toString() {
-
 
23663
      StringBuilder sb = new StringBuilder("getUserSanctionDetailsForCreditor_result(");
-
 
23664
      boolean first = true;
-
 
23665
 
-
 
23666
      sb.append("success:");
-
 
23667
      if (this.success == null) {
-
 
23668
        sb.append("null");
-
 
23669
      } else {
-
 
23670
        sb.append(this.success);
-
 
23671
      }
-
 
23672
      first = false;
-
 
23673
      sb.append(")");
-
 
23674
      return sb.toString();
-
 
23675
    }
-
 
23676
 
-
 
23677
    public void validate() throws org.apache.thrift.TException {
-
 
23678
      // check for required fields
-
 
23679
    }
-
 
23680
 
-
 
23681
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23682
      try {
-
 
23683
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23684
      } catch (org.apache.thrift.TException te) {
-
 
23685
        throw new java.io.IOException(te);
-
 
23686
      }
-
 
23687
    }
-
 
23688
 
-
 
23689
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23690
      try {
-
 
23691
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23692
      } catch (org.apache.thrift.TException te) {
-
 
23693
        throw new java.io.IOException(te);
-
 
23694
      }
-
 
23695
    }
-
 
23696
 
-
 
23697
  }
-
 
23698
 
-
 
23699
  public static class updateUserSanction_args implements org.apache.thrift.TBase<updateUserSanction_args, updateUserSanction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
23700
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSanction_args");
-
 
23701
 
-
 
23702
    private static final org.apache.thrift.protocol.TField USER_SANACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("userSanaction", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
23703
 
-
 
23704
    private UserSanction userSanaction; // required
-
 
23705
 
-
 
23706
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23707
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23708
      USER_SANACTION((short)1, "userSanaction");
-
 
23709
 
-
 
23710
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23711
 
-
 
23712
      static {
-
 
23713
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23714
          byName.put(field.getFieldName(), field);
-
 
23715
        }
-
 
23716
      }
-
 
23717
 
-
 
23718
      /**
-
 
23719
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23720
       */
-
 
23721
      public static _Fields findByThriftId(int fieldId) {
-
 
23722
        switch(fieldId) {
-
 
23723
          case 1: // USER_SANACTION
-
 
23724
            return USER_SANACTION;
-
 
23725
          default:
-
 
23726
            return null;
-
 
23727
        }
-
 
23728
      }
-
 
23729
 
-
 
23730
      /**
-
 
23731
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23732
       * if it is not found.
-
 
23733
       */
-
 
23734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23735
        _Fields fields = findByThriftId(fieldId);
-
 
23736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23737
        return fields;
-
 
23738
      }
-
 
23739
 
-
 
23740
      /**
-
 
23741
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23742
       */
-
 
23743
      public static _Fields findByName(String name) {
-
 
23744
        return byName.get(name);
-
 
23745
      }
-
 
23746
 
-
 
23747
      private final short _thriftId;
-
 
23748
      private final String _fieldName;
-
 
23749
 
-
 
23750
      _Fields(short thriftId, String fieldName) {
-
 
23751
        _thriftId = thriftId;
-
 
23752
        _fieldName = fieldName;
-
 
23753
      }
-
 
23754
 
-
 
23755
      public short getThriftFieldId() {
-
 
23756
        return _thriftId;
-
 
23757
      }
-
 
23758
 
-
 
23759
      public String getFieldName() {
-
 
23760
        return _fieldName;
-
 
23761
      }
-
 
23762
    }
-
 
23763
 
-
 
23764
    // isset id assignments
-
 
23765
 
-
 
23766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23767
    static {
-
 
23768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23769
      tmpMap.put(_Fields.USER_SANACTION, new org.apache.thrift.meta_data.FieldMetaData("userSanaction", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23770
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSanction.class)));
-
 
23771
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23772
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSanction_args.class, metaDataMap);
-
 
23773
    }
-
 
23774
 
-
 
23775
    public updateUserSanction_args() {
-
 
23776
    }
-
 
23777
 
-
 
23778
    public updateUserSanction_args(
-
 
23779
      UserSanction userSanaction)
-
 
23780
    {
-
 
23781
      this();
-
 
23782
      this.userSanaction = userSanaction;
-
 
23783
    }
-
 
23784
 
-
 
23785
    /**
-
 
23786
     * Performs a deep copy on <i>other</i>.
-
 
23787
     */
-
 
23788
    public updateUserSanction_args(updateUserSanction_args other) {
-
 
23789
      if (other.isSetUserSanaction()) {
-
 
23790
        this.userSanaction = new UserSanction(other.userSanaction);
-
 
23791
      }
-
 
23792
    }
-
 
23793
 
-
 
23794
    public updateUserSanction_args deepCopy() {
-
 
23795
      return new updateUserSanction_args(this);
-
 
23796
    }
-
 
23797
 
-
 
23798
    @Override
-
 
23799
    public void clear() {
-
 
23800
      this.userSanaction = null;
-
 
23801
    }
-
 
23802
 
-
 
23803
    public UserSanction getUserSanaction() {
-
 
23804
      return this.userSanaction;
-
 
23805
    }
-
 
23806
 
-
 
23807
    public void setUserSanaction(UserSanction userSanaction) {
-
 
23808
      this.userSanaction = userSanaction;
-
 
23809
    }
-
 
23810
 
-
 
23811
    public void unsetUserSanaction() {
-
 
23812
      this.userSanaction = null;
-
 
23813
    }
-
 
23814
 
-
 
23815
    /** Returns true if field userSanaction is set (has been assigned a value) and false otherwise */
-
 
23816
    public boolean isSetUserSanaction() {
-
 
23817
      return this.userSanaction != null;
-
 
23818
    }
-
 
23819
 
-
 
23820
    public void setUserSanactionIsSet(boolean value) {
-
 
23821
      if (!value) {
-
 
23822
        this.userSanaction = null;
-
 
23823
      }
-
 
23824
    }
-
 
23825
 
-
 
23826
    public void setFieldValue(_Fields field, Object value) {
-
 
23827
      switch (field) {
-
 
23828
      case USER_SANACTION:
-
 
23829
        if (value == null) {
-
 
23830
          unsetUserSanaction();
-
 
23831
        } else {
-
 
23832
          setUserSanaction((UserSanction)value);
-
 
23833
        }
-
 
23834
        break;
-
 
23835
 
-
 
23836
      }
-
 
23837
    }
-
 
23838
 
-
 
23839
    public Object getFieldValue(_Fields field) {
-
 
23840
      switch (field) {
-
 
23841
      case USER_SANACTION:
-
 
23842
        return getUserSanaction();
-
 
23843
 
-
 
23844
      }
-
 
23845
      throw new IllegalStateException();
-
 
23846
    }
-
 
23847
 
-
 
23848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23849
    public boolean isSet(_Fields field) {
-
 
23850
      if (field == null) {
-
 
23851
        throw new IllegalArgumentException();
-
 
23852
      }
-
 
23853
 
-
 
23854
      switch (field) {
-
 
23855
      case USER_SANACTION:
-
 
23856
        return isSetUserSanaction();
-
 
23857
      }
-
 
23858
      throw new IllegalStateException();
-
 
23859
    }
-
 
23860
 
-
 
23861
    @Override
-
 
23862
    public boolean equals(Object that) {
-
 
23863
      if (that == null)
-
 
23864
        return false;
-
 
23865
      if (that instanceof updateUserSanction_args)
-
 
23866
        return this.equals((updateUserSanction_args)that);
-
 
23867
      return false;
-
 
23868
    }
-
 
23869
 
-
 
23870
    public boolean equals(updateUserSanction_args that) {
-
 
23871
      if (that == null)
-
 
23872
        return false;
-
 
23873
 
-
 
23874
      boolean this_present_userSanaction = true && this.isSetUserSanaction();
-
 
23875
      boolean that_present_userSanaction = true && that.isSetUserSanaction();
-
 
23876
      if (this_present_userSanaction || that_present_userSanaction) {
-
 
23877
        if (!(this_present_userSanaction && that_present_userSanaction))
-
 
23878
          return false;
-
 
23879
        if (!this.userSanaction.equals(that.userSanaction))
-
 
23880
          return false;
-
 
23881
      }
-
 
23882
 
-
 
23883
      return true;
-
 
23884
    }
-
 
23885
 
-
 
23886
    @Override
-
 
23887
    public int hashCode() {
-
 
23888
      return 0;
-
 
23889
    }
-
 
23890
 
-
 
23891
    public int compareTo(updateUserSanction_args other) {
-
 
23892
      if (!getClass().equals(other.getClass())) {
-
 
23893
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23894
      }
-
 
23895
 
-
 
23896
      int lastComparison = 0;
-
 
23897
      updateUserSanction_args typedOther = (updateUserSanction_args)other;
-
 
23898
 
-
 
23899
      lastComparison = Boolean.valueOf(isSetUserSanaction()).compareTo(typedOther.isSetUserSanaction());
-
 
23900
      if (lastComparison != 0) {
-
 
23901
        return lastComparison;
-
 
23902
      }
-
 
23903
      if (isSetUserSanaction()) {
-
 
23904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSanaction, typedOther.userSanaction);
-
 
23905
        if (lastComparison != 0) {
-
 
23906
          return lastComparison;
-
 
23907
        }
-
 
23908
      }
-
 
23909
      return 0;
-
 
23910
    }
-
 
23911
 
-
 
23912
    public _Fields fieldForId(int fieldId) {
-
 
23913
      return _Fields.findByThriftId(fieldId);
-
 
23914
    }
-
 
23915
 
-
 
23916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23917
      org.apache.thrift.protocol.TField field;
-
 
23918
      iprot.readStructBegin();
-
 
23919
      while (true)
-
 
23920
      {
-
 
23921
        field = iprot.readFieldBegin();
-
 
23922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23923
          break;
-
 
23924
        }
-
 
23925
        switch (field.id) {
-
 
23926
          case 1: // USER_SANACTION
-
 
23927
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
23928
              this.userSanaction = new UserSanction();
-
 
23929
              this.userSanaction.read(iprot);
-
 
23930
            } else { 
-
 
23931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23932
            }
-
 
23933
            break;
-
 
23934
          default:
-
 
23935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23936
        }
-
 
23937
        iprot.readFieldEnd();
-
 
23938
      }
-
 
23939
      iprot.readStructEnd();
-
 
23940
      validate();
-
 
23941
    }
-
 
23942
 
-
 
23943
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23944
      validate();
-
 
23945
 
-
 
23946
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23947
      if (this.userSanaction != null) {
-
 
23948
        oprot.writeFieldBegin(USER_SANACTION_FIELD_DESC);
-
 
23949
        this.userSanaction.write(oprot);
-
 
23950
        oprot.writeFieldEnd();
-
 
23951
      }
-
 
23952
      oprot.writeFieldStop();
-
 
23953
      oprot.writeStructEnd();
-
 
23954
    }
-
 
23955
 
-
 
23956
    @Override
-
 
23957
    public String toString() {
-
 
23958
      StringBuilder sb = new StringBuilder("updateUserSanction_args(");
-
 
23959
      boolean first = true;
-
 
23960
 
-
 
23961
      sb.append("userSanaction:");
-
 
23962
      if (this.userSanaction == null) {
-
 
23963
        sb.append("null");
-
 
23964
      } else {
-
 
23965
        sb.append(this.userSanaction);
-
 
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 updateUserSanction_result implements org.apache.thrift.TBase<updateUserSanction_result, updateUserSanction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
23995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSanction_result");
-
 
23996
 
-
 
23997
    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);
-
 
23998
    private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
23999
 
-
 
24000
    private boolean success; // required
-
 
24001
    private PaymentException pe; // required
-
 
24002
 
-
 
24003
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24004
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
24005
      SUCCESS((short)0, "success"),
-
 
24006
      PE((short)1, "pe");
-
 
24007
 
-
 
24008
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24009
 
-
 
24010
      static {
-
 
24011
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24012
          byName.put(field.getFieldName(), field);
-
 
24013
        }
-
 
24014
      }
-
 
24015
 
-
 
24016
      /**
-
 
24017
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24018
       */
-
 
24019
      public static _Fields findByThriftId(int fieldId) {
-
 
24020
        switch(fieldId) {
-
 
24021
          case 0: // SUCCESS
-
 
24022
            return SUCCESS;
-
 
24023
          case 1: // PE
-
 
24024
            return PE;
-
 
24025
          default:
-
 
24026
            return null;
-
 
24027
        }
-
 
24028
      }
-
 
24029
 
-
 
24030
      /**
-
 
24031
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24032
       * if it is not found.
-
 
24033
       */
-
 
24034
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24035
        _Fields fields = findByThriftId(fieldId);
-
 
24036
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24037
        return fields;
-
 
24038
      }
-
 
24039
 
-
 
24040
      /**
-
 
24041
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24042
       */
-
 
24043
      public static _Fields findByName(String name) {
-
 
24044
        return byName.get(name);
-
 
24045
      }
-
 
24046
 
-
 
24047
      private final short _thriftId;
-
 
24048
      private final String _fieldName;
-
 
24049
 
-
 
24050
      _Fields(short thriftId, String fieldName) {
-
 
24051
        _thriftId = thriftId;
-
 
24052
        _fieldName = fieldName;
-
 
24053
      }
-
 
24054
 
-
 
24055
      public short getThriftFieldId() {
-
 
24056
        return _thriftId;
-
 
24057
      }
-
 
24058
 
-
 
24059
      public String getFieldName() {
-
 
24060
        return _fieldName;
-
 
24061
      }
-
 
24062
    }
-
 
24063
 
-
 
24064
    // isset id assignments
-
 
24065
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
24066
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
24067
 
-
 
24068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
24069
    static {
-
 
24070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
24071
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
24073
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
24075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
24076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSanction_result.class, metaDataMap);
-
 
24077
    }
-
 
24078
 
-
 
24079
    public updateUserSanction_result() {
-
 
24080
    }
-
 
24081
 
-
 
24082
    public updateUserSanction_result(
-
 
24083
      boolean success,
-
 
24084
      PaymentException pe)
-
 
24085
    {
-
 
24086
      this();
-
 
24087
      this.success = success;
-
 
24088
      setSuccessIsSet(true);
-
 
24089
      this.pe = pe;
-
 
24090
    }
-
 
24091
 
-
 
24092
    /**
-
 
24093
     * Performs a deep copy on <i>other</i>.
-
 
24094
     */
-
 
24095
    public updateUserSanction_result(updateUserSanction_result other) {
-
 
24096
      __isset_bit_vector.clear();
-
 
24097
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
24098
      this.success = other.success;
-
 
24099
      if (other.isSetPe()) {
-
 
24100
        this.pe = new PaymentException(other.pe);
-
 
24101
      }
-
 
24102
    }
-
 
24103
 
-
 
24104
    public updateUserSanction_result deepCopy() {
-
 
24105
      return new updateUserSanction_result(this);
-
 
24106
    }
-
 
24107
 
-
 
24108
    @Override
-
 
24109
    public void clear() {
-
 
24110
      setSuccessIsSet(false);
-
 
24111
      this.success = false;
-
 
24112
      this.pe = null;
-
 
24113
    }
-
 
24114
 
-
 
24115
    public boolean isSuccess() {
-
 
24116
      return this.success;
-
 
24117
    }
-
 
24118
 
-
 
24119
    public void setSuccess(boolean success) {
-
 
24120
      this.success = success;
-
 
24121
      setSuccessIsSet(true);
-
 
24122
    }
-
 
24123
 
-
 
24124
    public void unsetSuccess() {
-
 
24125
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
24126
    }
-
 
24127
 
-
 
24128
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
24129
    public boolean isSetSuccess() {
-
 
24130
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
24131
    }
-
 
24132
 
-
 
24133
    public void setSuccessIsSet(boolean value) {
-
 
24134
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
24135
    }
-
 
24136
 
-
 
24137
    public PaymentException getPe() {
-
 
24138
      return this.pe;
-
 
24139
    }
-
 
24140
 
-
 
24141
    public void setPe(PaymentException pe) {
-
 
24142
      this.pe = pe;
-
 
24143
    }
-
 
24144
 
-
 
24145
    public void unsetPe() {
-
 
24146
      this.pe = null;
-
 
24147
    }
-
 
24148
 
-
 
24149
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
24150
    public boolean isSetPe() {
-
 
24151
      return this.pe != null;
-
 
24152
    }
-
 
24153
 
-
 
24154
    public void setPeIsSet(boolean value) {
-
 
24155
      if (!value) {
-
 
24156
        this.pe = null;
-
 
24157
      }
-
 
24158
    }
-
 
24159
 
-
 
24160
    public void setFieldValue(_Fields field, Object value) {
-
 
24161
      switch (field) {
-
 
24162
      case SUCCESS:
-
 
24163
        if (value == null) {
-
 
24164
          unsetSuccess();
-
 
24165
        } else {
-
 
24166
          setSuccess((Boolean)value);
-
 
24167
        }
-
 
24168
        break;
-
 
24169
 
-
 
24170
      case PE:
-
 
24171
        if (value == null) {
-
 
24172
          unsetPe();
-
 
24173
        } else {
-
 
24174
          setPe((PaymentException)value);
-
 
24175
        }
-
 
24176
        break;
-
 
24177
 
-
 
24178
      }
-
 
24179
    }
-
 
24180
 
-
 
24181
    public Object getFieldValue(_Fields field) {
-
 
24182
      switch (field) {
-
 
24183
      case SUCCESS:
-
 
24184
        return Boolean.valueOf(isSuccess());
-
 
24185
 
-
 
24186
      case PE:
-
 
24187
        return getPe();
-
 
24188
 
-
 
24189
      }
-
 
24190
      throw new IllegalStateException();
-
 
24191
    }
-
 
24192
 
-
 
24193
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24194
    public boolean isSet(_Fields field) {
-
 
24195
      if (field == null) {
-
 
24196
        throw new IllegalArgumentException();
-
 
24197
      }
-
 
24198
 
-
 
24199
      switch (field) {
-
 
24200
      case SUCCESS:
-
 
24201
        return isSetSuccess();
-
 
24202
      case PE:
-
 
24203
        return isSetPe();
-
 
24204
      }
-
 
24205
      throw new IllegalStateException();
-
 
24206
    }
-
 
24207
 
-
 
24208
    @Override
-
 
24209
    public boolean equals(Object that) {
-
 
24210
      if (that == null)
-
 
24211
        return false;
-
 
24212
      if (that instanceof updateUserSanction_result)
-
 
24213
        return this.equals((updateUserSanction_result)that);
-
 
24214
      return false;
-
 
24215
    }
-
 
24216
 
-
 
24217
    public boolean equals(updateUserSanction_result that) {
-
 
24218
      if (that == null)
-
 
24219
        return false;
-
 
24220
 
-
 
24221
      boolean this_present_success = true;
-
 
24222
      boolean that_present_success = true;
-
 
24223
      if (this_present_success || that_present_success) {
-
 
24224
        if (!(this_present_success && that_present_success))
-
 
24225
          return false;
-
 
24226
        if (this.success != that.success)
-
 
24227
          return false;
-
 
24228
      }
-
 
24229
 
-
 
24230
      boolean this_present_pe = true && this.isSetPe();
-
 
24231
      boolean that_present_pe = true && that.isSetPe();
-
 
24232
      if (this_present_pe || that_present_pe) {
-
 
24233
        if (!(this_present_pe && that_present_pe))
-
 
24234
          return false;
-
 
24235
        if (!this.pe.equals(that.pe))
-
 
24236
          return false;
-
 
24237
      }
-
 
24238
 
-
 
24239
      return true;
-
 
24240
    }
-
 
24241
 
-
 
24242
    @Override
-
 
24243
    public int hashCode() {
-
 
24244
      return 0;
-
 
24245
    }
-
 
24246
 
-
 
24247
    public int compareTo(updateUserSanction_result other) {
-
 
24248
      if (!getClass().equals(other.getClass())) {
-
 
24249
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24250
      }
-
 
24251
 
-
 
24252
      int lastComparison = 0;
-
 
24253
      updateUserSanction_result typedOther = (updateUserSanction_result)other;
-
 
24254
 
-
 
24255
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
24256
      if (lastComparison != 0) {
-
 
24257
        return lastComparison;
-
 
24258
      }
-
 
24259
      if (isSetSuccess()) {
-
 
24260
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
24261
        if (lastComparison != 0) {
-
 
24262
          return lastComparison;
-
 
24263
        }
-
 
24264
      }
-
 
24265
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
24266
      if (lastComparison != 0) {
-
 
24267
        return lastComparison;
-
 
24268
      }
-
 
24269
      if (isSetPe()) {
-
 
24270
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
24271
        if (lastComparison != 0) {
-
 
24272
          return lastComparison;
-
 
24273
        }
-
 
24274
      }
-
 
24275
      return 0;
-
 
24276
    }
-
 
24277
 
-
 
24278
    public _Fields fieldForId(int fieldId) {
-
 
24279
      return _Fields.findByThriftId(fieldId);
-
 
24280
    }
-
 
24281
 
-
 
24282
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24283
      org.apache.thrift.protocol.TField field;
-
 
24284
      iprot.readStructBegin();
-
 
24285
      while (true)
-
 
24286
      {
-
 
24287
        field = iprot.readFieldBegin();
-
 
24288
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24289
          break;
-
 
24290
        }
-
 
24291
        switch (field.id) {
-
 
24292
          case 0: // SUCCESS
-
 
24293
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
24294
              this.success = iprot.readBool();
-
 
24295
              setSuccessIsSet(true);
-
 
24296
            } else { 
-
 
24297
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24298
            }
-
 
24299
            break;
-
 
24300
          case 1: // PE
-
 
24301
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
24302
              this.pe = new PaymentException();
-
 
24303
              this.pe.read(iprot);
-
 
24304
            } else { 
-
 
24305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24306
            }
-
 
24307
            break;
-
 
24308
          default:
-
 
24309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24310
        }
-
 
24311
        iprot.readFieldEnd();
-
 
24312
      }
-
 
24313
      iprot.readStructEnd();
-
 
24314
      validate();
-
 
24315
    }
-
 
24316
 
-
 
24317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24318
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24319
 
-
 
24320
      if (this.isSetSuccess()) {
-
 
24321
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
24322
        oprot.writeBool(this.success);
-
 
24323
        oprot.writeFieldEnd();
-
 
24324
      } else if (this.isSetPe()) {
-
 
24325
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
24326
        this.pe.write(oprot);
-
 
24327
        oprot.writeFieldEnd();
-
 
24328
      }
-
 
24329
      oprot.writeFieldStop();
-
 
24330
      oprot.writeStructEnd();
-
 
24331
    }
-
 
24332
 
-
 
24333
    @Override
-
 
24334
    public String toString() {
-
 
24335
      StringBuilder sb = new StringBuilder("updateUserSanction_result(");
-
 
24336
      boolean first = true;
-
 
24337
 
-
 
24338
      sb.append("success:");
-
 
24339
      sb.append(this.success);
-
 
24340
      first = false;
-
 
24341
      if (!first) sb.append(", ");
-
 
24342
      sb.append("pe:");
-
 
24343
      if (this.pe == null) {
-
 
24344
        sb.append("null");
-
 
24345
      } else {
-
 
24346
        sb.append(this.pe);
-
 
24347
      }
-
 
24348
      first = false;
-
 
24349
      sb.append(")");
-
 
24350
      return sb.toString();
-
 
24351
    }
-
 
24352
 
-
 
24353
    public void validate() throws org.apache.thrift.TException {
-
 
24354
      // check for required fields
-
 
24355
    }
-
 
24356
 
-
 
24357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
24358
      try {
-
 
24359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
24360
      } catch (org.apache.thrift.TException te) {
-
 
24361
        throw new java.io.IOException(te);
-
 
24362
      }
-
 
24363
    }
-
 
24364
 
-
 
24365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
24366
      try {
-
 
24367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
24368
      } catch (org.apache.thrift.TException te) {
-
 
24369
        throw new java.io.IOException(te);
-
 
24370
      }
-
 
24371
    }
-
 
24372
 
-
 
24373
  }
-
 
24374
 
-
 
24375
  public static class getCreditHistoryRecordsForTransaction_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForTransaction_args, getCreditHistoryRecordsForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
24376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForTransaction_args");
-
 
24377
 
-
 
24378
    private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
24379
    private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
24380
    private static final org.apache.thrift.protocol.TField CREDIT_TXN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("creditTxnType", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
24381
 
-
 
24382
    private long paymentId; // required
-
 
24383
    private long creditorId; // required
-
 
24384
    private String creditTxnType; // required
-
 
24385
 
-
 
24386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
24388
      PAYMENT_ID((short)1, "paymentId"),
-
 
24389
      CREDITOR_ID((short)2, "creditorId"),
-
 
24390
      CREDIT_TXN_TYPE((short)3, "creditTxnType");
-
 
24391
 
-
 
24392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24393
 
-
 
24394
      static {
-
 
24395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24396
          byName.put(field.getFieldName(), field);
-
 
24397
        }
-
 
24398
      }
-
 
24399
 
-
 
24400
      /**
-
 
24401
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24402
       */
-
 
24403
      public static _Fields findByThriftId(int fieldId) {
-
 
24404
        switch(fieldId) {
-
 
24405
          case 1: // PAYMENT_ID
-
 
24406
            return PAYMENT_ID;
-
 
24407
          case 2: // CREDITOR_ID
-
 
24408
            return CREDITOR_ID;
-
 
24409
          case 3: // CREDIT_TXN_TYPE
-
 
24410
            return CREDIT_TXN_TYPE;
-
 
24411
          default:
-
 
24412
            return null;
-
 
24413
        }
-
 
24414
      }
-
 
24415
 
-
 
24416
      /**
-
 
24417
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24418
       * if it is not found.
-
 
24419
       */
-
 
24420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24421
        _Fields fields = findByThriftId(fieldId);
-
 
24422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24423
        return fields;
-
 
24424
      }
-
 
24425
 
-
 
24426
      /**
-
 
24427
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24428
       */
-
 
24429
      public static _Fields findByName(String name) {
-
 
24430
        return byName.get(name);
-
 
24431
      }
-
 
24432
 
-
 
24433
      private final short _thriftId;
-
 
24434
      private final String _fieldName;
-
 
24435
 
-
 
24436
      _Fields(short thriftId, String fieldName) {
-
 
24437
        _thriftId = thriftId;
-
 
24438
        _fieldName = fieldName;
-
 
24439
      }
-
 
24440
 
-
 
24441
      public short getThriftFieldId() {
-
 
24442
        return _thriftId;
-
 
24443
      }
-
 
24444
 
-
 
24445
      public String getFieldName() {
-
 
24446
        return _fieldName;
-
 
24447
      }
-
 
24448
    }
-
 
24449
 
-
 
24450
    // isset id assignments
-
 
24451
    private static final int __PAYMENTID_ISSET_ID = 0;
-
 
24452
    private static final int __CREDITORID_ISSET_ID = 1;
-
 
24453
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
24454
 
-
 
24455
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
24456
    static {
-
 
24457
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
24458
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24459
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
24460
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24461
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
24462
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
24464
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
24465
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForTransaction_args.class, metaDataMap);
-
 
24466
    }
-
 
24467
 
-
 
24468
    public getCreditHistoryRecordsForTransaction_args() {
-
 
24469
    }
-
 
24470
 
-
 
24471
    public getCreditHistoryRecordsForTransaction_args(
-
 
24472
      long paymentId,
-
 
24473
      long creditorId,
-
 
24474
      String creditTxnType)
-
 
24475
    {
-
 
24476
      this();
-
 
24477
      this.paymentId = paymentId;
-
 
24478
      setPaymentIdIsSet(true);
-
 
24479
      this.creditorId = creditorId;
-
 
24480
      setCreditorIdIsSet(true);
-
 
24481
      this.creditTxnType = creditTxnType;
-
 
24482
    }
-
 
24483
 
-
 
24484
    /**
-
 
24485
     * Performs a deep copy on <i>other</i>.
-
 
24486
     */
-
 
24487
    public getCreditHistoryRecordsForTransaction_args(getCreditHistoryRecordsForTransaction_args other) {
-
 
24488
      __isset_bit_vector.clear();
-
 
24489
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
24490
      this.paymentId = other.paymentId;
-
 
24491
      this.creditorId = other.creditorId;
-
 
24492
      if (other.isSetCreditTxnType()) {
-
 
24493
        this.creditTxnType = other.creditTxnType;
-
 
24494
      }
-
 
24495
    }
-
 
24496
 
-
 
24497
    public getCreditHistoryRecordsForTransaction_args deepCopy() {
-
 
24498
      return new getCreditHistoryRecordsForTransaction_args(this);
-
 
24499
    }
-
 
24500
 
-
 
24501
    @Override
-
 
24502
    public void clear() {
-
 
24503
      setPaymentIdIsSet(false);
-
 
24504
      this.paymentId = 0;
-
 
24505
      setCreditorIdIsSet(false);
-
 
24506
      this.creditorId = 0;
-
 
24507
      this.creditTxnType = null;
-
 
24508
    }
-
 
24509
 
-
 
24510
    public long getPaymentId() {
-
 
24511
      return this.paymentId;
-
 
24512
    }
-
 
24513
 
-
 
24514
    public void setPaymentId(long paymentId) {
-
 
24515
      this.paymentId = paymentId;
-
 
24516
      setPaymentIdIsSet(true);
-
 
24517
    }
-
 
24518
 
-
 
24519
    public void unsetPaymentId() {
-
 
24520
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
-
 
24521
    }
-
 
24522
 
-
 
24523
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
-
 
24524
    public boolean isSetPaymentId() {
-
 
24525
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
-
 
24526
    }
-
 
24527
 
-
 
24528
    public void setPaymentIdIsSet(boolean value) {
-
 
24529
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
-
 
24530
    }
-
 
24531
 
-
 
24532
    public long getCreditorId() {
-
 
24533
      return this.creditorId;
-
 
24534
    }
-
 
24535
 
-
 
24536
    public void setCreditorId(long creditorId) {
-
 
24537
      this.creditorId = creditorId;
-
 
24538
      setCreditorIdIsSet(true);
-
 
24539
    }
-
 
24540
 
-
 
24541
    public void unsetCreditorId() {
-
 
24542
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
24543
    }
-
 
24544
 
-
 
24545
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
24546
    public boolean isSetCreditorId() {
-
 
24547
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
24548
    }
-
 
24549
 
-
 
24550
    public void setCreditorIdIsSet(boolean value) {
-
 
24551
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
24552
    }
-
 
24553
 
-
 
24554
    public String getCreditTxnType() {
-
 
24555
      return this.creditTxnType;
-
 
24556
    }
-
 
24557
 
-
 
24558
    public void setCreditTxnType(String creditTxnType) {
-
 
24559
      this.creditTxnType = creditTxnType;
-
 
24560
    }
-
 
24561
 
-
 
24562
    public void unsetCreditTxnType() {
-
 
24563
      this.creditTxnType = null;
-
 
24564
    }
-
 
24565
 
-
 
24566
    /** Returns true if field creditTxnType is set (has been assigned a value) and false otherwise */
-
 
24567
    public boolean isSetCreditTxnType() {
-
 
24568
      return this.creditTxnType != null;
-
 
24569
    }
-
 
24570
 
-
 
24571
    public void setCreditTxnTypeIsSet(boolean value) {
-
 
24572
      if (!value) {
-
 
24573
        this.creditTxnType = null;
-
 
24574
      }
-
 
24575
    }
-
 
24576
 
-
 
24577
    public void setFieldValue(_Fields field, Object value) {
-
 
24578
      switch (field) {
-
 
24579
      case PAYMENT_ID:
-
 
24580
        if (value == null) {
-
 
24581
          unsetPaymentId();
-
 
24582
        } else {
-
 
24583
          setPaymentId((Long)value);
-
 
24584
        }
-
 
24585
        break;
-
 
24586
 
-
 
24587
      case CREDITOR_ID:
-
 
24588
        if (value == null) {
-
 
24589
          unsetCreditorId();
-
 
24590
        } else {
-
 
24591
          setCreditorId((Long)value);
-
 
24592
        }
-
 
24593
        break;
-
 
24594
 
-
 
24595
      case CREDIT_TXN_TYPE:
-
 
24596
        if (value == null) {
-
 
24597
          unsetCreditTxnType();
-
 
24598
        } else {
-
 
24599
          setCreditTxnType((String)value);
-
 
24600
        }
-
 
24601
        break;
-
 
24602
 
-
 
24603
      }
-
 
24604
    }
-
 
24605
 
-
 
24606
    public Object getFieldValue(_Fields field) {
-
 
24607
      switch (field) {
-
 
24608
      case PAYMENT_ID:
-
 
24609
        return Long.valueOf(getPaymentId());
-
 
24610
 
-
 
24611
      case CREDITOR_ID:
-
 
24612
        return Long.valueOf(getCreditorId());
-
 
24613
 
-
 
24614
      case CREDIT_TXN_TYPE:
-
 
24615
        return getCreditTxnType();
-
 
24616
 
-
 
24617
      }
-
 
24618
      throw new IllegalStateException();
-
 
24619
    }
-
 
24620
 
-
 
24621
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24622
    public boolean isSet(_Fields field) {
-
 
24623
      if (field == null) {
-
 
24624
        throw new IllegalArgumentException();
-
 
24625
      }
-
 
24626
 
-
 
24627
      switch (field) {
-
 
24628
      case PAYMENT_ID:
-
 
24629
        return isSetPaymentId();
-
 
24630
      case CREDITOR_ID:
-
 
24631
        return isSetCreditorId();
-
 
24632
      case CREDIT_TXN_TYPE:
-
 
24633
        return isSetCreditTxnType();
-
 
24634
      }
-
 
24635
      throw new IllegalStateException();
-
 
24636
    }
-
 
24637
 
-
 
24638
    @Override
-
 
24639
    public boolean equals(Object that) {
-
 
24640
      if (that == null)
-
 
24641
        return false;
-
 
24642
      if (that instanceof getCreditHistoryRecordsForTransaction_args)
-
 
24643
        return this.equals((getCreditHistoryRecordsForTransaction_args)that);
-
 
24644
      return false;
-
 
24645
    }
-
 
24646
 
-
 
24647
    public boolean equals(getCreditHistoryRecordsForTransaction_args that) {
-
 
24648
      if (that == null)
-
 
24649
        return false;
-
 
24650
 
-
 
24651
      boolean this_present_paymentId = true;
-
 
24652
      boolean that_present_paymentId = true;
-
 
24653
      if (this_present_paymentId || that_present_paymentId) {
-
 
24654
        if (!(this_present_paymentId && that_present_paymentId))
-
 
24655
          return false;
-
 
24656
        if (this.paymentId != that.paymentId)
-
 
24657
          return false;
-
 
24658
      }
-
 
24659
 
-
 
24660
      boolean this_present_creditorId = true;
-
 
24661
      boolean that_present_creditorId = true;
-
 
24662
      if (this_present_creditorId || that_present_creditorId) {
-
 
24663
        if (!(this_present_creditorId && that_present_creditorId))
-
 
24664
          return false;
-
 
24665
        if (this.creditorId != that.creditorId)
-
 
24666
          return false;
-
 
24667
      }
-
 
24668
 
-
 
24669
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
-
 
24670
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
-
 
24671
      if (this_present_creditTxnType || that_present_creditTxnType) {
-
 
24672
        if (!(this_present_creditTxnType && that_present_creditTxnType))
-
 
24673
          return false;
-
 
24674
        if (!this.creditTxnType.equals(that.creditTxnType))
-
 
24675
          return false;
-
 
24676
      }
-
 
24677
 
-
 
24678
      return true;
-
 
24679
    }
-
 
24680
 
-
 
24681
    @Override
-
 
24682
    public int hashCode() {
-
 
24683
      return 0;
-
 
24684
    }
-
 
24685
 
-
 
24686
    public int compareTo(getCreditHistoryRecordsForTransaction_args other) {
-
 
24687
      if (!getClass().equals(other.getClass())) {
-
 
24688
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24689
      }
-
 
24690
 
-
 
24691
      int lastComparison = 0;
-
 
24692
      getCreditHistoryRecordsForTransaction_args typedOther = (getCreditHistoryRecordsForTransaction_args)other;
-
 
24693
 
-
 
24694
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
-
 
24695
      if (lastComparison != 0) {
-
 
24696
        return lastComparison;
-
 
24697
      }
-
 
24698
      if (isSetPaymentId()) {
-
 
24699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
-
 
24700
        if (lastComparison != 0) {
-
 
24701
          return lastComparison;
-
 
24702
        }
-
 
24703
      }
-
 
24704
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
24705
      if (lastComparison != 0) {
-
 
24706
        return lastComparison;
-
 
24707
      }
-
 
24708
      if (isSetCreditorId()) {
-
 
24709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
24710
        if (lastComparison != 0) {
-
 
24711
          return lastComparison;
-
 
24712
        }
-
 
24713
      }
-
 
24714
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
-
 
24715
      if (lastComparison != 0) {
-
 
24716
        return lastComparison;
-
 
24717
      }
-
 
24718
      if (isSetCreditTxnType()) {
-
 
24719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxnType, typedOther.creditTxnType);
-
 
24720
        if (lastComparison != 0) {
-
 
24721
          return lastComparison;
-
 
24722
        }
-
 
24723
      }
-
 
24724
      return 0;
-
 
24725
    }
-
 
24726
 
-
 
24727
    public _Fields fieldForId(int fieldId) {
-
 
24728
      return _Fields.findByThriftId(fieldId);
-
 
24729
    }
-
 
24730
 
-
 
24731
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24732
      org.apache.thrift.protocol.TField field;
-
 
24733
      iprot.readStructBegin();
-
 
24734
      while (true)
-
 
24735
      {
-
 
24736
        field = iprot.readFieldBegin();
-
 
24737
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24738
          break;
-
 
24739
        }
-
 
24740
        switch (field.id) {
-
 
24741
          case 1: // PAYMENT_ID
-
 
24742
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
24743
              this.paymentId = iprot.readI64();
-
 
24744
              setPaymentIdIsSet(true);
-
 
24745
            } else { 
-
 
24746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24747
            }
-
 
24748
            break;
-
 
24749
          case 2: // CREDITOR_ID
-
 
24750
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
24751
              this.creditorId = iprot.readI64();
-
 
24752
              setCreditorIdIsSet(true);
-
 
24753
            } else { 
-
 
24754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24755
            }
-
 
24756
            break;
-
 
24757
          case 3: // CREDIT_TXN_TYPE
-
 
24758
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
24759
              this.creditTxnType = iprot.readString();
-
 
24760
            } else { 
-
 
24761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24762
            }
-
 
24763
            break;
-
 
24764
          default:
-
 
24765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24766
        }
-
 
24767
        iprot.readFieldEnd();
-
 
24768
      }
-
 
24769
      iprot.readStructEnd();
-
 
24770
      validate();
-
 
24771
    }
-
 
24772
 
-
 
24773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24774
      validate();
-
 
24775
 
-
 
24776
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24777
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
-
 
24778
      oprot.writeI64(this.paymentId);
-
 
24779
      oprot.writeFieldEnd();
-
 
24780
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
24781
      oprot.writeI64(this.creditorId);
-
 
24782
      oprot.writeFieldEnd();
-
 
24783
      if (this.creditTxnType != null) {
-
 
24784
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
-
 
24785
        oprot.writeString(this.creditTxnType);
-
 
24786
        oprot.writeFieldEnd();
-
 
24787
      }
-
 
24788
      oprot.writeFieldStop();
-
 
24789
      oprot.writeStructEnd();
-
 
24790
    }
-
 
24791
 
-
 
24792
    @Override
-
 
24793
    public String toString() {
-
 
24794
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForTransaction_args(");
-
 
24795
      boolean first = true;
-
 
24796
 
-
 
24797
      sb.append("paymentId:");
-
 
24798
      sb.append(this.paymentId);
-
 
24799
      first = false;
-
 
24800
      if (!first) sb.append(", ");
-
 
24801
      sb.append("creditorId:");
-
 
24802
      sb.append(this.creditorId);
-
 
24803
      first = false;
-
 
24804
      if (!first) sb.append(", ");
-
 
24805
      sb.append("creditTxnType:");
-
 
24806
      if (this.creditTxnType == null) {
-
 
24807
        sb.append("null");
-
 
24808
      } else {
-
 
24809
        sb.append(this.creditTxnType);
-
 
24810
      }
-
 
24811
      first = false;
-
 
24812
      sb.append(")");
-
 
24813
      return sb.toString();
-
 
24814
    }
-
 
24815
 
-
 
24816
    public void validate() throws org.apache.thrift.TException {
-
 
24817
      // check for required fields
-
 
24818
    }
-
 
24819
 
-
 
24820
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
24821
      try {
-
 
24822
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
24823
      } catch (org.apache.thrift.TException te) {
-
 
24824
        throw new java.io.IOException(te);
-
 
24825
      }
-
 
24826
    }
-
 
24827
 
-
 
24828
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
24829
      try {
-
 
24830
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
24831
        __isset_bit_vector = new BitSet(1);
-
 
24832
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
24833
      } catch (org.apache.thrift.TException te) {
-
 
24834
        throw new java.io.IOException(te);
-
 
24835
      }
-
 
24836
    }
-
 
24837
 
-
 
24838
  }
-
 
24839
 
-
 
24840
  public static class getCreditHistoryRecordsForTransaction_result implements org.apache.thrift.TBase<getCreditHistoryRecordsForTransaction_result, getCreditHistoryRecordsForTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
24841
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForTransaction_result");
-
 
24842
 
-
 
24843
    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);
-
 
24844
 
-
 
24845
    private List<CreditHistory> success; // required
-
 
24846
 
-
 
24847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
24849
      SUCCESS((short)0, "success");
-
 
24850
 
-
 
24851
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24852
 
-
 
24853
      static {
-
 
24854
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24855
          byName.put(field.getFieldName(), field);
-
 
24856
        }
-
 
24857
      }
-
 
24858
 
-
 
24859
      /**
-
 
24860
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24861
       */
-
 
24862
      public static _Fields findByThriftId(int fieldId) {
-
 
24863
        switch(fieldId) {
-
 
24864
          case 0: // SUCCESS
-
 
24865
            return SUCCESS;
-
 
24866
          default:
-
 
24867
            return null;
-
 
24868
        }
-
 
24869
      }
-
 
24870
 
-
 
24871
      /**
-
 
24872
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24873
       * if it is not found.
-
 
24874
       */
-
 
24875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24876
        _Fields fields = findByThriftId(fieldId);
-
 
24877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24878
        return fields;
-
 
24879
      }
-
 
24880
 
-
 
24881
      /**
-
 
24882
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24883
       */
-
 
24884
      public static _Fields findByName(String name) {
-
 
24885
        return byName.get(name);
-
 
24886
      }
-
 
24887
 
-
 
24888
      private final short _thriftId;
-
 
24889
      private final String _fieldName;
-
 
24890
 
-
 
24891
      _Fields(short thriftId, String fieldName) {
-
 
24892
        _thriftId = thriftId;
-
 
24893
        _fieldName = fieldName;
-
 
24894
      }
-
 
24895
 
-
 
24896
      public short getThriftFieldId() {
-
 
24897
        return _thriftId;
-
 
24898
      }
-
 
24899
 
-
 
24900
      public String getFieldName() {
-
 
24901
        return _fieldName;
-
 
24902
      }
-
 
24903
    }
-
 
24904
 
-
 
24905
    // isset id assignments
-
 
24906
 
-
 
24907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
24908
    static {
-
 
24909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
24910
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24911
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
24912
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
-
 
24913
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
24914
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForTransaction_result.class, metaDataMap);
-
 
24915
    }
-
 
24916
 
-
 
24917
    public getCreditHistoryRecordsForTransaction_result() {
-
 
24918
    }
-
 
24919
 
-
 
24920
    public getCreditHistoryRecordsForTransaction_result(
-
 
24921
      List<CreditHistory> success)
-
 
24922
    {
-
 
24923
      this();
-
 
24924
      this.success = success;
-
 
24925
    }
-
 
24926
 
-
 
24927
    /**
-
 
24928
     * Performs a deep copy on <i>other</i>.
-
 
24929
     */
-
 
24930
    public getCreditHistoryRecordsForTransaction_result(getCreditHistoryRecordsForTransaction_result other) {
-
 
24931
      if (other.isSetSuccess()) {
-
 
24932
        List<CreditHistory> __this__success = new ArrayList<CreditHistory>();
-
 
24933
        for (CreditHistory other_element : other.success) {
-
 
24934
          __this__success.add(new CreditHistory(other_element));
-
 
24935
        }
-
 
24936
        this.success = __this__success;
-
 
24937
      }
-
 
24938
    }
-
 
24939
 
-
 
24940
    public getCreditHistoryRecordsForTransaction_result deepCopy() {
-
 
24941
      return new getCreditHistoryRecordsForTransaction_result(this);
-
 
24942
    }
-
 
24943
 
-
 
24944
    @Override
-
 
24945
    public void clear() {
-
 
24946
      this.success = null;
-
 
24947
    }
-
 
24948
 
-
 
24949
    public int getSuccessSize() {
-
 
24950
      return (this.success == null) ? 0 : this.success.size();
-
 
24951
    }
-
 
24952
 
-
 
24953
    public java.util.Iterator<CreditHistory> getSuccessIterator() {
-
 
24954
      return (this.success == null) ? null : this.success.iterator();
-
 
24955
    }
-
 
24956
 
-
 
24957
    public void addToSuccess(CreditHistory elem) {
-
 
24958
      if (this.success == null) {
-
 
24959
        this.success = new ArrayList<CreditHistory>();
-
 
24960
      }
-
 
24961
      this.success.add(elem);
-
 
24962
    }
-
 
24963
 
-
 
24964
    public List<CreditHistory> getSuccess() {
-
 
24965
      return this.success;
-
 
24966
    }
-
 
24967
 
-
 
24968
    public void setSuccess(List<CreditHistory> success) {
-
 
24969
      this.success = success;
-
 
24970
    }
-
 
24971
 
-
 
24972
    public void unsetSuccess() {
-
 
24973
      this.success = null;
-
 
24974
    }
-
 
24975
 
-
 
24976
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
24977
    public boolean isSetSuccess() {
-
 
24978
      return this.success != null;
-
 
24979
    }
-
 
24980
 
-
 
24981
    public void setSuccessIsSet(boolean value) {
-
 
24982
      if (!value) {
-
 
24983
        this.success = null;
-
 
24984
      }
-
 
24985
    }
-
 
24986
 
-
 
24987
    public void setFieldValue(_Fields field, Object value) {
-
 
24988
      switch (field) {
-
 
24989
      case SUCCESS:
-
 
24990
        if (value == null) {
-
 
24991
          unsetSuccess();
-
 
24992
        } else {
-
 
24993
          setSuccess((List<CreditHistory>)value);
-
 
24994
        }
-
 
24995
        break;
-
 
24996
 
-
 
24997
      }
-
 
24998
    }
-
 
24999
 
-
 
25000
    public Object getFieldValue(_Fields field) {
-
 
25001
      switch (field) {
-
 
25002
      case SUCCESS:
-
 
25003
        return getSuccess();
-
 
25004
 
-
 
25005
      }
-
 
25006
      throw new IllegalStateException();
-
 
25007
    }
-
 
25008
 
-
 
25009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
25010
    public boolean isSet(_Fields field) {
-
 
25011
      if (field == null) {
-
 
25012
        throw new IllegalArgumentException();
-
 
25013
      }
-
 
25014
 
-
 
25015
      switch (field) {
-
 
25016
      case SUCCESS:
-
 
25017
        return isSetSuccess();
-
 
25018
      }
-
 
25019
      throw new IllegalStateException();
-
 
25020
    }
-
 
25021
 
-
 
25022
    @Override
-
 
25023
    public boolean equals(Object that) {
-
 
25024
      if (that == null)
-
 
25025
        return false;
-
 
25026
      if (that instanceof getCreditHistoryRecordsForTransaction_result)
-
 
25027
        return this.equals((getCreditHistoryRecordsForTransaction_result)that);
-
 
25028
      return false;
-
 
25029
    }
-
 
25030
 
-
 
25031
    public boolean equals(getCreditHistoryRecordsForTransaction_result that) {
-
 
25032
      if (that == null)
-
 
25033
        return false;
-
 
25034
 
-
 
25035
      boolean this_present_success = true && this.isSetSuccess();
-
 
25036
      boolean that_present_success = true && that.isSetSuccess();
-
 
25037
      if (this_present_success || that_present_success) {
-
 
25038
        if (!(this_present_success && that_present_success))
-
 
25039
          return false;
-
 
25040
        if (!this.success.equals(that.success))
-
 
25041
          return false;
-
 
25042
      }
-
 
25043
 
-
 
25044
      return true;
-
 
25045
    }
-
 
25046
 
-
 
25047
    @Override
-
 
25048
    public int hashCode() {
-
 
25049
      return 0;
-
 
25050
    }
-
 
25051
 
-
 
25052
    public int compareTo(getCreditHistoryRecordsForTransaction_result other) {
-
 
25053
      if (!getClass().equals(other.getClass())) {
-
 
25054
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25055
      }
-
 
25056
 
-
 
25057
      int lastComparison = 0;
-
 
25058
      getCreditHistoryRecordsForTransaction_result typedOther = (getCreditHistoryRecordsForTransaction_result)other;
-
 
25059
 
-
 
25060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
25061
      if (lastComparison != 0) {
-
 
25062
        return lastComparison;
-
 
25063
      }
-
 
25064
      if (isSetSuccess()) {
-
 
25065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
25066
        if (lastComparison != 0) {
-
 
25067
          return lastComparison;
-
 
25068
        }
-
 
25069
      }
-
 
25070
      return 0;
-
 
25071
    }
-
 
25072
 
-
 
25073
    public _Fields fieldForId(int fieldId) {
-
 
25074
      return _Fields.findByThriftId(fieldId);
-
 
25075
    }
-
 
25076
 
-
 
25077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
25078
      org.apache.thrift.protocol.TField field;
-
 
25079
      iprot.readStructBegin();
-
 
25080
      while (true)
-
 
25081
      {
-
 
25082
        field = iprot.readFieldBegin();
-
 
25083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
25084
          break;
-
 
25085
        }
-
 
25086
        switch (field.id) {
-
 
25087
          case 0: // SUCCESS
-
 
25088
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
25089
              {
-
 
25090
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
-
 
25091
                this.success = new ArrayList<CreditHistory>(_list52.size);
-
 
25092
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
-
 
25093
                {
-
 
25094
                  CreditHistory _elem54; // required
-
 
25095
                  _elem54 = new CreditHistory();
-
 
25096
                  _elem54.read(iprot);
-
 
25097
                  this.success.add(_elem54);
-
 
25098
                }
-
 
25099
                iprot.readListEnd();
-
 
25100
              }
-
 
25101
            } else { 
-
 
25102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25103
            }
-
 
25104
            break;
-
 
25105
          default:
-
 
25106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25107
        }
-
 
25108
        iprot.readFieldEnd();
-
 
25109
      }
-
 
25110
      iprot.readStructEnd();
-
 
25111
      validate();
-
 
25112
    }
-
 
25113
 
-
 
25114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
25115
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25116
 
-
 
25117
      if (this.isSetSuccess()) {
-
 
25118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
25119
        {
-
 
25120
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
25121
          for (CreditHistory _iter55 : this.success)
-
 
25122
          {
-
 
25123
            _iter55.write(oprot);
-
 
25124
          }
-
 
25125
          oprot.writeListEnd();
-
 
25126
        }
-
 
25127
        oprot.writeFieldEnd();
-
 
25128
      }
-
 
25129
      oprot.writeFieldStop();
-
 
25130
      oprot.writeStructEnd();
-
 
25131
    }
-
 
25132
 
-
 
25133
    @Override
-
 
25134
    public String toString() {
-
 
25135
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForTransaction_result(");
-
 
25136
      boolean first = true;
-
 
25137
 
-
 
25138
      sb.append("success:");
-
 
25139
      if (this.success == null) {
-
 
25140
        sb.append("null");
-
 
25141
      } else {
-
 
25142
        sb.append(this.success);
-
 
25143
      }
-
 
25144
      first = false;
-
 
25145
      sb.append(")");
-
 
25146
      return sb.toString();
-
 
25147
    }
-
 
25148
 
-
 
25149
    public void validate() throws org.apache.thrift.TException {
-
 
25150
      // check for required fields
-
 
25151
    }
-
 
25152
 
-
 
25153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
25154
      try {
-
 
25155
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
25156
      } catch (org.apache.thrift.TException te) {
-
 
25157
        throw new java.io.IOException(te);
-
 
25158
      }
-
 
25159
    }
-
 
25160
 
-
 
25161
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
25162
      try {
-
 
25163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
25164
      } catch (org.apache.thrift.TException te) {
-
 
25165
        throw new java.io.IOException(te);
-
 
25166
      }
-
 
25167
    }
-
 
25168
 
-
 
25169
  }
-
 
25170
 
-
 
25171
  public static class getCreditHistoryRecordsForUserAndCreditor_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForUserAndCreditor_args, getCreditHistoryRecordsForUserAndCreditor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
25172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForUserAndCreditor_args");
-
 
25173
 
-
 
25174
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
25175
    private static final org.apache.thrift.protocol.TField CREDIT_TXN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("creditTxnType", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
25176
 
-
 
25177
    private long userId; // required
-
 
25178
    private String creditTxnType; // required
-
 
25179
 
-
 
25180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
25182
      USER_ID((short)1, "userId"),
-
 
25183
      CREDIT_TXN_TYPE((short)2, "creditTxnType");
-
 
25184
 
-
 
25185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25186
 
-
 
25187
      static {
-
 
25188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25189
          byName.put(field.getFieldName(), field);
-
 
25190
        }
-
 
25191
      }
-
 
25192
 
-
 
25193
      /**
-
 
25194
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25195
       */
-
 
25196
      public static _Fields findByThriftId(int fieldId) {
-
 
25197
        switch(fieldId) {
-
 
25198
          case 1: // USER_ID
-
 
25199
            return USER_ID;
-
 
25200
          case 2: // CREDIT_TXN_TYPE
-
 
25201
            return CREDIT_TXN_TYPE;
-
 
25202
          default:
-
 
25203
            return null;
-
 
25204
        }
-
 
25205
      }
-
 
25206
 
-
 
25207
      /**
-
 
25208
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25209
       * if it is not found.
-
 
25210
       */
-
 
25211
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25212
        _Fields fields = findByThriftId(fieldId);
-
 
25213
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25214
        return fields;
-
 
25215
      }
-
 
25216
 
-
 
25217
      /**
-
 
25218
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25219
       */
-
 
25220
      public static _Fields findByName(String name) {
-
 
25221
        return byName.get(name);
-
 
25222
      }
-
 
25223
 
-
 
25224
      private final short _thriftId;
-
 
25225
      private final String _fieldName;
-
 
25226
 
-
 
25227
      _Fields(short thriftId, String fieldName) {
-
 
25228
        _thriftId = thriftId;
-
 
25229
        _fieldName = fieldName;
-
 
25230
      }
-
 
25231
 
-
 
25232
      public short getThriftFieldId() {
-
 
25233
        return _thriftId;
-
 
25234
      }
-
 
25235
 
-
 
25236
      public String getFieldName() {
-
 
25237
        return _fieldName;
-
 
25238
      }
-
 
25239
    }
-
 
25240
 
-
 
25241
    // isset id assignments
-
 
25242
    private static final int __USERID_ISSET_ID = 0;
-
 
25243
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
25244
 
-
 
25245
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
25246
    static {
-
 
25247
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
25248
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
25250
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
25252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
25253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForUserAndCreditor_args.class, metaDataMap);
-
 
25254
    }
-
 
25255
 
-
 
25256
    public getCreditHistoryRecordsForUserAndCreditor_args() {
-
 
25257
    }
-
 
25258
 
-
 
25259
    public getCreditHistoryRecordsForUserAndCreditor_args(
-
 
25260
      long userId,
-
 
25261
      String creditTxnType)
-
 
25262
    {
-
 
25263
      this();
-
 
25264
      this.userId = userId;
-
 
25265
      setUserIdIsSet(true);
-
 
25266
      this.creditTxnType = creditTxnType;
-
 
25267
    }
-
 
25268
 
-
 
25269
    /**
-
 
25270
     * Performs a deep copy on <i>other</i>.
-
 
25271
     */
-
 
25272
    public getCreditHistoryRecordsForUserAndCreditor_args(getCreditHistoryRecordsForUserAndCreditor_args other) {
-
 
25273
      __isset_bit_vector.clear();
-
 
25274
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
25275
      this.userId = other.userId;
-
 
25276
      if (other.isSetCreditTxnType()) {
-
 
25277
        this.creditTxnType = other.creditTxnType;
-
 
25278
      }
-
 
25279
    }
-
 
25280
 
-
 
25281
    public getCreditHistoryRecordsForUserAndCreditor_args deepCopy() {
-
 
25282
      return new getCreditHistoryRecordsForUserAndCreditor_args(this);
-
 
25283
    }
-
 
25284
 
-
 
25285
    @Override
-
 
25286
    public void clear() {
-
 
25287
      setUserIdIsSet(false);
-
 
25288
      this.userId = 0;
-
 
25289
      this.creditTxnType = null;
-
 
25290
    }
-
 
25291
 
-
 
25292
    public long getUserId() {
-
 
25293
      return this.userId;
-
 
25294
    }
-
 
25295
 
-
 
25296
    public void setUserId(long userId) {
-
 
25297
      this.userId = userId;
-
 
25298
      setUserIdIsSet(true);
-
 
25299
    }
-
 
25300
 
-
 
25301
    public void unsetUserId() {
-
 
25302
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
25303
    }
-
 
25304
 
-
 
25305
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
25306
    public boolean isSetUserId() {
-
 
25307
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
25308
    }
-
 
25309
 
-
 
25310
    public void setUserIdIsSet(boolean value) {
-
 
25311
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
25312
    }
-
 
25313
 
-
 
25314
    public String getCreditTxnType() {
-
 
25315
      return this.creditTxnType;
-
 
25316
    }
-
 
25317
 
-
 
25318
    public void setCreditTxnType(String creditTxnType) {
-
 
25319
      this.creditTxnType = creditTxnType;
-
 
25320
    }
-
 
25321
 
-
 
25322
    public void unsetCreditTxnType() {
-
 
25323
      this.creditTxnType = null;
-
 
25324
    }
-
 
25325
 
-
 
25326
    /** Returns true if field creditTxnType is set (has been assigned a value) and false otherwise */
-
 
25327
    public boolean isSetCreditTxnType() {
-
 
25328
      return this.creditTxnType != null;
-
 
25329
    }
-
 
25330
 
-
 
25331
    public void setCreditTxnTypeIsSet(boolean value) {
-
 
25332
      if (!value) {
-
 
25333
        this.creditTxnType = null;
-
 
25334
      }
-
 
25335
    }
-
 
25336
 
-
 
25337
    public void setFieldValue(_Fields field, Object value) {
-
 
25338
      switch (field) {
-
 
25339
      case USER_ID:
-
 
25340
        if (value == null) {
-
 
25341
          unsetUserId();
-
 
25342
        } else {
-
 
25343
          setUserId((Long)value);
-
 
25344
        }
-
 
25345
        break;
-
 
25346
 
-
 
25347
      case CREDIT_TXN_TYPE:
-
 
25348
        if (value == null) {
-
 
25349
          unsetCreditTxnType();
-
 
25350
        } else {
-
 
25351
          setCreditTxnType((String)value);
-
 
25352
        }
-
 
25353
        break;
-
 
25354
 
-
 
25355
      }
-
 
25356
    }
-
 
25357
 
-
 
25358
    public Object getFieldValue(_Fields field) {
-
 
25359
      switch (field) {
-
 
25360
      case USER_ID:
-
 
25361
        return Long.valueOf(getUserId());
-
 
25362
 
-
 
25363
      case CREDIT_TXN_TYPE:
-
 
25364
        return getCreditTxnType();
-
 
25365
 
-
 
25366
      }
-
 
25367
      throw new IllegalStateException();
-
 
25368
    }
-
 
25369
 
-
 
25370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
25371
    public boolean isSet(_Fields field) {
-
 
25372
      if (field == null) {
-
 
25373
        throw new IllegalArgumentException();
-
 
25374
      }
-
 
25375
 
-
 
25376
      switch (field) {
-
 
25377
      case USER_ID:
-
 
25378
        return isSetUserId();
-
 
25379
      case CREDIT_TXN_TYPE:
-
 
25380
        return isSetCreditTxnType();
-
 
25381
      }
-
 
25382
      throw new IllegalStateException();
-
 
25383
    }
-
 
25384
 
-
 
25385
    @Override
-
 
25386
    public boolean equals(Object that) {
-
 
25387
      if (that == null)
-
 
25388
        return false;
-
 
25389
      if (that instanceof getCreditHistoryRecordsForUserAndCreditor_args)
-
 
25390
        return this.equals((getCreditHistoryRecordsForUserAndCreditor_args)that);
-
 
25391
      return false;
-
 
25392
    }
-
 
25393
 
-
 
25394
    public boolean equals(getCreditHistoryRecordsForUserAndCreditor_args that) {
-
 
25395
      if (that == null)
-
 
25396
        return false;
-
 
25397
 
-
 
25398
      boolean this_present_userId = true;
-
 
25399
      boolean that_present_userId = true;
-
 
25400
      if (this_present_userId || that_present_userId) {
-
 
25401
        if (!(this_present_userId && that_present_userId))
-
 
25402
          return false;
-
 
25403
        if (this.userId != that.userId)
-
 
25404
          return false;
-
 
25405
      }
-
 
25406
 
-
 
25407
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
-
 
25408
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
-
 
25409
      if (this_present_creditTxnType || that_present_creditTxnType) {
-
 
25410
        if (!(this_present_creditTxnType && that_present_creditTxnType))
-
 
25411
          return false;
-
 
25412
        if (!this.creditTxnType.equals(that.creditTxnType))
-
 
25413
          return false;
-
 
25414
      }
-
 
25415
 
-
 
25416
      return true;
-
 
25417
    }
-
 
25418
 
-
 
25419
    @Override
-
 
25420
    public int hashCode() {
-
 
25421
      return 0;
-
 
25422
    }
-
 
25423
 
-
 
25424
    public int compareTo(getCreditHistoryRecordsForUserAndCreditor_args other) {
-
 
25425
      if (!getClass().equals(other.getClass())) {
-
 
25426
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25427
      }
-
 
25428
 
-
 
25429
      int lastComparison = 0;
-
 
25430
      getCreditHistoryRecordsForUserAndCreditor_args typedOther = (getCreditHistoryRecordsForUserAndCreditor_args)other;
-
 
25431
 
-
 
25432
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
25433
      if (lastComparison != 0) {
-
 
25434
        return lastComparison;
-
 
25435
      }
-
 
25436
      if (isSetUserId()) {
-
 
25437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
25438
        if (lastComparison != 0) {
-
 
25439
          return lastComparison;
-
 
25440
        }
-
 
25441
      }
-
 
25442
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
-
 
25443
      if (lastComparison != 0) {
-
 
25444
        return lastComparison;
-
 
25445
      }
-
 
25446
      if (isSetCreditTxnType()) {
-
 
25447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxnType, typedOther.creditTxnType);
-
 
25448
        if (lastComparison != 0) {
-
 
25449
          return lastComparison;
-
 
25450
        }
-
 
25451
      }
-
 
25452
      return 0;
-
 
25453
    }
-
 
25454
 
-
 
25455
    public _Fields fieldForId(int fieldId) {
-
 
25456
      return _Fields.findByThriftId(fieldId);
-
 
25457
    }
-
 
25458
 
-
 
25459
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
25460
      org.apache.thrift.protocol.TField field;
-
 
25461
      iprot.readStructBegin();
-
 
25462
      while (true)
-
 
25463
      {
-
 
25464
        field = iprot.readFieldBegin();
-
 
25465
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
25466
          break;
-
 
25467
        }
-
 
25468
        switch (field.id) {
-
 
25469
          case 1: // USER_ID
-
 
25470
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
25471
              this.userId = iprot.readI64();
-
 
25472
              setUserIdIsSet(true);
-
 
25473
            } else { 
-
 
25474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25475
            }
-
 
25476
            break;
-
 
25477
          case 2: // CREDIT_TXN_TYPE
-
 
25478
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
25479
              this.creditTxnType = iprot.readString();
-
 
25480
            } else { 
-
 
25481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25482
            }
-
 
25483
            break;
-
 
25484
          default:
-
 
25485
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25486
        }
-
 
25487
        iprot.readFieldEnd();
-
 
25488
      }
-
 
25489
      iprot.readStructEnd();
-
 
25490
      validate();
-
 
25491
    }
-
 
25492
 
-
 
25493
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
25494
      validate();
-
 
25495
 
-
 
25496
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25497
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
25498
      oprot.writeI64(this.userId);
-
 
25499
      oprot.writeFieldEnd();
-
 
25500
      if (this.creditTxnType != null) {
-
 
25501
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
-
 
25502
        oprot.writeString(this.creditTxnType);
-
 
25503
        oprot.writeFieldEnd();
-
 
25504
      }
-
 
25505
      oprot.writeFieldStop();
-
 
25506
      oprot.writeStructEnd();
-
 
25507
    }
-
 
25508
 
-
 
25509
    @Override
-
 
25510
    public String toString() {
-
 
25511
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForUserAndCreditor_args(");
-
 
25512
      boolean first = true;
-
 
25513
 
-
 
25514
      sb.append("userId:");
-
 
25515
      sb.append(this.userId);
-
 
25516
      first = false;
-
 
25517
      if (!first) sb.append(", ");
-
 
25518
      sb.append("creditTxnType:");
-
 
25519
      if (this.creditTxnType == null) {
-
 
25520
        sb.append("null");
-
 
25521
      } else {
-
 
25522
        sb.append(this.creditTxnType);
-
 
25523
      }
-
 
25524
      first = false;
-
 
25525
      sb.append(")");
-
 
25526
      return sb.toString();
-
 
25527
    }
-
 
25528
 
-
 
25529
    public void validate() throws org.apache.thrift.TException {
-
 
25530
      // check for required fields
-
 
25531
    }
-
 
25532
 
-
 
25533
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
25534
      try {
-
 
25535
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
25536
      } catch (org.apache.thrift.TException te) {
-
 
25537
        throw new java.io.IOException(te);
-
 
25538
      }
-
 
25539
    }
-
 
25540
 
-
 
25541
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
25542
      try {
-
 
25543
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
25544
        __isset_bit_vector = new BitSet(1);
-
 
25545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
25546
      } catch (org.apache.thrift.TException te) {
-
 
25547
        throw new java.io.IOException(te);
-
 
25548
      }
-
 
25549
    }
-
 
25550
 
-
 
25551
  }
-
 
25552
 
-
 
25553
  public static class getCreditHistoryRecordsForUserAndCreditor_result implements org.apache.thrift.TBase<getCreditHistoryRecordsForUserAndCreditor_result, getCreditHistoryRecordsForUserAndCreditor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
25554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForUserAndCreditor_result");
-
 
25555
 
-
 
25556
    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);
-
 
25557
 
-
 
25558
    private List<CreditHistory> success; // required
-
 
25559
 
-
 
25560
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25561
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
25562
      SUCCESS((short)0, "success");
-
 
25563
 
-
 
25564
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25565
 
-
 
25566
      static {
-
 
25567
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25568
          byName.put(field.getFieldName(), field);
-
 
25569
        }
-
 
25570
      }
-
 
25571
 
-
 
25572
      /**
-
 
25573
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25574
       */
-
 
25575
      public static _Fields findByThriftId(int fieldId) {
-
 
25576
        switch(fieldId) {
-
 
25577
          case 0: // SUCCESS
-
 
25578
            return SUCCESS;
-
 
25579
          default:
-
 
25580
            return null;
-
 
25581
        }
-
 
25582
      }
-
 
25583
 
-
 
25584
      /**
-
 
25585
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25586
       * if it is not found.
-
 
25587
       */
-
 
25588
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25589
        _Fields fields = findByThriftId(fieldId);
-
 
25590
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25591
        return fields;
-
 
25592
      }
-
 
25593
 
-
 
25594
      /**
-
 
25595
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25596
       */
-
 
25597
      public static _Fields findByName(String name) {
-
 
25598
        return byName.get(name);
-
 
25599
      }
-
 
25600
 
-
 
25601
      private final short _thriftId;
-
 
25602
      private final String _fieldName;
-
 
25603
 
-
 
25604
      _Fields(short thriftId, String fieldName) {
-
 
25605
        _thriftId = thriftId;
-
 
25606
        _fieldName = fieldName;
-
 
25607
      }
-
 
25608
 
-
 
25609
      public short getThriftFieldId() {
-
 
25610
        return _thriftId;
-
 
25611
      }
-
 
25612
 
-
 
25613
      public String getFieldName() {
-
 
25614
        return _fieldName;
-
 
25615
      }
-
 
25616
    }
-
 
25617
 
-
 
25618
    // isset id assignments
-
 
25619
 
-
 
25620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
25621
    static {
-
 
25622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
25623
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25624
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
25625
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
-
 
25626
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
25627
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForUserAndCreditor_result.class, metaDataMap);
-
 
25628
    }
-
 
25629
 
-
 
25630
    public getCreditHistoryRecordsForUserAndCreditor_result() {
-
 
25631
    }
-
 
25632
 
-
 
25633
    public getCreditHistoryRecordsForUserAndCreditor_result(
-
 
25634
      List<CreditHistory> success)
-
 
25635
    {
-
 
25636
      this();
-
 
25637
      this.success = success;
-
 
25638
    }
-
 
25639
 
-
 
25640
    /**
-
 
25641
     * Performs a deep copy on <i>other</i>.
-
 
25642
     */
-
 
25643
    public getCreditHistoryRecordsForUserAndCreditor_result(getCreditHistoryRecordsForUserAndCreditor_result other) {
-
 
25644
      if (other.isSetSuccess()) {
-
 
25645
        List<CreditHistory> __this__success = new ArrayList<CreditHistory>();
-
 
25646
        for (CreditHistory other_element : other.success) {
-
 
25647
          __this__success.add(new CreditHistory(other_element));
-
 
25648
        }
-
 
25649
        this.success = __this__success;
-
 
25650
      }
-
 
25651
    }
-
 
25652
 
-
 
25653
    public getCreditHistoryRecordsForUserAndCreditor_result deepCopy() {
-
 
25654
      return new getCreditHistoryRecordsForUserAndCreditor_result(this);
-
 
25655
    }
-
 
25656
 
-
 
25657
    @Override
-
 
25658
    public void clear() {
-
 
25659
      this.success = null;
-
 
25660
    }
-
 
25661
 
-
 
25662
    public int getSuccessSize() {
-
 
25663
      return (this.success == null) ? 0 : this.success.size();
-
 
25664
    }
-
 
25665
 
-
 
25666
    public java.util.Iterator<CreditHistory> getSuccessIterator() {
-
 
25667
      return (this.success == null) ? null : this.success.iterator();
-
 
25668
    }
-
 
25669
 
-
 
25670
    public void addToSuccess(CreditHistory elem) {
-
 
25671
      if (this.success == null) {
-
 
25672
        this.success = new ArrayList<CreditHistory>();
-
 
25673
      }
-
 
25674
      this.success.add(elem);
-
 
25675
    }
-
 
25676
 
-
 
25677
    public List<CreditHistory> getSuccess() {
-
 
25678
      return this.success;
-
 
25679
    }
-
 
25680
 
-
 
25681
    public void setSuccess(List<CreditHistory> success) {
-
 
25682
      this.success = success;
-
 
25683
    }
-
 
25684
 
-
 
25685
    public void unsetSuccess() {
-
 
25686
      this.success = null;
-
 
25687
    }
-
 
25688
 
-
 
25689
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
25690
    public boolean isSetSuccess() {
-
 
25691
      return this.success != null;
-
 
25692
    }
-
 
25693
 
-
 
25694
    public void setSuccessIsSet(boolean value) {
-
 
25695
      if (!value) {
-
 
25696
        this.success = null;
-
 
25697
      }
-
 
25698
    }
-
 
25699
 
-
 
25700
    public void setFieldValue(_Fields field, Object value) {
-
 
25701
      switch (field) {
-
 
25702
      case SUCCESS:
-
 
25703
        if (value == null) {
-
 
25704
          unsetSuccess();
-
 
25705
        } else {
-
 
25706
          setSuccess((List<CreditHistory>)value);
-
 
25707
        }
-
 
25708
        break;
-
 
25709
 
-
 
25710
      }
-
 
25711
    }
-
 
25712
 
-
 
25713
    public Object getFieldValue(_Fields field) {
-
 
25714
      switch (field) {
-
 
25715
      case SUCCESS:
-
 
25716
        return getSuccess();
-
 
25717
 
-
 
25718
      }
-
 
25719
      throw new IllegalStateException();
-
 
25720
    }
-
 
25721
 
-
 
25722
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
25723
    public boolean isSet(_Fields field) {
-
 
25724
      if (field == null) {
-
 
25725
        throw new IllegalArgumentException();
-
 
25726
      }
-
 
25727
 
-
 
25728
      switch (field) {
-
 
25729
      case SUCCESS:
-
 
25730
        return isSetSuccess();
-
 
25731
      }
-
 
25732
      throw new IllegalStateException();
-
 
25733
    }
-
 
25734
 
-
 
25735
    @Override
-
 
25736
    public boolean equals(Object that) {
-
 
25737
      if (that == null)
-
 
25738
        return false;
-
 
25739
      if (that instanceof getCreditHistoryRecordsForUserAndCreditor_result)
-
 
25740
        return this.equals((getCreditHistoryRecordsForUserAndCreditor_result)that);
-
 
25741
      return false;
-
 
25742
    }
-
 
25743
 
-
 
25744
    public boolean equals(getCreditHistoryRecordsForUserAndCreditor_result that) {
-
 
25745
      if (that == null)
-
 
25746
        return false;
-
 
25747
 
-
 
25748
      boolean this_present_success = true && this.isSetSuccess();
-
 
25749
      boolean that_present_success = true && that.isSetSuccess();
-
 
25750
      if (this_present_success || that_present_success) {
-
 
25751
        if (!(this_present_success && that_present_success))
-
 
25752
          return false;
-
 
25753
        if (!this.success.equals(that.success))
-
 
25754
          return false;
-
 
25755
      }
-
 
25756
 
-
 
25757
      return true;
-
 
25758
    }
-
 
25759
 
-
 
25760
    @Override
-
 
25761
    public int hashCode() {
-
 
25762
      return 0;
-
 
25763
    }
-
 
25764
 
-
 
25765
    public int compareTo(getCreditHistoryRecordsForUserAndCreditor_result other) {
-
 
25766
      if (!getClass().equals(other.getClass())) {
-
 
25767
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25768
      }
-
 
25769
 
-
 
25770
      int lastComparison = 0;
-
 
25771
      getCreditHistoryRecordsForUserAndCreditor_result typedOther = (getCreditHistoryRecordsForUserAndCreditor_result)other;
-
 
25772
 
-
 
25773
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
25774
      if (lastComparison != 0) {
-
 
25775
        return lastComparison;
-
 
25776
      }
-
 
25777
      if (isSetSuccess()) {
-
 
25778
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
25779
        if (lastComparison != 0) {
-
 
25780
          return lastComparison;
-
 
25781
        }
-
 
25782
      }
-
 
25783
      return 0;
-
 
25784
    }
-
 
25785
 
-
 
25786
    public _Fields fieldForId(int fieldId) {
-
 
25787
      return _Fields.findByThriftId(fieldId);
-
 
25788
    }
-
 
25789
 
-
 
25790
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
25791
      org.apache.thrift.protocol.TField field;
-
 
25792
      iprot.readStructBegin();
-
 
25793
      while (true)
-
 
25794
      {
-
 
25795
        field = iprot.readFieldBegin();
-
 
25796
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
25797
          break;
-
 
25798
        }
-
 
25799
        switch (field.id) {
-
 
25800
          case 0: // SUCCESS
-
 
25801
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
25802
              {
-
 
25803
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
-
 
25804
                this.success = new ArrayList<CreditHistory>(_list56.size);
-
 
25805
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
-
 
25806
                {
-
 
25807
                  CreditHistory _elem58; // required
-
 
25808
                  _elem58 = new CreditHistory();
-
 
25809
                  _elem58.read(iprot);
-
 
25810
                  this.success.add(_elem58);
-
 
25811
                }
-
 
25812
                iprot.readListEnd();
-
 
25813
              }
-
 
25814
            } else { 
-
 
25815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25816
            }
-
 
25817
            break;
-
 
25818
          default:
-
 
25819
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25820
        }
-
 
25821
        iprot.readFieldEnd();
-
 
25822
      }
-
 
25823
      iprot.readStructEnd();
-
 
25824
      validate();
-
 
25825
    }
-
 
25826
 
-
 
25827
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
25828
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25829
 
-
 
25830
      if (this.isSetSuccess()) {
-
 
25831
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
25832
        {
-
 
25833
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
25834
          for (CreditHistory _iter59 : this.success)
-
 
25835
          {
-
 
25836
            _iter59.write(oprot);
-
 
25837
          }
-
 
25838
          oprot.writeListEnd();
-
 
25839
        }
-
 
25840
        oprot.writeFieldEnd();
-
 
25841
      }
-
 
25842
      oprot.writeFieldStop();
-
 
25843
      oprot.writeStructEnd();
-
 
25844
    }
-
 
25845
 
-
 
25846
    @Override
-
 
25847
    public String toString() {
-
 
25848
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForUserAndCreditor_result(");
-
 
25849
      boolean first = true;
-
 
25850
 
-
 
25851
      sb.append("success:");
-
 
25852
      if (this.success == null) {
-
 
25853
        sb.append("null");
-
 
25854
      } else {
-
 
25855
        sb.append(this.success);
-
 
25856
      }
-
 
25857
      first = false;
-
 
25858
      sb.append(")");
-
 
25859
      return sb.toString();
-
 
25860
    }
-
 
25861
 
-
 
25862
    public void validate() throws org.apache.thrift.TException {
-
 
25863
      // check for required fields
-
 
25864
    }
-
 
25865
 
-
 
25866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
25867
      try {
-
 
25868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
25869
      } catch (org.apache.thrift.TException te) {
-
 
25870
        throw new java.io.IOException(te);
-
 
25871
      }
-
 
25872
    }
-
 
25873
 
-
 
25874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
25875
      try {
-
 
25876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
25877
      } catch (org.apache.thrift.TException te) {
-
 
25878
        throw new java.io.IOException(te);
-
 
25879
      }
-
 
25880
    }
-
 
25881
 
-
 
25882
  }
-
 
25883
 
-
 
25884
  public static class processCreditTransaction_args implements org.apache.thrift.TBase<processCreditTransaction_args, processCreditTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
25885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCreditTransaction_args");
-
 
25886
 
-
 
25887
    private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
25888
    private static final org.apache.thrift.protocol.TField CREDIT_TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("creditTxns", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
25889
 
-
 
25890
    private long paymentId; // required
-
 
25891
    private List<CreditHistory> creditTxns; // required
-
 
25892
 
-
 
25893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
25895
      PAYMENT_ID((short)1, "paymentId"),
-
 
25896
      CREDIT_TXNS((short)2, "creditTxns");
-
 
25897
 
-
 
25898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25899
 
-
 
25900
      static {
-
 
25901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25902
          byName.put(field.getFieldName(), field);
-
 
25903
        }
-
 
25904
      }
-
 
25905
 
-
 
25906
      /**
-
 
25907
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25908
       */
-
 
25909
      public static _Fields findByThriftId(int fieldId) {
-
 
25910
        switch(fieldId) {
-
 
25911
          case 1: // PAYMENT_ID
-
 
25912
            return PAYMENT_ID;
-
 
25913
          case 2: // CREDIT_TXNS
-
 
25914
            return CREDIT_TXNS;
-
 
25915
          default:
-
 
25916
            return null;
-
 
25917
        }
-
 
25918
      }
-
 
25919
 
-
 
25920
      /**
-
 
25921
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25922
       * if it is not found.
-
 
25923
       */
-
 
25924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25925
        _Fields fields = findByThriftId(fieldId);
-
 
25926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25927
        return fields;
-
 
25928
      }
-
 
25929
 
-
 
25930
      /**
-
 
25931
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25932
       */
-
 
25933
      public static _Fields findByName(String name) {
-
 
25934
        return byName.get(name);
-
 
25935
      }
-
 
25936
 
-
 
25937
      private final short _thriftId;
-
 
25938
      private final String _fieldName;
-
 
25939
 
-
 
25940
      _Fields(short thriftId, String fieldName) {
-
 
25941
        _thriftId = thriftId;
-
 
25942
        _fieldName = fieldName;
-
 
25943
      }
-
 
25944
 
-
 
25945
      public short getThriftFieldId() {
-
 
25946
        return _thriftId;
-
 
25947
      }
-
 
25948
 
-
 
25949
      public String getFieldName() {
-
 
25950
        return _fieldName;
-
 
25951
      }
-
 
25952
    }
-
 
25953
 
-
 
25954
    // isset id assignments
-
 
25955
    private static final int __PAYMENTID_ISSET_ID = 0;
-
 
25956
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
25957
 
-
 
25958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
25959
    static {
-
 
25960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
25961
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
25963
      tmpMap.put(_Fields.CREDIT_TXNS, new org.apache.thrift.meta_data.FieldMetaData("creditTxns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25964
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
25965
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
-
 
25966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
25967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCreditTransaction_args.class, metaDataMap);
-
 
25968
    }
-
 
25969
 
-
 
25970
    public processCreditTransaction_args() {
-
 
25971
    }
-
 
25972
 
-
 
25973
    public processCreditTransaction_args(
-
 
25974
      long paymentId,
-
 
25975
      List<CreditHistory> creditTxns)
-
 
25976
    {
-
 
25977
      this();
-
 
25978
      this.paymentId = paymentId;
-
 
25979
      setPaymentIdIsSet(true);
-
 
25980
      this.creditTxns = creditTxns;
-
 
25981
    }
-
 
25982
 
-
 
25983
    /**
-
 
25984
     * Performs a deep copy on <i>other</i>.
-
 
25985
     */
-
 
25986
    public processCreditTransaction_args(processCreditTransaction_args other) {
-
 
25987
      __isset_bit_vector.clear();
-
 
25988
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
25989
      this.paymentId = other.paymentId;
-
 
25990
      if (other.isSetCreditTxns()) {
-
 
25991
        List<CreditHistory> __this__creditTxns = new ArrayList<CreditHistory>();
-
 
25992
        for (CreditHistory other_element : other.creditTxns) {
-
 
25993
          __this__creditTxns.add(new CreditHistory(other_element));
-
 
25994
        }
-
 
25995
        this.creditTxns = __this__creditTxns;
-
 
25996
      }
-
 
25997
    }
-
 
25998
 
-
 
25999
    public processCreditTransaction_args deepCopy() {
-
 
26000
      return new processCreditTransaction_args(this);
-
 
26001
    }
-
 
26002
 
-
 
26003
    @Override
-
 
26004
    public void clear() {
-
 
26005
      setPaymentIdIsSet(false);
-
 
26006
      this.paymentId = 0;
-
 
26007
      this.creditTxns = null;
-
 
26008
    }
-
 
26009
 
-
 
26010
    public long getPaymentId() {
-
 
26011
      return this.paymentId;
-
 
26012
    }
-
 
26013
 
-
 
26014
    public void setPaymentId(long paymentId) {
-
 
26015
      this.paymentId = paymentId;
-
 
26016
      setPaymentIdIsSet(true);
-
 
26017
    }
-
 
26018
 
-
 
26019
    public void unsetPaymentId() {
-
 
26020
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
-
 
26021
    }
-
 
26022
 
-
 
26023
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
-
 
26024
    public boolean isSetPaymentId() {
-
 
26025
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
-
 
26026
    }
-
 
26027
 
-
 
26028
    public void setPaymentIdIsSet(boolean value) {
-
 
26029
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
-
 
26030
    }
-
 
26031
 
-
 
26032
    public int getCreditTxnsSize() {
-
 
26033
      return (this.creditTxns == null) ? 0 : this.creditTxns.size();
-
 
26034
    }
-
 
26035
 
-
 
26036
    public java.util.Iterator<CreditHistory> getCreditTxnsIterator() {
-
 
26037
      return (this.creditTxns == null) ? null : this.creditTxns.iterator();
-
 
26038
    }
-
 
26039
 
-
 
26040
    public void addToCreditTxns(CreditHistory elem) {
-
 
26041
      if (this.creditTxns == null) {
-
 
26042
        this.creditTxns = new ArrayList<CreditHistory>();
-
 
26043
      }
-
 
26044
      this.creditTxns.add(elem);
-
 
26045
    }
-
 
26046
 
-
 
26047
    public List<CreditHistory> getCreditTxns() {
-
 
26048
      return this.creditTxns;
-
 
26049
    }
-
 
26050
 
-
 
26051
    public void setCreditTxns(List<CreditHistory> creditTxns) {
-
 
26052
      this.creditTxns = creditTxns;
-
 
26053
    }
-
 
26054
 
-
 
26055
    public void unsetCreditTxns() {
-
 
26056
      this.creditTxns = null;
-
 
26057
    }
-
 
26058
 
-
 
26059
    /** Returns true if field creditTxns is set (has been assigned a value) and false otherwise */
-
 
26060
    public boolean isSetCreditTxns() {
-
 
26061
      return this.creditTxns != null;
-
 
26062
    }
-
 
26063
 
-
 
26064
    public void setCreditTxnsIsSet(boolean value) {
-
 
26065
      if (!value) {
-
 
26066
        this.creditTxns = null;
-
 
26067
      }
-
 
26068
    }
-
 
26069
 
-
 
26070
    public void setFieldValue(_Fields field, Object value) {
-
 
26071
      switch (field) {
-
 
26072
      case PAYMENT_ID:
-
 
26073
        if (value == null) {
-
 
26074
          unsetPaymentId();
-
 
26075
        } else {
-
 
26076
          setPaymentId((Long)value);
-
 
26077
        }
-
 
26078
        break;
-
 
26079
 
-
 
26080
      case CREDIT_TXNS:
-
 
26081
        if (value == null) {
-
 
26082
          unsetCreditTxns();
-
 
26083
        } else {
-
 
26084
          setCreditTxns((List<CreditHistory>)value);
-
 
26085
        }
-
 
26086
        break;
-
 
26087
 
-
 
26088
      }
-
 
26089
    }
-
 
26090
 
-
 
26091
    public Object getFieldValue(_Fields field) {
-
 
26092
      switch (field) {
-
 
26093
      case PAYMENT_ID:
-
 
26094
        return Long.valueOf(getPaymentId());
-
 
26095
 
-
 
26096
      case CREDIT_TXNS:
-
 
26097
        return getCreditTxns();
-
 
26098
 
-
 
26099
      }
-
 
26100
      throw new IllegalStateException();
-
 
26101
    }
-
 
26102
 
-
 
26103
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
26104
    public boolean isSet(_Fields field) {
-
 
26105
      if (field == null) {
-
 
26106
        throw new IllegalArgumentException();
-
 
26107
      }
-
 
26108
 
-
 
26109
      switch (field) {
-
 
26110
      case PAYMENT_ID:
-
 
26111
        return isSetPaymentId();
-
 
26112
      case CREDIT_TXNS:
-
 
26113
        return isSetCreditTxns();
-
 
26114
      }
-
 
26115
      throw new IllegalStateException();
-
 
26116
    }
-
 
26117
 
-
 
26118
    @Override
-
 
26119
    public boolean equals(Object that) {
-
 
26120
      if (that == null)
-
 
26121
        return false;
-
 
26122
      if (that instanceof processCreditTransaction_args)
-
 
26123
        return this.equals((processCreditTransaction_args)that);
-
 
26124
      return false;
-
 
26125
    }
-
 
26126
 
-
 
26127
    public boolean equals(processCreditTransaction_args that) {
-
 
26128
      if (that == null)
-
 
26129
        return false;
-
 
26130
 
-
 
26131
      boolean this_present_paymentId = true;
-
 
26132
      boolean that_present_paymentId = true;
-
 
26133
      if (this_present_paymentId || that_present_paymentId) {
-
 
26134
        if (!(this_present_paymentId && that_present_paymentId))
-
 
26135
          return false;
-
 
26136
        if (this.paymentId != that.paymentId)
-
 
26137
          return false;
-
 
26138
      }
-
 
26139
 
-
 
26140
      boolean this_present_creditTxns = true && this.isSetCreditTxns();
-
 
26141
      boolean that_present_creditTxns = true && that.isSetCreditTxns();
-
 
26142
      if (this_present_creditTxns || that_present_creditTxns) {
-
 
26143
        if (!(this_present_creditTxns && that_present_creditTxns))
-
 
26144
          return false;
-
 
26145
        if (!this.creditTxns.equals(that.creditTxns))
-
 
26146
          return false;
-
 
26147
      }
-
 
26148
 
-
 
26149
      return true;
-
 
26150
    }
-
 
26151
 
-
 
26152
    @Override
-
 
26153
    public int hashCode() {
-
 
26154
      return 0;
-
 
26155
    }
-
 
26156
 
-
 
26157
    public int compareTo(processCreditTransaction_args other) {
-
 
26158
      if (!getClass().equals(other.getClass())) {
-
 
26159
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26160
      }
-
 
26161
 
-
 
26162
      int lastComparison = 0;
-
 
26163
      processCreditTransaction_args typedOther = (processCreditTransaction_args)other;
-
 
26164
 
-
 
26165
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
-
 
26166
      if (lastComparison != 0) {
-
 
26167
        return lastComparison;
-
 
26168
      }
-
 
26169
      if (isSetPaymentId()) {
-
 
26170
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
-
 
26171
        if (lastComparison != 0) {
-
 
26172
          return lastComparison;
-
 
26173
        }
-
 
26174
      }
-
 
26175
      lastComparison = Boolean.valueOf(isSetCreditTxns()).compareTo(typedOther.isSetCreditTxns());
-
 
26176
      if (lastComparison != 0) {
-
 
26177
        return lastComparison;
-
 
26178
      }
-
 
26179
      if (isSetCreditTxns()) {
-
 
26180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxns, typedOther.creditTxns);
-
 
26181
        if (lastComparison != 0) {
-
 
26182
          return lastComparison;
-
 
26183
        }
-
 
26184
      }
-
 
26185
      return 0;
-
 
26186
    }
-
 
26187
 
-
 
26188
    public _Fields fieldForId(int fieldId) {
-
 
26189
      return _Fields.findByThriftId(fieldId);
-
 
26190
    }
-
 
26191
 
-
 
26192
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
26193
      org.apache.thrift.protocol.TField field;
-
 
26194
      iprot.readStructBegin();
-
 
26195
      while (true)
-
 
26196
      {
-
 
26197
        field = iprot.readFieldBegin();
-
 
26198
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
26199
          break;
-
 
26200
        }
-
 
26201
        switch (field.id) {
-
 
26202
          case 1: // PAYMENT_ID
-
 
26203
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
26204
              this.paymentId = iprot.readI64();
-
 
26205
              setPaymentIdIsSet(true);
-
 
26206
            } else { 
-
 
26207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26208
            }
-
 
26209
            break;
-
 
26210
          case 2: // CREDIT_TXNS
-
 
26211
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
26212
              {
-
 
26213
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
-
 
26214
                this.creditTxns = new ArrayList<CreditHistory>(_list60.size);
-
 
26215
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
-
 
26216
                {
-
 
26217
                  CreditHistory _elem62; // required
-
 
26218
                  _elem62 = new CreditHistory();
-
 
26219
                  _elem62.read(iprot);
-
 
26220
                  this.creditTxns.add(_elem62);
-
 
26221
                }
-
 
26222
                iprot.readListEnd();
-
 
26223
              }
-
 
26224
            } else { 
-
 
26225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26226
            }
-
 
26227
            break;
-
 
26228
          default:
-
 
26229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26230
        }
-
 
26231
        iprot.readFieldEnd();
-
 
26232
      }
-
 
26233
      iprot.readStructEnd();
-
 
26234
      validate();
-
 
26235
    }
-
 
26236
 
-
 
26237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
26238
      validate();
-
 
26239
 
-
 
26240
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26241
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
-
 
26242
      oprot.writeI64(this.paymentId);
-
 
26243
      oprot.writeFieldEnd();
-
 
26244
      if (this.creditTxns != null) {
-
 
26245
        oprot.writeFieldBegin(CREDIT_TXNS_FIELD_DESC);
-
 
26246
        {
-
 
26247
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.creditTxns.size()));
-
 
26248
          for (CreditHistory _iter63 : this.creditTxns)
-
 
26249
          {
-
 
26250
            _iter63.write(oprot);
-
 
26251
          }
-
 
26252
          oprot.writeListEnd();
-
 
26253
        }
-
 
26254
        oprot.writeFieldEnd();
-
 
26255
      }
-
 
26256
      oprot.writeFieldStop();
-
 
26257
      oprot.writeStructEnd();
-
 
26258
    }
-
 
26259
 
-
 
26260
    @Override
-
 
26261
    public String toString() {
-
 
26262
      StringBuilder sb = new StringBuilder("processCreditTransaction_args(");
-
 
26263
      boolean first = true;
-
 
26264
 
-
 
26265
      sb.append("paymentId:");
-
 
26266
      sb.append(this.paymentId);
-
 
26267
      first = false;
-
 
26268
      if (!first) sb.append(", ");
-
 
26269
      sb.append("creditTxns:");
-
 
26270
      if (this.creditTxns == null) {
-
 
26271
        sb.append("null");
-
 
26272
      } else {
-
 
26273
        sb.append(this.creditTxns);
-
 
26274
      }
-
 
26275
      first = false;
-
 
26276
      sb.append(")");
-
 
26277
      return sb.toString();
-
 
26278
    }
-
 
26279
 
-
 
26280
    public void validate() throws org.apache.thrift.TException {
-
 
26281
      // check for required fields
-
 
26282
    }
-
 
26283
 
-
 
26284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
26285
      try {
-
 
26286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
26287
      } catch (org.apache.thrift.TException te) {
-
 
26288
        throw new java.io.IOException(te);
-
 
26289
      }
-
 
26290
    }
-
 
26291
 
-
 
26292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
26293
      try {
-
 
26294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
26295
        __isset_bit_vector = new BitSet(1);
-
 
26296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
26297
      } catch (org.apache.thrift.TException te) {
-
 
26298
        throw new java.io.IOException(te);
-
 
26299
      }
-
 
26300
    }
-
 
26301
 
-
 
26302
  }
-
 
26303
 
-
 
26304
  public static class processCreditTransaction_result implements org.apache.thrift.TBase<processCreditTransaction_result, processCreditTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
26305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCreditTransaction_result");
-
 
26306
 
-
 
26307
    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);
-
 
26308
    private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
26309
 
-
 
26310
    private boolean success; // required
-
 
26311
    private PaymentException pe; // required
-
 
26312
 
-
 
26313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
26315
      SUCCESS((short)0, "success"),
-
 
26316
      PE((short)1, "pe");
-
 
26317
 
-
 
26318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26319
 
-
 
26320
      static {
-
 
26321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26322
          byName.put(field.getFieldName(), field);
-
 
26323
        }
-
 
26324
      }
-
 
26325
 
-
 
26326
      /**
-
 
26327
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26328
       */
-
 
26329
      public static _Fields findByThriftId(int fieldId) {
-
 
26330
        switch(fieldId) {
-
 
26331
          case 0: // SUCCESS
-
 
26332
            return SUCCESS;
-
 
26333
          case 1: // PE
-
 
26334
            return PE;
-
 
26335
          default:
-
 
26336
            return null;
-
 
26337
        }
-
 
26338
      }
-
 
26339
 
-
 
26340
      /**
-
 
26341
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26342
       * if it is not found.
-
 
26343
       */
-
 
26344
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26345
        _Fields fields = findByThriftId(fieldId);
-
 
26346
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26347
        return fields;
-
 
26348
      }
-
 
26349
 
-
 
26350
      /**
-
 
26351
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26352
       */
-
 
26353
      public static _Fields findByName(String name) {
-
 
26354
        return byName.get(name);
-
 
26355
      }
-
 
26356
 
-
 
26357
      private final short _thriftId;
-
 
26358
      private final String _fieldName;
-
 
26359
 
-
 
26360
      _Fields(short thriftId, String fieldName) {
-
 
26361
        _thriftId = thriftId;
-
 
26362
        _fieldName = fieldName;
-
 
26363
      }
-
 
26364
 
-
 
26365
      public short getThriftFieldId() {
-
 
26366
        return _thriftId;
-
 
26367
      }
-
 
26368
 
-
 
26369
      public String getFieldName() {
-
 
26370
        return _fieldName;
-
 
26371
      }
-
 
26372
    }
-
 
26373
 
-
 
26374
    // isset id assignments
-
 
26375
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
26376
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
26377
 
-
 
26378
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
26379
    static {
-
 
26380
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
26381
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
26383
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26384
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
26385
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
26386
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCreditTransaction_result.class, metaDataMap);
-
 
26387
    }
-
 
26388
 
-
 
26389
    public processCreditTransaction_result() {
-
 
26390
    }
-
 
26391
 
-
 
26392
    public processCreditTransaction_result(
-
 
26393
      boolean success,
-
 
26394
      PaymentException pe)
-
 
26395
    {
-
 
26396
      this();
-
 
26397
      this.success = success;
-
 
26398
      setSuccessIsSet(true);
-
 
26399
      this.pe = pe;
-
 
26400
    }
-
 
26401
 
-
 
26402
    /**
-
 
26403
     * Performs a deep copy on <i>other</i>.
-
 
26404
     */
-
 
26405
    public processCreditTransaction_result(processCreditTransaction_result other) {
-
 
26406
      __isset_bit_vector.clear();
-
 
26407
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
26408
      this.success = other.success;
-
 
26409
      if (other.isSetPe()) {
-
 
26410
        this.pe = new PaymentException(other.pe);
-
 
26411
      }
-
 
26412
    }
-
 
26413
 
-
 
26414
    public processCreditTransaction_result deepCopy() {
-
 
26415
      return new processCreditTransaction_result(this);
-
 
26416
    }
-
 
26417
 
-
 
26418
    @Override
-
 
26419
    public void clear() {
-
 
26420
      setSuccessIsSet(false);
-
 
26421
      this.success = false;
-
 
26422
      this.pe = null;
-
 
26423
    }
-
 
26424
 
-
 
26425
    public boolean isSuccess() {
-
 
26426
      return this.success;
-
 
26427
    }
-
 
26428
 
-
 
26429
    public void setSuccess(boolean success) {
-
 
26430
      this.success = success;
-
 
26431
      setSuccessIsSet(true);
-
 
26432
    }
-
 
26433
 
-
 
26434
    public void unsetSuccess() {
-
 
26435
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
26436
    }
-
 
26437
 
-
 
26438
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
26439
    public boolean isSetSuccess() {
-
 
26440
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
26441
    }
-
 
26442
 
-
 
26443
    public void setSuccessIsSet(boolean value) {
-
 
26444
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
26445
    }
-
 
26446
 
-
 
26447
    public PaymentException getPe() {
-
 
26448
      return this.pe;
-
 
26449
    }
-
 
26450
 
-
 
26451
    public void setPe(PaymentException pe) {
-
 
26452
      this.pe = pe;
-
 
26453
    }
-
 
26454
 
-
 
26455
    public void unsetPe() {
-
 
26456
      this.pe = null;
-
 
26457
    }
-
 
26458
 
-
 
26459
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
26460
    public boolean isSetPe() {
-
 
26461
      return this.pe != null;
-
 
26462
    }
-
 
26463
 
-
 
26464
    public void setPeIsSet(boolean value) {
-
 
26465
      if (!value) {
-
 
26466
        this.pe = null;
-
 
26467
      }
-
 
26468
    }
-
 
26469
 
-
 
26470
    public void setFieldValue(_Fields field, Object value) {
-
 
26471
      switch (field) {
-
 
26472
      case SUCCESS:
-
 
26473
        if (value == null) {
-
 
26474
          unsetSuccess();
-
 
26475
        } else {
-
 
26476
          setSuccess((Boolean)value);
-
 
26477
        }
-
 
26478
        break;
-
 
26479
 
-
 
26480
      case PE:
-
 
26481
        if (value == null) {
-
 
26482
          unsetPe();
-
 
26483
        } else {
-
 
26484
          setPe((PaymentException)value);
-
 
26485
        }
-
 
26486
        break;
-
 
26487
 
-
 
26488
      }
-
 
26489
    }
-
 
26490
 
-
 
26491
    public Object getFieldValue(_Fields field) {
-
 
26492
      switch (field) {
-
 
26493
      case SUCCESS:
-
 
26494
        return Boolean.valueOf(isSuccess());
-
 
26495
 
-
 
26496
      case PE:
-
 
26497
        return getPe();
-
 
26498
 
-
 
26499
      }
-
 
26500
      throw new IllegalStateException();
-
 
26501
    }
-
 
26502
 
-
 
26503
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
26504
    public boolean isSet(_Fields field) {
-
 
26505
      if (field == null) {
-
 
26506
        throw new IllegalArgumentException();
-
 
26507
      }
-
 
26508
 
-
 
26509
      switch (field) {
-
 
26510
      case SUCCESS:
-
 
26511
        return isSetSuccess();
-
 
26512
      case PE:
-
 
26513
        return isSetPe();
-
 
26514
      }
-
 
26515
      throw new IllegalStateException();
-
 
26516
    }
-
 
26517
 
-
 
26518
    @Override
-
 
26519
    public boolean equals(Object that) {
-
 
26520
      if (that == null)
-
 
26521
        return false;
-
 
26522
      if (that instanceof processCreditTransaction_result)
-
 
26523
        return this.equals((processCreditTransaction_result)that);
-
 
26524
      return false;
-
 
26525
    }
-
 
26526
 
-
 
26527
    public boolean equals(processCreditTransaction_result that) {
-
 
26528
      if (that == null)
-
 
26529
        return false;
-
 
26530
 
-
 
26531
      boolean this_present_success = true;
-
 
26532
      boolean that_present_success = true;
-
 
26533
      if (this_present_success || that_present_success) {
-
 
26534
        if (!(this_present_success && that_present_success))
-
 
26535
          return false;
-
 
26536
        if (this.success != that.success)
-
 
26537
          return false;
-
 
26538
      }
-
 
26539
 
-
 
26540
      boolean this_present_pe = true && this.isSetPe();
-
 
26541
      boolean that_present_pe = true && that.isSetPe();
-
 
26542
      if (this_present_pe || that_present_pe) {
-
 
26543
        if (!(this_present_pe && that_present_pe))
-
 
26544
          return false;
-
 
26545
        if (!this.pe.equals(that.pe))
-
 
26546
          return false;
-
 
26547
      }
-
 
26548
 
-
 
26549
      return true;
-
 
26550
    }
-
 
26551
 
-
 
26552
    @Override
-
 
26553
    public int hashCode() {
-
 
26554
      return 0;
-
 
26555
    }
-
 
26556
 
-
 
26557
    public int compareTo(processCreditTransaction_result other) {
-
 
26558
      if (!getClass().equals(other.getClass())) {
-
 
26559
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26560
      }
-
 
26561
 
-
 
26562
      int lastComparison = 0;
-
 
26563
      processCreditTransaction_result typedOther = (processCreditTransaction_result)other;
-
 
26564
 
-
 
26565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
26566
      if (lastComparison != 0) {
-
 
26567
        return lastComparison;
-
 
26568
      }
-
 
26569
      if (isSetSuccess()) {
-
 
26570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
26571
        if (lastComparison != 0) {
-
 
26572
          return lastComparison;
-
 
26573
        }
-
 
26574
      }
-
 
26575
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
26576
      if (lastComparison != 0) {
-
 
26577
        return lastComparison;
-
 
26578
      }
-
 
26579
      if (isSetPe()) {
-
 
26580
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
26581
        if (lastComparison != 0) {
-
 
26582
          return lastComparison;
-
 
26583
        }
-
 
26584
      }
-
 
26585
      return 0;
-
 
26586
    }
-
 
26587
 
-
 
26588
    public _Fields fieldForId(int fieldId) {
-
 
26589
      return _Fields.findByThriftId(fieldId);
-
 
26590
    }
-
 
26591
 
-
 
26592
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
26593
      org.apache.thrift.protocol.TField field;
-
 
26594
      iprot.readStructBegin();
-
 
26595
      while (true)
-
 
26596
      {
-
 
26597
        field = iprot.readFieldBegin();
-
 
26598
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
26599
          break;
-
 
26600
        }
-
 
26601
        switch (field.id) {
-
 
26602
          case 0: // SUCCESS
-
 
26603
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
26604
              this.success = iprot.readBool();
-
 
26605
              setSuccessIsSet(true);
-
 
26606
            } else { 
-
 
26607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26608
            }
-
 
26609
            break;
-
 
26610
          case 1: // PE
-
 
26611
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
26612
              this.pe = new PaymentException();
-
 
26613
              this.pe.read(iprot);
-
 
26614
            } else { 
-
 
26615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26616
            }
-
 
26617
            break;
-
 
26618
          default:
-
 
26619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26620
        }
-
 
26621
        iprot.readFieldEnd();
-
 
26622
      }
-
 
26623
      iprot.readStructEnd();
-
 
26624
      validate();
-
 
26625
    }
-
 
26626
 
-
 
26627
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
26628
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26629
 
-
 
26630
      if (this.isSetSuccess()) {
-
 
26631
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
26632
        oprot.writeBool(this.success);
-
 
26633
        oprot.writeFieldEnd();
-
 
26634
      } else if (this.isSetPe()) {
-
 
26635
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
26636
        this.pe.write(oprot);
-
 
26637
        oprot.writeFieldEnd();
-
 
26638
      }
-
 
26639
      oprot.writeFieldStop();
-
 
26640
      oprot.writeStructEnd();
-
 
26641
    }
-
 
26642
 
-
 
26643
    @Override
-
 
26644
    public String toString() {
-
 
26645
      StringBuilder sb = new StringBuilder("processCreditTransaction_result(");
-
 
26646
      boolean first = true;
-
 
26647
 
-
 
26648
      sb.append("success:");
-
 
26649
      sb.append(this.success);
-
 
26650
      first = false;
-
 
26651
      if (!first) sb.append(", ");
-
 
26652
      sb.append("pe:");
-
 
26653
      if (this.pe == null) {
-
 
26654
        sb.append("null");
-
 
26655
      } else {
-
 
26656
        sb.append(this.pe);
-
 
26657
      }
-
 
26658
      first = false;
-
 
26659
      sb.append(")");
-
 
26660
      return sb.toString();
-
 
26661
    }
-
 
26662
 
-
 
26663
    public void validate() throws org.apache.thrift.TException {
-
 
26664
      // check for required fields
-
 
26665
    }
-
 
26666
 
-
 
26667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
26668
      try {
-
 
26669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
26670
      } catch (org.apache.thrift.TException te) {
-
 
26671
        throw new java.io.IOException(te);
-
 
26672
      }
-
 
26673
    }
-
 
26674
 
-
 
26675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
26676
      try {
-
 
26677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
26678
      } catch (org.apache.thrift.TException te) {
-
 
26679
        throw new java.io.IOException(te);
-
 
26680
      }
-
 
26681
    }
-
 
26682
 
-
 
26683
  }
-
 
26684
 
-
 
26685
  public static class getLoanPayableForUserToCreditor_args implements org.apache.thrift.TBase<getLoanPayableForUserToCreditor_args, getLoanPayableForUserToCreditor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
26686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanPayableForUserToCreditor_args");
-
 
26687
 
-
 
26688
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
26689
    private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
26690
    private static final org.apache.thrift.protocol.TField DUE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("dueDate", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
26691
 
-
 
26692
    private long userId; // required
-
 
26693
    private long creditorId; // required
-
 
26694
    private long dueDate; // required
-
 
26695
 
-
 
26696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
26698
      USER_ID((short)1, "userId"),
-
 
26699
      CREDITOR_ID((short)2, "creditorId"),
-
 
26700
      DUE_DATE((short)3, "dueDate");
-
 
26701
 
-
 
26702
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26703
 
-
 
26704
      static {
-
 
26705
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26706
          byName.put(field.getFieldName(), field);
-
 
26707
        }
-
 
26708
      }
-
 
26709
 
-
 
26710
      /**
-
 
26711
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26712
       */
-
 
26713
      public static _Fields findByThriftId(int fieldId) {
-
 
26714
        switch(fieldId) {
-
 
26715
          case 1: // USER_ID
-
 
26716
            return USER_ID;
-
 
26717
          case 2: // CREDITOR_ID
-
 
26718
            return CREDITOR_ID;
-
 
26719
          case 3: // DUE_DATE
-
 
26720
            return DUE_DATE;
-
 
26721
          default:
-
 
26722
            return null;
-
 
26723
        }
-
 
26724
      }
-
 
26725
 
-
 
26726
      /**
-
 
26727
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26728
       * if it is not found.
-
 
26729
       */
-
 
26730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26731
        _Fields fields = findByThriftId(fieldId);
-
 
26732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26733
        return fields;
-
 
26734
      }
-
 
26735
 
-
 
26736
      /**
-
 
26737
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26738
       */
-
 
26739
      public static _Fields findByName(String name) {
-
 
26740
        return byName.get(name);
-
 
26741
      }
-
 
26742
 
-
 
26743
      private final short _thriftId;
-
 
26744
      private final String _fieldName;
-
 
26745
 
-
 
26746
      _Fields(short thriftId, String fieldName) {
-
 
26747
        _thriftId = thriftId;
-
 
26748
        _fieldName = fieldName;
-
 
26749
      }
-
 
26750
 
-
 
26751
      public short getThriftFieldId() {
-
 
26752
        return _thriftId;
-
 
26753
      }
-
 
26754
 
-
 
26755
      public String getFieldName() {
-
 
26756
        return _fieldName;
-
 
26757
      }
-
 
26758
    }
-
 
26759
 
-
 
26760
    // isset id assignments
-
 
26761
    private static final int __USERID_ISSET_ID = 0;
-
 
26762
    private static final int __CREDITORID_ISSET_ID = 1;
-
 
26763
    private static final int __DUEDATE_ISSET_ID = 2;
-
 
26764
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
26765
 
-
 
26766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
26767
    static {
-
 
26768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
26769
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26770
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
26771
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26772
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
26773
      tmpMap.put(_Fields.DUE_DATE, new org.apache.thrift.meta_data.FieldMetaData("dueDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26774
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
26775
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
26776
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanPayableForUserToCreditor_args.class, metaDataMap);
-
 
26777
    }
-
 
26778
 
-
 
26779
    public getLoanPayableForUserToCreditor_args() {
-
 
26780
    }
-
 
26781
 
-
 
26782
    public getLoanPayableForUserToCreditor_args(
-
 
26783
      long userId,
-
 
26784
      long creditorId,
-
 
26785
      long dueDate)
-
 
26786
    {
-
 
26787
      this();
-
 
26788
      this.userId = userId;
-
 
26789
      setUserIdIsSet(true);
-
 
26790
      this.creditorId = creditorId;
-
 
26791
      setCreditorIdIsSet(true);
-
 
26792
      this.dueDate = dueDate;
-
 
26793
      setDueDateIsSet(true);
-
 
26794
    }
-
 
26795
 
-
 
26796
    /**
-
 
26797
     * Performs a deep copy on <i>other</i>.
-
 
26798
     */
-
 
26799
    public getLoanPayableForUserToCreditor_args(getLoanPayableForUserToCreditor_args other) {
-
 
26800
      __isset_bit_vector.clear();
-
 
26801
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
26802
      this.userId = other.userId;
-
 
26803
      this.creditorId = other.creditorId;
-
 
26804
      this.dueDate = other.dueDate;
-
 
26805
    }
-
 
26806
 
-
 
26807
    public getLoanPayableForUserToCreditor_args deepCopy() {
-
 
26808
      return new getLoanPayableForUserToCreditor_args(this);
-
 
26809
    }
-
 
26810
 
-
 
26811
    @Override
-
 
26812
    public void clear() {
-
 
26813
      setUserIdIsSet(false);
-
 
26814
      this.userId = 0;
-
 
26815
      setCreditorIdIsSet(false);
-
 
26816
      this.creditorId = 0;
-
 
26817
      setDueDateIsSet(false);
-
 
26818
      this.dueDate = 0;
-
 
26819
    }
-
 
26820
 
-
 
26821
    public long getUserId() {
-
 
26822
      return this.userId;
-
 
26823
    }
-
 
26824
 
-
 
26825
    public void setUserId(long userId) {
-
 
26826
      this.userId = userId;
-
 
26827
      setUserIdIsSet(true);
-
 
26828
    }
-
 
26829
 
-
 
26830
    public void unsetUserId() {
-
 
26831
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
26832
    }
-
 
26833
 
-
 
26834
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
26835
    public boolean isSetUserId() {
-
 
26836
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
26837
    }
-
 
26838
 
-
 
26839
    public void setUserIdIsSet(boolean value) {
-
 
26840
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
26841
    }
-
 
26842
 
-
 
26843
    public long getCreditorId() {
-
 
26844
      return this.creditorId;
-
 
26845
    }
-
 
26846
 
-
 
26847
    public void setCreditorId(long creditorId) {
-
 
26848
      this.creditorId = creditorId;
-
 
26849
      setCreditorIdIsSet(true);
-
 
26850
    }
-
 
26851
 
-
 
26852
    public void unsetCreditorId() {
-
 
26853
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
26854
    }
-
 
26855
 
-
 
26856
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
26857
    public boolean isSetCreditorId() {
-
 
26858
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
26859
    }
-
 
26860
 
-
 
26861
    public void setCreditorIdIsSet(boolean value) {
-
 
26862
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
26863
    }
-
 
26864
 
-
 
26865
    public long getDueDate() {
-
 
26866
      return this.dueDate;
-
 
26867
    }
-
 
26868
 
-
 
26869
    public void setDueDate(long dueDate) {
-
 
26870
      this.dueDate = dueDate;
-
 
26871
      setDueDateIsSet(true);
-
 
26872
    }
-
 
26873
 
-
 
26874
    public void unsetDueDate() {
-
 
26875
      __isset_bit_vector.clear(__DUEDATE_ISSET_ID);
-
 
26876
    }
-
 
26877
 
-
 
26878
    /** Returns true if field dueDate is set (has been assigned a value) and false otherwise */
-
 
26879
    public boolean isSetDueDate() {
-
 
26880
      return __isset_bit_vector.get(__DUEDATE_ISSET_ID);
-
 
26881
    }
-
 
26882
 
-
 
26883
    public void setDueDateIsSet(boolean value) {
-
 
26884
      __isset_bit_vector.set(__DUEDATE_ISSET_ID, value);
-
 
26885
    }
-
 
26886
 
-
 
26887
    public void setFieldValue(_Fields field, Object value) {
-
 
26888
      switch (field) {
-
 
26889
      case USER_ID:
-
 
26890
        if (value == null) {
-
 
26891
          unsetUserId();
-
 
26892
        } else {
-
 
26893
          setUserId((Long)value);
-
 
26894
        }
-
 
26895
        break;
-
 
26896
 
-
 
26897
      case CREDITOR_ID:
-
 
26898
        if (value == null) {
-
 
26899
          unsetCreditorId();
-
 
26900
        } else {
-
 
26901
          setCreditorId((Long)value);
-
 
26902
        }
-
 
26903
        break;
-
 
26904
 
-
 
26905
      case DUE_DATE:
-
 
26906
        if (value == null) {
-
 
26907
          unsetDueDate();
-
 
26908
        } else {
-
 
26909
          setDueDate((Long)value);
-
 
26910
        }
-
 
26911
        break;
-
 
26912
 
-
 
26913
      }
-
 
26914
    }
-
 
26915
 
-
 
26916
    public Object getFieldValue(_Fields field) {
-
 
26917
      switch (field) {
-
 
26918
      case USER_ID:
-
 
26919
        return Long.valueOf(getUserId());
-
 
26920
 
-
 
26921
      case CREDITOR_ID:
-
 
26922
        return Long.valueOf(getCreditorId());
-
 
26923
 
-
 
26924
      case DUE_DATE:
-
 
26925
        return Long.valueOf(getDueDate());
-
 
26926
 
-
 
26927
      }
-
 
26928
      throw new IllegalStateException();
-
 
26929
    }
-
 
26930
 
-
 
26931
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
26932
    public boolean isSet(_Fields field) {
-
 
26933
      if (field == null) {
-
 
26934
        throw new IllegalArgumentException();
-
 
26935
      }
-
 
26936
 
-
 
26937
      switch (field) {
-
 
26938
      case USER_ID:
-
 
26939
        return isSetUserId();
-
 
26940
      case CREDITOR_ID:
-
 
26941
        return isSetCreditorId();
-
 
26942
      case DUE_DATE:
-
 
26943
        return isSetDueDate();
-
 
26944
      }
-
 
26945
      throw new IllegalStateException();
-
 
26946
    }
-
 
26947
 
-
 
26948
    @Override
-
 
26949
    public boolean equals(Object that) {
-
 
26950
      if (that == null)
-
 
26951
        return false;
-
 
26952
      if (that instanceof getLoanPayableForUserToCreditor_args)
-
 
26953
        return this.equals((getLoanPayableForUserToCreditor_args)that);
-
 
26954
      return false;
-
 
26955
    }
-
 
26956
 
-
 
26957
    public boolean equals(getLoanPayableForUserToCreditor_args that) {
-
 
26958
      if (that == null)
-
 
26959
        return false;
-
 
26960
 
-
 
26961
      boolean this_present_userId = true;
-
 
26962
      boolean that_present_userId = true;
-
 
26963
      if (this_present_userId || that_present_userId) {
-
 
26964
        if (!(this_present_userId && that_present_userId))
-
 
26965
          return false;
-
 
26966
        if (this.userId != that.userId)
-
 
26967
          return false;
-
 
26968
      }
-
 
26969
 
-
 
26970
      boolean this_present_creditorId = true;
-
 
26971
      boolean that_present_creditorId = true;
-
 
26972
      if (this_present_creditorId || that_present_creditorId) {
-
 
26973
        if (!(this_present_creditorId && that_present_creditorId))
-
 
26974
          return false;
-
 
26975
        if (this.creditorId != that.creditorId)
-
 
26976
          return false;
-
 
26977
      }
-
 
26978
 
-
 
26979
      boolean this_present_dueDate = true;
-
 
26980
      boolean that_present_dueDate = true;
-
 
26981
      if (this_present_dueDate || that_present_dueDate) {
-
 
26982
        if (!(this_present_dueDate && that_present_dueDate))
-
 
26983
          return false;
-
 
26984
        if (this.dueDate != that.dueDate)
-
 
26985
          return false;
-
 
26986
      }
-
 
26987
 
-
 
26988
      return true;
-
 
26989
    }
-
 
26990
 
-
 
26991
    @Override
-
 
26992
    public int hashCode() {
-
 
26993
      return 0;
-
 
26994
    }
-
 
26995
 
-
 
26996
    public int compareTo(getLoanPayableForUserToCreditor_args other) {
-
 
26997
      if (!getClass().equals(other.getClass())) {
-
 
26998
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26999
      }
-
 
27000
 
-
 
27001
      int lastComparison = 0;
-
 
27002
      getLoanPayableForUserToCreditor_args typedOther = (getLoanPayableForUserToCreditor_args)other;
-
 
27003
 
-
 
27004
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
27005
      if (lastComparison != 0) {
-
 
27006
        return lastComparison;
-
 
27007
      }
-
 
27008
      if (isSetUserId()) {
-
 
27009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
27010
        if (lastComparison != 0) {
-
 
27011
          return lastComparison;
-
 
27012
        }
-
 
27013
      }
-
 
27014
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
27015
      if (lastComparison != 0) {
-
 
27016
        return lastComparison;
-
 
27017
      }
-
 
27018
      if (isSetCreditorId()) {
-
 
27019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
27020
        if (lastComparison != 0) {
-
 
27021
          return lastComparison;
-
 
27022
        }
-
 
27023
      }
-
 
27024
      lastComparison = Boolean.valueOf(isSetDueDate()).compareTo(typedOther.isSetDueDate());
-
 
27025
      if (lastComparison != 0) {
-
 
27026
        return lastComparison;
-
 
27027
      }
-
 
27028
      if (isSetDueDate()) {
-
 
27029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dueDate, typedOther.dueDate);
-
 
27030
        if (lastComparison != 0) {
-
 
27031
          return lastComparison;
-
 
27032
        }
-
 
27033
      }
-
 
27034
      return 0;
-
 
27035
    }
-
 
27036
 
-
 
27037
    public _Fields fieldForId(int fieldId) {
-
 
27038
      return _Fields.findByThriftId(fieldId);
-
 
27039
    }
-
 
27040
 
-
 
27041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
27042
      org.apache.thrift.protocol.TField field;
-
 
27043
      iprot.readStructBegin();
-
 
27044
      while (true)
-
 
27045
      {
-
 
27046
        field = iprot.readFieldBegin();
-
 
27047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
27048
          break;
-
 
27049
        }
-
 
27050
        switch (field.id) {
-
 
27051
          case 1: // USER_ID
-
 
27052
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
27053
              this.userId = iprot.readI64();
-
 
27054
              setUserIdIsSet(true);
-
 
27055
            } else { 
-
 
27056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27057
            }
-
 
27058
            break;
-
 
27059
          case 2: // CREDITOR_ID
-
 
27060
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
27061
              this.creditorId = iprot.readI64();
-
 
27062
              setCreditorIdIsSet(true);
-
 
27063
            } else { 
-
 
27064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27065
            }
-
 
27066
            break;
-
 
27067
          case 3: // DUE_DATE
-
 
27068
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
27069
              this.dueDate = iprot.readI64();
-
 
27070
              setDueDateIsSet(true);
-
 
27071
            } else { 
-
 
27072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27073
            }
-
 
27074
            break;
-
 
27075
          default:
-
 
27076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27077
        }
-
 
27078
        iprot.readFieldEnd();
-
 
27079
      }
-
 
27080
      iprot.readStructEnd();
-
 
27081
      validate();
-
 
27082
    }
-
 
27083
 
-
 
27084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
27085
      validate();
-
 
27086
 
-
 
27087
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27088
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
27089
      oprot.writeI64(this.userId);
-
 
27090
      oprot.writeFieldEnd();
-
 
27091
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
27092
      oprot.writeI64(this.creditorId);
-
 
27093
      oprot.writeFieldEnd();
-
 
27094
      oprot.writeFieldBegin(DUE_DATE_FIELD_DESC);
-
 
27095
      oprot.writeI64(this.dueDate);
-
 
27096
      oprot.writeFieldEnd();
-
 
27097
      oprot.writeFieldStop();
-
 
27098
      oprot.writeStructEnd();
-
 
27099
    }
-
 
27100
 
-
 
27101
    @Override
-
 
27102
    public String toString() {
-
 
27103
      StringBuilder sb = new StringBuilder("getLoanPayableForUserToCreditor_args(");
-
 
27104
      boolean first = true;
-
 
27105
 
-
 
27106
      sb.append("userId:");
-
 
27107
      sb.append(this.userId);
-
 
27108
      first = false;
-
 
27109
      if (!first) sb.append(", ");
-
 
27110
      sb.append("creditorId:");
-
 
27111
      sb.append(this.creditorId);
-
 
27112
      first = false;
-
 
27113
      if (!first) sb.append(", ");
-
 
27114
      sb.append("dueDate:");
-
 
27115
      sb.append(this.dueDate);
-
 
27116
      first = false;
-
 
27117
      sb.append(")");
-
 
27118
      return sb.toString();
-
 
27119
    }
-
 
27120
 
-
 
27121
    public void validate() throws org.apache.thrift.TException {
-
 
27122
      // check for required fields
-
 
27123
    }
-
 
27124
 
-
 
27125
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
27126
      try {
-
 
27127
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
27128
      } catch (org.apache.thrift.TException te) {
-
 
27129
        throw new java.io.IOException(te);
-
 
27130
      }
-
 
27131
    }
-
 
27132
 
-
 
27133
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
27134
      try {
-
 
27135
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
27136
        __isset_bit_vector = new BitSet(1);
-
 
27137
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
27138
      } catch (org.apache.thrift.TException te) {
-
 
27139
        throw new java.io.IOException(te);
-
 
27140
      }
-
 
27141
    }
-
 
27142
 
-
 
27143
  }
-
 
27144
 
-
 
27145
  public static class getLoanPayableForUserToCreditor_result implements org.apache.thrift.TBase<getLoanPayableForUserToCreditor_result, getLoanPayableForUserToCreditor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
27146
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanPayableForUserToCreditor_result");
-
 
27147
 
-
 
27148
    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);
-
 
27149
 
-
 
27150
    private List<CreditHistory> success; // required
-
 
27151
 
-
 
27152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27153
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
27154
      SUCCESS((short)0, "success");
-
 
27155
 
-
 
27156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27157
 
-
 
27158
      static {
-
 
27159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27160
          byName.put(field.getFieldName(), field);
-
 
27161
        }
-
 
27162
      }
-
 
27163
 
-
 
27164
      /**
-
 
27165
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27166
       */
-
 
27167
      public static _Fields findByThriftId(int fieldId) {
-
 
27168
        switch(fieldId) {
-
 
27169
          case 0: // SUCCESS
-
 
27170
            return SUCCESS;
-
 
27171
          default:
-
 
27172
            return null;
-
 
27173
        }
-
 
27174
      }
-
 
27175
 
-
 
27176
      /**
-
 
27177
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27178
       * if it is not found.
-
 
27179
       */
-
 
27180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27181
        _Fields fields = findByThriftId(fieldId);
-
 
27182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27183
        return fields;
-
 
27184
      }
-
 
27185
 
-
 
27186
      /**
-
 
27187
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27188
       */
-
 
27189
      public static _Fields findByName(String name) {
-
 
27190
        return byName.get(name);
-
 
27191
      }
-
 
27192
 
-
 
27193
      private final short _thriftId;
-
 
27194
      private final String _fieldName;
-
 
27195
 
-
 
27196
      _Fields(short thriftId, String fieldName) {
-
 
27197
        _thriftId = thriftId;
-
 
27198
        _fieldName = fieldName;
-
 
27199
      }
-
 
27200
 
-
 
27201
      public short getThriftFieldId() {
-
 
27202
        return _thriftId;
-
 
27203
      }
-
 
27204
 
-
 
27205
      public String getFieldName() {
-
 
27206
        return _fieldName;
-
 
27207
      }
-
 
27208
    }
-
 
27209
 
-
 
27210
    // isset id assignments
-
 
27211
 
-
 
27212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
27213
    static {
-
 
27214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
27215
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
27216
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
27217
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
-
 
27218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
27219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanPayableForUserToCreditor_result.class, metaDataMap);
-
 
27220
    }
-
 
27221
 
-
 
27222
    public getLoanPayableForUserToCreditor_result() {
-
 
27223
    }
-
 
27224
 
-
 
27225
    public getLoanPayableForUserToCreditor_result(
-
 
27226
      List<CreditHistory> success)
-
 
27227
    {
-
 
27228
      this();
-
 
27229
      this.success = success;
-
 
27230
    }
-
 
27231
 
-
 
27232
    /**
-
 
27233
     * Performs a deep copy on <i>other</i>.
-
 
27234
     */
-
 
27235
    public getLoanPayableForUserToCreditor_result(getLoanPayableForUserToCreditor_result other) {
-
 
27236
      if (other.isSetSuccess()) {
-
 
27237
        List<CreditHistory> __this__success = new ArrayList<CreditHistory>();
-
 
27238
        for (CreditHistory other_element : other.success) {
-
 
27239
          __this__success.add(new CreditHistory(other_element));
-
 
27240
        }
-
 
27241
        this.success = __this__success;
-
 
27242
      }
-
 
27243
    }
-
 
27244
 
-
 
27245
    public getLoanPayableForUserToCreditor_result deepCopy() {
-
 
27246
      return new getLoanPayableForUserToCreditor_result(this);
-
 
27247
    }
-
 
27248
 
-
 
27249
    @Override
-
 
27250
    public void clear() {
-
 
27251
      this.success = null;
-
 
27252
    }
-
 
27253
 
-
 
27254
    public int getSuccessSize() {
-
 
27255
      return (this.success == null) ? 0 : this.success.size();
-
 
27256
    }
-
 
27257
 
-
 
27258
    public java.util.Iterator<CreditHistory> getSuccessIterator() {
-
 
27259
      return (this.success == null) ? null : this.success.iterator();
-
 
27260
    }
-
 
27261
 
-
 
27262
    public void addToSuccess(CreditHistory elem) {
-
 
27263
      if (this.success == null) {
-
 
27264
        this.success = new ArrayList<CreditHistory>();
-
 
27265
      }
-
 
27266
      this.success.add(elem);
-
 
27267
    }
-
 
27268
 
-
 
27269
    public List<CreditHistory> getSuccess() {
-
 
27270
      return this.success;
-
 
27271
    }
-
 
27272
 
-
 
27273
    public void setSuccess(List<CreditHistory> success) {
-
 
27274
      this.success = success;
-
 
27275
    }
-
 
27276
 
-
 
27277
    public void unsetSuccess() {
-
 
27278
      this.success = null;
-
 
27279
    }
-
 
27280
 
-
 
27281
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
27282
    public boolean isSetSuccess() {
-
 
27283
      return this.success != null;
-
 
27284
    }
-
 
27285
 
-
 
27286
    public void setSuccessIsSet(boolean value) {
-
 
27287
      if (!value) {
-
 
27288
        this.success = null;
-
 
27289
      }
-
 
27290
    }
-
 
27291
 
-
 
27292
    public void setFieldValue(_Fields field, Object value) {
-
 
27293
      switch (field) {
-
 
27294
      case SUCCESS:
-
 
27295
        if (value == null) {
-
 
27296
          unsetSuccess();
-
 
27297
        } else {
-
 
27298
          setSuccess((List<CreditHistory>)value);
-
 
27299
        }
-
 
27300
        break;
-
 
27301
 
-
 
27302
      }
-
 
27303
    }
-
 
27304
 
-
 
27305
    public Object getFieldValue(_Fields field) {
-
 
27306
      switch (field) {
-
 
27307
      case SUCCESS:
-
 
27308
        return getSuccess();
-
 
27309
 
-
 
27310
      }
-
 
27311
      throw new IllegalStateException();
-
 
27312
    }
-
 
27313
 
-
 
27314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
27315
    public boolean isSet(_Fields field) {
-
 
27316
      if (field == null) {
-
 
27317
        throw new IllegalArgumentException();
-
 
27318
      }
-
 
27319
 
-
 
27320
      switch (field) {
-
 
27321
      case SUCCESS:
-
 
27322
        return isSetSuccess();
-
 
27323
      }
-
 
27324
      throw new IllegalStateException();
-
 
27325
    }
-
 
27326
 
-
 
27327
    @Override
-
 
27328
    public boolean equals(Object that) {
-
 
27329
      if (that == null)
-
 
27330
        return false;
-
 
27331
      if (that instanceof getLoanPayableForUserToCreditor_result)
-
 
27332
        return this.equals((getLoanPayableForUserToCreditor_result)that);
-
 
27333
      return false;
-
 
27334
    }
-
 
27335
 
-
 
27336
    public boolean equals(getLoanPayableForUserToCreditor_result that) {
-
 
27337
      if (that == null)
-
 
27338
        return false;
-
 
27339
 
-
 
27340
      boolean this_present_success = true && this.isSetSuccess();
-
 
27341
      boolean that_present_success = true && that.isSetSuccess();
-
 
27342
      if (this_present_success || that_present_success) {
-
 
27343
        if (!(this_present_success && that_present_success))
-
 
27344
          return false;
-
 
27345
        if (!this.success.equals(that.success))
-
 
27346
          return false;
-
 
27347
      }
-
 
27348
 
-
 
27349
      return true;
-
 
27350
    }
-
 
27351
 
-
 
27352
    @Override
-
 
27353
    public int hashCode() {
-
 
27354
      return 0;
-
 
27355
    }
-
 
27356
 
-
 
27357
    public int compareTo(getLoanPayableForUserToCreditor_result other) {
-
 
27358
      if (!getClass().equals(other.getClass())) {
-
 
27359
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27360
      }
-
 
27361
 
-
 
27362
      int lastComparison = 0;
-
 
27363
      getLoanPayableForUserToCreditor_result typedOther = (getLoanPayableForUserToCreditor_result)other;
-
 
27364
 
-
 
27365
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
27366
      if (lastComparison != 0) {
-
 
27367
        return lastComparison;
-
 
27368
      }
-
 
27369
      if (isSetSuccess()) {
-
 
27370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
27371
        if (lastComparison != 0) {
-
 
27372
          return lastComparison;
-
 
27373
        }
-
 
27374
      }
-
 
27375
      return 0;
-
 
27376
    }
-
 
27377
 
-
 
27378
    public _Fields fieldForId(int fieldId) {
-
 
27379
      return _Fields.findByThriftId(fieldId);
-
 
27380
    }
-
 
27381
 
-
 
27382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
27383
      org.apache.thrift.protocol.TField field;
-
 
27384
      iprot.readStructBegin();
-
 
27385
      while (true)
-
 
27386
      {
-
 
27387
        field = iprot.readFieldBegin();
-
 
27388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
27389
          break;
-
 
27390
        }
-
 
27391
        switch (field.id) {
-
 
27392
          case 0: // SUCCESS
-
 
27393
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
27394
              {
-
 
27395
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
-
 
27396
                this.success = new ArrayList<CreditHistory>(_list64.size);
-
 
27397
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
-
 
27398
                {
-
 
27399
                  CreditHistory _elem66; // required
-
 
27400
                  _elem66 = new CreditHistory();
-
 
27401
                  _elem66.read(iprot);
-
 
27402
                  this.success.add(_elem66);
-
 
27403
                }
-
 
27404
                iprot.readListEnd();
-
 
27405
              }
-
 
27406
            } else { 
-
 
27407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27408
            }
-
 
27409
            break;
-
 
27410
          default:
-
 
27411
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27412
        }
-
 
27413
        iprot.readFieldEnd();
-
 
27414
      }
-
 
27415
      iprot.readStructEnd();
-
 
27416
      validate();
-
 
27417
    }
-
 
27418
 
-
 
27419
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
27420
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27421
 
-
 
27422
      if (this.isSetSuccess()) {
-
 
27423
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
27424
        {
-
 
27425
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
27426
          for (CreditHistory _iter67 : this.success)
-
 
27427
          {
-
 
27428
            _iter67.write(oprot);
-
 
27429
          }
-
 
27430
          oprot.writeListEnd();
-
 
27431
        }
-
 
27432
        oprot.writeFieldEnd();
-
 
27433
      }
-
 
27434
      oprot.writeFieldStop();
-
 
27435
      oprot.writeStructEnd();
-
 
27436
    }
-
 
27437
 
-
 
27438
    @Override
-
 
27439
    public String toString() {
-
 
27440
      StringBuilder sb = new StringBuilder("getLoanPayableForUserToCreditor_result(");
-
 
27441
      boolean first = true;
-
 
27442
 
-
 
27443
      sb.append("success:");
-
 
27444
      if (this.success == null) {
-
 
27445
        sb.append("null");
-
 
27446
      } else {
-
 
27447
        sb.append(this.success);
-
 
27448
      }
-
 
27449
      first = false;
-
 
27450
      sb.append(")");
-
 
27451
      return sb.toString();
-
 
27452
    }
20383
 
27453
 
20384
    public void validate() throws org.apache.thrift.TException {
27454
    public void validate() throws org.apache.thrift.TException {
20385
      // check for required fields
27455
      // check for required fields
20386
    }
27456
    }
20387
 
27457