Update test command for api #172
This commit is contained in:
parent
2f30d0c7c3
commit
730a94f371
1 changed files with 7 additions and 7 deletions
|
|
@ -39,8 +39,9 @@ class TestCommand extends Command
|
||||||
// test
|
// test
|
||||||
$api->get('/capi/test');
|
$api->get('/capi/test');
|
||||||
|
|
||||||
/*
|
|
||||||
// TODO: shift this out of the bundle, since it's project specific
|
// TODO: shift this out of the bundle, since it's project specific
|
||||||
|
|
||||||
|
|
||||||
// warranty register
|
// warranty register
|
||||||
$serial = 'AJ34LJADR12134LKJL';
|
$serial = 'AJ34LJADR12134LKJL';
|
||||||
$plate_num = 'XEN918';
|
$plate_num = 'XEN918';
|
||||||
|
|
@ -48,22 +49,23 @@ class TestCommand extends Command
|
||||||
'serial' => $serial,
|
'serial' => $serial,
|
||||||
'plate_number' => $plate_num,
|
'plate_number' => $plate_num,
|
||||||
'warranty_class' => 'private',
|
'warranty_class' => 'private',
|
||||||
|
/*
|
||||||
'battery_model_id' => 438,
|
'battery_model_id' => 438,
|
||||||
'battery_size_id' => 1171,
|
'battery_size_id' => 1171,
|
||||||
|
*/
|
||||||
|
'sku' => 'WMEB24CB-CPN00-LX',
|
||||||
'date_purchase' => '20181001',
|
'date_purchase' => '20181001',
|
||||||
'date_expire' => '20191001',
|
'date_expire' => '20191001',
|
||||||
];
|
];
|
||||||
$api->post('/capi/warranties', $params);
|
$api->post('/capi/warranties', $params);
|
||||||
*/
|
|
||||||
|
|
||||||
// get all warranties
|
// get all warranties
|
||||||
$api->get('/capi/warranties');
|
$api->get('/capi/warranties');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
// warranty find
|
// warranty find
|
||||||
$api->get('/capi/warranties/' . $serial);
|
$api->get('/capi/warranties/' . $serial);
|
||||||
*/
|
|
||||||
|
|
||||||
// warranty claim
|
// warranty claim
|
||||||
$id = 86811;
|
$id = 86811;
|
||||||
|
|
@ -73,11 +75,8 @@ class TestCommand extends Command
|
||||||
];
|
];
|
||||||
$api->post('/capi/warranties/' . $id . '/claim', $params);
|
$api->post('/capi/warranties/' . $id . '/claim', $params);
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
// plate warranty
|
// plate warranty
|
||||||
$api->get('/capi/plates/' . $plate_num . '/warranties');
|
$api->get('/capi/plates/' . $plate_num . '/warranties');
|
||||||
*/
|
|
||||||
|
|
||||||
// battery
|
// battery
|
||||||
$api->get('/capi/battery_brands');
|
$api->get('/capi/battery_brands');
|
||||||
|
|
@ -87,5 +86,6 @@ class TestCommand extends Command
|
||||||
// vehicle
|
// vehicle
|
||||||
// $api->get('/capi/vehicle_manufacturers');
|
// $api->get('/capi/vehicle_manufacturers');
|
||||||
// $api->get('/capi/vehicles');
|
// $api->get('/capi/vehicles');
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue