1
0
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:
David Bomba 2020-07-07 20:56:28 +10:00
parent 0b2d4e7554
commit 89d15f1e2a
3 changed files with 5 additions and 2 deletions

View File

@ -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"),
* )
*/

View File

@ -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"),

View File

@ -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();
}