Skip to content

Commit

Permalink
Add BuyerRequestedCancel (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcorbi authored Aug 9, 2024
1 parent f916ee8 commit f46fd23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AmazonOrderItemList.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ protected function parseXML($xml)
if (isset($item->BuyerCustomizedInfo->CustomizedURL)){
$this->itemList[$n]['BuyerCustomizedInfo'] = (string)$item->BuyerCustomizedInfo->CustomizedURL;
}
if (isset($item->BuyerRequestedCancel)){
$this->itemList[$n]['BuyerRequestedCancel']['isBuyerRequestedCancel'] = (bool)$item->BuyerRequestedCancel->isBuyerRequestedCancel;
$this->itemList[$n]['BuyerRequestedCancel']['buyerCancelReason'] = (string)$item->BuyerRequestedCancel->buyerCancelReason;
}
if (isset($item->PointsGranted)){
$this->itemList[$n]['PointsGranted']['PointsNumber'] = (string)$item->PointsGranted->PointsNumber;
$this->itemList[$n]['PointsGranted']['Amount'] = (string)$item->PointsGranted->PointsMonetaryValue->Amount;
Expand Down

0 comments on commit f46fd23

Please sign in to comment.