Skip to content

Commit

Permalink
WIP #10, дополнение документации
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaoda committed Jul 10, 2019
1 parent 4ddb474 commit d3b7001
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,18 @@ $response[0]->isFraud(); // ненадёжный
$response[0]->isReliable(); // надёжный
```

```php
$response = $client->services()->checkRecipient(
CheckRecipientRequest::create()
->addRecipient('123456 Москва, Варшавское шоссе, 37-45')
->addRecipient('654321 Владивосток, пер. Староконный, 12-98');
);

foreach ($response as $recipient) {
echo $recipient->getAddress.': '.$recipiend->isReliable();
}
```

### Документы
```php
$file = $client->documents()->orderF7Form('12345678');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ final class CheckRecipientRequest extends ApiRequest
{
private $items = [];

public static function create(): self
{
return new self();
}

public static function one(string $address, string $fullName, string $phone): self
{
$request = new self();
$request = self::create();

$request->addRecipient(...\func_get_args());

Expand Down

0 comments on commit d3b7001

Please sign in to comment.