Subversion Repositories SmartDukaan

Rev

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

Rev 18590 Rev 18634
Line 1131... Line 1131...
1131
 
1131
 
1132
    public UserSanction getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException;
1132
    public UserSanction getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException;
1133
 
1133
 
1134
    public boolean updateUserSanction(UserSanction userSanaction) throws TransactionServiceException, org.apache.thrift.TException;
1134
    public boolean updateUserSanction(UserSanction userSanaction) throws TransactionServiceException, org.apache.thrift.TException;
1135
 
1135
 
1136
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException;
1136
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType) throws org.apache.thrift.TException;
1137
 
1137
 
1138
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException;
1138
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType) throws org.apache.thrift.TException;
1139
 
1139
 
1140
    public boolean processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws TransactionServiceException, org.apache.thrift.TException;
1140
    public boolean processCreditTransaction(long paymentId, long userId, long creditorId, List<CreditHistory> creditTxns) throws TransactionServiceException, org.apache.thrift.TException;
1141
 
1141
 
1142
    public List<CreditHistory> getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException;
1142
    public double getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException;
-
 
1143
 
-
 
1144
    public List<LoanHistory> getLoanHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType) throws org.apache.thrift.TException;
-
 
1145
 
-
 
1146
    public List<LoanHistory> getLoanHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType) throws org.apache.thrift.TException;
-
 
1147
 
-
 
1148
    public boolean processLoanTransaction(long paymentId, long userId, long creditorId, List<LoanHistory> creditTxns) throws TransactionServiceException, org.apache.thrift.TException;
1143
 
1149
 
1144
    public ReturnOrderInfo getReturnOrderInfo(long id) throws TransactionServiceException, org.apache.thrift.TException;
1150
    public ReturnOrderInfo getReturnOrderInfo(long id) throws TransactionServiceException, org.apache.thrift.TException;
1145
 
1151
 
1146
    public Map<Long,List<ReturnOrderInfo>> getReturnOrderInfoList(List<Long> order_ids) throws org.apache.thrift.TException;
1152
    public Map<Long,List<ReturnOrderInfo>> getReturnOrderInfoList(List<Long> order_ids) throws org.apache.thrift.TException;
1147
 
1153
 
Line 1695... Line 1701...
1695
 
1701
 
1696
    public void getUserSanctionDetailsForCreditor(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSanctionDetailsForCreditor_call> resultHandler) throws org.apache.thrift.TException;
1702
    public void getUserSanctionDetailsForCreditor(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSanctionDetailsForCreditor_call> resultHandler) throws org.apache.thrift.TException;
1697
 
1703
 
1698
    public void updateUserSanction(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSanction_call> resultHandler) throws org.apache.thrift.TException;
1704
    public void updateUserSanction(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSanction_call> resultHandler) throws org.apache.thrift.TException;
1699
 
1705
 
1700
    public void getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1706
    public void getCreditHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1701
 
1707
 
1702
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException;
1708
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException;
1703
 
1709
 
1704
    public void processCreditTransaction(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException;
1710
    public void processCreditTransaction(long paymentId, long userId, long creditorId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException;
1705
 
1711
 
1706
    public void getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLoanPayableForUserToCreditor_call> resultHandler) throws org.apache.thrift.TException;
1712
    public void getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLoanPayableForUserToCreditor_call> resultHandler) throws org.apache.thrift.TException;
1707
 
1713
 
-
 
1714
    public void getLoanHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLoanHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
1715
 
-
 
1716
    public void getLoanHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLoanHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException;
-
 
1717
 
-
 
1718
    public void processLoanTransaction(long paymentId, long userId, long creditorId, List<LoanHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processLoanTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
1719
 
1708
    public void getReturnOrderInfo(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException;
1720
    public void getReturnOrderInfo(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException;
1709
 
1721
 
1710
    public void getReturnOrderInfoList(List<Long> order_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrderInfoList_call> resultHandler) throws org.apache.thrift.TException;
1722
    public void getReturnOrderInfoList(List<Long> order_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrderInfoList_call> resultHandler) throws org.apache.thrift.TException;
1711
 
1723
 
1712
    public void getReturnOrderInfoListAsByStatus(List<Long> order_ids, List<String> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrderInfoListAsByStatus_call> resultHandler) throws org.apache.thrift.TException;
1724
    public void getReturnOrderInfoListAsByStatus(List<Long> order_ids, List<String> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrderInfoListAsByStatus_call> resultHandler) throws org.apache.thrift.TException;
Line 8073... Line 8085...
8073
        throw result.pe;
8085
        throw result.pe;
8074
      }
8086
      }
8075
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSanction failed: unknown result");
8087
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSanction failed: unknown result");
8076
    }
8088
    }
8077
 
8089
 
8078
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException
8090
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
8079
    {
8091
    {
8080
      send_getCreditHistoryRecordsForTransaction(paymentId, creditorId, creditTxnType);
8092
      send_getCreditHistoryRecordsForTransaction(paymentId, creditTxnType);
8081
      return recv_getCreditHistoryRecordsForTransaction();
8093
      return recv_getCreditHistoryRecordsForTransaction();
8082
    }
8094
    }
8083
 
8095
 
8084
    public void send_getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException
8096
    public void send_getCreditHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
8085
    {
8097
    {
8086
      getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
8098
      getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
8087
      args.setPaymentId(paymentId);
8099
      args.setPaymentId(paymentId);
8088
      args.setCreditorId(creditorId);
-
 
8089
      args.setCreditTxnType(creditTxnType);
8100
      args.setCreditTxnType(creditTxnType);
8090
      sendBase("getCreditHistoryRecordsForTransaction", args);
8101
      sendBase("getCreditHistoryRecordsForTransaction", args);
8091
    }
8102
    }
8092
 
8103
 
8093
    public List<CreditHistory> recv_getCreditHistoryRecordsForTransaction() throws org.apache.thrift.TException
8104
    public List<CreditHistory> recv_getCreditHistoryRecordsForTransaction() throws org.apache.thrift.TException
Line 8098... Line 8109...
8098
        return result.success;
8109
        return result.success;
8099
      }
8110
      }
8100
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForTransaction failed: unknown result");
8111
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForTransaction failed: unknown result");
8101
    }
8112
    }
8102
 
8113
 
8103
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException
8114
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
8104
    {
8115
    {
8105
      send_getCreditHistoryRecordsForUserAndCreditor(userId, creditTxnType);
8116
      send_getCreditHistoryRecordsForUserAndCreditor(userId, creditorId, creditTxnType);
8106
      return recv_getCreditHistoryRecordsForUserAndCreditor();
8117
      return recv_getCreditHistoryRecordsForUserAndCreditor();
8107
    }
8118
    }
8108
 
8119
 
8109
    public void send_getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException
8120
    public void send_getCreditHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
8110
    {
8121
    {
8111
      getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
8122
      getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
8112
      args.setUserId(userId);
8123
      args.setUserId(userId);
-
 
8124
      args.setCreditorId(creditorId);
8113
      args.setCreditTxnType(creditTxnType);
8125
      args.setCreditTxnType(creditTxnType);
8114
      sendBase("getCreditHistoryRecordsForUserAndCreditor", args);
8126
      sendBase("getCreditHistoryRecordsForUserAndCreditor", args);
8115
    }
8127
    }
8116
 
8128
 
8117
    public List<CreditHistory> recv_getCreditHistoryRecordsForUserAndCreditor() throws org.apache.thrift.TException
8129
    public List<CreditHistory> recv_getCreditHistoryRecordsForUserAndCreditor() throws org.apache.thrift.TException
Line 8122... Line 8134...
8122
        return result.success;
8134
        return result.success;
8123
      }
8135
      }
8124
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForUserAndCreditor failed: unknown result");
8136
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForUserAndCreditor failed: unknown result");
8125
    }
8137
    }
8126
 
8138
 
8127
    public boolean processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws TransactionServiceException, org.apache.thrift.TException
8139
    public boolean processCreditTransaction(long paymentId, long userId, long creditorId, List<CreditHistory> creditTxns) throws TransactionServiceException, org.apache.thrift.TException
8128
    {
8140
    {
8129
      send_processCreditTransaction(paymentId, creditTxns);
8141
      send_processCreditTransaction(paymentId, userId, creditorId, creditTxns);
8130
      return recv_processCreditTransaction();
8142
      return recv_processCreditTransaction();
8131
    }
8143
    }
8132
 
8144
 
8133
    public void send_processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws org.apache.thrift.TException
8145
    public void send_processCreditTransaction(long paymentId, long userId, long creditorId, List<CreditHistory> creditTxns) throws org.apache.thrift.TException
8134
    {
8146
    {
8135
      processCreditTransaction_args args = new processCreditTransaction_args();
8147
      processCreditTransaction_args args = new processCreditTransaction_args();
8136
      args.setPaymentId(paymentId);
8148
      args.setPaymentId(paymentId);
-
 
8149
      args.setUserId(userId);
-
 
8150
      args.setCreditorId(creditorId);
8137
      args.setCreditTxns(creditTxns);
8151
      args.setCreditTxns(creditTxns);
8138
      sendBase("processCreditTransaction", args);
8152
      sendBase("processCreditTransaction", args);
8139
    }
8153
    }
8140
 
8154
 
8141
    public boolean recv_processCreditTransaction() throws TransactionServiceException, org.apache.thrift.TException
8155
    public boolean recv_processCreditTransaction() throws TransactionServiceException, org.apache.thrift.TException
Line 8149... Line 8163...
8149
        throw result.pe;
8163
        throw result.pe;
8150
      }
8164
      }
8151
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "processCreditTransaction failed: unknown result");
8165
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "processCreditTransaction failed: unknown result");
8152
    }
8166
    }
8153
 
8167
 
8154
    public List<CreditHistory> getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException
8168
    public double getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException
8155
    {
8169
    {
8156
      send_getLoanPayableForUserToCreditor(userId, creditorId, dueDate);
8170
      send_getLoanPayableForUserToCreditor(userId, creditorId, dueDate);
8157
      return recv_getLoanPayableForUserToCreditor();
8171
      return recv_getLoanPayableForUserToCreditor();
8158
    }
8172
    }
8159
 
8173
 
Line 8164... Line 8178...
8164
      args.setCreditorId(creditorId);
8178
      args.setCreditorId(creditorId);
8165
      args.setDueDate(dueDate);
8179
      args.setDueDate(dueDate);
8166
      sendBase("getLoanPayableForUserToCreditor", args);
8180
      sendBase("getLoanPayableForUserToCreditor", args);
8167
    }
8181
    }
8168
 
8182
 
8169
    public List<CreditHistory> recv_getLoanPayableForUserToCreditor() throws org.apache.thrift.TException
8183
    public double recv_getLoanPayableForUserToCreditor() throws org.apache.thrift.TException
8170
    {
8184
    {
8171
      getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
8185
      getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
8172
      receiveBase(result, "getLoanPayableForUserToCreditor");
8186
      receiveBase(result, "getLoanPayableForUserToCreditor");
8173
      if (result.isSetSuccess()) {
8187
      if (result.isSetSuccess()) {
8174
        return result.success;
8188
        return result.success;
8175
      }
8189
      }
8176
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLoanPayableForUserToCreditor failed: unknown result");
8190
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLoanPayableForUserToCreditor failed: unknown result");
8177
    }
8191
    }
8178
 
8192
 
-
 
8193
    public List<LoanHistory> getLoanHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
-
 
8194
    {
-
 
8195
      send_getLoanHistoryRecordsForTransaction(paymentId, creditTxnType);
-
 
8196
      return recv_getLoanHistoryRecordsForTransaction();
-
 
8197
    }
-
 
8198
 
-
 
8199
    public void send_getLoanHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
-
 
8200
    {
-
 
8201
      getLoanHistoryRecordsForTransaction_args args = new getLoanHistoryRecordsForTransaction_args();
-
 
8202
      args.setPaymentId(paymentId);
-
 
8203
      args.setCreditTxnType(creditTxnType);
-
 
8204
      sendBase("getLoanHistoryRecordsForTransaction", args);
-
 
8205
    }
-
 
8206
 
-
 
8207
    public List<LoanHistory> recv_getLoanHistoryRecordsForTransaction() throws org.apache.thrift.TException
-
 
8208
    {
-
 
8209
      getLoanHistoryRecordsForTransaction_result result = new getLoanHistoryRecordsForTransaction_result();
-
 
8210
      receiveBase(result, "getLoanHistoryRecordsForTransaction");
-
 
8211
      if (result.isSetSuccess()) {
-
 
8212
        return result.success;
-
 
8213
      }
-
 
8214
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLoanHistoryRecordsForTransaction failed: unknown result");
-
 
8215
    }
-
 
8216
 
-
 
8217
    public List<LoanHistory> getLoanHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
-
 
8218
    {
-
 
8219
      send_getLoanHistoryRecordsForUserAndCreditor(userId, creditorId, creditTxnType);
-
 
8220
      return recv_getLoanHistoryRecordsForUserAndCreditor();
-
 
8221
    }
-
 
8222
 
-
 
8223
    public void send_getLoanHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType) throws org.apache.thrift.TException
-
 
8224
    {
-
 
8225
      getLoanHistoryRecordsForUserAndCreditor_args args = new getLoanHistoryRecordsForUserAndCreditor_args();
-
 
8226
      args.setUserId(userId);
-
 
8227
      args.setCreditorId(creditorId);
-
 
8228
      args.setCreditTxnType(creditTxnType);
-
 
8229
      sendBase("getLoanHistoryRecordsForUserAndCreditor", args);
-
 
8230
    }
-
 
8231
 
-
 
8232
    public List<LoanHistory> recv_getLoanHistoryRecordsForUserAndCreditor() throws org.apache.thrift.TException
-
 
8233
    {
-
 
8234
      getLoanHistoryRecordsForUserAndCreditor_result result = new getLoanHistoryRecordsForUserAndCreditor_result();
-
 
8235
      receiveBase(result, "getLoanHistoryRecordsForUserAndCreditor");
-
 
8236
      if (result.isSetSuccess()) {
-
 
8237
        return result.success;
-
 
8238
      }
-
 
8239
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLoanHistoryRecordsForUserAndCreditor failed: unknown result");
-
 
8240
    }
-
 
8241
 
-
 
8242
    public boolean processLoanTransaction(long paymentId, long userId, long creditorId, List<LoanHistory> creditTxns) throws TransactionServiceException, org.apache.thrift.TException
-
 
8243
    {
-
 
8244
      send_processLoanTransaction(paymentId, userId, creditorId, creditTxns);
-
 
8245
      return recv_processLoanTransaction();
-
 
8246
    }
-
 
8247
 
-
 
8248
    public void send_processLoanTransaction(long paymentId, long userId, long creditorId, List<LoanHistory> creditTxns) throws org.apache.thrift.TException
-
 
8249
    {
-
 
8250
      processLoanTransaction_args args = new processLoanTransaction_args();
-
 
8251
      args.setPaymentId(paymentId);
-
 
8252
      args.setUserId(userId);
-
 
8253
      args.setCreditorId(creditorId);
-
 
8254
      args.setCreditTxns(creditTxns);
-
 
8255
      sendBase("processLoanTransaction", args);
-
 
8256
    }
-
 
8257
 
-
 
8258
    public boolean recv_processLoanTransaction() throws TransactionServiceException, org.apache.thrift.TException
-
 
8259
    {
-
 
8260
      processLoanTransaction_result result = new processLoanTransaction_result();
-
 
8261
      receiveBase(result, "processLoanTransaction");
-
 
8262
      if (result.isSetSuccess()) {
-
 
8263
        return result.success;
-
 
8264
      }
-
 
8265
      if (result.pe != null) {
-
 
8266
        throw result.pe;
-
 
8267
      }
-
 
8268
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "processLoanTransaction failed: unknown result");
-
 
8269
    }
-
 
8270
 
8179
    public ReturnOrderInfo getReturnOrderInfo(long id) throws TransactionServiceException, org.apache.thrift.TException
8271
    public ReturnOrderInfo getReturnOrderInfo(long id) throws TransactionServiceException, org.apache.thrift.TException
8180
    {
8272
    {
8181
      send_getReturnOrderInfo(id);
8273
      send_getReturnOrderInfo(id);
8182
      return recv_getReturnOrderInfo();
8274
      return recv_getReturnOrderInfo();
8183
    }
8275
    }
Line 17609... Line 17701...
17609
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17701
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17610
        return (new Client(prot)).recv_updateUserSanction();
17702
        return (new Client(prot)).recv_updateUserSanction();
17611
      }
17703
      }
17612
    }
17704
    }
17613
 
17705
 
17614
    public void getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException {
17706
    public void getCreditHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException {
17615
      checkReady();
17707
      checkReady();
17616
      getCreditHistoryRecordsForTransaction_call method_call = new getCreditHistoryRecordsForTransaction_call(paymentId, creditorId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
17708
      getCreditHistoryRecordsForTransaction_call method_call = new getCreditHistoryRecordsForTransaction_call(paymentId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
17617
      this.___currentMethod = method_call;
17709
      this.___currentMethod = method_call;
17618
      ___manager.call(method_call);
17710
      ___manager.call(method_call);
17619
    }
17711
    }
17620
 
17712
 
17621
    public static class getCreditHistoryRecordsForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
17713
    public static class getCreditHistoryRecordsForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
17622
      private long paymentId;
17714
      private long paymentId;
17623
      private long creditorId;
-
 
17624
      private String creditTxnType;
17715
      private CreditTxnType creditTxnType;
17625
      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 {
17716
      public getCreditHistoryRecordsForTransaction_call(long paymentId, CreditTxnType 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 {
17626
        super(client, protocolFactory, transport, resultHandler, false);
17717
        super(client, protocolFactory, transport, resultHandler, false);
17627
        this.paymentId = paymentId;
17718
        this.paymentId = paymentId;
17628
        this.creditorId = creditorId;
-
 
17629
        this.creditTxnType = creditTxnType;
17719
        this.creditTxnType = creditTxnType;
17630
      }
17720
      }
17631
 
17721
 
17632
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
17722
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
17633
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
17723
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
17634
        getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
17724
        getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
17635
        args.setPaymentId(paymentId);
17725
        args.setPaymentId(paymentId);
17636
        args.setCreditorId(creditorId);
-
 
17637
        args.setCreditTxnType(creditTxnType);
17726
        args.setCreditTxnType(creditTxnType);
17638
        args.write(prot);
17727
        args.write(prot);
17639
        prot.writeMessageEnd();
17728
        prot.writeMessageEnd();
17640
      }
17729
      }
17641
 
17730
 
Line 17647... Line 17736...
17647
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17736
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17648
        return (new Client(prot)).recv_getCreditHistoryRecordsForTransaction();
17737
        return (new Client(prot)).recv_getCreditHistoryRecordsForTransaction();
17649
      }
17738
      }
17650
    }
17739
    }
17651
 
17740
 
17652
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException {
17741
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException {
17653
      checkReady();
17742
      checkReady();
17654
      getCreditHistoryRecordsForUserAndCreditor_call method_call = new getCreditHistoryRecordsForUserAndCreditor_call(userId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
17743
      getCreditHistoryRecordsForUserAndCreditor_call method_call = new getCreditHistoryRecordsForUserAndCreditor_call(userId, creditorId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
17655
      this.___currentMethod = method_call;
17744
      this.___currentMethod = method_call;
17656
      ___manager.call(method_call);
17745
      ___manager.call(method_call);
17657
    }
17746
    }
17658
 
17747
 
17659
    public static class getCreditHistoryRecordsForUserAndCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
17748
    public static class getCreditHistoryRecordsForUserAndCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
17660
      private long userId;
17749
      private long userId;
-
 
17750
      private long creditorId;
17661
      private String creditTxnType;
17751
      private CreditTxnType creditTxnType;
17662
      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 {
17752
      public getCreditHistoryRecordsForUserAndCreditor_call(long userId, long creditorId, CreditTxnType 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 {
17663
        super(client, protocolFactory, transport, resultHandler, false);
17753
        super(client, protocolFactory, transport, resultHandler, false);
17664
        this.userId = userId;
17754
        this.userId = userId;
-
 
17755
        this.creditorId = creditorId;
17665
        this.creditTxnType = creditTxnType;
17756
        this.creditTxnType = creditTxnType;
17666
      }
17757
      }
17667
 
17758
 
17668
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
17759
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
17669
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForUserAndCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
17760
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForUserAndCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
17670
        getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
17761
        getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
17671
        args.setUserId(userId);
17762
        args.setUserId(userId);
-
 
17763
        args.setCreditorId(creditorId);
17672
        args.setCreditTxnType(creditTxnType);
17764
        args.setCreditTxnType(creditTxnType);
17673
        args.write(prot);
17765
        args.write(prot);
17674
        prot.writeMessageEnd();
17766
        prot.writeMessageEnd();
17675
      }
17767
      }
17676
 
17768
 
Line 17682... Line 17774...
17682
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17774
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17683
        return (new Client(prot)).recv_getCreditHistoryRecordsForUserAndCreditor();
17775
        return (new Client(prot)).recv_getCreditHistoryRecordsForUserAndCreditor();
17684
      }
17776
      }
17685
    }
17777
    }
17686
 
17778
 
17687
    public void processCreditTransaction(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException {
17779
    public void processCreditTransaction(long paymentId, long userId, long creditorId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException {
17688
      checkReady();
17780
      checkReady();
17689
      processCreditTransaction_call method_call = new processCreditTransaction_call(paymentId, creditTxns, resultHandler, this, ___protocolFactory, ___transport);
17781
      processCreditTransaction_call method_call = new processCreditTransaction_call(paymentId, userId, creditorId, creditTxns, resultHandler, this, ___protocolFactory, ___transport);
17690
      this.___currentMethod = method_call;
17782
      this.___currentMethod = method_call;
17691
      ___manager.call(method_call);
17783
      ___manager.call(method_call);
17692
    }
17784
    }
17693
 
17785
 
17694
    public static class processCreditTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
17786
    public static class processCreditTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
17695
      private long paymentId;
17787
      private long paymentId;
-
 
17788
      private long userId;
-
 
17789
      private long creditorId;
17696
      private List<CreditHistory> creditTxns;
17790
      private List<CreditHistory> creditTxns;
17697
      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 {
17791
      public processCreditTransaction_call(long paymentId, long userId, long creditorId, 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 {
17698
        super(client, protocolFactory, transport, resultHandler, false);
17792
        super(client, protocolFactory, transport, resultHandler, false);
17699
        this.paymentId = paymentId;
17793
        this.paymentId = paymentId;
-
 
17794
        this.userId = userId;
-
 
17795
        this.creditorId = creditorId;
17700
        this.creditTxns = creditTxns;
17796
        this.creditTxns = creditTxns;
17701
      }
17797
      }
17702
 
17798
 
17703
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
17799
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
17704
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processCreditTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
17800
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processCreditTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
17705
        processCreditTransaction_args args = new processCreditTransaction_args();
17801
        processCreditTransaction_args args = new processCreditTransaction_args();
17706
        args.setPaymentId(paymentId);
17802
        args.setPaymentId(paymentId);
-
 
17803
        args.setUserId(userId);
-
 
17804
        args.setCreditorId(creditorId);
17707
        args.setCreditTxns(creditTxns);
17805
        args.setCreditTxns(creditTxns);
17708
        args.write(prot);
17806
        args.write(prot);
17709
        prot.writeMessageEnd();
17807
        prot.writeMessageEnd();
17710
      }
17808
      }
17711
 
17809
 
Line 17745... Line 17843...
17745
        args.setDueDate(dueDate);
17843
        args.setDueDate(dueDate);
17746
        args.write(prot);
17844
        args.write(prot);
17747
        prot.writeMessageEnd();
17845
        prot.writeMessageEnd();
17748
      }
17846
      }
17749
 
17847
 
17750
      public List<CreditHistory> getResult() throws org.apache.thrift.TException {
17848
      public double getResult() throws org.apache.thrift.TException {
17751
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
17849
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
17752
          throw new IllegalStateException("Method call not finished!");
17850
          throw new IllegalStateException("Method call not finished!");
17753
        }
17851
        }
17754
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
17852
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
17755
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17853
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
17756
        return (new Client(prot)).recv_getLoanPayableForUserToCreditor();
17854
        return (new Client(prot)).recv_getLoanPayableForUserToCreditor();
17757
      }
17855
      }
17758
    }
17856
    }
17759
 
17857
 
-
 
17858
    public void getLoanHistoryRecordsForTransaction(long paymentId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getLoanHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
17859
      checkReady();
-
 
17860
      getLoanHistoryRecordsForTransaction_call method_call = new getLoanHistoryRecordsForTransaction_call(paymentId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
-
 
17861
      this.___currentMethod = method_call;
-
 
17862
      ___manager.call(method_call);
-
 
17863
    }
-
 
17864
 
-
 
17865
    public static class getLoanHistoryRecordsForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
17866
      private long paymentId;
-
 
17867
      private CreditTxnType creditTxnType;
-
 
17868
      public getLoanHistoryRecordsForTransaction_call(long paymentId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getLoanHistoryRecordsForTransaction_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 {
-
 
17869
        super(client, protocolFactory, transport, resultHandler, false);
-
 
17870
        this.paymentId = paymentId;
-
 
17871
        this.creditTxnType = creditTxnType;
-
 
17872
      }
-
 
17873
 
-
 
17874
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
17875
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLoanHistoryRecordsForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
17876
        getLoanHistoryRecordsForTransaction_args args = new getLoanHistoryRecordsForTransaction_args();
-
 
17877
        args.setPaymentId(paymentId);
-
 
17878
        args.setCreditTxnType(creditTxnType);
-
 
17879
        args.write(prot);
-
 
17880
        prot.writeMessageEnd();
-
 
17881
      }
-
 
17882
 
-
 
17883
      public List<LoanHistory> getResult() throws org.apache.thrift.TException {
-
 
17884
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
17885
          throw new IllegalStateException("Method call not finished!");
-
 
17886
        }
-
 
17887
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
17888
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
17889
        return (new Client(prot)).recv_getLoanHistoryRecordsForTransaction();
-
 
17890
      }
-
 
17891
    }
-
 
17892
 
-
 
17893
    public void getLoanHistoryRecordsForUserAndCreditor(long userId, long creditorId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getLoanHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException {
-
 
17894
      checkReady();
-
 
17895
      getLoanHistoryRecordsForUserAndCreditor_call method_call = new getLoanHistoryRecordsForUserAndCreditor_call(userId, creditorId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
-
 
17896
      this.___currentMethod = method_call;
-
 
17897
      ___manager.call(method_call);
-
 
17898
    }
-
 
17899
 
-
 
17900
    public static class getLoanHistoryRecordsForUserAndCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
17901
      private long userId;
-
 
17902
      private long creditorId;
-
 
17903
      private CreditTxnType creditTxnType;
-
 
17904
      public getLoanHistoryRecordsForUserAndCreditor_call(long userId, long creditorId, CreditTxnType creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getLoanHistoryRecordsForUserAndCreditor_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 {
-
 
17905
        super(client, protocolFactory, transport, resultHandler, false);
-
 
17906
        this.userId = userId;
-
 
17907
        this.creditorId = creditorId;
-
 
17908
        this.creditTxnType = creditTxnType;
-
 
17909
      }
-
 
17910
 
-
 
17911
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
17912
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLoanHistoryRecordsForUserAndCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
17913
        getLoanHistoryRecordsForUserAndCreditor_args args = new getLoanHistoryRecordsForUserAndCreditor_args();
-
 
17914
        args.setUserId(userId);
-
 
17915
        args.setCreditorId(creditorId);
-
 
17916
        args.setCreditTxnType(creditTxnType);
-
 
17917
        args.write(prot);
-
 
17918
        prot.writeMessageEnd();
-
 
17919
      }
-
 
17920
 
-
 
17921
      public List<LoanHistory> getResult() throws org.apache.thrift.TException {
-
 
17922
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
17923
          throw new IllegalStateException("Method call not finished!");
-
 
17924
        }
-
 
17925
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
17926
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
17927
        return (new Client(prot)).recv_getLoanHistoryRecordsForUserAndCreditor();
-
 
17928
      }
-
 
17929
    }
-
 
17930
 
-
 
17931
    public void processLoanTransaction(long paymentId, long userId, long creditorId, List<LoanHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processLoanTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
17932
      checkReady();
-
 
17933
      processLoanTransaction_call method_call = new processLoanTransaction_call(paymentId, userId, creditorId, creditTxns, resultHandler, this, ___protocolFactory, ___transport);
-
 
17934
      this.___currentMethod = method_call;
-
 
17935
      ___manager.call(method_call);
-
 
17936
    }
-
 
17937
 
-
 
17938
    public static class processLoanTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
17939
      private long paymentId;
-
 
17940
      private long userId;
-
 
17941
      private long creditorId;
-
 
17942
      private List<LoanHistory> creditTxns;
-
 
17943
      public processLoanTransaction_call(long paymentId, long userId, long creditorId, List<LoanHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processLoanTransaction_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 {
-
 
17944
        super(client, protocolFactory, transport, resultHandler, false);
-
 
17945
        this.paymentId = paymentId;
-
 
17946
        this.userId = userId;
-
 
17947
        this.creditorId = creditorId;
-
 
17948
        this.creditTxns = creditTxns;
-
 
17949
      }
-
 
17950
 
-
 
17951
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
17952
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processLoanTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
17953
        processLoanTransaction_args args = new processLoanTransaction_args();
-
 
17954
        args.setPaymentId(paymentId);
-
 
17955
        args.setUserId(userId);
-
 
17956
        args.setCreditorId(creditorId);
-
 
17957
        args.setCreditTxns(creditTxns);
-
 
17958
        args.write(prot);
-
 
17959
        prot.writeMessageEnd();
-
 
17960
      }
-
 
17961
 
-
 
17962
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
17963
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
17964
          throw new IllegalStateException("Method call not finished!");
-
 
17965
        }
-
 
17966
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
17967
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
17968
        return (new Client(prot)).recv_processLoanTransaction();
-
 
17969
      }
-
 
17970
    }
-
 
17971
 
