Skip to content

Commit

Permalink
add binInq request
Browse files Browse the repository at this point in the history
  • Loading branch information
sportakal committed May 30, 2022
1 parent 9f21a86 commit f7f6878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
2 changes: 2 additions & 0 deletions src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ public function setCommentList(array $CommentList): void
*/
public function addItem(Item $item): void
{
$item_count = count($this->ItemList);
$item->setNumber($item_count + 1);
$this->ItemList[] = $item;
}

Expand Down
44 changes: 0 additions & 44 deletions src/Utils/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,48 +50,4 @@ public function getValue($key)
{
return (new XmlParser($this->getRawBody()))->getValue($key);
}

/**
* @return array|string
* @throws \JsonException
*/
public function getResult()
{
return $this->getValue($this->requestMethod . 'Result');
}

/**
* @return bool
*/
public function isSuccessful(): bool
{
return $this->getResult()['ServiceResult'] === 'Successful';
}

/**
* @return string
* @throws \JsonException
*/
public function getStatus(): string
{
return $this->getResult()['ServiceResult'];
}

/**
* @return string
* @throws \JsonException
*/
public function getStatusDesc(): string
{
return $this->getResult()['ServiceResultDescription'];
}

/**
* @return string
* @throws \JsonException
*/
public function getErrorCode(): string
{
return $this->getResult()['ErrorCode'];
}
}

0 comments on commit f7f6878

Please sign in to comment.