public IResponse createPaymentsHistoryRocket(List <RocketBalanceEN> pPaymentRocket, string pToken) { PaymentsRocketResponse response = new PaymentsRocketResponse(); //respuesta json PaymentsListResponse history = new PaymentsListResponse(); //objeto contiene lista history.RocketBalanceList = new List <RocketBalance>(); foreach (var item in pPaymentRocket) { RocketBalance rocketPaymentList = new RocketBalance(); rocketPaymentList.balanceID = item.BalanceID; rocketPaymentList.balanceAmount = item.BalanceAmount; rocketPaymentList.fromDate = item.FromDate; rocketPaymentList.toDate = item.ToDate; rocketPaymentList.status = item.Status; rocketPaymentList.conciliationDate = item.ConciliationDate; rocketPaymentList.profit = item.Profit; history.RocketBalanceList.Add(rocketPaymentList); } response.History = history; response.count = history.RocketBalanceList.Count; response.token = pToken; return(response); }
public IResponse CreateBalanceRocketResponse(RocketBalanceEN RocketBalance) { RocketBalance response = new RocketBalance(); response.balanceID = RocketBalance.BalanceID; response.balanceAmount = RocketBalance.BalanceAmount; response.fromDate = RocketBalance.FromDate; response.toDate = RocketBalance.ToDate; response.status = RocketBalance.Status; response.conciliationDate = RocketBalance.ConciliationDate; response.profit = RocketBalance.Profit; return(response); }