17760
    public void getReturnOrderInfo(long id, org.apache.thrift.async.AsyncMethodCallback<getReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException {
17972
    public void getReturnOrderInfo(long id, org.apache.thrift.async.AsyncMethodCallback<getReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException {
17761
      checkReady();
17973
      checkReady();
17762
      getReturnOrderInfo_call method_call = new getReturnOrderInfo_call(id, resultHandler, this, ___protocolFactory, ___transport);
17974
      getReturnOrderInfo_call method_call = new getReturnOrderInfo_call(id, resultHandler, this, ___protocolFactory, ___transport);
17763
      this.___currentMethod = method_call;
17975
      this.___currentMethod = method_call;
17764
      ___manager.call(method_call);
17976
      ___manager.call(method_call);
Line 18704... Line 18916...
18704
      processMap.put("updateUserSanction", new updateUserSanction());
18916
      processMap.put("updateUserSanction", new updateUserSanction());
18705
      processMap.put("getCreditHistoryRecordsForTransaction", new getCreditHistoryRecordsForTransaction());
18917
      processMap.put("getCreditHistoryRecordsForTransaction", new getCreditHistoryRecordsForTransaction());
18706
      processMap.put("getCreditHistoryRecordsForUserAndCreditor", new getCreditHistoryRecordsForUserAndCreditor());
18918
      processMap.put("getCreditHistoryRecordsForUserAndCreditor", new getCreditHistoryRecordsForUserAndCreditor());
18707
      processMap.put("processCreditTransaction", new processCreditTransaction());
18919
      processMap.put("processCreditTransaction", new processCreditTransaction());
18708
      processMap.put("getLoanPayableForUserToCreditor", new getLoanPayableForUserToCreditor());
18920
      processMap.put("getLoanPayableForUserToCreditor", new getLoanPayableForUserToCreditor());
-
 
18921
      processMap.put("getLoanHistoryRecordsForTransaction", new getLoanHistoryRecordsForTransaction());
-
 
18922
      processMap.put("getLoanHistoryRecordsForUserAndCreditor", new getLoanHistoryRecordsForUserAndCreditor());
-
 
18923
      processMap.put("processLoanTransaction", new processLoanTransaction());
18709
      processMap.put("getReturnOrderInfo", new getReturnOrderInfo());
18924
      processMap.put("getReturnOrderInfo", new getReturnOrderInfo());
18710
      processMap.put("getReturnOrderInfoList", new getReturnOrderInfoList());
18925
      processMap.put("getReturnOrderInfoList", new getReturnOrderInfoList());
18711
      processMap.put("getReturnOrderInfoListAsByStatus", new getReturnOrderInfoListAsByStatus());
18926
      processMap.put("getReturnOrderInfoListAsByStatus", new getReturnOrderInfoListAsByStatus());
18712
      processMap.put("updateReturnOrderInfo", new updateReturnOrderInfo());
18927
      processMap.put("updateReturnOrderInfo", new updateReturnOrderInfo());
18713
      processMap.put("bulkUpdateReturnOrderInfo", new bulkUpdateReturnOrderInfo());
18928
      processMap.put("bulkUpdateReturnOrderInfo", new bulkUpdateReturnOrderInfo());
Line 23366... Line 23581...
23366
        return new getCreditHistoryRecordsForTransaction_args();
23581
        return new getCreditHistoryRecordsForTransaction_args();
23367
      }
23582
      }
23368
 
23583
 
23369
      protected getCreditHistoryRecordsForTransaction_result getResult(I iface, getCreditHistoryRecordsForTransaction_args args) throws org.apache.thrift.TException {
23584
      protected getCreditHistoryRecordsForTransaction_result getResult(I iface, getCreditHistoryRecordsForTransaction_args args) throws org.apache.thrift.TException {
23370
        getCreditHistoryRecordsForTransaction_result result = new getCreditHistoryRecordsForTransaction_result();
23585
        getCreditHistoryRecordsForTransaction_result result = new getCreditHistoryRecordsForTransaction_result();
23371
        result.success = iface.getCreditHistoryRecordsForTransaction(args.paymentId, args.creditorId, args.creditTxnType);
23586
        result.success = iface.getCreditHistoryRecordsForTransaction(args.paymentId, args.creditTxnType);
23372
        return result;
23587
        return result;
23373
      }
23588
      }
23374
    }
23589
    }
23375
 
23590
 
23376
    private static class getCreditHistoryRecordsForUserAndCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditHistoryRecordsForUserAndCreditor_args> {
23591
    private static class getCreditHistoryRecordsForUserAndCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditHistoryRecordsForUserAndCreditor_args> {
Line 23382... Line 23597...
23382
        return new getCreditHistoryRecordsForUserAndCreditor_args();
23597
        return new getCreditHistoryRecordsForUserAndCreditor_args();
23383
      }
23598
      }
23384
 
23599
 
23385
      protected getCreditHistoryRecordsForUserAndCreditor_result getResult(I iface, getCreditHistoryRecordsForUserAndCreditor_args args) throws org.apache.thrift.TException {
23600
      protected getCreditHistoryRecordsForUserAndCreditor_result getResult(I iface, getCreditHistoryRecordsForUserAndCreditor_args args) throws org.apache.thrift.TException {
23386
        getCreditHistoryRecordsForUserAndCreditor_result result = new getCreditHistoryRecordsForUserAndCreditor_result();
23601
        getCreditHistoryRecordsForUserAndCreditor_result result = new getCreditHistoryRecordsForUserAndCreditor_result();
23387
        result.success = iface.getCreditHistoryRecordsForUserAndCreditor(args.userId, args.creditTxnType);
23602
        result.success = iface.getCreditHistoryRecordsForUserAndCreditor(args.userId, args.creditorId, args.creditTxnType);
23388
        return result;
23603
        return result;
23389
      }
23604
      }
23390
    }
23605
    }
23391
 
23606
 
23392
    private static class processCreditTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processCreditTransaction_args> {
23607
    private static class processCreditTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processCreditTransaction_args> {
Line 23399... Line 23614...
23399
      }
23614
      }
23400
 
23615
 
23401
      protected processCreditTransaction_result getResult(I iface, processCreditTransaction_args args) throws org.apache.thrift.TException {
23616
      protected processCreditTransaction_result getResult(I iface, processCreditTransaction_args args) throws org.apache.thrift.TException {
23402
        processCreditTransaction_result result = new processCreditTransaction_result();
23617
        processCreditTransaction_result result = new processCreditTransaction_result();
23403
        try {
23618
        try {
23404
          result.success = iface.processCreditTransaction(args.paymentId, args.creditTxns);
23619
          result.success = iface.processCreditTransaction(args.paymentId, args.userId, args.creditorId, args.creditTxns);
23405
          result.setSuccessIsSet(true);
23620
          result.setSuccessIsSet(true);
23406
        } catch (TransactionServiceException pe) {
23621
        } catch (TransactionServiceException pe) {
23407
          result.pe = pe;
23622
          result.pe = pe;
23408
        }
23623
        }
23409
        return result;
23624
        return result;
Line 23420... Line 23635...
23420
      }
23635
      }
23421
 
23636
 
23422
      protected getLoanPayableForUserToCreditor_result getResult(I iface, getLoanPayableForUserToCreditor_args args) throws org.apache.thrift.TException {
23637
      protected getLoanPayableForUserToCreditor_result getResult(I iface, getLoanPayableForUserToCreditor_args args) throws org.apache.thrift.TException {
23423
        getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
23638
        getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
23424
        result.success = iface.getLoanPayableForUserToCreditor(args.userId, args.creditorId, args.dueDate);
23639
        result.success = iface.getLoanPayableForUserToCreditor(args.userId, args.creditorId, args.dueDate);
-
 
23640
        result.setSuccessIsSet(true);
-
 
23641
        return result;
-
 
23642
      }
-
 
23643
    }
-
 
23644
 
-
 
23645
    private static class getLoanHistoryRecordsForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLoanHistoryRecordsForTransaction_args> {
-
 
23646
      public getLoanHistoryRecordsForTransaction() {
-
 
23647
        super("getLoanHistoryRecordsForTransaction");
-
 
23648
      }
-
 
23649
 
-
 
23650
      protected getLoanHistoryRecordsForTransaction_args getEmptyArgsInstance() {
-
 
23651
        return new getLoanHistoryRecordsForTransaction_args();
-
 
23652
      }
-
 
23653
 
-
 
23654
      protected getLoanHistoryRecordsForTransaction_result getResult(I iface, getLoanHistoryRecordsForTransaction_args args) throws org.apache.thrift.TException {
-
 
23655
        getLoanHistoryRecordsForTransaction_result result = new getLoanHistoryRecordsForTransaction_result();
-
 
23656
        result.success = iface.getLoanHistoryRecordsForTransaction(args.paymentId, args.creditTxnType);
-
 
23657
        return result;
-
 
23658
      }
-
 
23659
    }
-
 
23660
 
-
 
23661
    private static class getLoanHistoryRecordsForUserAndCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLoanHistoryRecordsForUserAndCreditor_args> {
-
 
23662
      public getLoanHistoryRecordsForUserAndCreditor() {
-
 
23663
        super("getLoanHistoryRecordsForUserAndCreditor");
-
 
23664
      }
-
 
23665
 
-
 
23666
      protected getLoanHistoryRecordsForUserAndCreditor_args getEmptyArgsInstance() {
-
 
23667
        return new getLoanHistoryRecordsForUserAndCreditor_args();
-
 
23668
      }
-
 
23669
 
-
 
23670
      protected getLoanHistoryRecordsForUserAndCreditor_result getResult(I iface, getLoanHistoryRecordsForUserAndCreditor_args args) throws org.apache.thrift.TException {
-
 
23671
        getLoanHistoryRecordsForUserAndCreditor_result result = new getLoanHistoryRecordsForUserAndCreditor_result();
-
 
23672
        result.success = iface.getLoanHistoryRecordsForUserAndCreditor(args.userId, args.creditorId, args.creditTxnType);
-
 
23673
        return result;
-
 
23674
      }
-
 
23675
    }
-
 
23676
 
-
 
23677
    private static class processLoanTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processLoanTransaction_args> {
-
 
23678
      public processLoanTransaction() {
-
 
23679
        super("processLoanTransaction");
-
 
23680
      }
-
 
23681
 
-
 
23682
      protected processLoanTransaction_args getEmptyArgsInstance() {
-
 
23683
        return new processLoanTransaction_args();
-
 
23684
      }
-
 
23685
 
-
 
23686
      protected processLoanTransaction_result getResult(I iface, processLoanTransaction_args args) throws org.apache.thrift.TException {
-
 
23687
        processLoanTransaction_result result = new processLoanTransaction_result();
-
 
23688
        try {
-
 
23689
          result.success = iface.processLoanTransaction(args.paymentId, args.userId, args.creditorId, args.creditTxns);
-
 
23690
          result.setSuccessIsSet(true);
-
 
23691
        } catch (TransactionServiceException pe) {
-
 
23692
          result.pe = pe;
-
 
23693
        }
23425
        return result;
23694
        return result;
23426
      }
23695
      }
23427
    }
23696
    }
23428
 
23697
 
23429
    private static class getReturnOrderInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrderInfo_args> {
23698
    private static class getReturnOrderInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrderInfo_args> {
Line 121880... Line 122149...
121880
      }
122149
      }
121881
    }
122150
    }
121882
 
122151
 
121883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
122152
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
121884
      try {
122153
      try {
-
 
122154
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
122155
        __isset_bit_vector = new BitSet(1);
121885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
122156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
121886
      } catch (org.apache.thrift.TException te) {
122157
      } catch (org.apache.thrift.TException te) {
121887
        throw new java.io.IOException(te);
122158
        throw new java.io.IOException(te);
121888
      }
122159
      }
121889
    }
122160
    }
Line 204834... Line 205105...
204834
 
205105
 
204835
  public static class getCreditHistoryRecordsForTransaction_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForTransaction_args, getCreditHistoryRecordsForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
205106
  public static class getCreditHistoryRecordsForTransaction_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForTransaction_args, getCreditHistoryRecordsForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
204836
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForTransaction_args");
205107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForTransaction_args");
204837
 
205108
 
204838
    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);
205109
    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);
204839
    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);
-
 
204840
    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);
205110
    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.I32, (short)2);
204841
 
205111
 
204842
    private long paymentId; // required
205112
    private long paymentId; // required
204843
    private long creditorId; // required
-
 
204844
    private String creditTxnType; // required
205113
    private CreditTxnType creditTxnType; // required
204845
 
205114
 
204846
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
205115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
204847
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
205116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
204848
      PAYMENT_ID((short)1, "paymentId"),
205117
      PAYMENT_ID((short)1, "paymentId"),
-
 
205118
      /**
-
 
205119
       * 
204849
      CREDITOR_ID((short)2, "creditorId"),
205120
       * @see CreditTxnType
-
 
205121
       */
204850
      CREDIT_TXN_TYPE((short)3, "creditTxnType");
205122
      CREDIT_TXN_TYPE((short)2, "creditTxnType");
204851
 
205123
 
204852
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
205124
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
204853
 
205125
 
204854
      static {
205126
      static {
204855
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
205127
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 204862... Line 205134...
204862
       */
205134
       */
204863
      public static _Fields findByThriftId(int fieldId) {
205135
      public static _Fields findByThriftId(int fieldId) {
204864
        switch(fieldId) {
205136
        switch(fieldId) {
204865
          case 1: // PAYMENT_ID
205137
          case 1: // PAYMENT_ID
204866
            return PAYMENT_ID;
205138
            return PAYMENT_ID;
204867
          case 2: // CREDITOR_ID
-
 
204868
            return CREDITOR_ID;
-
 
204869
          case 3: // CREDIT_TXN_TYPE
205139
          case 2: // CREDIT_TXN_TYPE
204870
            return CREDIT_TXN_TYPE;
205140
            return CREDIT_TXN_TYPE;
204871
          default:
205141
          default:
204872
            return null;
205142
            return null;
204873
        }
205143
        }
204874
      }
205144
      }
Line 204907... Line 205177...
204907
      }
205177
      }
204908
    }
205178
    }
204909
 
205179
 
204910
    // isset id assignments
205180
    // isset id assignments
204911
    private static final int __PAYMENTID_ISSET_ID = 0;
205181
    private static final int __PAYMENTID_ISSET_ID = 0;
204912
    private static final int __CREDITORID_ISSET_ID = 1;
-
 
204913
    private BitSet __isset_bit_vector = new BitSet(2);
205182
    private BitSet __isset_bit_vector = new BitSet(1);
204914
 
205183
 
204915
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
205184
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
204916
    static {
205185
    static {
204917
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
205186
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
204918
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205187
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205188
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
204920
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
204921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
204922
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205189
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
205190
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
204924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
205191
      metaDataMap = Collections.unmodifiableMap(tmpMap);
204925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForTransaction_args.class, metaDataMap);
205192
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForTransaction_args.class, metaDataMap);
204926
    }
205193
    }
204927
 
205194
 
204928
    public getCreditHistoryRecordsForTransaction_args() {
205195
    public getCreditHistoryRecordsForTransaction_args() {
204929
    }
205196
    }
204930
 
205197
 
204931
    public getCreditHistoryRecordsForTransaction_args(
205198
    public getCreditHistoryRecordsForTransaction_args(
204932
      long paymentId,
205199
      long paymentId,
204933
      long creditorId,
-
 
204934
      String creditTxnType)
205200
      CreditTxnType creditTxnType)
204935
    {
205201
    {
204936
      this();
205202
      this();
204937
      this.paymentId = paymentId;
205203
      this.paymentId = paymentId;
204938
      setPaymentIdIsSet(true);
205204
      setPaymentIdIsSet(true);
204939
      this.creditorId = creditorId;
-
 
204940
      setCreditorIdIsSet(true);
-
 
204941
      this.creditTxnType = creditTxnType;
205205
      this.creditTxnType = creditTxnType;
204942
    }
205206
    }
204943
 
205207
 
204944
    /**
205208
    /**
204945
     * Performs a deep copy on <i>other</i>.
205209
     * Performs a deep copy on <i>other</i>.
204946
     */
205210
     */
204947
    public getCreditHistoryRecordsForTransaction_args(getCreditHistoryRecordsForTransaction_args other) {
205211
    public getCreditHistoryRecordsForTransaction_args(getCreditHistoryRecordsForTransaction_args other) {
204948
      __isset_bit_vector.clear();
205212
      __isset_bit_vector.clear();
204949
      __isset_bit_vector.or(other.__isset_bit_vector);
205213
      __isset_bit_vector.or(other.__isset_bit_vector);
204950
      this.paymentId = other.paymentId;
205214
      this.paymentId = other.paymentId;
204951
      this.creditorId = other.creditorId;
-
 
204952
      if (other.isSetCreditTxnType()) {
205215
      if (other.isSetCreditTxnType()) {
204953
        this.creditTxnType = other.creditTxnType;
205216
        this.creditTxnType = other.creditTxnType;
204954
      }
205217
      }
204955
    }
205218
    }
204956
 
205219
 
Line 204960... Line 205223...
204960
 
205223
 
204961
    @Override
205224
    @Override
204962
    public void clear() {
205225
    public void clear() {
204963
      setPaymentIdIsSet(false);
205226
      setPaymentIdIsSet(false);
204964
      this.paymentId = 0;
205227
      this.paymentId = 0;
204965
      setCreditorIdIsSet(false);
-
 
204966
      this.creditorId = 0;
-
 
204967
      this.creditTxnType = null;
205228
      this.creditTxnType = null;
204968
    }
205229
    }
204969
 
205230
 
204970
    public long getPaymentId() {
205231
    public long getPaymentId() {
204971
      return this.paymentId;
205232
      return this.paymentId;
Line 204987... Line 205248...
204987
 
205248
 
204988
    public void setPaymentIdIsSet(boolean value) {
205249
    public void setPaymentIdIsSet(boolean value) {
204989
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
205250
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
204990
    }
205251
    }
204991
 
205252
 
204992
    public long getCreditorId() {
-
 
204993
      return this.creditorId;
-
 
204994
    }
205253
    /**
204995
 
-
 
204996
    public void setCreditorId(long creditorId) {
-
 
204997
      this.creditorId = creditorId;
-
 
204998
      setCreditorIdIsSet(true);
-
 
204999
    }
205254
     * 
205000
 
-
 
205001
    public void unsetCreditorId() {
205255
     * @see CreditTxnType
205002
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
205003
    }
-
 
205004
 
-
 
205005
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
205006
    public boolean isSetCreditorId() {
-
 
205007
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
205008
    }
-
 
205009
 
-
 
205010
    public void setCreditorIdIsSet(boolean value) {
-
 
205011
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
205012
    }
205256
     */
205013
 
-
 
205014
    public String getCreditTxnType() {
205257
    public CreditTxnType getCreditTxnType() {
205015
      return this.creditTxnType;
205258
      return this.creditTxnType;
205016
    }
205259
    }
205017
 
205260
 
-
 
205261
    /**
-
 
205262
     * 
-
 
205263
     * @see CreditTxnType
-
 
205264
     */
205018
    public void setCreditTxnType(String creditTxnType) {
205265
    public void setCreditTxnType(CreditTxnType creditTxnType) {
205019
      this.creditTxnType = creditTxnType;
205266
      this.creditTxnType = creditTxnType;
205020
    }
205267
    }
205021
 
205268
 
205022
    public void unsetCreditTxnType() {
205269
    public void unsetCreditTxnType() {
205023
      this.creditTxnType = null;
205270
      this.creditTxnType = null;
Line 205042... Line 205289...
205042
        } else {
205289
        } else {
205043
          setPaymentId((Long)value);
205290
          setPaymentId((Long)value);
205044
        }
205291
        }
205045
        break;
205292
        break;
205046
 
205293
 
205047
      case CREDITOR_ID:
-
 
205048
        if (value == null) {
-
 
205049
          unsetCreditorId();
-
 
205050
        } else {
-
 
205051
          setCreditorId((Long)value);
-
 
205052
        }
-
 
205053
        break;
-
 
205054
 
-
 
205055
      case CREDIT_TXN_TYPE:
205294
      case CREDIT_TXN_TYPE:
205056
        if (value == null) {
205295
        if (value == null) {
205057
          unsetCreditTxnType();
205296
          unsetCreditTxnType();
205058
        } else {
205297
        } else {
205059
          setCreditTxnType((String)value);
205298
          setCreditTxnType((CreditTxnType)value);
205060
        }
205299
        }
205061
        break;
205300
        break;
205062
 
205301
 
205063
      }
205302
      }
205064
    }
205303
    }
Line 205066... Line 205305...
205066
    public Object getFieldValue(_Fields field) {
205305
    public Object getFieldValue(_Fields field) {
205067
      switch (field) {
205306
      switch (field) {
205068
      case PAYMENT_ID:
205307
      case PAYMENT_ID:
205069
        return Long.valueOf(getPaymentId());
205308
        return Long.valueOf(getPaymentId());
205070
 
205309
 
205071
      case CREDITOR_ID:
-
 
205072
        return Long.valueOf(getCreditorId());
-
 
205073
 
-
 
205074
      case CREDIT_TXN_TYPE:
205310
      case CREDIT_TXN_TYPE:
205075
        return getCreditTxnType();
205311
        return getCreditTxnType();
205076
 
205312
 
205077
      }
205313
      }
205078
      throw new IllegalStateException();
205314
      throw new IllegalStateException();
Line 205085... Line 205321...
205085
      }
205321
      }
205086
 
205322
 
205087
      switch (field) {
205323
      switch (field) {
205088
      case PAYMENT_ID:
205324
      case PAYMENT_ID:
205089
        return isSetPaymentId();
205325
        return isSetPaymentId();
205090
      case CREDITOR_ID:
-
 
205091
        return isSetCreditorId();
-
 
205092
      case CREDIT_TXN_TYPE:
205326
      case CREDIT_TXN_TYPE:
205093
        return isSetCreditTxnType();
205327
        return isSetCreditTxnType();
205094
      }
205328
      }
205095
      throw new IllegalStateException();
205329
      throw new IllegalStateException();
205096
    }
205330
    }
Line 205115... Line 205349...
205115
          return false;
205349
          return false;
205116
        if (this.paymentId != that.paymentId)
205350
        if (this.paymentId != that.paymentId)
205117
          return false;
205351
          return false;
205118
      }
205352
      }
205119
 
205353
 
205120
      boolean this_present_creditorId = true;
-
 
205121
      boolean that_present_creditorId = true;
-
 
205122
      if (this_present_creditorId || that_present_creditorId) {
-
 
205123
        if (!(this_present_creditorId && that_present_creditorId))
-
 
205124
          return false;
-
 
205125
        if (this.creditorId != that.creditorId)
-
 
205126
          return false;
-
 
205127
      }
-
 
205128
 
-
 
205129
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
205354
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
205130
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
205355
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
205131
      if (this_present_creditTxnType || that_present_creditTxnType) {
205356
      if (this_present_creditTxnType || that_present_creditTxnType) {
205132
        if (!(this_present_creditTxnType && that_present_creditTxnType))
205357
        if (!(this_present_creditTxnType && that_present_creditTxnType))
205133
          return false;
205358
          return false;
Line 205159... Line 205384...
205159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
205384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
205160
        if (lastComparison != 0) {
205385
        if (lastComparison != 0) {
205161
          return lastComparison;
205386
          return lastComparison;
205162
        }
205387
        }
205163
      }
205388
      }
205164
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
205165
      if (lastComparison != 0) {
-
 
205166
        return lastComparison;
-
 
205167
      }
-
 
205168
      if (isSetCreditorId()) {
-
 
205169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
205170
        if (lastComparison != 0) {
-
 
205171
          return lastComparison;
-
 
205172
        }
-
 
205173
      }
-
 
205174
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
205389
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
205175
      if (lastComparison != 0) {
205390
      if (lastComparison != 0) {
205176
        return lastComparison;
205391
        return lastComparison;
205177
      }
205392
      }
205178
      if (isSetCreditTxnType()) {
205393
      if (isSetCreditTxnType()) {
Line 205204... Line 205419...
205204
              setPaymentIdIsSet(true);
205419
              setPaymentIdIsSet(true);
205205
            } else { 
205420
            } else { 
205206
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
205421
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
205207
            }
205422
            }
205208
            break;
205423
            break;
205209
          case 2: // CREDITOR_ID
-
 
205210
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
205211
              this.creditorId = iprot.readI64();
-
 
205212
              setCreditorIdIsSet(true);
-
 
205213
            } else { 
-
 
205214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
205215
            }
-
 
205216
            break;
-
 
205217
          case 3: // CREDIT_TXN_TYPE
205424
          case 2: // CREDIT_TXN_TYPE
205218
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
205425
            if (field.type == org.apache.thrift.protocol.TType.I32) {
205219
              this.creditTxnType = iprot.readString();
205426
              this.creditTxnType = CreditTxnType.findByValue(iprot.readI32());
205220
            } else { 
205427
            } else { 
205221
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
205428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
205222
            }
205429
            }
205223
            break;
205430
            break;
205224
          default:
205431
          default:
Line 205235... Line 205442...
205235
 
205442
 
205236
      oprot.writeStructBegin(STRUCT_DESC);
205443
      oprot.writeStructBegin(STRUCT_DESC);
205237
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
205444
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
205238
      oprot.writeI64(this.paymentId);
205445
      oprot.writeI64(this.paymentId);
205239
      oprot.writeFieldEnd();
205446
      oprot.writeFieldEnd();
205240
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
205241
      oprot.writeI64(this.creditorId);
-
 
205242
      oprot.writeFieldEnd();
-
 
205243
      if (this.creditTxnType != null) {
205447
      if (this.creditTxnType != null) {
205244
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
205448
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
205245
        oprot.writeString(this.creditTxnType);
205449
        oprot.writeI32(this.creditTxnType.getValue());
205246
        oprot.writeFieldEnd();
205450
        oprot.writeFieldEnd();
205247
      }
205451
      }
205248
      oprot.writeFieldStop();
205452
      oprot.writeFieldStop();
205249
      oprot.writeStructEnd();
205453
      oprot.writeStructEnd();
205250
    }
205454
    }
Line 205256... Line 205460...
205256
 
205460
 
205257
      sb.append("paymentId:");
205461
      sb.append("paymentId:");
205258
      sb.append(this.paymentId);
205462
      sb.append(this.paymentId);
205259
      first = false;
205463
      first = false;
205260
      if (!first) sb.append(", ");
205464
      if (!first) sb.append(", ");
205261
      sb.append("creditorId:");
-
 
205262
      sb.append(this.creditorId);
-
 
205263
      first = false;
-
 
205264
      if (!first) sb.append(", ");
-
 
205265
      sb.append("creditTxnType:");
205465
      sb.append("creditTxnType:");
205266
      if (this.creditTxnType == null) {
205466
      if (this.creditTxnType == null) {
205267
        sb.append("null");
205467
        sb.append("null");
205268
      } else {
205468
      } else {
205269
        sb.append(this.creditTxnType);
205469
        sb.append(this.creditTxnType);
Line 205630... Line 205830...
205630
 
205830
 
205631
  public static class getCreditHistoryRecordsForUserAndCreditor_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForUserAndCreditor_args, getCreditHistoryRecordsForUserAndCreditor_args._Fields>, java.io.Serializable, Cloneable   {
205831
  public static class getCreditHistoryRecordsForUserAndCreditor_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForUserAndCreditor_args, getCreditHistoryRecordsForUserAndCreditor_args._Fields>, java.io.Serializable, Cloneable   {
205632
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForUserAndCreditor_args");
205832
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForUserAndCreditor_args");
205633
 
205833
 
205634
    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);
205834
    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);
-
 
205835
    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);
205635
    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);
205836
    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.I32, (short)3);
205636
 
205837
 
205637
    private long userId; // required
205838
    private long userId; // required
-
 
205839
    private long creditorId; // required
205638
    private String creditTxnType; // required
205840
    private CreditTxnType creditTxnType; // required
205639
 
205841
 
205640
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
205842
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
205641
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
205843
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
205642
      USER_ID((short)1, "userId"),
205844
      USER_ID((short)1, "userId"),
-
 
205845
      CREDITOR_ID((short)2, "creditorId"),
-
 
205846
      /**
-
 
205847
       * 
-
 
205848
       * @see CreditTxnType
-
 
205849
       */
205643
      CREDIT_TXN_TYPE((short)2, "creditTxnType");
205850
      CREDIT_TXN_TYPE((short)3, "creditTxnType");
205644
 
205851
 
205645
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
205852
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
205646
 
205853
 
205647
      static {
205854
      static {
205648
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
205855
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 205655... Line 205862...
205655
       */
205862
       */
205656
      public static _Fields findByThriftId(int fieldId) {
205863
      public static _Fields findByThriftId(int fieldId) {
205657
        switch(fieldId) {
205864
        switch(fieldId) {
205658
          case 1: // USER_ID
205865
          case 1: // USER_ID
205659
            return USER_ID;
205866
            return USER_ID;
-
 
205867
          case 2: // CREDITOR_ID
-
 
205868
            return CREDITOR_ID;
205660
          case 2: // CREDIT_TXN_TYPE
205869
          case 3: // CREDIT_TXN_TYPE
205661
            return CREDIT_TXN_TYPE;
205870
            return CREDIT_TXN_TYPE;
205662
          default:
205871
          default:
205663
            return null;
205872
            return null;
205664
        }
205873
        }
205665
      }
205874
      }
Line 205698... Line 205907...
205698
      }
205907
      }
205699
    }
205908
    }
205700
 
205909
 
205701
    // isset id assignments
205910
    // isset id assignments
205702
    private static final int __USERID_ISSET_ID = 0;
205911
    private static final int __USERID_ISSET_ID = 0;
-
 
205912
    private static final int __CREDITORID_ISSET_ID = 1;
205703
    private BitSet __isset_bit_vector = new BitSet(1);
205913
    private BitSet __isset_bit_vector = new BitSet(2);
205704
 
205914
 
205705
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
205915
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
205706
    static {
205916
    static {
205707
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
205917
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
205708
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205918
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
205920
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
205921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205710
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205922
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205711
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
205923
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
205712
      metaDataMap = Collections.unmodifiableMap(tmpMap);
205924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
205713
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForUserAndCreditor_args.class, metaDataMap);
205925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForUserAndCreditor_args.class, metaDataMap);
205714
    }
205926
    }
205715
 
205927
 
205716
    public getCreditHistoryRecordsForUserAndCreditor_args() {
205928
    public getCreditHistoryRecordsForUserAndCreditor_args() {
205717
    }
205929
    }
205718
 
205930
 
205719
    public getCreditHistoryRecordsForUserAndCreditor_args(
205931
    public getCreditHistoryRecordsForUserAndCreditor_args(
205720
      long userId,
205932
      long userId,
-
 
205933
      long creditorId,
205721
      String creditTxnType)
205934
      CreditTxnType creditTxnType)
205722
    {
205935
    {
205723
      this();
205936
      this();
205724
      this.userId = userId;
205937
      this.userId = userId;
205725
      setUserIdIsSet(true);
205938
      setUserIdIsSet(true);
-
 
205939
      this.creditorId = creditorId;
-
 
205940
      setCreditorIdIsSet(true);
205726
      this.creditTxnType = creditTxnType;
205941
      this.creditTxnType = creditTxnType;
205727
    }
205942
    }
205728
 
205943
 
