Skip to content

Commit 3d8040a

Browse files
committed
add print layouts Api method + readme
1 parent d5a187f commit 3d8040a

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ $response = $api->paymentCondition()->getAll();
183183
$response = $api->postingCategory()->getAll();
184184
```
185185

186+
### Print Layouts Endpoint
187+
```php
188+
$response = $api->printLayout()->getAll();
189+
```
190+
186191
### Profile Endpoint
187192
```php
188193
$response = $api->profile()->get();

src/Api.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Sysix\LexOffice\Clients\Payment;
2525
use Sysix\LexOffice\Clients\PaymentCondition;
2626
use Sysix\LexOffice\Clients\PostingCategory;
27+
use Sysix\LexOffice\Clients\PrintLayout;
2728
use Sysix\LexOffice\Clients\Profile;
2829
use Sysix\LexOffice\Clients\Quotation;
2930
use Sysix\LexOffice\Clients\RecurringTemplate;
@@ -149,6 +150,11 @@ public function postingCategory(): PostingCategory
149150
return new PostingCategory($this);
150151
}
151152

153+
public function printLayout(): PrintLayout
154+
{
155+
return new PrintLayout($this);
156+
}
157+
152158
public function profile(): Profile
153159
{
154160
return new Profile($this);

tests/ApiTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Sysix\LexOffice\Clients\Payment;
2020
use Sysix\LexOffice\Clients\PaymentCondition;
2121
use Sysix\LexOffice\Clients\PostingCategory;
22+
use Sysix\LexOffice\Clients\PrintLayout;
2223
use Sysix\LexOffice\Clients\Profile;
2324
use Sysix\LexOffice\Clients\Quotation;
2425
use Sysix\LexOffice\Clients\RecurringTemplate;
@@ -52,6 +53,7 @@ public function testClients(): void
5253
$this->assertInstanceOf(Payment::class, $stub->payment());
5354
$this->assertInstanceOf(PaymentCondition::class, $stub->paymentCondition());
5455
$this->assertInstanceOf(PostingCategory::class, $stub->postingCategory());
56+
$this->assertInstanceOf(PrintLayout::class, $stub->printLayout());
5557
$this->assertInstanceOf(Profile::class, $stub->profile());
5658
$this->assertInstanceOf(Quotation::class, $stub->quotation());
5759
$this->assertInstanceOf(RecurringTemplate::class, $stub->recurringTemplate());

0 commit comments

Comments
 (0)