Skip to content

Commit

Permalink
Merge branch 'feature/GetOEMPartApplicabilityMethod' into 'master'
Browse files Browse the repository at this point in the history
Методы добавления команд на поиск агрегатов по артикулу детали и коду каталога

See merge request web/guayaquillib!3
  • Loading branch information
Искорцев Дмитрий committed Jun 22, 2021
2 parents 069935d + e6bcf47 commit 3688417
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/data/GuayaquilRequestOEM.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,21 @@ function appendFindDetailApplicability($oem, $brand = '')
$this->appendCommand('FindDetailApplicability', array('Locale' => $this->locale, 'OEM' => $this->checkParam($oem), 'Brand' => $brand, 'Localized' => 'true'));
}

function GetOEMPartApplicability($article, $catalog_code, $ssd, $all = 0)
{
$params = array(
'Locale' => $this->locale,
'Catalog' => $catalog_code,
'OEM' => $article,
'ssd' => $ssd,
'All' => 0
);

if ($all)
$params['All'] = 1;

$this->appendCommand('GetOEMPartApplicability', $params);
}

public function appendExecCustomOperation($operation, $data)
{
Expand Down

0 comments on commit 3688417

Please sign in to comment.