205729
    /**
205944
    /**
205730
     * Performs a deep copy on <i>other</i>.
205945
     * Performs a deep copy on <i>other</i>.
205731
     */
205946
     */
205732
    public getCreditHistoryRecordsForUserAndCreditor_args(getCreditHistoryRecordsForUserAndCreditor_args other) {
205947
    public getCreditHistoryRecordsForUserAndCreditor_args(getCreditHistoryRecordsForUserAndCreditor_args other) {
205733
      __isset_bit_vector.clear();
205948
      __isset_bit_vector.clear();
205734
      __isset_bit_vector.or(other.__isset_bit_vector);
205949
      __isset_bit_vector.or(other.__isset_bit_vector);
205735
      this.userId = other.userId;
205950
      this.userId = other.userId;
-
 
205951
      this.creditorId = other.creditorId;
205736
      if (other.isSetCreditTxnType()) {
205952
      if (other.isSetCreditTxnType()) {
205737
        this.creditTxnType = other.creditTxnType;
205953
        this.creditTxnType = other.creditTxnType;
205738
      }
205954
      }
205739
    }
205955
    }
205740
 
205956
 
Line 205744... Line 205960...
205744
 
205960
 
205745
    @Override
205961
    @Override
205746
    public void clear() {
205962
    public void clear() {
205747
      setUserIdIsSet(false);
205963
      setUserIdIsSet(false);
205748
      this.userId = 0;
205964
      this.userId = 0;
-
 
205965
      setCreditorIdIsSet(false);
-
 
205966
      this.creditorId = 0;
205749
      this.creditTxnType = null;
205967
      this.creditTxnType = null;
205750
    }
205968
    }
205751
 
205969
 
205752
    public long getUserId() {
205970
    public long getUserId() {
205753
      return this.userId;
205971
      return this.userId;
Line 205769... Line 205987...
205769
 
205987
 
205770
    public void setUserIdIsSet(boolean value) {
205988
    public void setUserIdIsSet(boolean value) {
205771
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
205989
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
205772
    }
205990
    }
205773
 
205991
 
-
 
205992
    public long getCreditorId() {
-
 
205993
      return this.creditorId;
-
 
205994
    }
-
 
205995
 
-
 
205996
    public void setCreditorId(long creditorId) {
-
 
205997
      this.creditorId = creditorId;
-
 
205998
      setCreditorIdIsSet(true);
-
 
205999
    }
-
 
206000
 
-
 
206001
    public void unsetCreditorId() {
-
 
206002
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
206003
    }
-
 
206004
 
-
 
206005
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
206006
    public boolean isSetCreditorId() {
-
 
206007
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
206008
    }
-
 
206009
 
-
 
206010
    public void setCreditorIdIsSet(boolean value) {
-
 
206011
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
206012
    }
-
 
206013
 
-
 
206014
    /**
-
 
206015
     * 
-
 
206016
     * @see CreditTxnType
-
 
206017
     */
205774
    public String getCreditTxnType() {
206018
    public CreditTxnType getCreditTxnType() {
205775
      return this.creditTxnType;
206019
      return this.creditTxnType;
205776
    }
206020
    }
205777
 
206021
 
-
 
206022
    /**
-
 
206023
     * 
-
 
206024
     * @see CreditTxnType
-
 
206025
     */
205778
    public void setCreditTxnType(String creditTxnType) {
206026
    public void setCreditTxnType(CreditTxnType creditTxnType) {
205779
      this.creditTxnType = creditTxnType;
206027
      this.creditTxnType = creditTxnType;
205780
    }
206028
    }
205781
 
206029
 
205782
    public void unsetCreditTxnType() {
206030
    public void unsetCreditTxnType() {
205783
      this.creditTxnType = null;
206031
      this.creditTxnType = null;
Line 205802... Line 206050...
205802
        } else {
206050
        } else {
205803
          setUserId((Long)value);
206051
          setUserId((Long)value);
205804
        }
206052
        }
205805
        break;
206053
        break;
205806
 
206054
 
-
 
206055
      case CREDITOR_ID:
-
 
206056
        if (value == null) {
-
 
206057
          unsetCreditorId();
-
 
206058
        } else {
-
 
206059
          setCreditorId((Long)value);
-
 
206060
        }
-
 
206061
        break;
-
 
206062
 
205807
      case CREDIT_TXN_TYPE:
206063
      case CREDIT_TXN_TYPE:
205808
        if (value == null) {
206064
        if (value == null) {
205809
          unsetCreditTxnType();
206065
          unsetCreditTxnType();
205810
        } else {
206066
        } else {
205811
          setCreditTxnType((String)value);
206067
          setCreditTxnType((CreditTxnType)value);
205812
        }
206068
        }
205813
        break;
206069
        break;
205814
 
206070
 
205815
      }
206071
      }
205816
    }
206072
    }
Line 205818... Line 206074...
205818
    public Object getFieldValue(_Fields field) {
206074
    public Object getFieldValue(_Fields field) {
205819
      switch (field) {
206075
      switch (field) {
205820
      case USER_ID:
206076
      case USER_ID:
205821
        return Long.valueOf(getUserId());
206077
        return Long.valueOf(getUserId());
205822
 
206078
 
-
 
206079
      case CREDITOR_ID:
-
 
206080
        return Long.valueOf(getCreditorId());
-
 
206081
 
205823
      case CREDIT_TXN_TYPE:
206082
      case CREDIT_TXN_TYPE:
205824
        return getCreditTxnType();
206083
        return getCreditTxnType();
205825
 
206084
 
205826
      }
206085
      }
205827
      throw new IllegalStateException();
206086
      throw new IllegalStateException();
Line 205834... Line 206093...
205834
      }
206093
      }
205835
 
206094
 
205836
      switch (field) {
206095
      switch (field) {
205837
      case USER_ID:
206096
      case USER_ID:
205838
        return isSetUserId();
206097
        return isSetUserId();
-
 
206098
      case CREDITOR_ID:
-
 
206099
        return isSetCreditorId();
205839
      case CREDIT_TXN_TYPE:
206100
      case CREDIT_TXN_TYPE:
205840
        return isSetCreditTxnType();
206101
        return isSetCreditTxnType();
205841
      }
206102
      }
205842
      throw new IllegalStateException();
206103
      throw new IllegalStateException();
205843
    }
206104
    }
Line 205862... Line 206123...
205862
          return false;
206123
          return false;
205863
        if (this.userId != that.userId)
206124
        if (this.userId != that.userId)
205864
          return false;
206125
          return false;
205865
      }
206126
      }
205866
 
206127
 
-
 
206128
      boolean this_present_creditorId = true;
-
 
206129
      boolean that_present_creditorId = true;
-
 
206130
      if (this_present_creditorId || that_present_creditorId) {
-
 
206131
        if (!(this_present_creditorId && that_present_creditorId))
-
 
206132
          return false;
-
 
206133
        if (this.creditorId != that.creditorId)
-
 
206134
          return false;
-
 
206135
      }
-
 
206136
 
205867
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
206137
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
205868
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
206138
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
205869
      if (this_present_creditTxnType || that_present_creditTxnType) {
206139
      if (this_present_creditTxnType || that_present_creditTxnType) {
205870
        if (!(this_present_creditTxnType && that_present_creditTxnType))
206140
        if (!(this_present_creditTxnType && that_present_creditTxnType))
205871
          return false;
206141
          return false;
Line 205897... Line 206167...
205897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
206167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
205898
        if (lastComparison != 0) {
206168
        if (lastComparison != 0) {
205899
          return lastComparison;
206169
          return lastComparison;
205900
        }
206170
        }
205901
      }
206171
      }
-
 
206172
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
206173
      if (lastComparison != 0) {
-
 
206174
        return lastComparison;
-
 
206175
      }
-
 
206176
      if (isSetCreditorId()) {
-
 
206177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
206178
        if (lastComparison != 0) {
-
 
206179
          return lastComparison;
-
 
206180
        }
-
 
206181
      }
205902
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
206182
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
205903
      if (lastComparison != 0) {
206183
      if (lastComparison != 0) {
205904
        return lastComparison;
206184
        return lastComparison;
205905
      }
206185
      }
205906
      if (isSetCreditTxnType()) {
206186
      if (isSetCreditTxnType()) {
Line 205932... Line 206212...
205932
              setUserIdIsSet(true);
206212
              setUserIdIsSet(true);
205933
            } else { 
206213
            } else { 
205934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
206214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
205935
            }
206215
            }
205936
            break;
206216
            break;
205937
          case 2: // CREDIT_TXN_TYPE
206217
          case 2: // CREDITOR_ID
205938
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
206218
            if (field.type == org.apache.thrift.protocol.TType.I64) {
205939
              this.creditTxnType = iprot.readString();
206219
              this.creditorId = iprot.readI64();
-
 
206220
              setCreditorIdIsSet(true);
-
 
206221
            } else { 
-
 
206222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
206223
            }
-
 
206224
            break;
-
 
206225
          case 3: // CREDIT_TXN_TYPE
-
 
206226
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
206227
              this.creditTxnType = CreditTxnType.findByValue(iprot.readI32());
205940
            } else { 
206228
            } else { 
205941
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
206229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
205942
            }
206230
            }
205943
            break;
206231
            break;
205944
          default:
206232
          default:
Line 205955... Line 206243...
205955
 
206243
 
205956
      oprot.writeStructBegin(STRUCT_DESC);
206244
      oprot.writeStructBegin(STRUCT_DESC);
205957
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
206245
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
205958
      oprot.writeI64(this.userId);
206246
      oprot.writeI64(this.userId);
205959
      oprot.writeFieldEnd();
206247
      oprot.writeFieldEnd();
-
 
206248
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
206249
      oprot.writeI64(this.creditorId);
-
 
206250
      oprot.writeFieldEnd();
205960
      if (this.creditTxnType != null) {
206251
      if (this.creditTxnType != null) {
205961
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
206252
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
205962
        oprot.writeString(this.creditTxnType);
206253
        oprot.writeI32(this.creditTxnType.getValue());
205963
        oprot.writeFieldEnd();
206254
        oprot.writeFieldEnd();
205964
      }
206255
      }
205965
      oprot.writeFieldStop();
206256
      oprot.writeFieldStop();
205966
      oprot.writeStructEnd();
206257
      oprot.writeStructEnd();
205967
    }
206258
    }
Line 205973... Line 206264...
205973
 
206264
 
205974
      sb.append("userId:");
206265
      sb.append("userId:");
205975
      sb.append(this.userId);
206266
      sb.append(this.userId);
205976
      first = false;
206267
      first = false;
205977
      if (!first) sb.append(", ");
206268
      if (!first) sb.append(", ");
-
 
206269
      sb.append("creditorId:");
-
 
206270
      sb.append(this.creditorId);
-
 
206271
      first = false;
-
 
206272
      if (!first) sb.append(", ");
205978
      sb.append("creditTxnType:");
206273
      sb.append("creditTxnType:");
205979
      if (this.creditTxnType == null) {
206274
      if (this.creditTxnType == null) {
205980
        sb.append("null");
206275
        sb.append("null");
205981
      } else {
206276
      } else {
205982
        sb.append(this.creditTxnType);
206277
        sb.append(this.creditTxnType);
Line 206341... Line 206636...
206341
 
206636
 
206342
  public static class processCreditTransaction_args implements org.apache.thrift.TBase<processCreditTransaction_args, processCreditTransaction_args._Fields>, java.io.Serializable, Cloneable   {
206637
  public static class processCreditTransaction_args implements org.apache.thrift.TBase<processCreditTransaction_args, processCreditTransaction_args._Fields>, java.io.Serializable, Cloneable   {
206343
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCreditTransaction_args");
206638
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCreditTransaction_args");
206344
 
206639
 
206345
    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);
206640
    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);
-
 
206641
    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)2);
-
 
206642
    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)3);
206346
    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);
206643
    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)4);
206347
 
206644
 
206348
    private long paymentId; // required
206645
    private long paymentId; // required
-
 
206646
    private long userId; // required
-
 
206647
    private long creditorId; // required
206349
    private List<CreditHistory> creditTxns; // required
206648
    private List<CreditHistory> creditTxns; // required
206350
 
206649
 
206351
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
206650
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
206352
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
206651
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
206353
      PAYMENT_ID((short)1, "paymentId"),
206652
      PAYMENT_ID((short)1, "paymentId"),
-
 
206653
      USER_ID((short)2, "userId"),
-
 
206654
      CREDITOR_ID((short)3, "creditorId"),
206354
      CREDIT_TXNS((short)2, "creditTxns");
206655
      CREDIT_TXNS((short)4, "creditTxns");
206355
 
206656
 
206356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
206657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
206357
 
206658
 
206358
      static {
206659
      static {
206359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
206660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 206366... Line 206667...
206366
       */
206667
       */
206367
      public static _Fields findByThriftId(int fieldId) {
206668
      public static _Fields findByThriftId(int fieldId) {
206368
        switch(fieldId) {
206669
        switch(fieldId) {
206369
          case 1: // PAYMENT_ID
206670
          case 1: // PAYMENT_ID
206370
            return PAYMENT_ID;
206671
            return PAYMENT_ID;
-
 
206672
          case 2: // USER_ID
-
 
206673
            return USER_ID;
-
 
206674
          case 3: // CREDITOR_ID
-
 
206675
            return CREDITOR_ID;
206371
          case 2: // CREDIT_TXNS
206676
          case 4: // CREDIT_TXNS
206372
            return CREDIT_TXNS;
206677
            return CREDIT_TXNS;
206373
          default:
206678
          default:
206374
            return null;
206679
            return null;
206375
        }
206680
        }
206376
      }
206681
      }
Line 206409... Line 206714...
206409
      }
206714
      }
206410
    }
206715
    }
206411
 
206716
 
206412
    // isset id assignments
206717
    // isset id assignments
206413
    private static final int __PAYMENTID_ISSET_ID = 0;
206718
    private static final int __PAYMENTID_ISSET_ID = 0;
-
 
206719
    private static final int __USERID_ISSET_ID = 1;
-
 
206720
    private static final int __CREDITORID_ISSET_ID = 2;
206414
    private BitSet __isset_bit_vector = new BitSet(1);
206721
    private BitSet __isset_bit_vector = new BitSet(3);
206415
 
206722
 
206416
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
206723
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
206417
    static {
206724
    static {
206418
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
206725
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
206419
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206726
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
206727
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
206728
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
206729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
206730
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
206731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
206421
      tmpMap.put(_Fields.CREDIT_TXNS, new org.apache.thrift.meta_data.FieldMetaData("creditTxns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206732
      tmpMap.put(_Fields.CREDIT_TXNS, new org.apache.thrift.meta_data.FieldMetaData("creditTxns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206422
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
206733
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
206423
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
206734
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
206424
      metaDataMap = Collections.unmodifiableMap(tmpMap);
206735
      metaDataMap = Collections.unmodifiableMap(tmpMap);
206425
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCreditTransaction_args.class, metaDataMap);
206736
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCreditTransaction_args.class, metaDataMap);
Line 206428... Line 206739...
206428
    public processCreditTransaction_args() {
206739
    public processCreditTransaction_args() {
206429
    }
206740
    }
206430
 
206741
 
206431
    public processCreditTransaction_args(
206742
    public processCreditTransaction_args(
206432
      long paymentId,
206743
      long paymentId,
-
 
206744
      long userId,
-
 
206745
      long creditorId,
206433
      List<CreditHistory> creditTxns)
206746
      List<CreditHistory> creditTxns)
206434
    {
206747
    {
206435
      this();
206748
      this();
206436
      this.paymentId = paymentId;
206749
      this.paymentId = paymentId;
206437
      setPaymentIdIsSet(true);
206750
      setPaymentIdIsSet(true);
-
 
206751
      this.userId = userId;
-
 
206752
      setUserIdIsSet(true);
-
 
206753
      this.creditorId = creditorId;
-
 
206754
      setCreditorIdIsSet(true);
206438
      this.creditTxns = creditTxns;
206755
      this.creditTxns = creditTxns;
206439
    }
206756
    }
206440
 
206757
 
206441
    /**
206758
    /**
206442
     * Performs a deep copy on <i>other</i>.
206759
     * Performs a deep copy on <i>other</i>.
206443
     */
206760
     */
206444
    public processCreditTransaction_args(processCreditTransaction_args other) {
206761
    public processCreditTransaction_args(processCreditTransaction_args other) {
206445
      __isset_bit_vector.clear();
206762
      __isset_bit_vector.clear();
206446
      __isset_bit_vector.or(other.__isset_bit_vector);
206763
      __isset_bit_vector.or(other.__isset_bit_vector);
206447
      this.paymentId = other.paymentId;
206764
      this.paymentId = other.paymentId;
-
 
206765
      this.userId = other.userId;
-
 
206766
      this.creditorId = other.creditorId;
206448
      if (other.isSetCreditTxns()) {
206767
      if (other.isSetCreditTxns()) {
206449
        List<CreditHistory> __this__creditTxns = new ArrayList<CreditHistory>();
206768
        List<CreditHistory> __this__creditTxns = new ArrayList<CreditHistory>();
206450
        for (CreditHistory other_element : other.creditTxns) {
206769
        for (CreditHistory other_element : other.creditTxns) {
206451
          __this__creditTxns.add(new CreditHistory(other_element));
206770
          __this__creditTxns.add(new CreditHistory(other_element));
206452
        }
206771
        }
Line 206460... Line 206779...
206460
 
206779
 
206461
    @Override
206780
    @Override
206462
    public void clear() {
206781
    public void clear() {
206463
      setPaymentIdIsSet(false);
206782
      setPaymentIdIsSet(false);
206464
      this.paymentId = 0;
206783
      this.paymentId = 0;
-
 
206784
      setUserIdIsSet(false);
-
 
206785
      this.userId = 0;
-
 
206786
      setCreditorIdIsSet(false);
-
 
206787
      this.creditorId = 0;
206465
      this.creditTxns = null;
206788
      this.creditTxns = null;
206466
    }
206789
    }
206467
 
206790
 
206468
    public long getPaymentId() {
206791
    public long getPaymentId() {
206469
      return this.paymentId;
206792
      return this.paymentId;
Line 206485... Line 206808...
206485
 
206808
 
206486
    public void setPaymentIdIsSet(boolean value) {
206809
    public void setPaymentIdIsSet(boolean value) {
206487
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
206810
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
206488
    }
206811
    }
206489
 
206812
 
-
 
206813
    public long getUserId() {
-
 
206814
      return this.userId;
-
 
206815
    }
-
 
206816
 
-
 
206817
    public void setUserId(long userId) {
-
 
206818
      this.userId = userId;
-
 
206819
      setUserIdIsSet(true);
-
 
206820
    }
-
 
206821
 
-
 
206822
    public void unsetUserId() {
-
 
206823
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
206824
    }
-
 
206825
 
-
 
206826
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
206827
    public boolean isSetUserId() {
-
 
206828
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
206829
    }
-
 
206830
 
-
 
206831
    public void setUserIdIsSet(boolean value) {
-
 
206832
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
206833
    }
-
 
206834
 
-
 
206835
    public long getCreditorId() {
-
 
206836
      return this.creditorId;
-
 
206837
    }
-
 
206838
 
-
 
206839
    public void setCreditorId(long creditorId) {
-
 
206840
      this.creditorId = creditorId;
-
 
206841
      setCreditorIdIsSet(true);
-
 
206842
    }
-
 
206843
 
-
 
206844
    public void unsetCreditorId() {
-
 
206845
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
206846
    }
-
 
206847
 
-
 
206848
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
206849
    public boolean isSetCreditorId() {
-
 
206850
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
206851
    }
-
 
206852
 
-
 
206853
    public void setCreditorIdIsSet(boolean value) {
-
 
206854
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
206855
    }
-
 
206856
 
206490
    public int getCreditTxnsSize() {
206857
    public int getCreditTxnsSize() {
206491
      return (this.creditTxns == null) ? 0 : this.creditTxns.size();
206858
      return (this.creditTxns == null) ? 0 : this.creditTxns.size();
206492
    }
206859
    }
206493
 
206860
 
206494
    public java.util.Iterator<CreditHistory> getCreditTxnsIterator() {
206861
    public java.util.Iterator<CreditHistory> getCreditTxnsIterator() {
Line 206533... Line 206900...
206533
        } else {
206900
        } else {
206534
          setPaymentId((Long)value);
206901
          setPaymentId((Long)value);
206535
        }
206902
        }
206536
        break;
206903
        break;
206537
 
206904
 
-
 
206905
      case USER_ID:
-
 
206906
        if (value == null) {
-
 
206907
          unsetUserId();
-
 
206908
        } else {
-
 
206909
          setUserId((Long)value);
-
 
206910
        }
-
 
206911
        break;
-
 
206912
 
-
 
206913
      case CREDITOR_ID:
-
 
206914
        if (value == null) {
-
 
206915
          unsetCreditorId();
-
 
206916
        } else {
-
 
206917
          setCreditorId((Long)value);
-
 
206918
        }
-
 
206919
        break;
-
 
206920
 
206538
      case CREDIT_TXNS:
206921
      case CREDIT_TXNS:
206539
        if (value == null) {
206922
        if (value == null) {
206540
          unsetCreditTxns();
206923
          unsetCreditTxns();
206541
        } else {
206924
        } else {
206542
          setCreditTxns((List<CreditHistory>)value);
206925
          setCreditTxns((List<CreditHistory>)value);
Line 206549... Line 206932...
206549
    public Object getFieldValue(_Fields field) {
206932
    public Object getFieldValue(_Fields field) {
206550
      switch (field) {
206933
      switch (field) {
206551
      case PAYMENT_ID:
206934
      case PAYMENT_ID:
206552
        return Long.valueOf(getPaymentId());
206935
        return Long.valueOf(getPaymentId());
206553
 
206936
 
-
 
206937
      case USER_ID:
-
 
206938
        return Long.valueOf(getUserId());
-
 
206939
 
-
 
206940
      case CREDITOR_ID:
-
 
206941
        return Long.valueOf(getCreditorId());
-
 
206942
 
206554
      case CREDIT_TXNS:
206943
      case CREDIT_TXNS:
206555
        return getCreditTxns();
206944
        return getCreditTxns();
206556
 
206945
 
206557
      }
206946
      }
206558
      throw new IllegalStateException();
206947
      throw new IllegalStateException();
Line 206565... Line 206954...
206565
      }
206954
      }
206566
 
206955
 
206567
      switch (field) {
206956
      switch (field) {
206568
      case PAYMENT_ID:
206957
      case PAYMENT_ID:
206569
        return isSetPaymentId();
206958
        return isSetPaymentId();
-
 
206959
      case USER_ID:
-
 
206960
        return isSetUserId();
-
 
206961
      case CREDITOR_ID:
-
 
206962
        return isSetCreditorId();
206570
      case CREDIT_TXNS:
206963
      case CREDIT_TXNS:
206571
        return isSetCreditTxns();
206964
        return isSetCreditTxns();
206572
      }
206965
      }
206573
      throw new IllegalStateException();
206966
      throw new IllegalStateException();
206574
    }
206967
    }
Line 206593... Line 206986...
206593
          return false;
206986
          return false;
206594
        if (this.paymentId != that.paymentId)
206987
        if (this.paymentId != that.paymentId)
206595
          return false;
206988
          return false;
206596
      }
206989
      }
206597
 
206990
 
-
 
206991
      boolean this_present_userId = true;
-
 
206992
      boolean that_present_userId = true;
-
 
206993
      if (this_present_userId || that_present_userId) {
-
 
206994
        if (!(this_present_userId && that_present_userId))
-
 
206995
          return false;
-
 
206996
        if (this.userId != that.userId)
-
 
206997
          return false;
-
 
206998
      }
-
 
206999
 
-
 
207000
      boolean this_present_creditorId = true;
-
 
207001
      boolean that_present_creditorId = true;
-
 
207002
      if (this_present_creditorId || that_present_creditorId) {
-
 
207003
        if (!(this_present_creditorId && that_present_creditorId))
-
 
207004
          return false;
-
 
207005
        if (this.creditorId != that.creditorId)
-
 
207006
          return false;
-
 
207007
      }
-
 
207008
 
206598
      boolean this_present_creditTxns = true && this.isSetCreditTxns();
207009
      boolean this_present_creditTxns = true && this.isSetCreditTxns();
206599
      boolean that_present_creditTxns = true && that.isSetCreditTxns();
207010
      boolean that_present_creditTxns = true && that.isSetCreditTxns();
206600
      if (this_present_creditTxns || that_present_creditTxns) {
207011
      if (this_present_creditTxns || that_present_creditTxns) {
206601
        if (!(this_present_creditTxns && that_present_creditTxns))
207012
        if (!(this_present_creditTxns && that_present_creditTxns))
206602
          return false;
207013
          return false;
Line 206628... Line 207039...
206628
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
207039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
206629
        if (lastComparison != 0) {
207040
        if (lastComparison != 0) {
206630
          return lastComparison;
207041
          return lastComparison;
206631
        }
207042
        }
206632
      }
207043
      }
-
 
207044
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
207045
      if (lastComparison != 0) {
-
 
207046
        return lastComparison;
-
 
207047
      }
-
 
207048
      if (isSetUserId()) {
-
 
207049
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
207050
        if (lastComparison != 0) {
-
 
207051
          return lastComparison;
-
 
207052
        }
-
 
207053
      }
-
 
207054
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
207055
      if (lastComparison != 0) {
-
 
207056
        return lastComparison;
-
 
207057
      }
-
 
207058
      if (isSetCreditorId()) {
-
 
207059
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
207060
        if (lastComparison != 0) {
-
 
207061
          return lastComparison;
-
 
207062
        }
-
 
207063
      }
206633
      lastComparison = Boolean.valueOf(isSetCreditTxns()).compareTo(typedOther.isSetCreditTxns());
207064
      lastComparison = Boolean.valueOf(isSetCreditTxns()).compareTo(typedOther.isSetCreditTxns());
206634
      if (lastComparison != 0) {
207065
      if (lastComparison != 0) {
206635
        return lastComparison;
207066
        return lastComparison;
206636
      }
207067
      }
206637
      if (isSetCreditTxns()) {
207068
      if (isSetCreditTxns()) {
Line 206663... Line 207094...
206663
              setPaymentIdIsSet(true);
207094
              setPaymentIdIsSet(true);
206664
            } else { 
207095
            } else { 
206665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
207096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
206666
            }
207097
            }
206667
            break;
207098
            break;
-
 
207099
          case 2: // USER_ID
-
 
207100
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
207101
              this.userId = iprot.readI64();
-
 
207102
              setUserIdIsSet(true);
-
 
207103
            } else { 
-
 
207104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
207105
            }
-
 
207106
            break;
-
 
207107
          case 3: // CREDITOR_ID
-
 
207108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
207109
              this.creditorId = iprot.readI64();
-
 
207110
              setCreditorIdIsSet(true);
-
 
207111
            } else { 
-
 
207112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
207113
            }
-
 
207114
            break;
206668
          case 2: // CREDIT_TXNS
207115
          case 4: // CREDIT_TXNS
206669
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
207116
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
206670
              {
207117
              {
206671
                org.apache.thrift.protocol.TList _list664 = iprot.readListBegin();
207118
                org.apache.thrift.protocol.TList _list664 = iprot.readListBegin();
206672
                this.creditTxns = new ArrayList<CreditHistory>(_list664.size);
207119
                this.creditTxns = new ArrayList<CreditHistory>(_list664.size);
206673
                for (int _i665 = 0; _i665 < _list664.size; ++_i665)
207120
                for (int _i665 = 0; _i665 < _list664.size; ++_i665)
Line 206697... Line 207144...
206697
 
207144
 
206698
      oprot.writeStructBegin(STRUCT_DESC);
207145
      oprot.writeStructBegin(STRUCT_DESC);
206699
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
207146
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
206700
      oprot.writeI64(this.paymentId);
207147
      oprot.writeI64(this.paymentId);
206701
      oprot.writeFieldEnd();
207148
      oprot.writeFieldEnd();
-
 
207149
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
207150
      oprot.writeI64(this.userId);
-
 
207151
      oprot.writeFieldEnd();
-
 
207152
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
207153
      oprot.writeI64(this.creditorId);
-
 
207154
      oprot.writeFieldEnd();
206702
      if (this.creditTxns != null) {
207155
      if (this.creditTxns != null) {
206703
        oprot.writeFieldBegin(CREDIT_TXNS_FIELD_DESC);
207156
        oprot.writeFieldBegin(CREDIT_TXNS_FIELD_DESC);
206704
        {
207157
        {
206705
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.creditTxns.size()));
207158
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.creditTxns.size()));
206706
          for (CreditHistory _iter667 : this.creditTxns)
207159
          for (CreditHistory _iter667 : this.creditTxns)
Line 206722... Line 207175...
206722
 
207175
 
206723
      sb.append("paymentId:");
207176
      sb.append("paymentId:");
206724
      sb.append(this.paymentId);
207177
      sb.append(this.paymentId);
206725
      first = false;
207178
      first = false;
206726
      if (!first) sb.append(", ");
207179
      if (!first) sb.append(", ");
-
 
207180
      sb.append("userId:");
-
 
207181
      sb.append(this.userId);
-
 
207182
      first = false;
-
 
207183
      if (!first) sb.append(", ");
-
 
207184
      sb.append("creditorId:");
-
 
207185
      sb.append(this.creditorId);
-
 
207186
      first = false;
-
 
207187
      if (!first) sb.append(", ");
206727
      sb.append("creditTxns:");
207188
      sb.append("creditTxns:");
206728
      if (this.creditTxns == null) {
207189
      if (this.creditTxns == null) {
206729
        sb.append("null");
207190
        sb.append("null");
206730
      } else {
207191
      } else {
206731
        sb.append(this.creditTxns);
207192
        sb.append(this.creditTxns);
Line 206747... Line 207208...
206747
      }
207208
      }
206748
    }
207209
    }
206749
 
207210
 
206750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
207211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
206751
      try {
207212
      try {
-
 
207213
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
207214
        __isset_bit_vector = new BitSet(1);
206752
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
207215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
206753
      } catch (org.apache.thrift.TException te) {
207216
      } catch (org.apache.thrift.TException te) {
206754
        throw new java.io.IOException(te);
207217
        throw new java.io.IOException(te);
206755
      }
207218
      }
206756
    }
207219
    }
Line 207599... Line 208062...
207599
  }
208062
  }
207600
 
208063
 
207601
  public static class getLoanPayableForUserToCreditor_result implements org.apache.thrift.TBase<getLoanPayableForUserToCreditor_result, getLoanPayableForUserToCreditor_result._Fields>, java.io.Serializable, Cloneable   {
208064
  public static class getLoanPayableForUserToCreditor_result implements org.apache.thrift.TBase<getLoanPayableForUserToCreditor_result, getLoanPayableForUserToCreditor_result._Fields>, java.io.Serializable, Cloneable   {
207602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanPayableForUserToCreditor_result");
208065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanPayableForUserToCreditor_result");
207603
 
208066
 
207604
    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);
208067
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);
207605
 
208068
 
207606
    private List<CreditHistory> success; // required
208069
    private double success; // required
207607
 
208070
 
207608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
208071
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
207609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
208072
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
207610
      SUCCESS((short)0, "success");
208073
      SUCCESS((short)0, "success");
207611
 
208074
 
Line 207662... Line 208125...
207662
        return _fieldName;
208125
        return _fieldName;
207663
      }
208126
      }
