private async Task <BaseResponse> FinalizeBookingAsync(string bookingId) { var response = new BaseResponse(); var apiResponse = await this._heroApiManager.FinalizeBookingAsync(bookingId); if (apiResponse.IsError()) { response.AddErrorMessages(apiResponse.GetErrorMessages()); return(response); } return(response); }
private async Task <BaseResponse> CreatePaymentAsync(string bookingId, double amount) { var response = new BaseResponse(); var apiRequest = new CreatePaymentRequest { BookingId = bookingId, Amount = amount, Method = 1, IsFinal = true }; var apiResponse = await this._heroApiManager.CreatePaymentAsync(apiRequest); if (apiResponse.IsError()) { response.AddErrorMessages(apiResponse.GetErrorMessages()); return(response); } return(response); }