Skip to content

Commit

Permalink
docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
develart-projects committed Oct 20, 2023
1 parent 9d43394 commit 6a4167b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/params.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ example, `find()` methods expects `country` and `spedition` arguments, so create
instance first using `create()` static method and set the params:

```php
use OlzaLogistic\PpApi\Client\Params;

$params = Params::create()
->withCountry($country)
->withSpedition($spedition);
Expand Down
7 changes: 6 additions & 1 deletion docs/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ all methods return the payload in the same manner via an instance of the `Data`
the `Result` object:

```php
use OlzaLogistic\PpApi\Client\Params;
use OlzaLogistic\PpApi\Client\Model\Country;
use OlzaLogistic\PpApi\Client\Model\Spedition;


$params = Params::create()
->withCountry(Country::CZECH_REPUBLIC)
->withCountry(Country::CZECHIA)
->withSpedition(Spedition::PACKETA_IPP);
$result = $client->find($params);

Expand Down

0 comments on commit 6a4167b

Please sign in to comment.