207664
    }
208127
    }
207665
 
208128
 
207666
    // isset id assignments
208129
    // isset id assignments
-
 
208130
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
208131
    private BitSet __isset_bit_vector = new BitSet(1);
207667
 
208132
 
207668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
208133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
207669
    static {
208134
    static {
207670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
208135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
207671
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
208136
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
207672
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
208137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
207673
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
-
 
207674
      metaDataMap = Collections.unmodifiableMap(tmpMap);
208138
      metaDataMap = Collections.unmodifiableMap(tmpMap);
207675
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanPayableForUserToCreditor_result.class, metaDataMap);
208139
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanPayableForUserToCreditor_result.class, metaDataMap);
207676
    }
208140
    }
207677
 
208141
 
207678
    public getLoanPayableForUserToCreditor_result() {
208142
    public getLoanPayableForUserToCreditor_result() {
207679
    }
208143
    }
207680
 
208144
 
207681
    public getLoanPayableForUserToCreditor_result(
208145
    public getLoanPayableForUserToCreditor_result(
207682
      List<CreditHistory> success)
208146
      double success)
207683
    {
208147
    {
207684
      this();
208148
      this();
207685
      this.success = success;
208149
      this.success = success;
-
 
208150
      setSuccessIsSet(true);
207686
    }
208151
    }
207687
 
208152
 
207688
    /**
208153
    /**
207689
     * Performs a deep copy on <i>other</i>.
208154
     * Performs a deep copy on <i>other</i>.
207690
     */
208155
     */
207691
    public getLoanPayableForUserToCreditor_result(getLoanPayableForUserToCreditor_result other) {
208156
    public getLoanPayableForUserToCreditor_result(getLoanPayableForUserToCreditor_result other) {
-
 
208157
      __isset_bit_vector.clear();
-
 
208158
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
208159
      this.success = other.success;
-
 
208160
    }
-
 
208161
 
-
 
208162
    public getLoanPayableForUserToCreditor_result deepCopy() {
-
 
208163
      return new getLoanPayableForUserToCreditor_result(this);
-
 
208164
    }
-
 
208165
 
-
 
208166
    @Override
-
 
208167
    public void clear() {
-
 
208168
      setSuccessIsSet(false);
-
 
208169
      this.success = 0.0;
-
 
208170
    }
-
 
208171
 
-
 
208172
    public double getSuccess() {
-
 
208173
      return this.success;
-
 
208174
    }
-
 
208175
 
-
 
208176
    public void setSuccess(double success) {
-
 
208177
      this.success = success;
-
 
208178
      setSuccessIsSet(true);
-
 
208179
    }
-
 
208180
 
-
 
208181
    public void unsetSuccess() {
-
 
208182
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
208183
    }
-
 
208184
 
-
 
208185
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
208186
    public boolean isSetSuccess() {
-
 
208187
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
208188
    }
-
 
208189
 
-
 
208190
    public void setSuccessIsSet(boolean value) {
-
 
208191
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
208192
    }
-
 
208193
 
-
 
208194
    public void setFieldValue(_Fields field, Object value) {
-
 
208195
      switch (field) {
-
 
208196
      case SUCCESS:
-
 
208197
        if (value == null) {
-
 
208198
          unsetSuccess();
-
 
208199
        } else {
-
 
208200
          setSuccess((Double)value);
-
 
208201
        }
-
 
208202
        break;
-
 
208203
 
-
 
208204
      }
-
 
208205
    }
-
 
208206
 
-
 
208207
    public Object getFieldValue(_Fields field) {
-
 
208208
      switch (field) {
-
 
208209
      case SUCCESS:
-
 
208210
        return Double.valueOf(getSuccess());
-
 
208211
 
-
 
208212
      }
-
 
208213
      throw new IllegalStateException();
-
 
208214
    }
-
 
208215
 
-
 
208216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
208217
    public boolean isSet(_Fields field) {
-
 
208218
      if (field == null) {
-
 
208219
        throw new IllegalArgumentException();
-
 
208220
      }
-
 
208221
 
-
 
208222
      switch (field) {
-
 
208223
      case SUCCESS:
-
 
208224
        return isSetSuccess();
-
 
208225
      }
-
 
208226
      throw new IllegalStateException();
-
 
208227
    }
-
 
208228
 
-
 
208229
    @Override
-
 
208230
    public boolean equals(Object that) {
-
 
208231
      if (that == null)
-
 
208232
        return false;
-
 
208233
      if (that instanceof getLoanPayableForUserToCreditor_result)
-
 
208234
        return this.equals((getLoanPayableForUserToCreditor_result)that);
-
 
208235
      return false;
-
 
208236
    }
-
 
208237
 
-
 
208238
    public boolean equals(getLoanPayableForUserToCreditor_result that) {
-
 
208239
      if (that == null)
-
 
208240
        return false;
-
 
208241
 
-
 
208242
      boolean this_present_success = true;
-
 
208243
      boolean that_present_success = true;
-
 
208244
      if (this_present_success || that_present_success) {
-
 
208245
        if (!(this_present_success && that_present_success))
-
 
208246
          return false;
-
 
208247
        if (this.success != that.success)
-
 
208248
          return false;
-
 
208249
      }
-
 
208250
 
-
 
208251
      return true;
-
 
208252
    }
-
 
208253
 
-
 
208254
    @Override
-
 
208255
    public int hashCode() {
-
 
208256
      return 0;
-
 
208257
    }
-
 
208258
 
-
 
208259
    public int compareTo(getLoanPayableForUserToCreditor_result other) {
-
 
208260
      if (!getClass().equals(other.getClass())) {
-
 
208261
        return getClass().getName().compareTo(other.getClass().getName());
-
 
208262
      }
-
 
208263
 
-
 
208264
      int lastComparison = 0;
-
 
208265
      getLoanPayableForUserToCreditor_result typedOther = (getLoanPayableForUserToCreditor_result)other;
-
 
208266
 
-
 
208267
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
208268
      if (lastComparison != 0) {
-
 
208269
        return lastComparison;
-
 
208270
      }
-
 
208271
      if (isSetSuccess()) {
-
 
208272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
208273
        if (lastComparison != 0) {
-
 
208274
          return lastComparison;
-
 
208275
        }
-
 
208276
      }
-
 
208277
      return 0;
-
 
208278
    }
-
 
208279
 
-
 
208280
    public _Fields fieldForId(int fieldId) {
-
 
208281
      return _Fields.findByThriftId(fieldId);
-
 
208282
    }
-
 
208283
 
-
 
208284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
208285
      org.apache.thrift.protocol.TField field;
-
 
208286
      iprot.readStructBegin();
-
 
208287
      while (true)
-
 
208288
      {
-
 
208289
        field = iprot.readFieldBegin();
-
 
208290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
208291
          break;
-
 
208292
        }
-
 
208293
        switch (field.id) {
-
 
208294
          case 0: // SUCCESS
-
 
208295
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
208296
              this.success = iprot.readDouble();
-
 
208297
              setSuccessIsSet(true);
-
 
208298
            } else { 
-
 
208299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
208300
            }
-
 
208301
            break;
-
 
208302
          default:
-
 
208303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
208304
        }
-
 
208305
        iprot.readFieldEnd();
-
 
208306
      }
-
 
208307
      iprot.readStructEnd();
-
 
208308
      validate();
-
 
208309
    }
-
 
208310
 
-
 
208311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
208312
      oprot.writeStructBegin(STRUCT_DESC);
-
 
208313
 
-
 
208314
      if (this.isSetSuccess()) {
-
 
208315
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
208316
        oprot.writeDouble(this.success);
-
 
208317
        oprot.writeFieldEnd();
-
 
208318
      }
-
 
208319
      oprot.writeFieldStop();
-
 
208320
      oprot.writeStructEnd();
-
 
208321
    }
-
 
208322
 
-
 
208323
    @Override
-
 
208324
    public String toString() {
-
 
208325
      StringBuilder sb = new StringBuilder("getLoanPayableForUserToCreditor_result(");
-
 
208326
      boolean first = true;
-
 
208327
 
-
 
208328
      sb.append("success:");
-
 
208329
      sb.append(this.success);
-
 
208330
      first = false;
-
 
208331
      sb.append(")");
-
 
208332
      return sb.toString();
-
 
208333
    }
-
 
208334
 
-
 
208335
    public void validate() throws org.apache.thrift.TException {
-
 
208336
      // check for required fields
-
 
208337
    }
-
 
208338
 
-
 
208339
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
208340
      try {
-
 
208341
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
208342
      } catch (org.apache.thrift.TException te) {
-
 
208343
        throw new java.io.IOException(te);
-
 
208344
      }
-
 
208345
    }
-
 
208346
 
-
 
208347
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
208348
      try {
-
 
208349
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
208350
      } catch (org.apache.thrift.TException te) {
-
 
208351
        throw new java.io.IOException(te);
-
 
208352
      }
-
 
208353
    }
-
 
208354
 
-
 
208355
  }
-
 
208356
 
-
 
208357
  public static class getLoanHistoryRecordsForTransaction_args implements org.apache.thrift.TBase<getLoanHistoryRecordsForTransaction_args, getLoanHistoryRecordsForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
208358
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanHistoryRecordsForTransaction_args");
-
 
208359
 
-
 
208360
    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);
-
 
208361
    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.I32, (short)2);
-
 
208362
 
-
 
208363
    private long paymentId; // required
-
 
208364
    private CreditTxnType creditTxnType; // required
-
 
208365
 
-
 
208366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
208367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
208368
      PAYMENT_ID((short)1, "paymentId"),
-
 
208369
      /**
-
 
208370
       * 
-
 
208371
       * @see CreditTxnType
-
 
208372
       */
-
 
208373
      CREDIT_TXN_TYPE((short)2, "creditTxnType");
-
 
208374
 
-
 
208375
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
208376
 
-
 
208377
      static {
-
 
208378
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
208379
          byName.put(field.getFieldName(), field);
-
 
208380
        }
-
 
208381
      }
-
 
208382
 
-
 
208383
      /**
-
 
208384
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
208385
       */
-
 
208386
      public static _Fields findByThriftId(int fieldId) {
-
 
208387
        switch(fieldId) {
-
 
208388
          case 1: // PAYMENT_ID
-
 
208389
            return PAYMENT_ID;
-
 
208390
          case 2: // CREDIT_TXN_TYPE
-
 
208391
            return CREDIT_TXN_TYPE;
-
 
208392
          default:
-
 
208393
            return null;
-
 
208394
        }
-
 
208395
      }
-
 
208396
 
-
 
208397
      /**
-
 
208398
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
208399
       * if it is not found.
-
 
208400
       */
-
 
208401
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
208402
        _Fields fields = findByThriftId(fieldId);
-
 
208403
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
208404
        return fields;
-
 
208405
      }
-
 
208406
 
-
 
208407
      /**
-
 
208408
       * Find the _Fields constant that matches name, or null if its not found.
-
 
208409
       */
-
 
208410
      public static _Fields findByName(String name) {
-
 
208411
        return byName.get(name);
-
 
208412
      }
-
 
208413
 
-
 
208414
      private final short _thriftId;
-
 
208415
      private final String _fieldName;
-
 
208416
 
-
 
208417
      _Fields(short thriftId, String fieldName) {
-
 
208418
        _thriftId = thriftId;
-
 
208419
        _fieldName = fieldName;
-
 
208420
      }
-
 
208421
 
-
 
208422
      public short getThriftFieldId() {
-
 
208423
        return _thriftId;
-
 
208424
      }
-
 
208425
 
-
 
208426
      public String getFieldName() {
-
 
208427
        return _fieldName;
-
 
208428
      }
-
 
208429
    }
-
 
208430
 
-
 
208431
    // isset id assignments
-
 
208432
    private static final int __PAYMENTID_ISSET_ID = 0;
-
 
208433
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
208434
 
-
 
208435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
208436
    static {
-
 
208437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
208438
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
208439
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
208440
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
208441
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
-
 
208442
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
208443
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanHistoryRecordsForTransaction_args.class, metaDataMap);
-
 
208444
    }
-
 
208445
 
-
 
208446
    public getLoanHistoryRecordsForTransaction_args() {
-
 
208447
    }
-
 
208448
 
-
 
208449
    public getLoanHistoryRecordsForTransaction_args(
-
 
208450
      long paymentId,
-
 
208451
      CreditTxnType creditTxnType)
-
 
208452
    {
-
 
208453
      this();
-
 
208454
      this.paymentId = paymentId;
-
 
208455
      setPaymentIdIsSet(true);
-
 
208456
      this.creditTxnType = creditTxnType;
-
 
208457
    }
-
 
208458
 
-
 
208459
    /**
-
 
208460
     * Performs a deep copy on <i>other</i>.
-
 
208461
     */
-
 
208462
    public getLoanHistoryRecordsForTransaction_args(getLoanHistoryRecordsForTransaction_args other) {
-
 
208463
      __isset_bit_vector.clear();
-
 
208464
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
208465
      this.paymentId = other.paymentId;
-
 
208466
      if (other.isSetCreditTxnType()) {
-
 
208467
        this.creditTxnType = other.creditTxnType;
-
 
208468
      }
-
 
208469
    }
-
 
208470
 
-
 
208471
    public getLoanHistoryRecordsForTransaction_args deepCopy() {
-
 
208472
      return new getLoanHistoryRecordsForTransaction_args(this);
-
 
208473
    }
-
 
208474
 
-
 
208475
    @Override
-
 
208476
    public void clear() {
-
 
208477
      setPaymentIdIsSet(false);
-
 
208478
      this.paymentId = 0;
-
 
208479
      this.creditTxnType = null;
-
 
208480
    }
-
 
208481
 
-
 
208482
    public long getPaymentId() {
-
 
208483
      return this.paymentId;
-
 
208484
    }
-
 
208485
 
-
 
208486
    public void setPaymentId(long paymentId) {
-
 
208487
      this.paymentId = paymentId;
-
 
208488
      setPaymentIdIsSet(true);
-
 
208489
    }
-
 
208490
 
-
 
208491
    public void unsetPaymentId() {
-
 
208492
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
-
 
208493
    }
-
 
208494
 
-
 
208495
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
-
 
208496
    public boolean isSetPaymentId() {
-
 
208497
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
-
 
208498
    }
-
 
208499
 
-
 
208500
    public void setPaymentIdIsSet(boolean value) {
-
 
208501
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
-
 
208502
    }
-
 
208503
 
-
 
208504
    /**
-
 
208505
     * 
-
 
208506
     * @see CreditTxnType
-
 
208507
     */
-
 
208508
    public CreditTxnType getCreditTxnType() {
-
 
208509
      return this.creditTxnType;
-
 
208510
    }
-
 
208511
 
-
 
208512
    /**
-
 
208513
     * 
-
 
208514
     * @see CreditTxnType
-
 
208515
     */
-
 
208516
    public void setCreditTxnType(CreditTxnType creditTxnType) {
-
 
208517
      this.creditTxnType = creditTxnType;
-
 
208518
    }
-
 
208519
 
-
 
208520
    public void unsetCreditTxnType() {
-
 
208521
      this.creditTxnType = null;
-
 
208522
    }
-
 
208523
 
-
 
208524
    /** Returns true if field creditTxnType is set (has been assigned a value) and false otherwise */
-
 
208525
    public boolean isSetCreditTxnType() {
-
 
208526
      return this.creditTxnType != null;
-
 
208527
    }
-
 
208528
 
-
 
208529
    public void setCreditTxnTypeIsSet(boolean value) {
-
 
208530
      if (!value) {
-
 
208531
        this.creditTxnType = null;
-
 
208532
      }
-
 
208533
    }
-
 
208534
 
-
 
208535
    public void setFieldValue(_Fields field, Object value) {
-
 
208536
      switch (field) {
-
 
208537
      case PAYMENT_ID:
-
 
208538
        if (value == null) {
-
 
208539
          unsetPaymentId();
-
 
208540
        } else {
-
 
208541
          setPaymentId((Long)value);
-
 
208542
        }
-
 
208543
        break;
-
 
208544
 
-
 
208545
      case CREDIT_TXN_TYPE:
-
 
208546
        if (value == null) {
-
 
208547
          unsetCreditTxnType();
-
 
208548
        } else {
-
 
208549
          setCreditTxnType((CreditTxnType)value);
-
 
208550
        }
-
 
208551
        break;
-
 
208552
 
-
 
208553
      }
-
 
208554
    }
-
 
208555
 
-
 
208556
    public Object getFieldValue(_Fields field) {
-
 
208557
      switch (field) {
-
 
208558
      case PAYMENT_ID:
-
 
208559
        return Long.valueOf(getPaymentId());
-
 
208560
 
-
 
208561
      case CREDIT_TXN_TYPE:
-
 
208562
        return getCreditTxnType();
-
 
208563
 
-
 
208564
      }
-
 
208565
      throw new IllegalStateException();
-
 
208566
    }
-
 
208567
 
-
 
208568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
208569
    public boolean isSet(_Fields field) {
-
 
208570
      if (field == null) {
-
 
208571
        throw new IllegalArgumentException();
-
 
208572
      }
-
 
208573
 
-
 
208574
      switch (field) {
-
 
208575
      case PAYMENT_ID:
-
 
208576
        return isSetPaymentId();
-
 
208577
      case CREDIT_TXN_TYPE:
-
 
208578
        return isSetCreditTxnType();
-
 
208579
      }
-
 
208580
      throw new IllegalStateException();
-
 
208581
    }
-
 
208582
 
-
 
208583
    @Override
-
 
208584
    public boolean equals(Object that) {
-
 
208585
      if (that == null)
-
 
208586
        return false;
-
 
208587
      if (that instanceof getLoanHistoryRecordsForTransaction_args)
-
 
208588
        return this.equals((getLoanHistoryRecordsForTransaction_args)that);
-
 
208589
      return false;
-
 
208590
    }
-
 
208591
 
-
 
208592
    public boolean equals(getLoanHistoryRecordsForTransaction_args that) {
-
 
208593
      if (that == null)
-
 
208594
        return false;
-
 
208595
 
-
 
208596
      boolean this_present_paymentId = true;
-
 
208597
      boolean that_present_paymentId = true;
-
 
208598
      if (this_present_paymentId || that_present_paymentId) {
-
 
208599
        if (!(this_present_paymentId && that_present_paymentId))
-
 
208600
          return false;
-
 
208601
        if (this.paymentId != that.paymentId)
-
 
208602
          return false;
-
 
208603
      }
-
 
208604
 
-
 
208605
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
-
 
208606
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
-
 
208607
      if (this_present_creditTxnType || that_present_creditTxnType) {
-
 
208608
        if (!(this_present_creditTxnType && that_present_creditTxnType))
-
 
208609
          return false;
-
 
208610
        if (!this.creditTxnType.equals(that.creditTxnType))
-
 
208611
          return false;
-
 
208612
      }
-
 
208613
 
-
 
208614
      return true;
-
 
208615
    }
-
 
208616
 
-
 
208617
    @Override
-
 
208618
    public int hashCode() {
-
 
208619
      return 0;
-
 
208620
    }
-
 
208621
 
-
 
208622
    public int compareTo(getLoanHistoryRecordsForTransaction_args other) {
-
 
208623
      if (!getClass().equals(other.getClass())) {
-
 
208624
        return getClass().getName().compareTo(other.getClass().getName());
-
 
208625
      }
-
 
208626
 
-
 
208627
      int lastComparison = 0;
-
 
208628
      getLoanHistoryRecordsForTransaction_args typedOther = (getLoanHistoryRecordsForTransaction_args)other;
-
 
208629
 
-
 
208630
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
-
 
208631
      if (lastComparison != 0) {
-
 
208632
        return lastComparison;
-
 
208633
      }
-
 
208634
      if (isSetPaymentId()) {
-
 
208635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
-
 
208636
        if (lastComparison != 0) {
-
 
208637
          return lastComparison;
-
 
208638
        }
-
 
208639
      }
-
 
208640
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
-
 
208641
      if (lastComparison != 0) {
-
 
208642
        return lastComparison;
-
 
208643
      }
-
 
208644
      if (isSetCreditTxnType()) {
-
 
208645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxnType, typedOther.creditTxnType);
-
 
208646
        if (lastComparison != 0) {
-
 
208647
          return lastComparison;
-
 
208648
        }
-
 
208649
      }
-
 
208650
      return 0;
-
 
208651
    }
-
 
208652
 
-
 
208653
    public _Fields fieldForId(int fieldId) {
-
 
208654
      return _Fields.findByThriftId(fieldId);
-
 
208655
    }
-
 
208656
 
-
 
208657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
208658
      org.apache.thrift.protocol.TField field;
-
 
208659
      iprot.readStructBegin();
-
 
208660
      while (true)
-
 
208661
      {
-
 
208662
        field = iprot.readFieldBegin();
-
 
208663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
208664
          break;
-
 
208665
        }
-
 
208666
        switch (field.id) {
-
 
208667
          case 1: // PAYMENT_ID
-
 
208668
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
208669
              this.paymentId = iprot.readI64();
-
 
208670
              setPaymentIdIsSet(true);
-
 
208671
            } else { 
-
 
208672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
208673
            }
-
 
208674
            break;
-
 
208675
          case 2: // CREDIT_TXN_TYPE
-
 
208676
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
208677
              this.creditTxnType = CreditTxnType.findByValue(iprot.readI32());
-
 
208678
            } else { 
-
 
208679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
208680
            }
-
 
208681
            break;
-
 
208682
          default:
-
 
208683
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
208684
        }
-
 
208685
        iprot.readFieldEnd();
-
 
208686
      }
-
 
208687
      iprot.readStructEnd();
-
 
208688
      validate();
-
 
208689
    }
-
 
208690
 
-
 
208691
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
208692
      validate();
-
 
208693
 
-
 
208694
      oprot.writeStructBegin(STRUCT_DESC);
-
 
208695
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
-
 
208696
      oprot.writeI64(this.paymentId);
-
 
208697
      oprot.writeFieldEnd();
-
 
208698
      if (this.creditTxnType != null) {
-
 
208699
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
-
 
208700
        oprot.writeI32(this.creditTxnType.getValue());
-
 
208701
        oprot.writeFieldEnd();
-
 
208702
      }
-
 
208703
      oprot.writeFieldStop();
-
 
208704
      oprot.writeStructEnd();
-
 
208705
    }
-
 
208706
 
-
 
208707
    @Override
-
 
208708
    public String toString() {
-
 
208709
      StringBuilder sb = new StringBuilder("getLoanHistoryRecordsForTransaction_args(");
-
 
208710
      boolean first = true;
-
 
208711
 
-
 
208712
      sb.append("paymentId:");
-
 
208713
      sb.append(this.paymentId);
-
 
208714
      first = false;
-
 
208715
      if (!first) sb.append(", ");
-
 
208716
      sb.append("creditTxnType:");
-
 
208717
      if (this.creditTxnType == null) {
-
 
208718
        sb.append("null");
-
 
208719
      } else {
-
 
208720
        sb.append(this.creditTxnType);
-
 
208721
      }
-
 
208722
      first = false;
-
 
208723
      sb.append(")");
-
 
208724
      return sb.toString();
-
 
208725
    }
-
 
208726
 
-
 
208727
    public void validate() throws org.apache.thrift.TException {
-
 
208728
      // check for required fields
-
 
208729
    }
-
 
208730
 
-
 
208731
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
208732
      try {
-
 
208733
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
208734
      } catch (org.apache.thrift.TException te) {
-
 
208735
        throw new java.io.IOException(te);
-
 
208736
      }
-
 
208737
    }
-
 
208738
 
-
 
208739
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
208740
      try {
-
 
208741
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
208742
        __isset_bit_vector = new BitSet(1);
-
 
208743
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
208744
      } catch (org.apache.thrift.TException te) {
-
 
208745
        throw new java.io.IOException(te);
-
 
208746
      }
-
 
208747
    }
-
 
208748
 
-
 
208749
  }
-
 
208750
 
-
 
208751
  public static class getLoanHistoryRecordsForTransaction_result implements org.apache.thrift.TBase<getLoanHistoryRecordsForTransaction_result, getLoanHistoryRecordsForTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
208752
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanHistoryRecordsForTransaction_result");
-
 
208753
 
-
 
208754
    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);
-
 
208755
 
-
 
208756
    private List<LoanHistory> success; // required
-
 
208757
 
-
 
208758
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
208759
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
208760
      SUCCESS((short)0, "success");
-
 
208761
 
-
 
208762
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
208763
 
-
 
208764
      static {
-
 
208765
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
208766
          byName.put(field.getFieldName(), field);
-
 
208767
        }
-
 
208768
      }
-
 
208769
 
-
 
208770
      /**
-
 
208771
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
208772
       */
-
 
208773
      public static _Fields findByThriftId(int fieldId) {
-
 
208774
        switch(fieldId) {
-
 
208775
          case 0: // SUCCESS
-
 
208776
            return SUCCESS;
-
 
208777
          default:
-
 
208778
            return null;
-
 
208779
        }
-
 
208780
      }
-
 
208781
 
-
 
208782
      /**
-
 
208783
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
208784
       * if it is not found.
-
 
208785
       */
-
 
208786
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
208787
        _Fields fields = findByThriftId(fieldId);
-
 
208788
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
208789
        return fields;
-
 
208790
      }
-
 
208791
 
-
 
208792
      /**
-
 
208793
       * Find the _Fields constant that matches name, or null if its not found.
-
 
208794
       */
-
 
208795
      public static _Fields findByName(String name) {
-
 
208796
        return byName.get(name);
-
 
208797
      }
-
 
208798
 
-
 
208799
      private final short _thriftId;
-
 
208800
      private final String _fieldName;
-
 
208801
 
-
 
208802
      _Fields(short thriftId, String fieldName) {
-
 
208803
        _thriftId = thriftId;
-
 
208804
        _fieldName = fieldName;
-
 
208805
      }
-
 
208806
 
-
 
208807
      public short getThriftFieldId() {
-
 
208808
        return _thriftId;
-
 
208809
      }
-
 
208810
 
-
 
208811
      public String getFieldName() {
-
 
208812
        return _fieldName;
-
 
208813
      }
-
 
208814
    }
-
 
208815
 
-
 
208816
    // isset id assignments
-
 
208817
 
-
 
208818
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
208819
    static {
-
 
208820
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
208821
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
208822
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
208823
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LoanHistory.class))));
-
 
208824
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
208825
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanHistoryRecordsForTransaction_result.class, metaDataMap);
-
 
208826
    }
-
 
208827
 
-
 
208828
    public getLoanHistoryRecordsForTransaction_result() {
-
 
208829
    }
-
 
208830
 
-
 
208831
    public getLoanHistoryRecordsForTransaction_result(
-
 
208832
      List<LoanHistory> success)
-
 
208833
    {
-
 
208834
      this();
-
 
208835
      this.success = success;
-
 
208836
    }
-
 
208837
 
-
 
208838
    /**
-
 
208839
     * Performs a deep copy on <i>other</i>.
-
 
208840
     */
-
 
208841
    public getLoanHistoryRecordsForTransaction_result(getLoanHistoryRecordsForTransaction_result other) {
207692
      if (other.isSetSuccess()) {
208842
      if (other.isSetSuccess()) {
207693
        List<CreditHistory> __this__success = new ArrayList<CreditHistory>();
208843
        List<LoanHistory> __this__success = new ArrayList<LoanHistory>();
207694
        for (CreditHistory other_element : other.success) {
208844
        for (LoanHistory other_element : other.success) {
207695
          __this__success.add(new CreditHistory(other_element));
208845
          __this__success.add(new LoanHistory(other_element));
207696
        }
208846
        }
207697
        this.success = __this__success;
208847
        this.success = __this__success;
207698
      }
208848
      }
207699
    }
208849
    }
207700
 
208850
 
207701
    public getLoanPayableForUserToCreditor_result deepCopy() {
208851
    public getLoanHistoryRecordsForTransaction_result deepCopy() {
207702
      return new getLoanPayableForUserToCreditor_result(this);
208852
      return new getLoanHistoryRecordsForTransaction_result(this);
207703
    }
208853
    }
207704
 
208854
 
207705
    @Override
208855
    @Override
