Merge branch '791-support-for-insurance-premiums-banner' into 783-rider-app-trade-in-support
This commit is contained in:
commit
0a4f78559c
9 changed files with 40 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -12,3 +12,4 @@
|
||||||
|
|
||||||
*.swp
|
*.swp
|
||||||
/public/warranty_uploads/*
|
/public/warranty_uploads/*
|
||||||
|
.vscode
|
||||||
|
|
|
||||||
|
|
@ -303,3 +303,8 @@ apiv2_insurance_application_create:
|
||||||
path: /apiv2/insurance/application
|
path: /apiv2/insurance/application
|
||||||
controller: App\Controller\CustomerAppAPI\InsuranceController::createApplication
|
controller: App\Controller\CustomerAppAPI\InsuranceController::createApplication
|
||||||
methods: [POST]
|
methods: [POST]
|
||||||
|
|
||||||
|
apiv2_insurance_premiums_banner:
|
||||||
|
path: /apiv2/insurance/premiums_banner
|
||||||
|
controller: App\Controller\CustomerAppAPI\InsuranceController::getPremiumsBanner
|
||||||
|
methods: [GET]
|
||||||
|
|
@ -15,6 +15,7 @@ parameters:
|
||||||
api_version: "%env(API_VERSION)%"
|
api_version: "%env(API_VERSION)%"
|
||||||
android_app_version: "%env(ANDROID_APP_VERSION)%"
|
android_app_version: "%env(ANDROID_APP_VERSION)%"
|
||||||
ios_app_version: "%env(IOS_APP_VERSION)%"
|
ios_app_version: "%env(IOS_APP_VERSION)%"
|
||||||
|
insurance_premiums_banner_url: "%env(INSURANCE_PREMIUMS_BANNER_URL)%"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# default configuration for services in *this* file
|
# default configuration for services in *this* file
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,6 @@ class ApiController extends BaseApiController
|
||||||
|
|
||||||
protected function getGeoErrorMessage()
|
protected function getGeoErrorMessage()
|
||||||
{
|
{
|
||||||
return 'Oops! Our service is limited to some areas in Metro Manila, Laguna, Cavite, Pampanga and Baguio only. We will update you as soon as we are able to cover your area';
|
return 'Our services are currently limited to some areas in Metro Manila, Baguio, Batangas, Laguna, Cavite, Pampanga, and Palawan. We will update you as soon as we are available in your area. Thank you for understanding. Keep safe!';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,20 @@ class InsuranceController extends ApiController
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getPremiumsBanner(Request $req)
|
||||||
|
{
|
||||||
|
// validate params
|
||||||
|
$validity = $this->validateRequest($req);
|
||||||
|
|
||||||
|
if (!$validity['is_valid']) {
|
||||||
|
return new ApiResponse(false, $validity['error']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return new ApiResponse(true, '', [
|
||||||
|
'url' => $this->getParameter('insurance_premiums_banner_url'),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
protected function getLineType($mv_type_id, $vehicle_use_type, $is_public = false)
|
protected function getLineType($mv_type_id, $vehicle_use_type, $is_public = false)
|
||||||
{
|
{
|
||||||
$line = '';
|
$line = '';
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,17 @@ class TransactionOrigin extends NameValue
|
||||||
const YOKOHAMA_TWITTER = 'yokohama_twitter';
|
const YOKOHAMA_TWITTER = 'yokohama_twitter';
|
||||||
const YOKOHAMA_INSTAGRAM = 'yokohama_instagram';
|
const YOKOHAMA_INSTAGRAM = 'yokohama_instagram';
|
||||||
const YOKOHAMA_CAROUSELL = 'yokohama_carousell';
|
const YOKOHAMA_CAROUSELL = 'yokohama_carousell';
|
||||||
|
const HOTLINE_CEBU = 'hotline_cebu';
|
||||||
|
const FACEBOOK_CEBU = 'facebook_cebu';
|
||||||
|
|
||||||
// TODO: for now, resq also gets the walk-in option
|
// TODO: for now, resq also gets the walk-in option
|
||||||
// resq also gets new YOKOHAMA options
|
// resq also gets new YOKOHAMA options
|
||||||
const COLLECTION = [
|
const COLLECTION = [
|
||||||
'call' => 'Hotline',
|
'call' => 'Hotline Manila',
|
||||||
|
'hotline_cebu' => 'Hotline Cebu',
|
||||||
'online' => 'Online',
|
'online' => 'Online',
|
||||||
'facebook' => 'Facebook',
|
'facebook' => 'Facebook Manila',
|
||||||
|
'facebook_cebu' => 'Facebook Cebu',
|
||||||
'vip' => 'VIP',
|
'vip' => 'VIP',
|
||||||
'mobile_app' => 'Mobile App',
|
'mobile_app' => 'Mobile App',
|
||||||
'walk_in' => 'Walk-in',
|
'walk_in' => 'Walk-in',
|
||||||
|
|
@ -33,6 +37,6 @@ class TransactionOrigin extends NameValue
|
||||||
'yokohama_op_facebook' => 'Yokohama OP Facebook',
|
'yokohama_op_facebook' => 'Yokohama OP Facebook',
|
||||||
'yokohama_twitter' => 'Yokohama Twitter',
|
'yokohama_twitter' => 'Yokohama Twitter',
|
||||||
'yokohama_instagram' => 'Yokohama Instagram',
|
'yokohama_instagram' => 'Yokohama Instagram',
|
||||||
'yokohama_carousell' => 'Yokohama Carousell',
|
'yokohama_carousell' => 'Yokohama Carousell'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2910,6 +2910,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
$params['status_cancelled'] = JOStatus::CANCELLED;
|
$params['status_cancelled'] = JOStatus::CANCELLED;
|
||||||
$params['hubs'] = [];
|
$params['hubs'] = [];
|
||||||
|
|
||||||
|
$branch_codes = [];
|
||||||
// format duration and distance into friendly time
|
// format duration and distance into friendly time
|
||||||
foreach ($hubs as $hub) {
|
foreach ($hubs as $hub) {
|
||||||
// duration
|
// duration
|
||||||
|
|
@ -4252,6 +4253,10 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
if ($rejection->getReason() == JORejectionReason::ADMINISTRATIVE)
|
if ($rejection->getReason() == JORejectionReason::ADMINISTRATIVE)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
// check if reason is discount
|
||||||
|
if ($rejection->getReason() == JORejectionReason::DISCOUNT)
|
||||||
|
return null;
|
||||||
|
|
||||||
// sms content
|
// sms content
|
||||||
// Job Order # - can get from jo
|
// Job Order # - can get from jo
|
||||||
// Order Date and Time - get from jo
|
// Order Date and Time - get from jo
|
||||||
|
|
|
||||||
|
|
@ -1231,6 +1231,8 @@ $(function() {
|
||||||
function selectPoint(lat, lng)
|
function selectPoint(lat, lng)
|
||||||
{
|
{
|
||||||
// check if point is in coverage area
|
// check if point is in coverage area
|
||||||
|
// commenting out the geofence call for CRM
|
||||||
|
/*
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: "{{ url('jo_geofence') }}",
|
url: "{{ url('jo_geofence') }}",
|
||||||
|
|
@ -1248,7 +1250,7 @@ $(function() {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}); */
|
||||||
|
|
||||||
// clear markers
|
// clear markers
|
||||||
markerLayerGroup.clearLayers();
|
markerLayerGroup.clearLayers();
|
||||||
|
|
|
||||||
|
|
@ -635,6 +635,8 @@ $(function() {
|
||||||
function selectPoint(lat, lng)
|
function selectPoint(lat, lng)
|
||||||
{
|
{
|
||||||
// check if point is in coverage area
|
// check if point is in coverage area
|
||||||
|
// commenting out the geofence call for CRM
|
||||||
|
/*
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: "{{ url('jo_geofence') }}",
|
url: "{{ url('jo_geofence') }}",
|
||||||
|
|
@ -652,7 +654,7 @@ $(function() {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}); */
|
||||||
|
|
||||||
// clear markers
|
// clear markers
|
||||||
markerLayerGroup.clearLayers();
|
markerLayerGroup.clearLayers();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue