API reference / Quittio \ Laravel \ Contracts
InvoiceDefaults
interface in quittio/laravel
Quittio\Laravel\Contracts\InvoiceDefaults · Source
Sets the seller and its defaults (bank account, small business flag …) on the builders of Quittio::invoice() and of the document methods (Quittio::quote() …). The default binding takes them from config/quittio.php (ConfigInvoiceDefaults, Seller::apply()); quittio/managed binds the current issuer.
Methods#
| Method | Description |
|---|---|
->apply() | Sets the seller and its defaults on $builder. Called for every invoice builder of Quittio::invoice() and for the invoice builder of every document; ->seller() with another seller removes these values again. |
apply()#
public function apply(InvoiceBuilder $builder): voidSets the seller and its defaults on $builder. Called for every invoice builder of Quittio::invoice() and for the invoice builder of every document; ->seller() with another seller removes these values again.
| Parameter | Type | Description |
|---|---|---|
$builder | InvoiceBuilder |