207706
    public void clear() {
208856
    public void clear() {
207707
      this.success = null;
208857
      this.success = null;
Line 207709... Line 208859...
207709
 
208859
 
207710
    public int getSuccessSize() {
208860
    public int getSuccessSize() {
207711
      return (this.success == null) ? 0 : this.success.size();
208861
      return (this.success == null) ? 0 : this.success.size();
207712
    }
208862
    }
207713
 
208863
 
207714
    public java.util.Iterator<CreditHistory> getSuccessIterator() {
208864
    public java.util.Iterator<LoanHistory> getSuccessIterator() {
207715
      return (this.success == null) ? null : this.success.iterator();
208865
      return (this.success == null) ? null : this.success.iterator();
207716
    }
208866
    }
207717
 
208867
 
207718
    public void addToSuccess(CreditHistory elem) {
208868
    public void addToSuccess(LoanHistory elem) {
207719
      if (this.success == null) {
208869
      if (this.success == null) {
207720
        this.success = new ArrayList<CreditHistory>();
208870
        this.success = new ArrayList<LoanHistory>();
207721
      }
208871
      }
207722
      this.success.add(elem);
208872
      this.success.add(elem);
207723
    }
208873
    }
207724
 
208874
 
207725
    public List<CreditHistory> getSuccess() {
208875
    public List<LoanHistory> getSuccess() {
207726
      return this.success;
208876
      return this.success;
207727
    }
208877
    }
207728
 
208878
 
207729
    public void setSuccess(List<CreditHistory> success) {
208879
    public void setSuccess(List<LoanHistory> success) {
207730
      this.success = success;
208880
      this.success = success;
207731
    }
208881
    }
207732
 
208882
 
207733
    public void unsetSuccess() {
208883
    public void unsetSuccess() {
207734
      this.success = null;
208884
      this.success = null;
Line 207749... Line 208899...
207749
      switch (field) {
208899
      switch (field) {
207750
      case SUCCESS:
208900
      case SUCCESS:
207751
        if (value == null) {
208901
        if (value == null) {
207752
          unsetSuccess();
208902
          unsetSuccess();
207753
        } else {
208903
        } else {
207754
          setSuccess((List<CreditHistory>)value);
208904
          setSuccess((List<LoanHistory>)value);
207755
        }
208905
        }
207756
        break;
208906
        break;
207757
 
208907
 
207758
      }
208908
      }
207759
    }
208909
    }
Line 207782... Line 208932...
207782
 
208932
 
207783
    @Override
208933
    @Override
207784
    public boolean equals(Object that) {
208934
    public boolean equals(Object that) {
207785
      if (that == null)
208935
      if (that == null)
207786
        return false;
208936
        return false;
207787
      if (that instanceof getLoanPayableForUserToCreditor_result)
208937
      if (that instanceof getLoanHistoryRecordsForTransaction_result)
207788
        return this.equals((getLoanPayableForUserToCreditor_result)that);
208938
        return this.equals((getLoanHistoryRecordsForTransaction_result)that);
207789
      return false;
208939
      return false;
207790
    }
208940
    }
207791
 
208941
 
207792
    public boolean equals(getLoanPayableForUserToCreditor_result that) {
208942
    public boolean equals(getLoanHistoryRecordsForTransaction_result that) {
207793
      if (that == null)
208943
      if (that == null)
207794
        return false;
208944
        return false;
207795
 
208945
 
207796
      boolean this_present_success = true && this.isSetSuccess();
208946
      boolean this_present_success = true && this.isSetSuccess();
207797
      boolean that_present_success = true && that.isSetSuccess();
208947
      boolean that_present_success = true && that.isSetSuccess();
Line 207808... Line 208958...
207808
    @Override
208958
    @Override
207809
    public int hashCode() {
208959
    public int hashCode() {
207810
      return 0;
208960
      return 0;
207811
    }
208961
    }
207812
 
208962
 
207813
    public int compareTo(getLoanPayableForUserToCreditor_result other) {
208963
    public int compareTo(getLoanHistoryRecordsForTransaction_result other) {
207814
      if (!getClass().equals(other.getClass())) {
208964
      if (!getClass().equals(other.getClass())) {
207815
        return getClass().getName().compareTo(other.getClass().getName());
208965
        return getClass().getName().compareTo(other.getClass().getName());
207816
      }
208966
      }
207817
 
208967
 
207818
      int lastComparison = 0;
208968
      int lastComparison = 0;
207819
      getLoanPayableForUserToCreditor_result typedOther = (getLoanPayableForUserToCreditor_result)other;
208969
      getLoanHistoryRecordsForTransaction_result typedOther = (getLoanHistoryRecordsForTransaction_result)other;
207820
 
208970
 
207821
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
208971
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
207822
      if (lastComparison != 0) {
208972
      if (lastComparison != 0) {
207823
        return lastComparison;
208973
        return lastComparison;
207824
      }
208974
      }
Line 207847... Line 208997...
207847
        switch (field.id) {
208997
        switch (field.id) {
207848
          case 0: // SUCCESS
208998
          case 0: // SUCCESS
207849
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
208999
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
207850
              {
209000
              {
207851
                org.apache.thrift.protocol.TList _list668 = iprot.readListBegin();
209001
                org.apache.thrift.protocol.TList _list668 = iprot.readListBegin();
207852
                this.success = new ArrayList<CreditHistory>(_list668.size);
209002
                this.success = new ArrayList<LoanHistory>(_list668.size);
207853
                for (int _i669 = 0; _i669 < _list668.size; ++_i669)
209003
                for (int _i669 = 0; _i669 < _list668.size; ++_i669)
207854
                {
209004
                {
207855
                  CreditHistory _elem670; // required
209005
                  LoanHistory _elem670; // required
207856
                  _elem670 = new CreditHistory();
209006
                  _elem670 = new LoanHistory();
207857
                  _elem670.read(iprot);
209007
                  _elem670.read(iprot);
207858
                  this.success.add(_elem670);
209008
                  this.success.add(_elem670);
207859
                }
209009
                }
207860
                iprot.readListEnd();
209010
                iprot.readListEnd();
207861
              }
209011
              }
Line 207877... Line 209027...
207877
 
209027
 
207878
      if (this.isSetSuccess()) {
209028
      if (this.isSetSuccess()) {
207879
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
209029
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
207880
        {
209030
        {
207881
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
209031
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
207882
          for (CreditHistory _iter671 : this.success)
209032
          for (LoanHistory _iter671 : this.success)
207883
          {
209033
          {
207884
            _iter671.write(oprot);
209034
            _iter671.write(oprot);
207885
          }
209035
          }
207886
          oprot.writeListEnd();
209036
          oprot.writeListEnd();
207887
        }
209037
        }
Line 207891... Line 209041...
207891
      oprot.writeStructEnd();
209041
      oprot.writeStructEnd();
207892
    }
209042
    }
207893
 
209043
 
207894
    @Override
209044
    @Override
207895
    public String toString() {
209045
    public String toString() {
207896
      StringBuilder sb = new StringBuilder("getLoanPayableForUserToCreditor_result(");
209046
      StringBuilder sb = new StringBuilder("getLoanHistoryRecordsForTransaction_result(");
207897
      boolean first = true;
209047
      boolean first = true;
207898
 
209048
 
207899
      sb.append("success:");
209049
      sb.append("success:");
207900
      if (this.success == null) {
209050
      if (this.success == null) {
207901
        sb.append("null");
209051
        sb.append("null");
Line 207927... Line 209077...
207927
      }
209077
      }
207928
    }
209078
    }
207929
 
209079
 
207930
  }
209080
  }
207931
 
209081
 
-
 
209082
  public static class getLoanHistoryRecordsForUserAndCreditor_args implements org.apache.thrift.TBase<getLoanHistoryRecordsForUserAndCreditor_args, getLoanHistoryRecordsForUserAndCreditor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
209083
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanHistoryRecordsForUserAndCreditor_args");
-
 
209084
 
-
 
209085
    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);
-
 
209086
    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);
-
 
209087
    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.I32, (short)3);
-
 
209088
 
-
 
209089
    private long userId; // required
-
 
209090
    private long creditorId; // required
-
 
209091
    private CreditTxnType creditTxnType; // required
-
 
209092
 
-
 
209093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
209094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
209095
      USER_ID((short)1, "userId"),
-
 
209096
      CREDITOR_ID((short)2, "creditorId"),
-
 
209097
      /**
-
 
209098
       * 
-
 
209099
       * @see CreditTxnType
-
 
209100
       */
-
 
209101
      CREDIT_TXN_TYPE((short)3, "creditTxnType");
-
 
209102
 
-
 
209103
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
209104
 
-
 
209105
      static {
-
 
209106
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
209107
          byName.put(field.getFieldName(), field);
-
 
209108
        }
-
 
209109
      }
-
 
209110
 
-
 
209111
      /**
-
 
209112
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
209113
       */
-
 
209114
      public static _Fields findByThriftId(int fieldId) {
-
 
209115
        switch(fieldId) {
-
 
209116
          case 1: // USER_ID
-
 
209117
            return USER_ID;
-
 
209118
          case 2: // CREDITOR_ID
-
 
209119
            return CREDITOR_ID;
-
 
209120
          case 3: // CREDIT_TXN_TYPE
-
 
209121
            return CREDIT_TXN_TYPE;
-
 
209122
          default:
-
 
209123
            return null;
-
 
209124
        }
-
 
209125
      }
-
 
209126
 
-
 
209127
      /**
-
 
209128
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
209129
       * if it is not found.
-
 
209130
       */
-
 
209131
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
209132
        _Fields fields = findByThriftId(fieldId);
-
 
209133
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
209134
        return fields;
-
 
209135
      }
-
 
209136
 
-
 
209137
      /**
-
 
209138
       * Find the _Fields constant that matches name, or null if its not found.
-
 
209139
       */
-
 
209140
      public static _Fields findByName(String name) {
-
 
209141
        return byName.get(name);
-
 
209142
      }
-
 
209143
 
-
 
209144
      private final short _thriftId;
-
 
209145
      private final String _fieldName;
-
 
209146
 
-
 
209147
      _Fields(short thriftId, String fieldName) {
-
 
209148
        _thriftId = thriftId;
-
 
209149
        _fieldName = fieldName;
-
 
209150
      }
-
 
209151
 
-
 
209152
      public short getThriftFieldId() {
-
 
209153
        return _thriftId;
-
 
209154
      }
-
 
209155
 
-
 
209156
      public String getFieldName() {
-
 
209157
        return _fieldName;
-
 
209158
      }
-
 
209159
    }
-
 
209160
 
-
 
209161
    // isset id assignments
-
 
209162
    private static final int __USERID_ISSET_ID = 0;
-
 
209163
    private static final int __CREDITORID_ISSET_ID = 1;
-
 
209164
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
209165
 
-
 
209166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
209167
    static {
-
 
209168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
209169
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
209171
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
209173
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209174
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
-
 
209175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
209176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanHistoryRecordsForUserAndCreditor_args.class, metaDataMap);
-
 
209177
    }
-
 
209178
 
-
 
209179
    public getLoanHistoryRecordsForUserAndCreditor_args() {
-
 
209180
    }
-
 
209181
 
-
 
209182
    public getLoanHistoryRecordsForUserAndCreditor_args(
-
 
209183
      long userId,
-
 
209184
      long creditorId,
-
 
209185
      CreditTxnType creditTxnType)
-
 
209186
    {
-
 
209187
      this();
-
 
209188
      this.userId = userId;
-
 
209189
      setUserIdIsSet(true);
-
 
209190
      this.creditorId = creditorId;
-
 
209191
      setCreditorIdIsSet(true);
-
 
209192
      this.creditTxnType = creditTxnType;
-
 
209193
    }
-
 
209194
 
-
 
209195
    /**
-
 
209196
     * Performs a deep copy on <i>other</i>.
-
 
209197
     */
-
 
209198
    public getLoanHistoryRecordsForUserAndCreditor_args(getLoanHistoryRecordsForUserAndCreditor_args other) {
-
 
209199
      __isset_bit_vector.clear();
-
 
209200
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
209201
      this.userId = other.userId;
-
 
209202
      this.creditorId = other.creditorId;
-
 
209203
      if (other.isSetCreditTxnType()) {
-
 
209204
        this.creditTxnType = other.creditTxnType;
-
 
209205
      }
-
 
209206
    }
-
 
209207
 
-
 
209208
    public getLoanHistoryRecordsForUserAndCreditor_args deepCopy() {
-
 
209209
      return new getLoanHistoryRecordsForUserAndCreditor_args(this);
-
 
209210
    }
-
 
209211
 
-
 
209212
    @Override
-
 
209213
    public void clear() {
-
 
209214
      setUserIdIsSet(false);
-
 
209215
      this.userId = 0;
-
 
209216
      setCreditorIdIsSet(false);
-
 
209217
      this.creditorId = 0;
-
 
209218
      this.creditTxnType = null;
-
 
209219
    }
-
 
209220
 
-
 
209221
    public long getUserId() {
-
 
209222
      return this.userId;
-
 
209223
    }
-
 
209224
 
-
 
209225
    public void setUserId(long userId) {
-
 
209226
      this.userId = userId;
-
 
209227
      setUserIdIsSet(true);
-
 
209228
    }
-
 
209229
 
-
 
209230
    public void unsetUserId() {
-
 
209231
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
209232
    }
-
 
209233
 
-
 
209234
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
209235
    public boolean isSetUserId() {
-
 
209236
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
209237
    }
-
 
209238
 
-
 
209239
    public void setUserIdIsSet(boolean value) {
-
 
209240
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
209241
    }
-
 
209242
 
-
 
209243
    public long getCreditorId() {
-
 
209244
      return this.creditorId;
-
 
209245
    }
-
 
209246
 
-
 
209247
    public void setCreditorId(long creditorId) {
-
 
209248
      this.creditorId = creditorId;
-
 
209249
      setCreditorIdIsSet(true);
-
 
209250
    }
-
 
209251
 
-
 
209252
    public void unsetCreditorId() {
-
 
209253
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
209254
    }
-
 
209255
 
-
 
209256
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
209257
    public boolean isSetCreditorId() {
-
 
209258
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
209259
    }
-
 
209260
 
-
 
209261
    public void setCreditorIdIsSet(boolean value) {
-
 
209262
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
209263
    }
-
 
209264
 
-
 
209265
    /**
-
 
209266
     * 
-
 
209267
     * @see CreditTxnType
-
 
209268
     */
-
 
209269
    public CreditTxnType getCreditTxnType() {
-
 
209270
      return this.creditTxnType;
-
 
209271
    }
-
 
209272
 
-
 
209273
    /**
-
 
209274
     * 
-
 
209275
     * @see CreditTxnType
-
 
209276
     */
-
 
209277
    public void setCreditTxnType(CreditTxnType creditTxnType) {
-
 
209278
      this.creditTxnType = creditTxnType;
-
 
209279
    }
-
 
209280
 
-
 
209281
    public void unsetCreditTxnType() {
-
 
209282
      this.creditTxnType = null;
-
 
209283
    }
-
 
209284
 
-
 
209285
    /** Returns true if field creditTxnType is set (has been assigned a value) and false otherwise */
-
 
209286
    public boolean isSetCreditTxnType() {
-
 
209287
      return this.creditTxnType != null;
-
 
209288
    }
-
 
209289
 
-
 
209290
    public void setCreditTxnTypeIsSet(boolean value) {
-
 
209291
      if (!value) {
-
 
209292
        this.creditTxnType = null;
-
 
209293
      }
-
 
209294
    }
-
 
209295
 
-
 
209296
    public void setFieldValue(_Fields field, Object value) {
-
 
209297
      switch (field) {
-
 
209298
      case USER_ID:
-
 
209299
        if (value == null) {
-
 
209300
          unsetUserId();
-
 
209301
        } else {
-
 
209302
          setUserId((Long)value);
-
 
209303
        }
-
 
209304
        break;
-
 
209305
 
-
 
209306
      case CREDITOR_ID:
-
 
209307
        if (value == null) {
-
 
209308
          unsetCreditorId();
-
 
209309
        } else {
-
 
209310
          setCreditorId((Long)value);
-
 
209311
        }
-
 
209312
        break;
-
 
209313
 
-
 
209314
      case CREDIT_TXN_TYPE:
-
 
209315
        if (value == null) {
-
 
209316
          unsetCreditTxnType();
-
 
209317
        } else {
-
 
209318
          setCreditTxnType((CreditTxnType)value);
-
 
209319
        }
-
 
209320
        break;
-
 
209321
 
-
 
209322
      }
-
 
209323
    }
-
 
209324
 
-
 
209325
    public Object getFieldValue(_Fields field) {
-
 
209326
      switch (field) {
-
 
209327
      case USER_ID:
-
 
209328
        return Long.valueOf(getUserId());
-
 
209329
 
-
 
209330
      case CREDITOR_ID:
-
 
209331
        return Long.valueOf(getCreditorId());
-
 
209332
 
-
 
209333
      case CREDIT_TXN_TYPE:
-
 
209334
        return getCreditTxnType();
-
 
209335
 
-
 
209336
      }
-
 
209337
      throw new IllegalStateException();
-
 
209338
    }
-
 
209339
 
-
 
209340
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
209341
    public boolean isSet(_Fields field) {
-
 
209342
      if (field == null) {
-
 
209343
        throw new IllegalArgumentException();
-
 
209344
      }
-
 
209345
 
-
 
209346
      switch (field) {
-
 
209347
      case USER_ID:
-
 
209348
        return isSetUserId();
-
 
209349
      case CREDITOR_ID:
-
 
209350
        return isSetCreditorId();
-
 
209351
      case CREDIT_TXN_TYPE:
-
 
209352
        return isSetCreditTxnType();
-
 
209353
      }
-
 
209354
      throw new IllegalStateException();
-
 
209355
    }
-
 
209356
 
-
 
209357
    @Override
-
 
209358
    public boolean equals(Object that) {
-
 
209359
      if (that == null)
-
 
209360
        return false;
-
 
209361
      if (that instanceof getLoanHistoryRecordsForUserAndCreditor_args)
-
 
209362
        return this.equals((getLoanHistoryRecordsForUserAndCreditor_args)that);
-
 
209363
      return false;
-
 
209364
    }
-
 
209365
 
-
 
209366
    public boolean equals(getLoanHistoryRecordsForUserAndCreditor_args that) {
-
 
209367
      if (that == null)
-
 
209368
        return false;
-
 
209369
 
-
 
209370
      boolean this_present_userId = true;
-
 
209371
      boolean that_present_userId = true;
-
 
209372
      if (this_present_userId || that_present_userId) {
-
 
209373
        if (!(this_present_userId && that_present_userId))
-
 
209374
          return false;
-
 
209375
        if (this.userId != that.userId)
-
 
209376
          return false;
-
 
209377
      }
-
 
209378
 
-
 
209379
      boolean this_present_creditorId = true;
-
 
209380
      boolean that_present_creditorId = true;
-
 
209381
      if (this_present_creditorId || that_present_creditorId) {
-
 
209382
        if (!(this_present_creditorId && that_present_creditorId))
-
 
209383
          return false;
-
 
209384
        if (this.creditorId != that.creditorId)
-
 
209385
          return false;
-
 
209386
      }
-
 
209387
 
-
 
209388
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
-
 
209389
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
-
 
209390
      if (this_present_creditTxnType || that_present_creditTxnType) {
-
 
209391
        if (!(this_present_creditTxnType && that_present_creditTxnType))
-
 
209392
          return false;
-
 
209393
        if (!this.creditTxnType.equals(that.creditTxnType))
-
 
209394
          return false;
-
 
209395
      }
-
 
209396
 
-
 
209397
      return true;
-
 
209398
    }
-
 
209399
 
-
 
209400
    @Override
-
 
209401
    public int hashCode() {
-
 
209402
      return 0;
-
 
209403
    }
-
 
209404
 
-
 
209405
    public int compareTo(getLoanHistoryRecordsForUserAndCreditor_args other) {
-
 
209406
      if (!getClass().equals(other.getClass())) {
-
 
209407
        return getClass().getName().compareTo(other.getClass().getName());
-
 
209408
      }
-
 
209409
 
-
 
209410
      int lastComparison = 0;
-
 
209411
      getLoanHistoryRecordsForUserAndCreditor_args typedOther = (getLoanHistoryRecordsForUserAndCreditor_args)other;
-
 
209412
 
-
 
209413
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
209414
      if (lastComparison != 0) {
-
 
209415
        return lastComparison;
-
 
209416
      }
-
 
209417
      if (isSetUserId()) {
-
 
209418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
209419
        if (lastComparison != 0) {
-
 
209420
          return lastComparison;
-
 
209421
        }
-
 
209422
      }
-
 
209423
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
209424
      if (lastComparison != 0) {
-
 
209425
        return lastComparison;
-
 
209426
      }
-
 
209427
      if (isSetCreditorId()) {
-
 
209428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
209429
        if (lastComparison != 0) {
-
 
209430
          return lastComparison;
-
 
209431
        }
-
 
209432
      }
-
 
209433
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
-
 
209434
      if (lastComparison != 0) {
-
 
209435
        return lastComparison;
-
 
209436
      }
-
 
209437
      if (isSetCreditTxnType()) {
-
 
209438
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxnType, typedOther.creditTxnType);
-
 
209439
        if (lastComparison != 0) {
-
 
209440
          return lastComparison;
-
 
209441
        }
-
 
209442
      }
-
 
209443
      return 0;
-
 
209444
    }
-
 
209445
 
-
 
209446
    public _Fields fieldForId(int fieldId) {
-
 
209447
      return _Fields.findByThriftId(fieldId);
-
 
209448
    }
-
 
209449
 
-
 
209450
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
209451
      org.apache.thrift.protocol.TField field;
-
 
209452
      iprot.readStructBegin();
-
 
209453
      while (true)
-
 
209454
      {
-
 
209455
        field = iprot.readFieldBegin();
-
 
209456
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
209457
          break;
-
 
209458
        }
-
 
209459
        switch (field.id) {
-
 
209460
          case 1: // USER_ID
-
 
209461
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
209462
              this.userId = iprot.readI64();
-
 
209463
              setUserIdIsSet(true);
-
 
209464
            } else { 
-
 
209465
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
209466
            }
-
 
209467
            break;
-
 
209468
          case 2: // CREDITOR_ID
-
 
209469
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
209470
              this.creditorId = iprot.readI64();
-
 
209471
              setCreditorIdIsSet(true);
-
 
209472
            } else { 
-
 
209473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
209474
            }
-
 
209475
            break;
-
 
209476
          case 3: // CREDIT_TXN_TYPE
-
 
209477
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
209478
              this.creditTxnType = CreditTxnType.findByValue(iprot.readI32());
-
 
209479
            } else { 
-
 
209480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
209481
            }
-
 
209482
            break;
-
 
209483
          default:
-
 
209484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
209485
        }
-
 
209486
        iprot.readFieldEnd();
-
 
209487
      }
-
 
209488
      iprot.readStructEnd();
-
 
209489
      validate();
-
 
209490
    }
-
 
209491
 
-
 
209492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
209493
      validate();
-
 
209494
 
-
 
209495
      oprot.writeStructBegin(STRUCT_DESC);
-
 
209496
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
209497
      oprot.writeI64(this.userId);
-
 
209498
      oprot.writeFieldEnd();
-
 
209499
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
209500
      oprot.writeI64(this.creditorId);
-
 
209501
      oprot.writeFieldEnd();
-
 
209502
      if (this.creditTxnType != null) {
-
 
209503
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
-
 
209504
        oprot.writeI32(this.creditTxnType.getValue());
-
 
209505
        oprot.writeFieldEnd();
-
 
209506
      }
-
 
209507
      oprot.writeFieldStop();
-
 
209508
      oprot.writeStructEnd();
-
 
209509
    }
-
 
209510
 
-
 
209511
    @Override
-
 
209512
    public String toString() {
-
 
209513
      StringBuilder sb = new StringBuilder("getLoanHistoryRecordsForUserAndCreditor_args(");
-
 
209514
      boolean first = true;
-
 
209515
 
-
 
209516
      sb.append("userId:");
-
 
209517
      sb.append(this.userId);
-
 
209518
      first = false;
-
 
209519
      if (!first) sb.append(", ");
-
 
209520
      sb.append("creditorId:");
-
 
209521
      sb.append(this.creditorId);
-
 
209522
      first = false;
-
 
209523
      if (!first) sb.append(", ");
-
 
209524
      sb.append("creditTxnType:");
-
 
209525
      if (this.creditTxnType == null) {
-
 
209526
        sb.append("null");
-
 
209527
      } else {
-
 
209528
        sb.append(this.creditTxnType);
-
 
209529
      }
-
 
209530
      first = false;
-
 
209531
      sb.append(")");
-
 
209532
      return sb.toString();
-
 
209533
    }
-
 
209534
 
-
 
209535
    public void validate() throws org.apache.thrift.TException {
-
 
209536
      // check for required fields
-
 
209537
    }
-
 
209538
 
-
 
209539
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
209540
      try {
-
 
209541
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
209542
      } catch (org.apache.thrift.TException te) {
-
 
209543
        throw new java.io.IOException(te);
-
 
209544
      }
-
 
209545
    }
-
 
209546
 
-
 
209547
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
209548
      try {
-
 
209549
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
209550
        __isset_bit_vector = new BitSet(1);
-
 
209551
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
209552
      } catch (org.apache.thrift.TException te) {
-
 
209553
        throw new java.io.IOException(te);
-
 
209554
      }
-
 
209555
    }
-
 
209556
 
-
 
209557
  }
-
 
209558
 
-
 
209559
  public static class getLoanHistoryRecordsForUserAndCreditor_result implements org.apache.thrift.TBase<getLoanHistoryRecordsForUserAndCreditor_result, getLoanHistoryRecordsForUserAndCreditor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
209560
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanHistoryRecordsForUserAndCreditor_result");
-
 
209561
 
-
 
209562
    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);
-
 
209563
 
-
 
209564
    private List<LoanHistory> success; // required
-
 
209565
 
-
 
209566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
209567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
209568
      SUCCESS((short)0, "success");
-
 
209569
 
-
 
209570
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
209571
 
-
 
209572
      static {
-
 
209573
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
209574
          byName.put(field.getFieldName(), field);
-
 
209575
        }
-
 
209576
      }
-
 
209577
 
-
 
209578
      /**
-
 
209579
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
209580
       */
-
 
209581
      public static _Fields findByThriftId(int fieldId) {
-
 
209582
        switch(fieldId) {
-
 
209583
          case 0: // SUCCESS
-
 
209584
            return SUCCESS;
-
 
209585
          default:
-
 
209586
            return null;
-
 
209587
        }
-
 
209588
      }
-
 
209589
 
-
 
209590
      /**
-
 
209591
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
209592
       * if it is not found.
-
 
209593
       */
-
 
209594
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
209595
        _Fields fields = findByThriftId(fieldId);
-
 
209596
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
209597
        return fields;
-
 
209598
      }
-
 
209599
 
-
 
209600
      /**
-
 
209601
       * Find the _Fields constant that matches name, or null if its not found.
-
 
209602
       */
-
 
209603
      public static _Fields findByName(String name) {
-
 
209604
        return byName.get(name);
-
 
209605
      }
-
 
209606
 
-
 
209607
      private final short _thriftId;
-
 
209608
      private final String _fieldName;
-
 
209609
 
-
 
209610
      _Fields(short thriftId, String fieldName) {
-
 
209611
        _thriftId = thriftId;
-
 
209612
        _fieldName = fieldName;
-
 
209613
      }
-
 
209614
 
-
 
209615
      public short getThriftFieldId() {
-
 
209616
        return _thriftId;
-
 
209617
      }
-
 
209618
 
-
 
209619
      public String getFieldName() {
-
 
209620
        return _fieldName;
-
 
209621
      }
-
 
209622
    }
-
 
209623
 
-
 
209624
    // isset id assignments
-
 
209625
 
-
 
209626
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
209627
    static {
-
 
209628
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
209629
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209630
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
209631
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LoanHistory.class))));
-
 
209632
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
209633
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanHistoryRecordsForUserAndCreditor_result.class, metaDataMap);
-
 
209634
    }
-
 
209635
 
-
 
209636
    public getLoanHistoryRecordsForUserAndCreditor_result() {
-
 
209637
    }
-
 
209638
 
-
 
209639
    public getLoanHistoryRecordsForUserAndCreditor_result(
-
 
209640
      List<LoanHistory> success)
-
 
209641
    {
-
 
209642
      this();
-
 
209643
      this.success = success;
-
 
209644
    }
-
 
209645
 
-
 
209646
    /**
-
 
209647
     * Performs a deep copy on <i>other</i>.
-
 
209648
     */
-
 
209649
    public getLoanHistoryRecordsForUserAndCreditor_result(getLoanHistoryRecordsForUserAndCreditor_result other) {
-
 
209650
      if (other.isSetSuccess()) {
-
 
209651
        List<LoanHistory> __this__success = new ArrayList<LoanHistory>();
-
 
209652
        for (LoanHistory other_element : other.success) {
-
 
209653
          __this__success.add(new LoanHistory(other_element));
-
 
209654
        }
-
 
209655
        this.success = __this__success;
-
 
209656
      }
-
 
209657
    }
-
 
209658
 
-
 
209659
    public getLoanHistoryRecordsForUserAndCreditor_result deepCopy() {
-
 
209660
      return new getLoanHistoryRecordsForUserAndCreditor_result(this);
-
 
209661
    }
-
 
209662
 
-
 
209663
    @Override
-
 
209664
    public void clear() {
-
 
209665
      this.success = null;
-
 
209666
    }
-
 
209667
 
-
 
209668
    public int getSuccessSize() {
-
 
209669
      return (this.success == null) ? 0 : this.success.size();
-
 
209670
    }
-
 
209671
 
-
 
209672
    public java.util.Iterator<LoanHistory> getSuccessIterator() {
-
 
209673
      return (this.success == null) ? null : this.success.iterator();
-
 
209674
    }
-
 
209675
 
-
 
209676
    public void addToSuccess(LoanHistory elem) {
-
 
209677
      if (this.success == null) {
-
 
209678
        this.success = new ArrayList<LoanHistory>();
-
 
209679
      }
-
 
209680
      this.success.add(elem);
-
 
209681
    }
-
 
209682
 
-
 
209683
    public List<LoanHistory> getSuccess() {
-
 
209684
      return this.success;
-
 
209685
    }
-
 
209686
 
-
 
209687
    public void setSuccess(List<LoanHistory> success) {
-
 
209688
      this.success = success;
-
 
209689
    }
-
 
209690
 
-
 
209691
    public void unsetSuccess() {
-
 
209692
      this.success = null;
-
 
209693
    }
-
 
209694
 
-
 
209695
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
209696
    public boolean isSetSuccess() {
-
 
209697
      return this.success != null;
-
 
209698
    }
-
 
209699
 
-
 
209700
    public void setSuccessIsSet(boolean value) {
-
 
209701
      if (!value) {
-
 
209702
        this.success = null;
-
 
209703
      }
-
 
209704
    }
-
 
209705
 
-
 
209706
    public void setFieldValue(_Fields field, Object value) {
-
 
209707
      switch (field) {
-
 
209708
      case SUCCESS:
-
 
209709
        if (value == null) {
-
 
209710
          unsetSuccess();
-
 
209711
        } else {
-
 
209712
          setSuccess((List<LoanHistory>)value);
-
 
209713
        }
-
 
209714
        break;
-
 
209715
 
-
 
209716
      }
-
 
209717
    }
-
 
209718
 
-
 
209719
    public Object getFieldValue(_Fields field) {
-
 
209720
      switch (field) {
-
 
209721
      case SUCCESS:
-
 
209722
        return getSuccess();
-
 
209723
 
-
 
209724
      }
-
 
209725
      throw new IllegalStateException();
-
 
209726
    }
-
 
209727
 
-
 
209728
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
209729
    public boolean isSet(_Fields field) {
-
 
209730
      if (field == null) {
-
 
209731
        throw new IllegalArgumentException();
-
 
209732
      }
-
 
209733
 
-
 
209734
      switch (field) {
-
 
209735
      case SUCCESS:
-
 
209736
        return isSetSuccess();
-
 
209737
      }
-
 
209738
      throw new IllegalStateException();
-
 
209739
    }
-
 
209740
 
-
 
209741
    @Override
-
 
209742
    public boolean equals(Object that) {
-
 
209743
      if (that == null)
-
 
209744
        return false;
-
 
209745
      if (that instanceof getLoanHistoryRecordsForUserAndCreditor_result)
-
 
209746
        return this.equals((getLoanHistoryRecordsForUserAndCreditor_result)that);
-
 
209747
      return false;
-
 
209748
    }
-
 
209749
 
-
 
