1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fixes for mailer

This commit is contained in:
David Bomba 2023-07-02 15:26:03 +10:00
parent 3f63cbc117
commit d5ab3cc02e
2 changed files with 38 additions and 1 deletions

View File

@ -15,14 +15,16 @@ use Illuminate\Mail\Mailable;
class NinjaMailer extends Mailable class NinjaMailer extends Mailable
{ {
public $mail_obj;
/** /**
* Create a new message instance. * Create a new message instance.
* *
* @param $mail_obj * @param $mail_obj
*/ */
public function __construct(public mixed $mail_obj) public function __construct($mail_obj)
{ {
$this->mail_obj = $mail_obj;
} }
/** /**

View File

@ -52,6 +52,10 @@
description: "A flag determining whether to display product details in the user interface" description: "A flag determining whether to display product details in the user interface"
type: boolean type: boolean
example: true example: true
show_product_cost:
description: "A flag determining whether to display product cost is shown in the user interface"
type: boolean
example: true
custom_fields: custom_fields:
description: "A mapping of custom fields for various objects within the company" description: "A mapping of custom fields for various objects within the company"
type: object type: object
@ -86,6 +90,37 @@
type: string type: string
format: binary format: binary
example: logo.png example: logo.png
company_key:
description: "The static company key hash used to identify the Company"
readOnly: true
type: string
example: "Vnb14bRlwiFjc5ckte6cfbygTRkn5IMQ"
client_can_register:
description: "A flag determining whether clients can register for the client portal"
type: boolean
example: true
enabled_modules:
type: integer
example: 2048
description: |
Bitmask representation of the modules that are enabled in the application
```
self::ENTITY_RECURRING_INVOICE => 1,
self::ENTITY_CREDIT => 2,
self::ENTITY_QUOTE => 4,
self::ENTITY_TASK => 8,
self::ENTITY_EXPENSE => 16,
self::ENTITY_PROJECT => 32,
self::ENTITY_VENDOR => 64,
self::ENTITY_TICKET => 128,
self::ENTITY_PROPOSAL => 256,
self::ENTITY_RECURRING_EXPENSE => 512,
self::ENTITY_RECURRING_TASK => 1024,
self::ENTITY_RECURRING_QUOTE => 2048,
```
settings: settings:
$ref: '#/components/schemas/CompanySettings' $ref: '#/components/schemas/CompanySettings'
type: object type: object