diff --git a/app/Http/Controllers/OpenAPI/CompanyTokenSchema.php b/app/Http/Controllers/OpenAPI/CompanyTokenSchema.php index d3b77814b369..192eb3fbf54f 100644 --- a/app/Http/Controllers/OpenAPI/CompanyTokenSchema.php +++ b/app/Http/Controllers/OpenAPI/CompanyTokenSchema.php @@ -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"), * ) */ diff --git a/app/Http/Controllers/OpenAPI/SubscriptionSchema.php b/app/Http/Controllers/OpenAPI/WebhookSchema.php similarity index 94% rename from app/Http/Controllers/OpenAPI/SubscriptionSchema.php rename to app/Http/Controllers/OpenAPI/WebhookSchema.php index ba59cfaa64fc..210e1ade77c5 100644 --- a/app/Http/Controllers/OpenAPI/SubscriptionSchema.php +++ b/app/Http/Controllers/OpenAPI/WebhookSchema.php @@ -1,7 +1,7 @@ request->has('paid')) { + if($this->request->has('paid') && (bool)$this->request->input('paid') !== false) { + + $this->invoice->service()->markPaid()->save(); }