209750
    public boolean equals(getLoanHistoryRecordsForUserAndCreditor_result that) {
-
 
209751
      if (that == null)
-
 
209752
        return false;
-
 
209753
 
-
 
209754
      boolean this_present_success = true && this.isSetSuccess();
-
 
209755
      boolean that_present_success = true && that.isSetSuccess();
-
 
209756
      if (this_present_success || that_present_success) {
-
 
209757
        if (!(this_present_success && that_present_success))
-
 
209758
          return false;
-
 
209759
        if (!this.success.equals(that.success))
-
 
209760
          return false;
-
 
209761
      }
-
 
209762
 
-
 
209763
      return true;
-
 
209764
    }
-
 
209765
 
-
 
209766
    @Override
-
 
209767
    public int hashCode() {
-
 
209768
      return 0;
-
 
209769
    }
-
 
209770
 
-
 
209771
    public int compareTo(getLoanHistoryRecordsForUserAndCreditor_result other) {
-
 
209772
      if (!getClass().equals(other.getClass())) {
-
 
209773
        return getClass().getName().compareTo(other.getClass().getName());
-
 
209774
      }
-
 
209775
 
-
 
209776
      int lastComparison = 0;
-
 
209777
      getLoanHistoryRecordsForUserAndCreditor_result typedOther = (getLoanHistoryRecordsForUserAndCreditor_result)other;
-
 
209778
 
-
 
209779
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
209780
      if (lastComparison != 0) {
-
 
209781
        return lastComparison;
-
 
209782
      }
-
 
209783
      if (isSetSuccess()) {
-
 
209784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
209785
        if (lastComparison != 0) {
-
 
209786
          return lastComparison;
-
 
209787
        }
-
 
209788
      }
-
 
209789
      return 0;
-
 
209790
    }
-
 
209791
 
-
 
209792
    public _Fields fieldForId(int fieldId) {
-
 
209793
      return _Fields.findByThriftId(fieldId);
-
 
209794
    }
-
 
209795
 
-
 
209796
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
209797
      org.apache.thrift.protocol.TField field;
-
 
209798
      iprot.readStructBegin();
-
 
209799
      while (true)
-
 
209800
      {
-
 
209801
        field = iprot.readFieldBegin();
-
 
209802
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
209803
          break;
-
 
209804
        }
-
 
209805
        switch (field.id) {
-
 
209806
          case 0: // SUCCESS
-
 
209807
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
209808
              {
-
 
209809
                org.apache.thrift.protocol.TList _list672 = iprot.readListBegin();
-
 
209810
                this.success = new ArrayList<LoanHistory>(_list672.size);
-
 
209811
                for (int _i673 = 0; _i673 < _list672.size; ++_i673)
-
 
209812
                {
-
 
209813
                  LoanHistory _elem674; // required
-
 
209814
                  _elem674 = new LoanHistory();
-
 
209815
                  _elem674.read(iprot);
-
 
209816
                  this.success.add(_elem674);
-
 
209817
                }
-
 
209818
                iprot.readListEnd();
-
 
209819
              }
-
 
209820
            } else { 
-
 
209821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
209822
            }
-
 
209823
            break;
-
 
209824
          default:
-
 
209825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
209826
        }
-
 
209827
        iprot.readFieldEnd();
-
 
209828
      }
-
 
209829
      iprot.readStructEnd();
-
 
209830
      validate();
-
 
209831
    }
-
 
209832
 
-
 
209833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
209834
      oprot.writeStructBegin(STRUCT_DESC);
-
 
209835
 
-
 
209836
      if (this.isSetSuccess()) {
-
 
209837
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
209838
        {
-
 
209839
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
209840
          for (LoanHistory _iter675 : this.success)
-
 
209841
          {
-
 
209842
            _iter675.write(oprot);
-
 
209843
          }
-
 
209844
          oprot.writeListEnd();
-
 
209845
        }
-
 
209846
        oprot.writeFieldEnd();
-
 
209847
      }
-
 
209848
      oprot.writeFieldStop();
-
 
209849
      oprot.writeStructEnd();
-
 
209850
    }
-
 
209851
 
-
 
209852
    @Override
-
 
209853
    public String toString() {
-
 
209854
      StringBuilder sb = new StringBuilder("getLoanHistoryRecordsForUserAndCreditor_result(");
-
 
209855
      boolean first = true;
-
 
209856
 
-
 
209857
      sb.append("success:");
-
 
209858
      if (this.success == null) {
-
 
209859
        sb.append("null");
-
 
209860
      } else {
-
 
209861
        sb.append(this.success);
-
 
209862
      }
-
 
209863
      first = false;
-
 
209864
      sb.append(")");
-
 
209865
      return sb.toString();
-
 
209866
    }
-
 
209867
 
-
 
209868
    public void validate() throws org.apache.thrift.TException {
-
 
209869
      // check for required fields
-
 
209870
    }
-
 
209871
 
-
 
209872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
209873
      try {
-
 
209874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
209875
      } catch (org.apache.thrift.TException te) {
-
 
209876
        throw new java.io.IOException(te);
-
 
209877
      }
-
 
209878
    }
-
 
209879
 
-
 
209880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
209881
      try {
-
 
209882
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
209883
      } catch (org.apache.thrift.TException te) {
-
 
209884
        throw new java.io.IOException(te);
-
 
209885
      }
-
 
209886
    }
-
 
209887
 
-
 
209888
  }
-
 
209889
 
-
 
209890
  public static class processLoanTransaction_args implements org.apache.thrift.TBase<processLoanTransaction_args, processLoanTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
209891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processLoanTransaction_args");
-
 
209892
 
-
 
209893
    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);
-
 
209894
    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)2);
-
 
209895
    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)3);
-
 
209896
    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)4);
-
 
209897
 
-
 
209898
    private long paymentId; // required
-
 
209899
    private long userId; // required
-
 
209900
    private long creditorId; // required
-
 
209901
    private List<LoanHistory> creditTxns; // required
-
 
209902
 
-
 
209903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
209904
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
209905
      PAYMENT_ID((short)1, "paymentId"),
-
 
209906
      USER_ID((short)2, "userId"),
-
 
209907
      CREDITOR_ID((short)3, "creditorId"),
-
 
209908
      CREDIT_TXNS((short)4, "creditTxns");
-
 
209909
 
-
 
209910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
209911
 
-
 
209912
      static {
-
 
209913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
209914
          byName.put(field.getFieldName(), field);
-
 
209915
        }
-
 
209916
      }
-
 
209917
 
-
 
209918
      /**
-
 
209919
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
209920
       */
-
 
209921
      public static _Fields findByThriftId(int fieldId) {
-
 
209922
        switch(fieldId) {
-
 
209923
          case 1: // PAYMENT_ID
-
 
209924
            return PAYMENT_ID;
-
 
209925
          case 2: // USER_ID
-
 
209926
            return USER_ID;
-
 
209927
          case 3: // CREDITOR_ID
-
 
209928
            return CREDITOR_ID;
-
 
209929
          case 4: // CREDIT_TXNS
-
 
209930
            return CREDIT_TXNS;
-
 
209931
          default:
-
 
209932
            return null;
-
 
209933
        }
-
 
209934
      }
-
 
209935
 
-
 
209936
      /**
-
 
209937
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
209938
       * if it is not found.
-
 
209939
       */
-
 
209940
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
209941
        _Fields fields = findByThriftId(fieldId);
-
 
209942
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
209943
        return fields;
-
 
209944
      }
-
 
209945
 
-
 
209946
      /**
-
 
209947
       * Find the _Fields constant that matches name, or null if its not found.
-
 
209948
       */
-
 
209949
      public static _Fields findByName(String name) {
-
 
209950
        return byName.get(name);
-
 
209951
      }
-
 
209952
 
-
 
209953
      private final short _thriftId;
-
 
209954
      private final String _fieldName;
-
 
209955
 
-
 
209956
      _Fields(short thriftId, String fieldName) {
-
 
209957
        _thriftId = thriftId;
-
 
209958
        _fieldName = fieldName;
-
 
209959
      }
-
 
209960
 
-
 
209961
      public short getThriftFieldId() {
-
 
209962
        return _thriftId;
-
 
209963
      }
-
 
209964
 
-
 
209965
      public String getFieldName() {
-
 
209966
        return _fieldName;
-
 
209967
      }
-
 
209968
    }
-
 
209969
 
-
 
209970
    // isset id assignments
-
 
209971
    private static final int __PAYMENTID_ISSET_ID = 0;
-
 
209972
    private static final int __USERID_ISSET_ID = 1;
-
 
209973
    private static final int __CREDITORID_ISSET_ID = 2;
-
 
209974
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
209975
 
-
 
209976
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
209977
    static {
-
 
209978
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
209979
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
209981
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209982
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
209983
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209984
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
209985
      tmpMap.put(_Fields.CREDIT_TXNS, new org.apache.thrift.meta_data.FieldMetaData("creditTxns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209986
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
209987
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LoanHistory.class))));
-
 
209988
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
209989
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processLoanTransaction_args.class, metaDataMap);
-
 
209990
    }
-
 
209991
 
-
 
209992
    public processLoanTransaction_args() {
-
 
209993
    }
-
 
209994
 
-
 
209995
    public processLoanTransaction_args(
-
 
209996
      long paymentId,
-
 
209997
      long userId,
-
 
209998
      long creditorId,
-
 
209999
      List<LoanHistory> creditTxns)
-
 
210000
    {
-
 
210001
      this();
-
 
210002
      this.paymentId = paymentId;
-
 
210003
      setPaymentIdIsSet(true);
-
 
210004
      this.userId = userId;
-
 
210005
      setUserIdIsSet(true);
-
 
210006
      this.creditorId = creditorId;
-
 
210007
      setCreditorIdIsSet(true);
-
 
210008
      this.creditTxns = creditTxns;
-
 
210009
    }
-
 
210010
 
-
 
210011
    /**
-
 
210012
     * Performs a deep copy on <i>other</i>.
-
 
210013
     */
-
 
210014
    public processLoanTransaction_args(processLoanTransaction_args other) {
-
 
210015
      __isset_bit_vector.clear();
-
 
210016
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
210017
      this.paymentId = other.paymentId;
-
 
210018
      this.userId = other.userId;
-
 
210019
      this.creditorId = other.creditorId;
-
 
210020
      if (other.isSetCreditTxns()) {
-
 
210021
        List<LoanHistory> __this__creditTxns = new ArrayList<LoanHistory>();
-
 
210022
        for (LoanHistory other_element : other.creditTxns) {
-
 
210023
          __this__creditTxns.add(new LoanHistory(other_element));
-
 
210024
        }
-
 
210025
        this.creditTxns = __this__creditTxns;
-
 
210026
      }
-
 
210027
    }
-
 
210028
 
-
 
210029
    public processLoanTransaction_args deepCopy() {
-
 
210030
      return new processLoanTransaction_args(this);
-
 
210031
    }
-
 
210032
 
-
 
210033
    @Override
-
 
210034
    public void clear() {
-
 
210035
      setPaymentIdIsSet(false);
-
 
210036
      this.paymentId = 0;
-
 
210037
      setUserIdIsSet(false);
-
 
210038
      this.userId = 0;
-
 
210039
      setCreditorIdIsSet(false);
-
 
210040
      this.creditorId = 0;
-
 
210041
      this.creditTxns = null;
-
 
210042
    }
-
 
210043
 
-
 
210044
    public long getPaymentId() {
-
 
210045
      return this.paymentId;
-
 
210046
    }
-
 
210047
 
-
 
210048
    public void setPaymentId(long paymentId) {
-
 
210049
      this.paymentId = paymentId;
-
 
210050
      setPaymentIdIsSet(true);
-
 
210051
    }
-
 
210052
 
-
 
210053
    public void unsetPaymentId() {
-
 
210054
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
-
 
210055
    }
-
 
210056
 
-
 
210057
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
-
 
210058
    public boolean isSetPaymentId() {
-
 
210059
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
-
 
210060
    }
-
 
210061
 
-
 
210062
    public void setPaymentIdIsSet(boolean value) {
-
 
210063
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
-
 
210064
    }
-
 
210065
 
-
 
210066
    public long getUserId() {
-
 
210067
      return this.userId;
-
 
210068
    }
-
 
210069
 
-
 
210070
    public void setUserId(long userId) {
-
 
210071
      this.userId = userId;
-
 
210072
      setUserIdIsSet(true);
-
 
210073
    }
-
 
210074
 
-
 
210075
    public void unsetUserId() {
-
 
210076
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
210077
    }
-
 
210078
 
-
 
210079
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
210080
    public boolean isSetUserId() {
-
 
210081
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
210082
    }
-
 
210083
 
-
 
210084
    public void setUserIdIsSet(boolean value) {
-
 
210085
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
210086
    }
-
 
210087
 
-
 
210088
    public long getCreditorId() {
-
 
210089
      return this.creditorId;
-
 
210090
    }
-
 
210091
 
-
 
210092
    public void setCreditorId(long creditorId) {
-
 
210093
      this.creditorId = creditorId;
-
 
210094
      setCreditorIdIsSet(true);
-
 
210095
    }
-
 
210096
 
-
 
210097
    public void unsetCreditorId() {
-
 
210098
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
-
 
210099
    }
-
 
210100
 
-
 
210101
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
-
 
210102
    public boolean isSetCreditorId() {
-
 
210103
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
-
 
210104
    }
-
 
210105
 
-
 
210106
    public void setCreditorIdIsSet(boolean value) {
-
 
210107
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
-
 
210108
    }
-
 
210109
 
-
 
210110
    public int getCreditTxnsSize() {
-
 
210111
      return (this.creditTxns == null) ? 0 : this.creditTxns.size();
-
 
210112
    }
-
 
210113
 
-
 
210114
    public java.util.Iterator<LoanHistory> getCreditTxnsIterator() {
-
 
210115
      return (this.creditTxns == null) ? null : this.creditTxns.iterator();
-
 
210116
    }
-
 
210117
 
-
 
210118
    public void addToCreditTxns(LoanHistory elem) {
-
 
210119
      if (this.creditTxns == null) {
-
 
210120
        this.creditTxns = new ArrayList<LoanHistory>();
-
 
210121
      }
-
 
210122
      this.creditTxns.add(elem);
-
 
210123
    }
-
 
210124
 
-
 
210125
    public List<LoanHistory> getCreditTxns() {
-
 
210126
      return this.creditTxns;
-
 
210127
    }
-
 
210128
 
-
 
210129
    public void setCreditTxns(List<LoanHistory> creditTxns) {
-
 
210130
      this.creditTxns = creditTxns;
-
 
210131
    }
-
 
210132
 
-
 
210133
    public void unsetCreditTxns() {
-
 
210134
      this.creditTxns = null;
-
 
210135
    }
-
 
210136
 
-
 
210137
    /** Returns true if field creditTxns is set (has been assigned a value) and false otherwise */
-
 
210138
    public boolean isSetCreditTxns() {
-
 
210139
      return this.creditTxns != null;
-
 
210140
    }
-
 
210141
 
-
 
210142
    public void setCreditTxnsIsSet(boolean value) {
-
 
210143
      if (!value) {
-
 
210144
        this.creditTxns = null;
-
 
210145
      }
-
 
210146
    }
-
 
210147
 
-
 
210148
    public void setFieldValue(_Fields field, Object value) {
-
 
210149
      switch (field) {
-
 
210150
      case PAYMENT_ID:
-
 
210151
        if (value == null) {
-
 
210152
          unsetPaymentId();
-
 
210153
        } else {
-
 
210154
          setPaymentId((Long)value);
-
 
210155
        }
-
 
210156
        break;
-
 
210157
 
-
 
210158
      case USER_ID:
-
 
210159
        if (value == null) {
-
 
210160
          unsetUserId();
-
 
210161
        } else {
-
 
210162
          setUserId((Long)value);
-
 
210163
        }
-
 
210164
        break;
-
 
210165
 
-
 
210166
      case CREDITOR_ID:
-
 
210167
        if (value == null) {
-
 
210168
          unsetCreditorId();
-
 
210169
        } else {
-
 
210170
          setCreditorId((Long)value);
-
 
210171
        }
-
 
210172
        break;
-
 
210173
 
-
 
210174
      case CREDIT_TXNS:
-
 
210175
        if (value == null) {
-
 
210176
          unsetCreditTxns();
-
 
210177
        } else {
-
 
210178
          setCreditTxns((List<LoanHistory>)value);
-
 
210179
        }
-
 
210180
        break;
-
 
210181
 
-
 
210182
      }
-
 
210183
    }
-
 
210184
 
-
 
210185
    public Object getFieldValue(_Fields field) {
-
 
210186
      switch (field) {
-
 
210187
      case PAYMENT_ID:
-
 
210188
        return Long.valueOf(getPaymentId());
-
 
210189
 
-
 
210190
      case USER_ID:
-
 
210191
        return Long.valueOf(getUserId());
-
 
210192
 
-
 
210193
      case CREDITOR_ID:
-
 
210194
        return Long.valueOf(getCreditorId());
-
 
210195
 
-
 
210196
      case CREDIT_TXNS:
-
 
210197
        return getCreditTxns();
-
 
210198
 
-
 
210199
      }
-
 
210200
      throw new IllegalStateException();
-
 
210201
    }
-
 
210202
 
-
 
210203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
210204
    public boolean isSet(_Fields field) {
-
 
210205
      if (field == null) {
-
 
210206
        throw new IllegalArgumentException();
-
 
210207
      }
-
 
210208
 
-
 
210209
      switch (field) {
-
 
210210
      case PAYMENT_ID:
-
 
210211
        return isSetPaymentId();
-
 
210212
      case USER_ID:
-
 
210213
        return isSetUserId();
-
 
210214
      case CREDITOR_ID:
-
 
210215
        return isSetCreditorId();
-
 
210216
      case CREDIT_TXNS:
-
 
210217
        return isSetCreditTxns();
-
 
210218
      }
-
 
210219
      throw new IllegalStateException();
-
 
210220
    }
-
 
210221
 
-
 
210222
    @Override
-
 
210223
    public boolean equals(Object that) {
-
 
210224
      if (that == null)
-
 
210225
        return false;
-
 
210226
      if (that instanceof processLoanTransaction_args)
-
 
210227
        return this.equals((processLoanTransaction_args)that);
-
 
210228
      return false;
-
 
210229
    }
-
 
210230
 
-
 
210231
    public boolean equals(processLoanTransaction_args that) {
-
 
210232
      if (that == null)
-
 
210233
        return false;
-
 
210234
 
-
 
210235
      boolean this_present_paymentId = true;
-
 
210236
      boolean that_present_paymentId = true;
-
 
210237
      if (this_present_paymentId || that_present_paymentId) {
-
 
210238
        if (!(this_present_paymentId && that_present_paymentId))
-
 
210239
          return false;
-
 
210240
        if (this.paymentId != that.paymentId)
-
 
210241
          return false;
-
 
210242
      }
-
 
210243
 
-
 
210244
      boolean this_present_userId = true;
-
 
210245
      boolean that_present_userId = true;
-
 
210246
      if (this_present_userId || that_present_userId) {
-
 
210247
        if (!(this_present_userId && that_present_userId))
-
 
210248
          return false;
-
 
210249
        if (this.userId != that.userId)
-
 
210250
          return false;
-
 
210251
      }
-
 
210252
 
-
 
210253
      boolean this_present_creditorId = true;
-
 
210254
      boolean that_present_creditorId = true;
-
 
210255
      if (this_present_creditorId || that_present_creditorId) {
-
 
210256
        if (!(this_present_creditorId && that_present_creditorId))
-
 
210257
          return false;
-
 
210258
        if (this.creditorId != that.creditorId)
-
 
210259
          return false;
-
 
210260
      }
-
 
210261
 
-
 
210262
      boolean this_present_creditTxns = true && this.isSetCreditTxns();
-
 
210263
      boolean that_present_creditTxns = true && that.isSetCreditTxns();
-
 
210264
      if (this_present_creditTxns || that_present_creditTxns) {
-
 
210265
        if (!(this_present_creditTxns && that_present_creditTxns))
-
 
210266
          return false;
-
 
210267
        if (!this.creditTxns.equals(that.creditTxns))
-
 
210268
          return false;
-
 
210269
      }
-
 
210270
 
-
 
210271
      return true;
-
 
210272
    }
-
 
210273
 
-
 
210274
    @Override
-
 
210275
    public int hashCode() {
-
 
210276
      return 0;
-
 
210277
    }
-
 
210278
 
-
 
210279
    public int compareTo(processLoanTransaction_args other) {
-
 
210280
      if (!getClass().equals(other.getClass())) {
-
 
210281
        return getClass().getName().compareTo(other.getClass().getName());
-
 
210282
      }
-
 
210283
 
-
 
210284
      int lastComparison = 0;
-
 
210285
      processLoanTransaction_args typedOther = (processLoanTransaction_args)other;
-
 
210286
 
-
 
210287
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
-
 
210288
      if (lastComparison != 0) {
-
 
210289
        return lastComparison;
-
 
210290
      }
-
 
210291
      if (isSetPaymentId()) {
-
 
210292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
-
 
210293
        if (lastComparison != 0) {
-
 
210294
          return lastComparison;
-
 
210295
        }
-
 
210296
      }
-
 
210297
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
210298
      if (lastComparison != 0) {
-
 
210299
        return lastComparison;
-
 
210300
      }
-
 
210301
      if (isSetUserId()) {
-
 
210302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
210303
        if (lastComparison != 0) {
-
 
210304
          return lastComparison;
-
 
210305
        }
-
 
210306
      }
-
 
210307
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
-
 
210308
      if (lastComparison != 0) {
-
 
210309
        return lastComparison;
-
 
210310
      }
-
 
210311
      if (isSetCreditorId()) {
-
 
210312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
-
 
210313
        if (lastComparison != 0) {
-
 
210314
          return lastComparison;
-
 
210315
        }
-
 
210316
      }
-
 
210317
      lastComparison = Boolean.valueOf(isSetCreditTxns()).compareTo(typedOther.isSetCreditTxns());
-
 
210318
      if (lastComparison != 0) {
-
 
210319
        return lastComparison;
-
 
210320
      }
-
 
210321
      if (isSetCreditTxns()) {
-
 
210322
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxns, typedOther.creditTxns);
-
 
210323
        if (lastComparison != 0) {
-
 
210324
          return lastComparison;
-
 
210325
        }
-
 
210326
      }
-
 
210327
      return 0;
-
 
210328
    }
-
 
210329
 
-
 
210330
    public _Fields fieldForId(int fieldId) {
-
 
210331
      return _Fields.findByThriftId(fieldId);
-
 
210332
    }
-
 
210333
 
-
 
210334
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
210335
      org.apache.thrift.protocol.TField field;
-
 
210336
      iprot.readStructBegin();
-
 
210337
      while (true)
-
 
210338
      {
-
 
210339
        field = iprot.readFieldBegin();
-
 
210340
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
210341
          break;
-
 
210342
        }
-
 
210343
        switch (field.id) {
-
 
210344
          case 1: // PAYMENT_ID
-
 
210345
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
210346
              this.paymentId = iprot.readI64();
-
 
210347
              setPaymentIdIsSet(true);
-
 
210348
            } else { 
-
 
210349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210350
            }
-
 
210351
            break;
-
 
210352
          case 2: // USER_ID
-
 
210353
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
210354
              this.userId = iprot.readI64();
-
 
210355
              setUserIdIsSet(true);
-
 
210356
            } else { 
-
 
210357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210358
            }
-
 
210359
            break;
-
 
210360
          case 3: // CREDITOR_ID
-
 
210361
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
210362
              this.creditorId = iprot.readI64();
-
 
210363
              setCreditorIdIsSet(true);
-
 
210364
            } else { 
-
 
210365
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210366
            }
-
 
210367
            break;
-
 
210368
          case 4: // CREDIT_TXNS
-
 
210369
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
210370
              {
-
 
210371
                org.apache.thrift.protocol.TList _list676 = iprot.readListBegin();
-
 
210372
                this.creditTxns = new ArrayList<LoanHistory>(_list676.size);
-
 
210373
                for (int _i677 = 0; _i677 < _list676.size; ++_i677)
-
 
210374
                {
-
 
210375
                  LoanHistory _elem678; // required
-
 
210376
                  _elem678 = new LoanHistory();
-
 
210377
                  _elem678.read(iprot);
-
 
210378
                  this.creditTxns.add(_elem678);
-
 
210379
                }
-
 
210380
                iprot.readListEnd();
-
 
210381
              }
-
 
210382
            } else { 
-
 
210383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210384
            }
-
 
210385
            break;
-
 
210386
          default:
-
 
210387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210388
        }
-
 
210389
        iprot.readFieldEnd();
-
 
210390
      }
-
 
210391
      iprot.readStructEnd();
-
 
210392
      validate();
-
 
210393
    }
-
 
210394
 
-
 
210395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
210396
      validate();
-
 
210397
 
-
 
210398
      oprot.writeStructBegin(STRUCT_DESC);
-
 
210399
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
-
 
210400
      oprot.writeI64(this.paymentId);
-
 
210401
      oprot.writeFieldEnd();
-
 
210402
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
210403
      oprot.writeI64(this.userId);
-
 
210404
      oprot.writeFieldEnd();
-
 
210405
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
-
 
210406
      oprot.writeI64(this.creditorId);
-
 
210407
      oprot.writeFieldEnd();
-
 
210408
      if (this.creditTxns != null) {
-
 
210409
        oprot.writeFieldBegin(CREDIT_TXNS_FIELD_DESC);
-
 
210410
        {
-
 
210411
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.creditTxns.size()));
-
 
210412
          for (LoanHistory _iter679 : this.creditTxns)
-
 
210413
          {
-
 
210414
            _iter679.write(oprot);
-
 
210415
          }
-
 
210416
          oprot.writeListEnd();
-
 
210417
        }
-
 
210418
        oprot.writeFieldEnd();
-
 
210419
      }
-
 
210420
      oprot.writeFieldStop();
-
 
210421
      oprot.writeStructEnd();
-
 
210422
    }
-
 
210423
 
-
 
210424
    @Override
-
 
210425
    public String toString() {
-
 
210426
      StringBuilder sb = new StringBuilder("processLoanTransaction_args(");
-
 
210427
      boolean first = true;
-
 
210428
 
-
 
210429
      sb.append("paymentId:");
-
 
210430
      sb.append(this.paymentId);
-
 
210431
      first = false;
-
 
210432
      if (!first) sb.append(", ");
-
 
210433
      sb.append("userId:");
-
 
210434
      sb.append(this.userId);
-
 
210435
      first = false;
-
 
210436
      if (!first) sb.append(", ");
-
 
210437
      sb.append("creditorId:");
-
 
210438
      sb.append(this.creditorId);
-
 
210439
      first = false;
-
 
210440
      if (!first) sb.append(", ");
-
 
210441
      sb.append("creditTxns:");
-
 
210442
      if (this.creditTxns == null) {
-
 
210443
        sb.append("null");
-
 
210444
      } else {
-
 
210445
        sb.append(this.creditTxns);
-
 
210446
      }
-
 
210447
      first = false;
-
 
210448
      sb.append(")");
-
 
210449
      return sb.toString();
-
 
210450
    }
-
 
210451
 
-
 
210452
    public void validate() throws org.apache.thrift.TException {
-
 
210453
      // check for required fields
-
 
210454
    }
-
 
210455
 
-
 
210456
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
210457
      try {
-
 
210458
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
210459
      } catch (org.apache.thrift.TException te) {
-
 
210460
        throw new java.io.IOException(te);
-
 
210461
      }
-
 
210462
    }
-
 
210463
 
-
 
210464
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
210465
      try {
-
 
210466
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
210467
        __isset_bit_vector = new BitSet(1);
-
 
210468
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
210469
      } catch (org.apache.thrift.TException te) {
-
 
210470
        throw new java.io.IOException(te);
-
 
210471
      }
-
 
210472
    }
-
 
210473
 
-
 
210474
  }
-
 
210475
 
-
 
210476
  public static class processLoanTransaction_result implements org.apache.thrift.TBase<processLoanTransaction_result, processLoanTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
210477
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processLoanTransaction_result");
-
 
210478
 
-
 
210479
    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);
-
 
210480
    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);
-
 
210481
 
-
 
210482
    private boolean success; // required
-
 
210483
    private TransactionServiceException pe; // required
-
 
210484
 
-
 
210485
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
210486
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
210487
      SUCCESS((short)0, "success"),
-
 
210488
      PE((short)1, "pe");
-
 
210489
 
-
 
210490
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
210491
 
-
 
210492
      static {
-
 
210493
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
210494
          byName.put(field.getFieldName(), field);
-
 
210495
        }
-
 
210496
      }
-
 
210497
 
-
 
210498
      /**
-
 
210499
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
210500
       */
-
 
210501
      public static _Fields findByThriftId(int fieldId) {
-
 
210502
        switch(fieldId) {
-
 
210503
          case 0: // SUCCESS
-
 
210504
            return SUCCESS;
-
 
210505
          case 1: // PE
-
 
210506
            return PE;
-
 
210507
          default:
-
 
210508
            return null;
-
 
210509
        }
-
 
210510
      }
-
 
210511
 
-
 
210512
      /**
-
 
210513
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
210514
       * if it is not found.
-
 
210515
       */
-
 
210516
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
210517
        _Fields fields = findByThriftId(fieldId);
-
 
210518
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
210519
        return fields;
-
 
210520
      }
-
 
210521
 
-
 
210522
      /**
-
 
210523
       * Find the _Fields constant that matches name, or null if its not found.
-
 
210524
       */
-
 
210525
      public static _Fields findByName(String name) {
-
 
210526
        return byName.get(name);
-
 
210527
      }
-
 
210528
 
-
 
210529
      private final short _thriftId;
-
 
210530
      private final String _fieldName;
-
 
210531
 
-
 
210532
      _Fields(short thriftId, String fieldName) {
-
 
210533
        _thriftId = thriftId;
-
 
210534
        _fieldName = fieldName;
-
 
210535
      }
-
 
210536
 
-
 
210537
      public short getThriftFieldId() {
-
 
210538
        return _thriftId;
-
 
210539
      }
-
 
210540
 
-
 
210541
      public String getFieldName() {
-
 
210542
        return _fieldName;
-
 
210543
      }
-
 
210544
    }
-
 
210545
 
-
 
210546
    // isset id assignments
-
 
210547
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
210548
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
210549
 
-
 
210550
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
210551
    static {
-
 
210552
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
210553
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
210554
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
210555
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
210556
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
210557
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
210558
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processLoanTransaction_result.class, metaDataMap);
-
 
210559
    }
-
 
210560
 
-
 
210561
    public processLoanTransaction_result() {
-
 
210562
    }
-
 
210563
 
-
 
210564
    public processLoanTransaction_result(
-
 
210565
      boolean success,
-
 
210566
      TransactionServiceException pe)
-
 
210567
    {
-
 
210568
      this();
-
 
210569
      this.success = success;
-
 
210570
      setSuccessIsSet(true);
-
 
210571
      this.pe = pe;
-
 
210572
    }
-
 
210573
 
-
 
210574
    /**
-
 
210575
     * Performs a deep copy on <i>other</i>.
-
 
210576
     */
