API reference / Quittio \ Core \ Builder \ Concerns
BuildsDelivery
trait in quittio/core
Quittio\Core\Builder\Concerns\BuildsDelivery · Source
Delivery information (BG-13) and the invoicing period (BG-14).
Part of InvoiceBuilder, which holds the state; use the builder, not the trait.
Methods#
| Method | Description |
|---|---|
->deliverTo() | Deliver-to party and address (BT-70, BG-15). |
->delivery() | Replaces the whole delivery information (BG-13), including the delivery date (BT-72). |
->deliveryDate() | Actual delivery or service date (BT-72). |
->invoicingPeriod() | Invoicing period (BG-14). |
deliverTo()#
public function deliverTo(
?string $recipientName,
?Address $address = null,
?Identifier $locationId = null,
): staticDeliver-to party and address (BT-70, BG-15).
| Parameter | Type | Description |
|---|---|---|
$recipientName | ?string | |
$address | ?Address = null | |
$locationId | ?Identifier = null |
- Returns
static
delivery()#
public function delivery(Delivery $delivery): staticReplaces the whole delivery information (BG-13), including the delivery date (BT-72).
| Parameter | Type | Description |
|---|---|---|
$delivery | Delivery |
- Returns
static
deliveryDate()#
public function deliveryDate(Date|DateTimeInterface|string $date): staticActual delivery or service date (BT-72).
| Parameter | Type | Description |
|---|---|---|
$date | Date|DateTimeInterface|string |
- Returns
static
invoicingPeriod()#
public function invoicingPeriod(
Date|string|null $start,
Date|string|null $end = null,
): staticInvoicing period (BG-14).
| Parameter | Type | Description |
|---|---|---|
$start | Date|string|null | |
$end | Date|string|null = null |
- Returns
static