API reference / Quittio \ Core \ Data \ Payment
PaymentInstructions
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Payment\PaymentInstructions · Source
Payment instructions (BG-16).
Properties#
| Property | Type | Description |
|---|---|---|
$card readonly | ?PaymentCard | |
$creditTransfers readonly | list<CreditTransfer> | |
$directDebit readonly | ?DirectDebit | |
$meansCode readonly | PaymentMeansCode|RawCode | |
$meansText readonly | ?string | |
$remittanceInformation readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->primaryCreditTransfer() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
PaymentMeansCode|RawCode $meansCode,
?string $meansText = null,
?string $remittanceInformation = null,
list<CreditTransfer> $creditTransfers = [],
?PaymentCard $card = null,
?DirectDebit $directDebit = null,
)| Parameter | Type | Description |
|---|---|---|
$meansCode | PaymentMeansCode|RawCode | |
$meansText | ?string = null | |
$remittanceInformation | ?string = null | |
$creditTransfers | list<CreditTransfer> = [] | |
$card | ?PaymentCard = null | |
$directDebit | ?DirectDebit = null |
primaryCreditTransfer()#
public function primaryCreditTransfer(): ?CreditTransfer- Returns
?CreditTransfer
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