-
 
210577
    public processLoanTransaction_result(processLoanTransaction_result other) {
-
 
210578
      __isset_bit_vector.clear();
-
 
210579
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
210580
      this.success = other.success;
-
 
210581
      if (other.isSetPe()) {
-
 
210582
        this.pe = new TransactionServiceException(other.pe);
-
 
210583
      }
-
 
210584
    }
-
 
210585
 
-
 
210586
    public processLoanTransaction_result deepCopy() {
-
 
210587
      return new processLoanTransaction_result(this);
-
 
210588
    }
-
 
210589
 
-
 
210590
    @Override
-
 
210591
    public void clear() {
-
 
210592
      setSuccessIsSet(false);
-
 
210593
      this.success = false;
-
 
210594
      this.pe = null;
-
 
210595
    }
-
 
210596
 
-
 
210597
    public boolean isSuccess() {
-
 
210598
      return this.success;
-
 
210599
    }
-
 
210600
 
-
 
210601
    public void setSuccess(boolean success) {
-
 
210602
      this.success = success;
-
 
210603
      setSuccessIsSet(true);
-
 
210604
    }
-
 
210605
 
-
 
210606
    public void unsetSuccess() {
-
 
210607
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
210608
    }
-
 
210609
 
-
 
210610
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
210611
    public boolean isSetSuccess() {
-
 
210612
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
210613
    }
-
 
210614
 
-
 
210615
    public void setSuccessIsSet(boolean value) {
-
 
210616
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
210617
    }
-
 
210618
 
-
 
210619
    public TransactionServiceException getPe() {
-
 
210620
      return this.pe;
-
 
210621
    }
-
 
210622
 
-
 
210623
    public void setPe(TransactionServiceException pe) {
-
 
210624
      this.pe = pe;
-
 
210625
    }
-
 
210626
 
-
 
210627
    public void unsetPe() {
-
 
210628
      this.pe = null;
-
 
210629
    }
-
 
210630
 
-
 
210631
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
210632
    public boolean isSetPe() {
-
 
210633
      return this.pe != null;
-
 
210634
    }
-
 
210635
 
-
 
210636
    public void setPeIsSet(boolean value) {
-
 
210637
      if (!value) {
-
 
210638
        this.pe = null;
-
 
210639
      }
-
 
210640
    }
-
 
210641
 
-
 
210642
    public void setFieldValue(_Fields field, Object value) {
-
 
210643
      switch (field) {
-
 
210644
      case SUCCESS:
-
 
210645
        if (value == null) {
-
 
210646
          unsetSuccess();
-
 
210647
        } else {
-
 
210648
          setSuccess((Boolean)value);
-
 
210649
        }
-
 
210650
        break;
-
 
210651
 
-
 
210652
      case PE:
-
 
210653
        if (value == null) {
-
 
210654
          unsetPe();
-
 
210655
        } else {
-
 
210656
          setPe((TransactionServiceException)value);
-
 
210657
        }
-
 
210658
        break;
-
 
210659
 
-
 
210660
      }
-
 
210661
    }
-
 
210662
 
-
 
210663
    public Object getFieldValue(_Fields field) {
-
 
210664
      switch (field) {
-
 
210665
      case SUCCESS:
-
 
210666
        return Boolean.valueOf(isSuccess());
-
 
210667
 
-
 
210668
      case PE:
-
 
210669
        return getPe();
-
 
210670
 
-
 
210671
      }
-
 
210672
      throw new IllegalStateException();
-
 
210673
    }
-
 
210674
 
-
 
210675
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
210676
    public boolean isSet(_Fields field) {
-
 
210677
      if (field == null) {
-
 
210678
        throw new IllegalArgumentException();
-
 
210679
      }
-
 
210680
 
-
 
210681
      switch (field) {
-
 
210682
      case SUCCESS:
-
 
210683
        return isSetSuccess();
-
 
210684
      case PE:
-
 
210685
        return isSetPe();
-
 
210686
      }
-
 
210687
      throw new IllegalStateException();
-
 
210688
    }
-
 
210689
 
-
 
210690
    @Override
-
 
210691
    public boolean equals(Object that) {
-
 
210692
      if (that == null)
-
 
210693
        return false;
-
 
210694
      if (that instanceof processLoanTransaction_result)
-
 
210695
        return this.equals((processLoanTransaction_result)that);
-
 
210696
      return false;
-
 
210697
    }
-
 
210698
 
-
 
210699
    public boolean equals(processLoanTransaction_result that) {
-
 
210700
      if (that == null)
-
 
210701
        return false;
-
 
210702
 
-
 
210703
      boolean this_present_success = true;
-
 
210704
      boolean that_present_success = true;
-
 
210705
      if (this_present_success || that_present_success) {
-
 
210706
        if (!(this_present_success && that_present_success))
-
 
210707
          return false;
-
 
210708
        if (this.success != that.success)
-
 
210709
          return false;
-
 
210710
      }
-
 
210711
 
-
 
210712
      boolean this_present_pe = true && this.isSetPe();
-
 
210713
      boolean that_present_pe = true && that.isSetPe();
-
 
210714
      if (this_present_pe || that_present_pe) {
-
 
210715
        if (!(this_present_pe && that_present_pe))
-
 
210716
          return false;
-
 
210717
        if (!this.pe.equals(that.pe))
-
 
210718
          return false;
-
 
210719
      }
-
 
210720
 
-
 
210721
      return true;
-
 
210722
    }
-
 
210723
 
-
 
210724
    @Override
-
 
210725
    public int hashCode() {
-
 
210726
      return 0;
-
 
210727
    }
-
 
210728
 
-
 
210729
    public int compareTo(processLoanTransaction_result other) {
-
 
210730
      if (!getClass().equals(other.getClass())) {
-
 
210731
        return getClass().getName().compareTo(other.getClass().getName());
-
 
210732
      }
-
 
210733
 
-
 
210734
      int lastComparison = 0;
-
 
210735
      processLoanTransaction_result typedOther = (processLoanTransaction_result)other;
-
 
210736
 
-
 
210737
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
210738
      if (lastComparison != 0) {
-
 
210739
        return lastComparison;
-
 
210740
      }
-
 
210741
      if (isSetSuccess()) {
-
 
210742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
210743
        if (lastComparison != 0) {
-
 
210744
          return lastComparison;
-
 
210745
        }
-
 
210746
      }
-
 
210747
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
210748
      if (lastComparison != 0) {
-
 
210749
        return lastComparison;
-
 
210750
      }
-
 
210751
      if (isSetPe()) {
-
 
210752
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
210753
        if (lastComparison != 0) {
-
 
210754
          return lastComparison;
-
 
210755
        }
-
 
210756
      }
-
 
210757
      return 0;
-
 
210758
    }
-
 
210759
 
-
 
210760
    public _Fields fieldForId(int fieldId) {
-
 
210761
      return _Fields.findByThriftId(fieldId);
-
 
210762
    }
-
 
210763
 
-
 
210764
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
210765
      org.apache.thrift.protocol.TField field;
-
 
210766
      iprot.readStructBegin();
-
 
210767
      while (true)
-
 
210768
      {
-
 
210769
        field = iprot.readFieldBegin();
-
 
210770
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
210771
          break;
-
 
210772
        }
-
 
210773
        switch (field.id) {
-
 
210774
          case 0: // SUCCESS
-
 
210775
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
210776
              this.success = iprot.readBool();
-
 
210777
              setSuccessIsSet(true);
-
 
210778
            } else { 
-
 
210779
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210780
            }
-
 
210781
            break;
-
 
210782
          case 1: // PE
-
 
210783
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
210784
              this.pe = new TransactionServiceException();
-
 
210785
              this.pe.read(iprot);
-
 
210786
            } else { 
-
 
210787
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210788
            }
-
 
210789
            break;
-
 
210790
          default:
-
 
210791
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
210792
        }
-
 
210793
        iprot.readFieldEnd();
-
 
210794
      }
-
 
210795
      iprot.readStructEnd();
-
 
210796
      validate();
-
 
210797
    }
-
 
210798
 
-
 
210799
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
210800
      oprot.writeStructBegin(STRUCT_DESC);
-
 
210801
 
-
 
210802
      if (this.isSetSuccess()) {
-
 
210803
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
210804
        oprot.writeBool(this.success);
-
 
210805
        oprot.writeFieldEnd();
-
 
210806
      } else if (this.isSetPe()) {
-
 
210807
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
210808
        this.pe.write(oprot);
-
 
210809
        oprot.writeFieldEnd();
-
 
210810
      }
-
 
210811
      oprot.writeFieldStop();
-
 
210812
      oprot.writeStructEnd();
-
 
210813
    }
-
 
210814
 
-
 
210815
    @Override
-
 
210816
    public String toString() {
-
 
210817
      StringBuilder sb = new StringBuilder("processLoanTransaction_result(");
-
 
210818
      boolean first = true;
-
 
210819
 
-
 
210820
      sb.append("success:");
-
 
210821
      sb.append(this.success);
-
 
210822
      first = false;
-
 
210823
      if (!first) sb.append(", ");
-
 
210824
      sb.append("pe:");
-
 
210825
      if (this.pe == null) {
-
 
210826
        sb.append("null");
-
 
210827
      } else {
-
 
210828
        sb.append(this.pe);
-
 
210829
      }
-
 
210830
      first = false;
-
 
210831
      sb.append(")");
-
 
210832
      return sb.toString();
-
 
210833
    }
-
 
210834
 
-
 
210835
    public void validate() throws org.apache.thrift.TException {
-
 
210836
      // check for required fields
-
 
210837
    }
-
 
210838
 
-
 
210839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
210840
      try {
-
 
210841
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
210842
      } catch (org.apache.thrift.TException te) {
-
 
210843
        throw new java.io.IOException(te);
-
 
210844
      }
-
 
210845
    }
-
 
210846
 
-
 
210847
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
210848
      try {
-
 
210849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
210850
      } catch (org.apache.thrift.TException te) {
-
 
210851
        throw new java.io.IOException(te);
-
 
210852
      }
-
 
210853
    }
-
 
210854
 
-
 
210855
  }
-
 
210856
 
207932
  public static class getReturnOrderInfo_args implements org.apache.thrift.TBase<getReturnOrderInfo_args, getReturnOrderInfo_args._Fields>, java.io.Serializable, Cloneable   {
210857
  public static class getReturnOrderInfo_args implements org.apache.thrift.TBase<getReturnOrderInfo_args, getReturnOrderInfo_args._Fields>, java.io.Serializable, Cloneable   {
207933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrderInfo_args");
210858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrderInfo_args");
207934
 
210859
 
207935
    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);
210860
    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);
207936
 
210861
 
Line 208853... Line 211778...
208853
        }
211778
        }
208854
        switch (field.id) {
211779
        switch (field.id) {
208855
          case 1: // ORDER_IDS
211780
          case 1: // ORDER_IDS
208856
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
211781
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
208857
              {
211782
              {
208858
                org.apache.thrift.protocol.TList _list672 = iprot.readListBegin();
211783
                org.apache.thrift.protocol.TList _list680 = iprot.readListBegin();
208859
                this.order_ids = new ArrayList<Long>(_list672.size);
211784
                this.order_ids = new ArrayList<Long>(_list680.size);
208860
                for (int _i673 = 0; _i673 < _list672.size; ++_i673)
211785
                for (int _i681 = 0; _i681 < _list680.size; ++_i681)
208861
                {
211786
                {
208862
                  long _elem674; // required
211787
                  long _elem682; // required
208863
                  _elem674 = iprot.readI64();
211788
                  _elem682 = iprot.readI64();
208864
                  this.order_ids.add(_elem674);
211789
                  this.order_ids.add(_elem682);
208865
                }
211790
                }
208866
                iprot.readListEnd();
211791
                iprot.readListEnd();
208867
              }
211792
              }
208868
            } else { 
211793
            } else { 
208869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
211794
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 208884... Line 211809...
208884
      oprot.writeStructBegin(STRUCT_DESC);
211809
      oprot.writeStructBegin(STRUCT_DESC);
208885
      if (this.order_ids != null) {
211810
      if (this.order_ids != null) {
208886
        oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);
211811
        oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);
208887
        {
211812
        {
208888
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.order_ids.size()));
211813
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.order_ids.size()));
208889
          for (long _iter675 : this.order_ids)
211814
          for (long _iter683 : this.order_ids)
208890
          {
211815
          {
208891
            oprot.writeI64(_iter675);
211816
            oprot.writeI64(_iter683);
208892
          }
211817
          }
208893
          oprot.writeListEnd();
211818
          oprot.writeListEnd();
208894
        }
211819
        }
208895
        oprot.writeFieldEnd();
211820
        oprot.writeFieldEnd();
208896
      }
211821
      }
Line 209193... Line 212118...
209193
        }
212118
        }
209194
        switch (field.id) {
212119
        switch (field.id) {
209195
          case 0: // SUCCESS
212120
          case 0: // SUCCESS
209196
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
212121
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
209197
              {
212122
              {
209198
                org.apache.thrift.protocol.TMap _map676 = iprot.readMapBegin();
212123
                org.apache.thrift.protocol.TMap _map684 = iprot.readMapBegin();
209199
                this.success = new HashMap<Long,List<ReturnOrderInfo>>(2*_map676.size);
212124
                this.success = new HashMap<Long,List<ReturnOrderInfo>>(2*_map684.size);
209200
                for (int _i677 = 0; _i677 < _map676.size; ++_i677)
212125
                for (int _i685 = 0; _i685 < _map684.size; ++_i685)
209201
                {
212126
                {
209202
                  long _key678; // required
212127
                  long _key686; // required
209203
                  List<ReturnOrderInfo> _val679; // required
212128
                  List<ReturnOrderInfo> _val687; // required
209204
                  _key678 = iprot.readI64();
212129
                  _key686 = iprot.readI64();
209205
                  {
212130
                  {
209206
                    org.apache.thrift.protocol.TList _list680 = iprot.readListBegin();
212131
                    org.apache.thrift.protocol.TList _list688 = iprot.readListBegin();
209207
                    _val679 = new ArrayList<ReturnOrderInfo>(_list680.size);
212132
                    _val687 = new ArrayList<ReturnOrderInfo>(_list688.size);
209208
                    for (int _i681 = 0; _i681 < _list680.size; ++_i681)
212133
                    for (int _i689 = 0; _i689 < _list688.size; ++_i689)
209209
                    {
212134
                    {
209210
                      ReturnOrderInfo _elem682; // required
212135
                      ReturnOrderInfo _elem690; // required
209211
                      _elem682 = new ReturnOrderInfo();
212136
                      _elem690 = new ReturnOrderInfo();
209212
                      _elem682.read(iprot);
212137
                      _elem690.read(iprot);
209213
                      _val679.add(_elem682);
212138
                      _val687.add(_elem690);
209214
                    }
212139
                    }
209215
                    iprot.readListEnd();
212140
                    iprot.readListEnd();
209216
                  }
212141
                  }
209217
                  this.success.put(_key678, _val679);
212142
                  this.success.put(_key686, _val687);
209218
                }
212143
                }
209219
                iprot.readMapEnd();
212144
                iprot.readMapEnd();
209220
              }
212145
              }
209221
            } else { 
212146
            } else { 
209222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
212147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 209236... Line 212161...
209236
 
212161
 
209237
      if (this.isSetSuccess()) {
212162
      if (this.isSetSuccess()) {
209238
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
212163
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
209239
        {
212164
        {
209240
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));
212165
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));
209241
          for (Map.Entry<Long, List<ReturnOrderInfo>> _iter683 : this.success.entrySet())
212166
          for (Map.Entry<Long, List<ReturnOrderInfo>> _iter691 : this.success.entrySet())
209242
          {
212167
          {
209243
            oprot.writeI64(_iter683.getKey());
212168
            oprot.writeI64(_iter691.getKey());
209244
            {
212169
            {
209245
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter683.getValue().size()));
212170
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter691.getValue().size()));
209246
              for (ReturnOrderInfo _iter684 : _iter683.getValue())
212171
              for (ReturnOrderInfo _iter692 : _iter691.getValue())
209247
              {
212172
              {
209248
                _iter684.write(oprot);
212173
                _iter692.write(oprot);
209249
              }
212174
              }
209250
              oprot.writeListEnd();
212175
              oprot.writeListEnd();
209251
            }
212176
            }
209252
          }
212177
          }
209253
          oprot.writeMapEnd();
212178
          oprot.writeMapEnd();
Line 209632... Line 212557...
209632
        }
212557
        }
209633
        switch (field.id) {
212558
        switch (field.id) {
209634
          case 1: // ORDER_IDS
212559
          case 1: // ORDER_IDS
209635
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
212560
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
209636
              {
212561
              {
209637
                org.apache.thrift.protocol.TList _list685 = iprot.readListBegin();
212562
                org.apache.thrift.protocol.TList _list693 = iprot.readListBegin();
209638
                this.order_ids = new ArrayList<Long>(_list685.size);
212563
                this.order_ids = new ArrayList<Long>(_list693.size);
209639
                for (int _i686 = 0; _i686 < _list685.size; ++_i686)
212564
                for (int _i694 = 0; _i694 < _list693.size; ++_i694)
209640
                {
212565
                {
209641
                  long _elem687; // required
212566
                  long _elem695; // required
209642
                  _elem687 = iprot.readI64();
212567
                  _elem695 = iprot.readI64();
209643
                  this.order_ids.add(_elem687);
212568
                  this.order_ids.add(_elem695);
209644
                }
212569
                }
209645
                iprot.readListEnd();
212570
                iprot.readListEnd();
209646
              }
212571
              }
209647
            } else { 
212572
            } else { 
209648
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
212573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
209649
            }
212574
            }
209650
            break;
212575
            break;
209651
          case 2: // STATUSES
212576
          case 2: // STATUSES
209652
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
212577
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
209653
              {
212578
              {
209654
                org.apache.thrift.protocol.TList _list688 = iprot.readListBegin();
212579
                org.apache.thrift.protocol.TList _list696 = iprot.readListBegin();
209655
                this.statuses = new ArrayList<String>(_list688.size);
212580
                this.statuses = new ArrayList<String>(_list696.size);
209656
                for (int _i689 = 0; _i689 < _list688.size; ++_i689)
212581
                for (int _i697 = 0; _i697 < _list696.size; ++_i697)
209657
                {
212582
                {
209658
                  String _elem690; // required
212583
                  String _elem698; // required
209659
                  _elem690 = iprot.readString();
212584
                  _elem698 = iprot.readString();
209660
                  this.statuses.add(_elem690);
212585
                  this.statuses.add(_elem698);
209661
                }
212586
                }
209662
                iprot.readListEnd();
212587
                iprot.readListEnd();
209663
              }
212588
              }
209664
            } else { 
212589
            } else { 
209665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
212590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 209680... Line 212605...
209680
      oprot.writeStructBegin(STRUCT_DESC);
212605
      oprot.writeStructBegin(STRUCT_DESC);
209681
      if (this.order_ids != null) {
212606
      if (this.order_ids != null) {
209682
        oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);
212607
        oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);
209683
        {
212608
        {
209684
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.order_ids.size()));
212609
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.order_ids.size()));
209685
          for (long _iter691 : this.order_ids)
212610
          for (long _iter699 : this.order_ids)
209686
          {
212611
          {
209687
            oprot.writeI64(_iter691);
212612
            oprot.writeI64(_iter699);
209688
          }
212613
          }
209689
          oprot.writeListEnd();
212614
          oprot.writeListEnd();
209690
        }
212615
        }
209691
        oprot.writeFieldEnd();
212616
        oprot.writeFieldEnd();
209692
      }
212617
      }
209693
      if (this.statuses != null) {
212618
      if (this.statuses != null) {
209694
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
212619
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
209695
        {
212620
        {
209696
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.statuses.size()));
212621
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.statuses.size()));
209697
          for (String _iter692 : this.statuses)
212622
          for (String _iter700 : this.statuses)
209698
          {
212623
          {
209699
            oprot.writeString(_iter692);
212624
            oprot.writeString(_iter700);
209700
          }
212625
          }
209701
          oprot.writeListEnd();
212626
          oprot.writeListEnd();
209702
        }
212627
        }
209703
        oprot.writeFieldEnd();
212628
        oprot.writeFieldEnd();
209704
      }
212629
      }
Line 210009... Line 212934...
210009
        }
212934
        }
210010
        switch (field.id) {
212935
        switch (field.id) {
210011
          case 0: // SUCCESS
212936
          case 0: // SUCCESS
210012
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
212937
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
210013
              {
212938
              {
210014
                org.apache.thrift.protocol.TMap _map693 = iprot.readMapBegin();
212939
                org.apache.thrift.protocol.TMap _map701 = iprot.readMapBegin();
210015
                this.success = new HashMap<Long,List<ReturnOrderInfo>>(2*_map693.size);
212940
                this.success = new HashMap<Long,List<ReturnOrderInfo>>(2*_map701.size);
210016
                for (int _i694 = 0; _i694 < _map693.size; ++_i694)
212941
                for (int _i702 = 0; _i702 < _map701.size; ++_i702)
210017
                {
212942
                {
210018
                  long _key695; // required
212943
                  long _key703; // required
210019
                  List<ReturnOrderInfo> _val696; // required
212944
                  List<ReturnOrderInfo> _val704; // required
210020
                  _key695 = iprot.readI64();
212945
                  _key703 = iprot.readI64();
210021
                  {
212946
                  {
210022
                    org.apache.thrift.protocol.TList _list697 = iprot.readListBegin();
212947
                    org.apache.thrift.protocol.TList _list705 = iprot.readListBegin();
210023
                    _val696 = new ArrayList<ReturnOrderInfo>(_list697.size);
212948
                    _val704 = new ArrayList<ReturnOrderInfo>(_list705.size);
210024
                    for (int _i698 = 0; _i698 < _list697.size; ++_i698)
212949
                    for (int _i706 = 0; _i706 < _list705.size; ++_i706)
210025
                    {
212950
                    {
210026
                      ReturnOrderInfo _elem699; // required
212951
                      ReturnOrderInfo _elem707; // required
210027
                      _elem699 = new ReturnOrderInfo();
212952
                      _elem707 = new ReturnOrderInfo();
210028
                      _elem699.read(iprot);
212953
                      _elem707.read(iprot);
210029
                      _val696.add(_elem699);
212954
                      _val704.add(_elem707);
210030
                    }
212955
                    }
210031
                    iprot.readListEnd();
212956
                    iprot.readListEnd();
210032
                  }
212957
                  }
210033
                  this.success.put(_key695, _val696);
212958
                  this.success.put(_key703, _val704);
210034
                }
212959
                }
210035
                iprot.readMapEnd();
212960
                iprot.readMapEnd();
210036
              }
212961
              }
210037
            } else { 
212962
            } else { 
210038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
212963
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 210052... Line 212977...
210052
 
212977
 
210053
      if (this.isSetSuccess()) {
212978
      if (this.isSetSuccess()) {
210054
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
212979
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
210055
        {
212980
        {
210056
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));
212981
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));
210057
          for (Map.Entry<Long, List<ReturnOrderInfo>> _iter700 : this.success.entrySet())
212982
          for (Map.Entry<Long, List<ReturnOrderInfo>> _iter708 : this.success.entrySet())
210058
          {
212983
          {
210059
            oprot.writeI64(_iter700.getKey());
212984
            oprot.writeI64(_iter708.getKey());
210060
            {
212985
            {
210061
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter700.getValue().size()));
212986
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter708.getValue().size()));
210062
              for (ReturnOrderInfo _iter701 : _iter700.getValue())
212987
              for (ReturnOrderInfo _iter709 : _iter708.getValue())
210063
              {
212988
              {
210064
                _iter701.write(oprot);
212989
                _iter709.write(oprot);
210065
              }
212990
              }
210066
              oprot.writeListEnd();
212991
              oprot.writeListEnd();
210067
            }
212992
            }
210068
          }
212993
          }
210069
          oprot.writeMapEnd();
212994
          oprot.writeMapEnd();
Line 211045... Line 213970...
211045
        }
213970
        }
211046
        switch (field.id) {
213971
        switch (field.id) {
211047
          case 1: // ORDER_RETURN_INFOS_MAP
213972
          case 1: // ORDER_RETURN_INFOS_MAP
211048
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
213973
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
211049
              {
213974
              {
211050
                org.apache.thrift.protocol.TMap _map702 = iprot.readMapBegin();
213975
                org.apache.thrift.protocol.TMap _map710 = iprot.readMapBegin();
211051
                this.orderReturnInfosMap = new HashMap<Long,List<ReturnOrderInfo>>(2*_map702.size);
213976
                this.orderReturnInfosMap = new HashMap<Long,List<ReturnOrderInfo>>(2*_map710.size);
211052
                for (int _i703 = 0; _i703 < _map702.size; ++_i703)
213977
                for (int _i711 = 0; _i711 < _map710.size; ++_i711)
211053
                {
213978
                {
211054
                  long _key704; // required
213979
                  long _key712; // required
211055
                  List<ReturnOrderInfo> _val705; // required
213980
                  List<ReturnOrderInfo> _val713; // required
211056
                  _key704 = iprot.readI64();
213981
                  _key712 = iprot.readI64();
211057
                  {
213982
                  {
211058
                    org.apache.thrift.protocol.TList _list706 = iprot.readListBegin();
213983
                    org.apache.thrift.protocol.TList _list714 = iprot.readListBegin();
211059
                    _val705 = new ArrayList<ReturnOrderInfo>(_list706.size);
213984
                    _val713 = new ArrayList<ReturnOrderInfo>(_list714.size);
211060
                    for (int _i707 = 0; _i707 < _list706.size; ++_i707)
213985
                    for (int _i715 = 0; _i715 < _list714.size; ++_i715)
211061
                    {
213986
                    {
211062
                      ReturnOrderInfo _elem708; // required
213987
                      ReturnOrderInfo _elem716; // required
211063
                      _elem708 = new ReturnOrderInfo();
213988
                      _elem716 = new ReturnOrderInfo();
211064
                      _elem708.read(iprot);
213989
                      _elem716.read(iprot);
211065
                      _val705.add(_elem708);
213990
                      _val713.add(_elem716);
211066
                    }
213991
                    }
211067
                    iprot.readListEnd();
213992
                    iprot.readListEnd();
211068
                  }
213993
                  }
211069
                  this.orderReturnInfosMap.put(_key704, _val705);
213994
                  this.orderReturnInfosMap.put(_key712, _val713);
211070
                }
213995
                }
211071
                iprot.readMapEnd();
213996
                iprot.readMapEnd();
211072
              }
213997
              }
211073
            } else { 
213998
            } else { 
211074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
213999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 211089... Line 214014...
211089
      oprot.writeStructBegin(STRUCT_DESC);
214014
      oprot.writeStructBegin(STRUCT_DESC);
211090
      if (this.orderReturnInfosMap != null) {
214015
      if (this.orderReturnInfosMap != null) {
211091
        oprot.writeFieldBegin(ORDER_RETURN_INFOS_MAP_FIELD_DESC);
214016
        oprot.writeFieldBegin(ORDER_RETURN_INFOS_MAP_FIELD_DESC);
211092
        {
214017
        {
211093
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.orderReturnInfosMap.size()));
214018
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.orderReturnInfosMap.size()));
211094
          for (Map.Entry<Long, List<ReturnOrderInfo>> _iter709 : this.orderReturnInfosMap.entrySet())
214019
          for (Map.Entry<Long, List<ReturnOrderInfo>> _iter717 : this.orderReturnInfosMap.entrySet())
211095
          {
214020
          {
211096
            oprot.writeI64(_iter709.getKey());
214021
            oprot.writeI64(_iter717.getKey());
211097
            {
214022
            {
211098
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter709.getValue().size()));
214023
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter717.getValue().size()));
211099
              for (ReturnOrderInfo _iter710 : _iter709.getValue())
214024
              for (ReturnOrderInfo _iter718 : _iter717.getValue())
211100
              {
214025
              {
211101
                _iter710.write(oprot);
214026
                _iter718.write(oprot);
211102
              }
214027
              }
211103
              oprot.writeListEnd();
214028
              oprot.writeListEnd();
211104
            }
214029
            }
211105
          }
214030
          }
211106
          oprot.writeMapEnd();
214031
          oprot.writeMapEnd();
Line 211470... Line 214395...
211470
        }
214395
        }
211471
        switch (field.id) {
214396
        switch (field.id) {
211472
          case 0: // SUCCESS
214397
          case 0: // SUCCESS
211473
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
214398
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
211474
              {
214399
              {
211475
                org.apache.thrift.protocol.TMap _map711 = iprot.readMapBegin();
214400
                org.apache.thrift.protocol.TMap _map719 = iprot.readMapBegin();
211476
                this.success = new HashMap<Long,Boolean>(2*_map711.size);
214401
                this.success = new HashMap<Long,Boolean>(2*_map719.size);
211477
                for (int _i712 = 0; _i712 < _map711.size; ++_i712)
214402
                for (int _i720 = 0; _i720 < _map719.size; ++_i720)
211478
                {
214403
                {
211479
                  long _key713; // required
214404
                  long _key721; // required
211480
                  boolean _val714; // required
214405
                  boolean _val722; // required
211481
                  _key713 = iprot.readI64();
214406
                  _key721 = iprot.readI64();
211482
                  _val714 = iprot.readBool();
214407
                  _val722 = iprot.readBool();
211483
                  this.success.put(_key713, _val714);
214408
                  this.success.put(_key721, _val722);
211484
                }
214409
                }
211485
                iprot.readMapEnd();
214410
                iprot.readMapEnd();
211486
              }
214411
              }
211487
            } else { 
214412
            } else { 
211488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
214413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 211510... Line 214435...
211510
 
214435
 
211511
      if (this.isSetSuccess()) {
214436
      if (this.isSetSuccess()) {
211512
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
214437
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
211513
        {
214438
        {
211514
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.success.size()));
214439
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.success.size()));
211515
          for (Map.Entry<Long, Boolean> _iter715 : this.success.entrySet())
214440
          for (Map.Entry<Long, Boolean> _iter723 : this.success.entrySet())
211516
          {
214441
          {
211517
            oprot.writeI64(_iter715.getKey());
214442
            oprot.writeI64(_iter723.getKey());
211518
            oprot.writeBool(_iter715.getValue());
214443
            oprot.writeBool(_iter723.getValue());
211519
          }
214444
          }
211520
          oprot.writeMapEnd();
214445
          oprot.writeMapEnd();
211521
        }
214446
        }
211522
        oprot.writeFieldEnd();
214447
        oprot.writeFieldEnd();
211523
      } else if (this.isSetEx()) {
214448
      } else if (this.isSetEx()) {
Line 212117... Line 215042...
212117
        }
215042
        }
