API reference / Quittio \ Core \ Data \ Extensions
ThirdPartyPayment
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Extensions\ThirdPartyPayment · Source
Amount collected on behalf of a third party (XRechnung extension, group BG-DEX-09). It is added to the amount due (BR-DEX-09).
Properties#
| Property | Type | Description |
|---|---|---|
$amount readonly | Brick\Money\Money | |
$description readonly | string | |
$type readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(string $type, Money $amount, string $description)| Parameter | Type | Description |
|---|---|---|
$type | string | |
$amount | Brick\Money\Money | |
$description | string |
with()#
public function with(array<string, mixed> $changes): staticReturns a copy with the given properties replaced.
| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static