@@ -79,15 +79,27 @@ $response = $client->update($entityId, $data);
7979$response = $api->country()->getAll();
8080```
8181
82- ### Invoices Endpoint
82+ ### Credit Notes Endpoint
8383``` php
84- $voucherList = $api->invoice()->getVoucherListClient(); // see VoucherlistClient Documentation
85- $response = $api->invoice()->get($entityId);
86- $response = $api->invoice()->create($data);
87- $response = $api->invoice()->document($entityId); // get document ID
88- $response = $api->invoice()->document($entityId, true); // get file content
89- $response = $api->invoice()->document($entityId, true, 'image/*'); // accept only images
90- $response = $api->invoice()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
84+ $voucherList = $api->creditNote()->getVoucherListClient(); // see VoucherlistClient Documentation
85+ $response = $api->creditNote()->get($entityId);
86+ $response = $api->creditNote()->create($data);
87+ $response = $api->creditNote()->create($data, true); // finalized
88+ $response = $api->creditNote()->document($entityId); // get document ID
89+ $response = $api->creditNote()->document($entityId, true); // get file content
90+ $response = $api->creditNote()->document($entityId, true, 'image/*'); // accept only images
91+ $response = $api->creditNote()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
92+ ```
93+
94+ ### Deliverys Notes Endpoint
95+ ``` php
96+ $voucherList = $api->deliveryNote()->getVoucherListClient(); // see VoucherlistClient Documentation
97+ $response = $api->deliveryNote()->get($entityId);
98+ $response = $api->deliveryNote()->create($data);
99+ $response = $api->deliveryNote()->document($entityId); // get document ID
100+ $response = $api->deliveryNote()->document($entityId, true); // get file content
101+ $response = $api->deliveryNote()->document($entityId, true, 'image/*'); // accept only images
102+ $response = $api->deliveryNote()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
91103```
92104
93105### Down Payment Invoices Endpoint
@@ -101,50 +113,43 @@ $response = $api->downPaymentInvoice()->document($entityId, true, 'image/*'); //
101113$response = $api->downPaymentInvoice()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
102114```
103115
104- ### Order Confirmation Endpoint
116+ ### Event Subscriptions Endpooint
105117``` php
106- $voucherList = $api->orderConfirmation()->getVoucherListClient(); // see VoucherlistClient Documentation
107- $response = $api->orderConfirmation()->get($entityId);
108- $response = $api->orderConfirmation()->create($data);
109- $response = $api->orderConfirmation()->document($entityId); // get document ID
110- $response = $api->orderConfirmation()->document($entityId, true); // get file content
111- $response = $api->orderConfirmation()->document($entityId, true, 'image/*'); // accept only images
112- $response = $api->orderConfirmation()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
118+ // TODO: get
119+ $response = $api->voucher()->create($data);
120+ $response = $api->voucher()->delete($entityId);
121+ $response = $api->voucher()->getAll();
113122```
114123
115- ### Quotation Endpoint
124+ ### File Endpoint
116125``` php
117- $voucherList = $api->quotation()->getVoucherListClient(); // see VoucherlistClient Documentation
118- $response = $api->quotation()->get($entityId);
119- $response = $api->quotation()->create($data);
120- $response = $api->quotation()->document($entityId); // get document ID
121- $response = $api->quotation()->document($entityId, true); // get file content
122- $response = $api->quotation()->document($entityId, true, 'image/*'); // accept only images
123- $response = $api->quotation()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
126+ $response = $api->file()->upload($filePath, $voucherType);
127+ $response = $api->file()->get($entityId); // accept every file
128+ $response = $api->file()->get($entityId, 'image/*'); // accept only images
129+ $response = $api->file()->get($entityId, 'application/xml'); // get XRechung XML File (if possible)
124130```
125131
126- ### Voucher Endpoint
132+ ### Invoices Endpoint
127133``` php
128- $response = $api->voucher ()->get($entityId);
129- $response = $api->voucher ()->create($data );
130- $response = $api->voucher ()->update($entityId, $data);
131- $response = $api->voucher ()->document($entityId ); // get document ID
132- $response = $api->voucher ()->document($entityId, true ); // get file content
133- $response = $api->voucher ()->document($entityId, true, 'image/*' ); // accept only images
134- $response = $api->voucher ()->document($entityId, true, 'application/xml '); // get XRechung XML File (if possible)
135- $response = $api->voucher ()->upload($entitiyId, $filepath);
134+ $voucherList = $api->invoice ()->getVoucherListClient(); // see VoucherlistClient Documentation
135+ $response = $api->invoice ()->get($entityId );
136+ $response = $api->invoice ()->create( $data);
137+ $response = $api->invoice ()->create($data, true ); // finalized
138+ $response = $api->invoice ()->document($entityId); // get document ID
139+ $response = $api->invoice ()->document($entityId, true); // get file content
140+ $response = $api->invoice ()->document($entityId, true, 'image/* '); // accept only images
141+ $response = $api->invoice ()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
136142```
137143
138-
139- ### Credit Notes Endpoint
144+ ### Order Confirmation Endpoint
140145``` php
141- $voucherList = $api->creditNote ()->getVoucherListClient(); // see VoucherlistClient Documentation
142- $response = $api->creditNote ()->get($entityId);
143- $response = $api->creditNote ()->create($data);
144- $response = $api->creditNote ()->document($entityId); // get document ID
145- $response = $api->creditNote ()->document($entityId, true); // get file content
146- $response = $api->creditNote ()->document($entityId, true, 'image/*'); // accept only images
147- $response = $api->creditNote ()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
146+ $voucherList = $api->orderConfirmation ()->getVoucherListClient(); // see VoucherlistClient Documentation
147+ $response = $api->orderConfirmation ()->get($entityId);
148+ $response = $api->orderConfirmation ()->create($data);
149+ $response = $api->orderConfirmation ()->document($entityId); // get document ID
150+ $response = $api->orderConfirmation ()->document($entityId, true); // get file content
151+ $response = $api->orderConfirmation ()->document($entityId, true, 'image/*'); // accept only images
152+ $response = $api->orderConfirmation ()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
148153```
149154
150155### Payment Endpoint
@@ -167,6 +172,18 @@ $response = $api->postingCategory()->getAll();
167172$response = $api->profile()->get();
168173```
169174
175+ ### Quotation Endpoint
176+ ``` php
177+ $voucherList = $api->quotation()->getVoucherListClient(); // see VoucherlistClient Documentation
178+ $response = $api->quotation()->get($entityId);
179+ $response = $api->quotation()->create($data);
180+ $response = $api->quotation()->create($data, true); // finalized
181+ $response = $api->quotation()->document($entityId); // get document ID
182+ $response = $api->quotation()->document($entityId, true); // get file content
183+ $response = $api->quotation()->document($entityId, true, 'image/*'); // accept only images
184+ $response = $api->quotation()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
185+ ```
186+
170187### Recurring Templates Endpoint
171188``` php
172189
@@ -184,6 +201,17 @@ $response = $client->getPage(0);
184201$response = $api->recurringTemplate()->get($entityId);
185202```
186203
204+ ### Voucher Endpoint
205+ ``` php
206+ $response = $api->voucher()->get($entityId);
207+ $response = $api->voucher()->create($data);
208+ $response = $api->voucher()->update($entityId, $data);
209+ $response = $api->voucher()->document($entityId); // get document ID
210+ $response = $api->voucher()->document($entityId, true); // get file content
211+ $response = $api->voucher()->document($entityId, true, 'image/*'); // accept only images
212+ $response = $api->voucher()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
213+ $response = $api->voucher()->upload($entitiyId, $filepath);
214+ ```
187215
188216### Voucherlist Endpoint
189217``` php
@@ -230,15 +258,6 @@ $client->updatedDateTo = new \DateTime('2023-12-01');
230258$response = $client->getPage(0);
231259```
232260
233- ### File Endpoint
234- ``` php
235- $response = $api->file()->upload($filePath, $voucherType);
236- $response = $api->file()->get($entityId); // accept every file
237- $response = $api->file()->get($entityId, 'image/*'); // accept only images
238- $response = $api->file()->get($entityId, 'application/xml'); // get XRechung XML File (if possible)
239- ```
240-
241-
242261### get JSON from Success and Error Response
243262
244263``` php
0 commit comments