Skip to content

Commit

Permalink
Track ASIN
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkVaughn committed Jul 12, 2018
1 parent 1aa99b5 commit 64ad29b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions php/src/Snagshout/Promote/Model/ReviewFoundRequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class ReviewFoundRequestBody
* @var string
*/
protected $createdAt;
/**
* @var string
*/
protected $asin;
/**
* @var string
*/
Expand Down Expand Up @@ -59,6 +63,24 @@ public function setCreatedAt($createdAt = null)

return $this;
}
/**
* @return string
*/
public function getAsin()
{
return $this->asin;
}
/**
* @param string $asin
*
* @return self
*/
public function setAsin($asin = null)
{
$this->asin = $asin;

return $this;
}
/**
* @return string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public function denormalize($data, $class, $format = null, array $context = [])
if (property_exists($data, 'createdAt')) {
$object->setCreatedAt($data->{'createdAt'});
}
if (property_exists($data, 'asin')) {
$object->setAsin($data->{'asin'});
}
if (property_exists($data, 'title')) {
$object->setTitle($data->{'title'});
}
Expand Down Expand Up @@ -66,6 +69,9 @@ public function normalize($object, $format = null, array $context = [])
if (null !== $object->getCreatedAt()) {
$data->{'createdAt'} = $object->getCreatedAt();
}
if (null !== $object->getAsin()) {
$data->{'asin'} = $object->getAsin();
}
if (null !== $object->getTitle()) {
$data->{'title'} = $object->getTitle();
}
Expand Down

0 comments on commit 64ad29b

Please sign in to comment.