212118
        switch (field.id) {
215043
        switch (field.id) {
212119
          case 0: // SUCCESS
215044
          case 0: // SUCCESS
212120
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
215045
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
212121
              {
215046
              {
212122
                org.apache.thrift.protocol.TList _list716 = iprot.readListBegin();
215047
                org.apache.thrift.protocol.TList _list724 = iprot.readListBegin();
212123
                this.success = new ArrayList<ReturnOrderInfo>(_list716.size);
215048
                this.success = new ArrayList<ReturnOrderInfo>(_list724.size);
212124
                for (int _i717 = 0; _i717 < _list716.size; ++_i717)
215049
                for (int _i725 = 0; _i725 < _list724.size; ++_i725)
212125
                {
215050
                {
212126
                  ReturnOrderInfo _elem718; // required
215051
                  ReturnOrderInfo _elem726; // required
212127
                  _elem718 = new ReturnOrderInfo();
215052
                  _elem726 = new ReturnOrderInfo();
212128
                  _elem718.read(iprot);
215053
                  _elem726.read(iprot);
212129
                  this.success.add(_elem718);
215054
                  this.success.add(_elem726);
212130
                }
215055
                }
212131
                iprot.readListEnd();
215056
                iprot.readListEnd();
212132
              }
215057
              }
212133
            } else { 
215058
            } else { 
212134
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
215059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 212148... Line 215073...
212148
 
215073
 
212149
      if (this.isSetSuccess()) {
215074
      if (this.isSetSuccess()) {
212150
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
215075
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
212151
        {
215076
        {
212152
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
215077
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
212153
          for (ReturnOrderInfo _iter719 : this.success)
215078
          for (ReturnOrderInfo _iter727 : this.success)
212154
          {
215079
          {
212155
            _iter719.write(oprot);
215080
            _iter727.write(oprot);
212156
          }
215081
          }
212157
          oprot.writeListEnd();
215082
          oprot.writeListEnd();
212158
        }
215083
        }
212159
        oprot.writeFieldEnd();
215084
        oprot.writeFieldEnd();
212160
      }
215085
      }
Line 214162... Line 217087...
214162
        }
217087
        }
214163
        switch (field.id) {
217088
        switch (field.id) {
214164
          case 0: // SUCCESS
217089
          case 0: // SUCCESS
214165
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
217090
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
214166
              {
217091
              {
214167
                org.apache.thrift.protocol.TList _list720 = iprot.readListBegin();
217092
                org.apache.thrift.protocol.TList _list728 = iprot.readListBegin();
214168
                this.success = new ArrayList<ReturnOrderInfo>(_list720.size);
217093
                this.success = new ArrayList<ReturnOrderInfo>(_list728.size);
214169
                for (int _i721 = 0; _i721 < _list720.size; ++_i721)
217094
                for (int _i729 = 0; _i729 < _list728.size; ++_i729)
214170
                {
217095
                {
214171
                  ReturnOrderInfo _elem722; // required
217096
                  ReturnOrderInfo _elem730; // required
214172
                  _elem722 = new ReturnOrderInfo();
217097
                  _elem730 = new ReturnOrderInfo();
214173
                  _elem722.read(iprot);
217098
                  _elem730.read(iprot);
214174
                  this.success.add(_elem722);
217099
                  this.success.add(_elem730);
214175
                }
217100
                }
214176
                iprot.readListEnd();
217101
                iprot.readListEnd();
214177
              }
217102
              }
214178
            } else { 
217103
            } else { 
214179
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
217104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 214201... Line 217126...
214201
 
217126
 
214202
      if (this.isSetSuccess()) {
217127
      if (this.isSetSuccess()) {
214203
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
217128
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
214204
        {
217129
        {
214205
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
217130
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
214206
          for (ReturnOrderInfo _iter723 : this.success)
217131
          for (ReturnOrderInfo _iter731 : this.success)
214207
          {
217132
          {
214208
            _iter723.write(oprot);
217133
            _iter731.write(oprot);
214209
          }
217134
          }
214210
          oprot.writeListEnd();
217135
          oprot.writeListEnd();
214211
        }
217136
        }
214212
        oprot.writeFieldEnd();
217137
        oprot.writeFieldEnd();
214213
      } else if (this.isSetEx()) {
217138
      } else if (this.isSetEx()) {
Line 214679... Line 217604...
214679
            }
217604
            }
214680
            break;
217605
            break;
214681
          case 3: // RETURN_ORDER_IDS
217606
          case 3: // RETURN_ORDER_IDS
214682
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
217607
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
214683
              {
217608
              {
214684
                org.apache.thrift.protocol.TList _list724 = iprot.readListBegin();
217609
                org.apache.thrift.protocol.TList _list732 = iprot.readListBegin();
214685
                this.returnOrderIds = new ArrayList<Long>(_list724.size);
217610
                this.returnOrderIds = new ArrayList<Long>(_list732.size);
214686
                for (int _i725 = 0; _i725 < _list724.size; ++_i725)
217611
                for (int _i733 = 0; _i733 < _list732.size; ++_i733)
214687
                {
217612
                {
214688
                  long _elem726; // required
217613
                  long _elem734; // required
214689
                  _elem726 = iprot.readI64();
217614
                  _elem734 = iprot.readI64();
214690
                  this.returnOrderIds.add(_elem726);
217615
                  this.returnOrderIds.add(_elem734);
214691
                }
217616
                }
214692
                iprot.readListEnd();
217617
                iprot.readListEnd();
214693
              }
217618
              }
214694
            } else { 
217619
            } else { 
214695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
217620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 214718... Line 217643...
214718
      }
217643
      }
214719
      if (this.returnOrderIds != null) {
217644
      if (this.returnOrderIds != null) {
214720
        oprot.writeFieldBegin(RETURN_ORDER_IDS_FIELD_DESC);
217645
        oprot.writeFieldBegin(RETURN_ORDER_IDS_FIELD_DESC);
214721
        {
217646
        {
214722
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.returnOrderIds.size()));
217647
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.returnOrderIds.size()));
214723
          for (long _iter727 : this.returnOrderIds)
217648
          for (long _iter735 : this.returnOrderIds)
214724
          {
217649
          {
214725
            oprot.writeI64(_iter727);
217650
            oprot.writeI64(_iter735);
214726
          }
217651
          }
214727
          oprot.writeListEnd();
217652
          oprot.writeListEnd();
214728
        }
217653
        }
214729
        oprot.writeFieldEnd();
217654
        oprot.writeFieldEnd();
214730
      }
217655
      }
Line 215484... Line 218409...
215484
        }
218409
        }
215485
        switch (field.id) {
218410
        switch (field.id) {
215486
          case 1: // RETURN_ORDER_IDS
218411
          case 1: // RETURN_ORDER_IDS
215487
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
218412
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
215488
              {
218413
              {
215489
                org.apache.thrift.protocol.TList _list728 = iprot.readListBegin();
218414
                org.apache.thrift.protocol.TList _list736 = iprot.readListBegin();
215490
                this.returnOrderIds = new ArrayList<Long>(_list728.size);
218415
                this.returnOrderIds = new ArrayList<Long>(_list736.size);
215491
                for (int _i729 = 0; _i729 < _list728.size; ++_i729)
218416
                for (int _i737 = 0; _i737 < _list736.size; ++_i737)
215492
                {
218417
                {
215493
                  long _elem730; // required
218418
                  long _elem738; // required
215494
                  _elem730 = iprot.readI64();
218419
                  _elem738 = iprot.readI64();
215495
                  this.returnOrderIds.add(_elem730);
218420
                  this.returnOrderIds.add(_elem738);
215496
                }
218421
                }
215497
                iprot.readListEnd();
218422
                iprot.readListEnd();
215498
              }
218423
              }
215499
            } else { 
218424
            } else { 
215500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
218425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 215523... Line 218448...
215523
      oprot.writeStructBegin(STRUCT_DESC);
218448
      oprot.writeStructBegin(STRUCT_DESC);
215524
      if (this.returnOrderIds != null) {
218449
      if (this.returnOrderIds != null) {
215525
        oprot.writeFieldBegin(RETURN_ORDER_IDS_FIELD_DESC);
218450
        oprot.writeFieldBegin(RETURN_ORDER_IDS_FIELD_DESC);
215526
        {
218451
        {
215527
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.returnOrderIds.size()));
218452
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.returnOrderIds.size()));
215528
          for (long _iter731 : this.returnOrderIds)
218453
          for (long _iter739 : this.returnOrderIds)
215529
          {
218454
          {
215530
            oprot.writeI64(_iter731);
218455
            oprot.writeI64(_iter739);
215531
          }
218456
          }
215532
          oprot.writeListEnd();
218457
          oprot.writeListEnd();
215533
        }
218458
        }
215534
        oprot.writeFieldEnd();
218459
        oprot.writeFieldEnd();
215535
      }
218460
      }
Line 217251... Line 220176...
217251
        }
220176
        }
217252
        switch (field.id) {
220177
        switch (field.id) {
217253
          case 0: // SUCCESS
220178
          case 0: // SUCCESS
217254
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
220179
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
217255
              {
220180
              {
217256
                org.apache.thrift.protocol.TList _list732 = iprot.readListBegin();
220181
                org.apache.thrift.protocol.TList _list740 = iprot.readListBegin();
217257
                this.success = new ArrayList<ReturnOrderInfo>(_list732.size);
220182
                this.success = new ArrayList<ReturnOrderInfo>(_list740.size);
217258
                for (int _i733 = 0; _i733 < _list732.size; ++_i733)
220183
                for (int _i741 = 0; _i741 < _list740.size; ++_i741)
217259
                {
220184
                {
217260
                  ReturnOrderInfo _elem734; // required
220185
                  ReturnOrderInfo _elem742; // required
217261
                  _elem734 = new ReturnOrderInfo();
220186
                  _elem742 = new ReturnOrderInfo();
217262
                  _elem734.read(iprot);
220187
                  _elem742.read(iprot);
217263
                  this.success.add(_elem734);
220188
                  this.success.add(_elem742);
217264
                }
220189
                }
217265
                iprot.readListEnd();
220190
                iprot.readListEnd();
217266
              }
220191
              }
217267
            } else { 
220192
            } else { 
217268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
220193
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 217290... Line 220215...
217290
 
220215
 
217291
      if (this.isSetSuccess()) {
220216
      if (this.isSetSuccess()) {
217292
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
220217
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
217293
        {
220218
        {
217294
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
220219
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
217295
          for (ReturnOrderInfo _iter735 : this.success)
220220
          for (ReturnOrderInfo _iter743 : this.success)
217296
          {
220221
          {
217297
            _iter735.write(oprot);
220222
            _iter743.write(oprot);
217298
          }
220223
          }
217299
          oprot.writeListEnd();
220224
          oprot.writeListEnd();
217300
        }
220225
        }
217301
        oprot.writeFieldEnd();
220226
        oprot.writeFieldEnd();
217302
      } else if (this.isSetEx()) {
220227
      } else if (this.isSetEx()) {
Line 217691... Line 220616...
217691
        }
220616
        }
217692
        switch (field.id) {
220617
        switch (field.id) {
217693
          case 1: // RETURN_ORDERS_MAP
220618
          case 1: // RETURN_ORDERS_MAP
217694
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
220619
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
217695
              {
220620
              {
217696
                org.apache.thrift.protocol.TMap _map736 = iprot.readMapBegin();
220621
                org.apache.thrift.protocol.TMap _map744 = iprot.readMapBegin();
217697
                this.returnOrdersMap = new HashMap<Long,Map<String,String>>(2*_map736.size);
220622
                this.returnOrdersMap = new HashMap<Long,Map<String,String>>(2*_map744.size);
217698
                for (int _i737 = 0; _i737 < _map736.size; ++_i737)
220623
                for (int _i745 = 0; _i745 < _map744.size; ++_i745)
217699
                {
220624
                {
217700
                  long _key738; // required
220625
                  long _key746; // required
217701
                  Map<String,String> _val739; // required
220626
                  Map<String,String> _val747; // required
217702
                  _key738 = iprot.readI64();
220627
                  _key746 = iprot.readI64();
217703
                  {
220628
                  {
217704
                    org.apache.thrift.protocol.TMap _map740 = iprot.readMapBegin();
220629
                    org.apache.thrift.protocol.TMap _map748 = iprot.readMapBegin();
217705
                    _val739 = new HashMap<String,String>(2*_map740.size);
220630
                    _val747 = new HashMap<String,String>(2*_map748.size);
217706
                    for (int _i741 = 0; _i741 < _map740.size; ++_i741)
220631
                    for (int _i749 = 0; _i749 < _map748.size; ++_i749)
217707
                    {
220632
                    {
217708
                      String _key742; // required
220633
                      String _key750; // required
217709
                      String _val743; // required
220634
                      String _val751; // required
217710
                      _key742 = iprot.readString();
220635
                      _key750 = iprot.readString();
217711
                      _val743 = iprot.readString();
220636
                      _val751 = iprot.readString();
217712
                      _val739.put(_key742, _val743);
220637
                      _val747.put(_key750, _val751);
217713
                    }
220638
                    }
217714
                    iprot.readMapEnd();
220639
                    iprot.readMapEnd();
217715
                  }
220640
                  }
217716
                  this.returnOrdersMap.put(_key738, _val739);
220641
                  this.returnOrdersMap.put(_key746, _val747);
217717
                }
220642
                }
217718
                iprot.readMapEnd();
220643
                iprot.readMapEnd();
217719
              }
220644
              }
217720
            } else { 
220645
            } else { 
217721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
220646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 217744... Line 220669...
217744
      oprot.writeStructBegin(STRUCT_DESC);
220669
      oprot.writeStructBegin(STRUCT_DESC);
217745
      if (this.returnOrdersMap != null) {
220670
      if (this.returnOrdersMap != null) {
217746
        oprot.writeFieldBegin(RETURN_ORDERS_MAP_FIELD_DESC);
220671
        oprot.writeFieldBegin(RETURN_ORDERS_MAP_FIELD_DESC);
217747
        {
220672
        {
217748
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.returnOrdersMap.size()));
220673
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.returnOrdersMap.size()));
217749
          for (Map.Entry<Long, Map<String,String>> _iter744 : this.returnOrdersMap.entrySet())
220674
          for (Map.Entry<Long, Map<String,String>> _iter752 : this.returnOrdersMap.entrySet())
217750
          {
220675
          {
217751
            oprot.writeI64(_iter744.getKey());
220676
            oprot.writeI64(_iter752.getKey());
217752
            {
220677
            {
217753
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter744.getValue().size()));
220678
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter752.getValue().size()));
217754
              for (Map.Entry<String, String> _iter745 : _iter744.getValue().entrySet())
220679
              for (Map.Entry<String, String> _iter753 : _iter752.getValue().entrySet())
217755
              {
220680
              {
217756
                oprot.writeString(_iter745.getKey());
220681
                oprot.writeString(_iter753.getKey());
217757
                oprot.writeString(_iter745.getValue());
220682
                oprot.writeString(_iter753.getValue());
217758
              }
220683
              }
217759
              oprot.writeMapEnd();
220684
              oprot.writeMapEnd();
217760
            }
220685
            }
217761
          }
220686
          }
217762
          oprot.writeMapEnd();
220687
          oprot.writeMapEnd();
Line 218527... Line 221452...
218527
            }
221452
            }
218528
            break;
221453
            break;
218529
          case 2: // RETURN_ORDERS_MAP
221454
          case 2: // RETURN_ORDERS_MAP
218530
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
221455
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
218531
              {
221456
              {
218532
                org.apache.thrift.protocol.TMap _map746 = iprot.readMapBegin();
221457
                org.apache.thrift.protocol.TMap _map754 = iprot.readMapBegin();
218533
                this.returnOrdersMap = new HashMap<Long,Boolean>(2*_map746.size);
221458
                this.returnOrdersMap = new HashMap<Long,Boolean>(2*_map754.size);
218534
                for (int _i747 = 0; _i747 < _map746.size; ++_i747)
221459
                for (int _i755 = 0; _i755 < _map754.size; ++_i755)
218535
                {
221460
                {
218536
                  long _key748; // required
221461
                  long _key756; // required
218537
                  boolean _val749; // required
221462
                  boolean _val757; // required
218538
                  _key748 = iprot.readI64();
221463
                  _key756 = iprot.readI64();
218539
                  _val749 = iprot.readBool();
221464
                  _val757 = iprot.readBool();
218540
                  this.returnOrdersMap.put(_key748, _val749);
221465
                  this.returnOrdersMap.put(_key756, _val757);
218541
                }
221466
                }
218542
                iprot.readMapEnd();
221467
                iprot.readMapEnd();
218543
              }
221468
              }
218544
            } else { 
221469
            } else { 
218545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
221470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 218563... Line 221488...
218563
      oprot.writeFieldEnd();
221488
      oprot.writeFieldEnd();
218564
      if (this.returnOrdersMap != null) {
221489
      if (this.returnOrdersMap != null) {
218565
        oprot.writeFieldBegin(RETURN_ORDERS_MAP_FIELD_DESC);
221490
        oprot.writeFieldBegin(RETURN_ORDERS_MAP_FIELD_DESC);
218566
        {
221491
        {
218567
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.returnOrdersMap.size()));
221492
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.returnOrdersMap.size()));
218568
          for (Map.Entry<Long, Boolean> _iter750 : this.returnOrdersMap.entrySet())
221493
          for (Map.Entry<Long, Boolean> _iter758 : this.returnOrdersMap.entrySet())
218569
          {
221494
          {
218570
            oprot.writeI64(_iter750.getKey());
221495
            oprot.writeI64(_iter758.getKey());
218571
            oprot.writeBool(_iter750.getValue());
221496
            oprot.writeBool(_iter758.getValue());
218572
          }
221497
          }
218573
          oprot.writeMapEnd();
221498
          oprot.writeMapEnd();
218574
        }
221499
        }
218575
        oprot.writeFieldEnd();
221500
        oprot.writeFieldEnd();
218576
      }
221501
      }
Line 219348... Line 222273...
219348
            }
222273
            }
219349
            break;
222274
            break;
219350
          case 2: // RETURN_ORDERS_MAP
222275
          case 2: // RETURN_ORDERS_MAP
219351
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
222276
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
219352
              {
222277
              {
219353
                org.apache.thrift.protocol.TMap _map751 = iprot.readMapBegin();
222278
                org.apache.thrift.protocol.TMap _map759 = iprot.readMapBegin();
219354
                this.returnOrdersMap = new HashMap<Long,Map<String,String>>(2*_map751.size);
222279
                this.returnOrdersMap = new HashMap<Long,Map<String,String>>(2*_map759.size);
219355
                for (int _i752 = 0; _i752 < _map751.size; ++_i752)
222280
                for (int _i760 = 0; _i760 < _map759.size; ++_i760)
219356
                {
222281
                {
219357
                  long _key753; // required
222282
                  long _key761; // required
219358
                  Map<String,String> _val754; // required
222283
                  Map<String,String> _val762; // required
219359
                  _key753 = iprot.readI64();
222284
                  _key761 = iprot.readI64();
219360
                  {
222285
                  {
219361
                    org.apache.thrift.protocol.TMap _map755 = iprot.readMapBegin();
222286
                    org.apache.thrift.protocol.TMap _map763 = iprot.readMapBegin();
219362
                    _val754 = new HashMap<String,String>(2*_map755.size);
222287
                    _val762 = new HashMap<String,String>(2*_map763.size);
219363
                    for (int _i756 = 0; _i756 < _map755.size; ++_i756)
222288
                    for (int _i764 = 0; _i764 < _map763.size; ++_i764)
219364
                    {
222289
                    {
219365
                      String _key757; // required
222290
                      String _key765; // required
219366
                      String _val758; // required
222291
                      String _val766; // required
219367
                      _key757 = iprot.readString();
222292
                      _key765 = iprot.readString();
219368
                      _val758 = iprot.readString();
222293
                      _val766 = iprot.readString();
219369
                      _val754.put(_key757, _val758);
222294
                      _val762.put(_key765, _val766);
219370
                    }
222295
                    }
219371
                    iprot.readMapEnd();
222296
                    iprot.readMapEnd();
219372
                  }
222297
                  }
219373
                  this.returnOrdersMap.put(_key753, _val754);
222298
                  this.returnOrdersMap.put(_key761, _val762);
219374
                }
222299
                }
219375
                iprot.readMapEnd();
222300
                iprot.readMapEnd();
219376
              }
222301
              }
219377
            } else { 
222302
            } else { 
219378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
222303
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 219396... Line 222321...
219396
      oprot.writeFieldEnd();
222321
      oprot.writeFieldEnd();
219397
      if (this.returnOrdersMap != null) {
222322
      if (this.returnOrdersMap != null) {
219398
        oprot.writeFieldBegin(RETURN_ORDERS_MAP_FIELD_DESC);
222323
        oprot.writeFieldBegin(RETURN_ORDERS_MAP_FIELD_DESC);
219399
        {
222324
        {
219400
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.returnOrdersMap.size()));
222325
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.returnOrdersMap.size()));
219401
          for (Map.Entry<Long, Map<String,String>> _iter759 : this.returnOrdersMap.entrySet())
222326
          for (Map.Entry<Long, Map<String,String>> _iter767 : this.returnOrdersMap.entrySet())
219402
          {
222327
          {
219403
            oprot.writeI64(_iter759.getKey());
222328
            oprot.writeI64(_iter767.getKey());
219404
            {
222329
            {
219405
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter759.getValue().size()));
222330
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter767.getValue().size()));
219406
              for (Map.Entry<String, String> _iter760 : _iter759.getValue().entrySet())
222331
              for (Map.Entry<String, String> _iter768 : _iter767.getValue().entrySet())
219407
              {
222332
              {
219408
                oprot.writeString(_iter760.getKey());
222333
                oprot.writeString(_iter768.getKey());
219409
                oprot.writeString(_iter760.getValue());
222334
                oprot.writeString(_iter768.getValue());
219410
              }
222335
              }
219411
              oprot.writeMapEnd();
222336
              oprot.writeMapEnd();
219412
            }
222337
            }
219413
          }
222338
          }
219414
          oprot.writeMapEnd();
222339
          oprot.writeMapEnd();
Line 220856... Line 223781...
220856
        }
223781
        }
220857
        switch (field.id) {
223782
        switch (field.id) {
220858
          case 1: // REFUND_ORDERS_MAP
223783
          case 1: // REFUND_ORDERS_MAP
220859
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
223784
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
220860
              {
223785
              {
220861
                org.apache.thrift.protocol.TMap _map761 = iprot.readMapBegin();
223786
                org.apache.thrift.protocol.TMap _map769 = iprot.readMapBegin();
220862
                this.refundOrdersMap = new HashMap<Long,Map<String,String>>(2*_map761.size);
223787
                this.refundOrdersMap = new HashMap<Long,Map<String,String>>(2*_map769.size);
220863
                for (int _i762 = 0; _i762 < _map761.size; ++_i762)
223788
                for (int _i770 = 0; _i770 < _map769.size; ++_i770)
220864
                {
223789
                {
220865
                  long _key763; // required
223790
                  long _key771; // required
220866
                  Map<String,String> _val764; // required
223791
                  Map<String,String> _val772; // required
220867
                  _key763 = iprot.readI64();
223792
                  _key771 = iprot.readI64();
220868
                  {
223793
                  {
220869
                    org.apache.thrift.protocol.TMap _map765 = iprot.readMapBegin();
223794
                    org.apache.thrift.protocol.TMap _map773 = iprot.readMapBegin();
220870
                    _val764 = new HashMap<String,String>(2*_map765.size);
223795
                    _val772 = new HashMap<String,String>(2*_map773.size);
220871
                    for (int _i766 = 0; _i766 < _map765.size; ++_i766)
223796
                    for (int _i774 = 0; _i774 < _map773.size; ++_i774)
220872
                    {
223797
                    {
220873
                      String _key767; // required
223798
                      String _key775; // required
220874
                      String _val768; // required
223799
                      String _val776; // required
220875
                      _key767 = iprot.readString();
223800
                      _key775 = iprot.readString();
220876
                      _val768 = iprot.readString();
223801
                      _val776 = iprot.readString();
220877
                      _val764.put(_key767, _val768);
223802
                      _val772.put(_key775, _val776);
220878
                    }
223803
                    }
220879
                    iprot.readMapEnd();
223804
                    iprot.readMapEnd();
220880
                  }
223805
                  }
220881
                  this.refundOrdersMap.put(_key763, _val764);
223806
                  this.refundOrdersMap.put(_key771, _val772);
220882
                }
223807
                }
220883
                iprot.readMapEnd();
223808
                iprot.readMapEnd();
220884
              }
223809
              }
220885
            } else { 
223810
            } else { 
220886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
223811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 220909... Line 223834...
220909
      oprot.writeStructBegin(STRUCT_DESC);
223834
      oprot.writeStructBegin(STRUCT_DESC);
220910
      if (this.refundOrdersMap != null) {
223835
      if (this.refundOrdersMap != null) {
220911
        oprot.writeFieldBegin(REFUND_ORDERS_MAP_FIELD_DESC);
223836
        oprot.writeFieldBegin(REFUND_ORDERS_MAP_FIELD_DESC);
220912
        {
223837
        {
220913
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.refundOrdersMap.size()));
223838
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.refundOrdersMap.size()));
220914
          for (Map.Entry<Long, Map<String,String>> _iter769 : this.refundOrdersMap.entrySet())
223839
          for (Map.Entry<Long, Map<String,String>> _iter777 : this.refundOrdersMap.entrySet())
220915
          {
223840
          {
220916
            oprot.writeI64(_iter769.getKey());
223841
            oprot.writeI64(_iter777.getKey());
220917
            {
223842
            {
220918
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter769.getValue().size()));
223843
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, _iter777.getValue().size()));
220919
              for (Map.Entry<String, String> _iter770 : _iter769.getValue().entrySet())
223844
              for (Map.Entry<String, String> _iter778 : _iter777.getValue().entrySet())
220920
              {
223845
              {
220921
                oprot.writeString(_iter770.getKey());
223846
                oprot.writeString(_iter778.getKey());
220922
                oprot.writeString(_iter770.getValue());
223847
                oprot.writeString(_iter778.getValue());
220923
              }
223848
              }
220924
              oprot.writeMapEnd();
223849
              oprot.writeMapEnd();
220925
            }
223850
            }
220926
          }
223851
          }
220927
          oprot.writeMapEnd();
223852
          oprot.writeMapEnd();
Line 221883... Line 224808...
221883
        }
224808
        }
221884
        switch (field.id) {
224809
        switch (field.id) {
221885
          case 1: // STATUS_LIST
224810
          case 1: // STATUS_LIST
221886
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
224811
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
221887
              {
224812
              {
221888
                org.apache.thrift.protocol.TList _list771 = iprot.readListBegin();
224813
                org.apache.thrift.protocol.TList _list779 = iprot.readListBegin();
221889
                this.statusList = new ArrayList<ReturnTransactionStatus>(_list771.size);
224814
                this.statusList = new ArrayList<ReturnTransactionStatus>(_list779.size);
221890
                for (int _i772 = 0; _i772 < _list771.size; ++_i772)
224815
                for (int _i780 = 0; _i780 < _list779.size; ++_i780)
221891
                {
224816
                {
221892
                  ReturnTransactionStatus _elem773; // required
224817
                  ReturnTransactionStatus _elem781; // required
221893
                  _elem773 = ReturnTransactionStatus.findByValue(iprot.readI32());
224818
                  _elem781 = ReturnTransactionStatus.findByValue(iprot.readI32());
221894
                  this.statusList.add(_elem773);
224819
                  this.statusList.add(_elem781);
221895
                }
224820
                }
221896
                iprot.readListEnd();
224821
                iprot.readListEnd();
221897
              }
224822
              }
221898
            } else { 
224823
            } else { 
221899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
224824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 221944... Line 224869...
221944
      oprot.writeStructBegin(STRUCT_DESC);
224869
      oprot.writeStructBegin(STRUCT_DESC);
221945
      if (this.statusList != null) {
224870
      if (this.statusList != null) {
221946
        oprot.writeFieldBegin(STATUS_LIST_FIELD_DESC);
224871
        oprot.writeFieldBegin(STATUS_LIST_FIELD_DESC);
221947
        {
224872
        {
221948
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statusList.size()));
224873
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statusList.size()));
221949
          for (ReturnTransactionStatus _iter774 : this.statusList)
224874
          for (ReturnTransactionStatus _iter782 : this.statusList)
221950
          {
224875
          {
221951
            oprot.writeI32(_iter774.getValue());
224876
            oprot.writeI32(_iter782.getValue());
221952
          }
224877
          }
221953
          oprot.writeListEnd();
224878
          oprot.writeListEnd();
221954
        }
224879
        }
221955
        oprot.writeFieldEnd();
224880
        oprot.writeFieldEnd();
221956
      }
224881
      }
Line 222354... Line 225279...
222354
        }
225279
        }
222355
        switch (field.id) {
225280
        switch (field.id) {
222356
          case 0: // SUCCESS
225281
          case 0: // SUCCESS
222357
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
225282
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
222358
              {
225283
              {
222359
                org.apache.thrift.protocol.TList _list775 = iprot.readListBegin();
225284
                org.apache.thrift.protocol.TList _list783 = iprot.readListBegin();
222360
                this.success = new ArrayList<ReturnTransaction>(_list775.size);
225285
                this.success = new ArrayList<ReturnTransaction>(_list783.size);
222361
                for (int _i776 = 0; _i776 < _list775.size; ++_i776)
225286
                for (int _i784 = 0; _i784 < _list783.size; ++_i784)
222362
                {
225287
                {
222363
                  ReturnTransaction _elem777; // required
225288
                  ReturnTransaction _elem785; // required
222364
                  _elem777 = new ReturnTransaction();
225289
                  _elem785 = new ReturnTransaction();
222365
                  _elem777.read(iprot);
225290
                  _elem785.read(iprot);
222366
                  this.success.add(_elem777);
225291
                  this.success.add(_elem785);
222367
                }
225292
                }
222368
                iprot.readListEnd();
225293
                iprot.readListEnd();
222369
              }
225294
              }
222370
            } else { 
225295
            } else { 
222371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
225296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 222393... Line 225318...
222393
 
225318
 
222394
      if (this.isSetSuccess()) {
225319
      if (this.isSetSuccess()) {
222395
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
225320
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
222396
        {
225321
        {
222397
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
225322
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
222398
          for (ReturnTransaction _iter778 : this.success)
225323
          for (ReturnTransaction _iter786 : this.success)
222399
          {
225324
          {
222400
            _iter778.write(oprot);
225325
            _iter786.write(oprot);
222401
          }
225326
          }
222402
          oprot.writeListEnd();
225327
          oprot.writeListEnd();
222403
        }
225328
        }
222404
        oprot.writeFieldEnd();
225329
        oprot.writeFieldEnd();
222405
      } else if (this.isSetEx()) {
225330
      } else if (this.isSetEx()) {