Commit fb48d613 by Jansa Jose

J: hotel api

parent 9c5d327b
......@@ -664,6 +664,12 @@ class Validation_app_model extends CI_Model {
'message' => 'Tracking Id is null or empty'
)
),
'boardCode' => array(
'required' => array(
'code' => 'ER02',
'message' => 'Board Code Field is null or empty'
)
),
),
'hotel_book'=>array(
'auth_token' => array(
......
......@@ -2347,7 +2347,7 @@ class Webservice_model extends CI_Model {
$user_id = $this->auth_token_get($data['auth_token']);
if($user_id > 0){
$settings = getSettings();
$url = "https://trawex.biz/api/hotel_trawexv5/get_booking_terms";
$url = "https://trawex.biz/api/hotel_trawexv5/get_rate_rules";
$postData = array(
"user_id"=>$settings['trawex_user_id'],
"user_password"=>$settings['trawex_user_password'],
......@@ -2362,7 +2362,7 @@ class Webservice_model extends CI_Model {
"hotel_name"=>$data['hotel_name'],"infosource"=>$data['infosource'],
"meal_code"=>$data['meal_code'],
"rate_basis_id"=>$data['rate_basis_id'],
"room_code"=>$data['room_code'],
"room_code"=>$data['room_code'],"boardCode"=>$data['boardCode'],
"roomType_runno"=>$data['roomType_runno']);
$result = $this->passToJsonCurl($url,$postData);
if(!empty($result)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment