/// <summary> /// Get the repayment information associated with a given loan's Loan ID Sample request: GET /Loans/71abf3e6-d6a8-45d2-8394-55cc32260bee/repayments /// </summary> /// <exception cref="YL.Web.Api.ThirdParty.Loan.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="loanId">Loan ID (a string)</param> /// <param name="apiVersion"> (optional)</param> /// <returns>Task of LoanRepaymentModel</returns> public async System.Threading.Tasks.Task <LoanRepaymentModel> GetRepaymentsAsync(string loanId, string apiVersion = default(string)) { YL.Web.Api.ThirdParty.Loan.Client.Client.ApiResponse <LoanRepaymentModel> localVarResponse = await GetRepaymentsAsyncWithHttpInfo(loanId, apiVersion); return(localVarResponse.Data); }
/// <summary> /// Get the repayment information associated with a given loan's Loan ID Sample request: GET /Loans/71abf3e6-d6a8-45d2-8394-55cc32260bee/repayments /// </summary> /// <exception cref="YL.Web.Api.ThirdParty.Loan.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="loanId">Loan ID (a string)</param> /// <param name="apiVersion"> (optional)</param> /// <returns>LoanRepaymentModel</returns> public LoanRepaymentModel GetRepayments(string loanId, string apiVersion = default(string)) { YL.Web.Api.ThirdParty.Loan.Client.Client.ApiResponse <LoanRepaymentModel> localVarResponse = GetRepaymentsWithHttpInfo(loanId, apiVersion); return(localVarResponse.Data); }
/// <summary> /// Get all loans associated with your Customer ID Sample request: GET Loans/1cd09db1-e6d2-4d64-aeba-9e64b818461a/loans /// </summary> /// <exception cref="YL.Web.Api.ThirdParty.Loan.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="customerId">Customer ID (a string)</param> /// <param name="apiVersion"> (optional)</param> /// <returns>Task of List<LoansModel></returns> public async System.Threading.Tasks.Task <List <LoansModel> > GetAllLoansAsync(string customerId, string apiVersion = default(string)) { YL.Web.Api.ThirdParty.Loan.Client.Client.ApiResponse <List <LoansModel> > localVarResponse = await GetAllLoansAsyncWithHttpInfo(customerId, apiVersion); return(localVarResponse.Data); }
/// <summary> /// Get a specific loan by its Loan ID Sample request: GET Loans/71abf3e6-d6a8-45d2-8394-55cc32260bee /// </summary> /// <exception cref="YL.Web.Api.ThirdParty.Loan.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="loanId">Loan ID (a string)</param> /// <param name="apiVersion"> (optional)</param> /// <returns>List<LoanModel></returns> public List <LoanModel> GetLoan(string loanId, string apiVersion = default(string)) { YL.Web.Api.ThirdParty.Loan.Client.Client.ApiResponse <List <LoanModel> > localVarResponse = GetLoanWithHttpInfo(loanId, apiVersion); return(localVarResponse.Data); }
/// <summary> /// Get all loans associated with your Customer ID Sample request: GET Loans/1cd09db1-e6d2-4d64-aeba-9e64b818461a/loans /// </summary> /// <exception cref="YL.Web.Api.ThirdParty.Loan.Client.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="customerId">Customer ID (a string)</param> /// <param name="apiVersion"> (optional)</param> /// <returns>List<LoansModel></returns> public List <LoansModel> GetAllLoans(string customerId, string apiVersion = default(string)) { YL.Web.Api.ThirdParty.Loan.Client.Client.ApiResponse <List <LoansModel> > localVarResponse = GetAllLoansWithHttpInfo(customerId, apiVersion); return(localVarResponse.Data); }