Zum Inhalt springen

API reference / Quittio \ Core \ Builder

PaymentTermsBuilder

final class in quittio/core

Quittio\Core\Builder\PaymentTermsBuilder · Source

Fluent builder for structured payment terms (BT-20, BT-9).

Methods#

MethodDescription
->build()
->cashDiscount()Cash discount ("Skonto") for payment within $days days.
->dueInDays()Sets the payment target. The due date (BT-9) is derived from the issue date if not given explicitly.
::fromTerms()Continues existing terms (InvoiceBuilder::paymentTerms() with a callable after from()).
->lateFee()
->text()

build()#

public function build(string $currency): PaymentTerms
ParameterTypeDescription
$currencystring
Returns
PaymentTerms

cashDiscount()#

public function cashDiscount(int $days, string $percent, ?string $baseAmount = null): self

Cash discount ("Skonto") for payment within $days days.

ParameterTypeDescription
$daysint
$percentstring
$baseAmount?string = null
Returns
self

dueInDays()#

public function dueInDays(int $days): self

Sets the payment target. The due date (BT-9) is derived from the issue date if not given explicitly.

ParameterTypeDescription
$daysint
Returns
self

fromTerms()#

public static function fromTerms(PaymentTerms $terms): self

static

Continues existing terms (InvoiceBuilder::paymentTerms() with a callable after from()).

ParameterTypeDescription
$termsPaymentTerms
Returns
self

lateFee()#

public function lateFee(
    ?int $days = null,
    ?string $percent = null,
    ?string $text = null,
): self
ParameterTypeDescription
$days?int = null
$percent?string = null
$text?string = null
Returns
self

text()#

public function text(?string $text): self
ParameterTypeDescription
$text?string
Returns
self

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.