mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for API Documentation
This commit is contained in:
parent
0b2d4e7554
commit
89d15f1e2a
@ -5,5 +5,6 @@
|
||||
* type="object",
|
||||
* @OA\Property(property="name", type="string", example="Token Name", description="The token name"),
|
||||
* @OA\Property(property="token", type="string", example="AS3df3jUUH765fhfd9KJuidj3JShjA", description="The token value"),
|
||||
* @OA\Property(property="is_system", type="boolean", example="true", description="Determines whether the token is created by the system rather than a user"),
|
||||
* )
|
||||
*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @OA\Schema(
|
||||
* schema="Subscription",
|
||||
* schema="Webhook",
|
||||
* type="object",
|
||||
* @OA\Property(property="id", type="string", example="AS3df3A", description="The subscription hashed id"),
|
||||
* @OA\Property(property="event_id", type="string", example="AS3df3A", description="The subscription event id"),
|
@ -52,7 +52,9 @@ class TriggeredActions extends AbstractService
|
||||
|
||||
}
|
||||
|
||||
if($this->request->has('paid')) {
|
||||
if($this->request->has('paid') && (bool)$this->request->input('paid') !== false) {
|
||||
|
||||
$this->invoice->service()->markPaid()->save();
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user