PaymentTerms
in package
uses
Immutable
Read onlyYes
FinalYes
Structured payment terms. Serialised into BT-20 text (and structured elements where the profile allows).
Table of Contents
Properties
- $discounts : array<string|int, mixed>
- $dueDays : int|null
- $lateFeeTerms : PenaltyTerms|null
- $text : string|null
Methods
- __construct() : mixed
- isEmpty() : bool
- toArray() : array<string, mixed>
- with() : static
- Returns a copy with the given properties replaced.
Properties
$discounts
public
array<string|int, mixed>
$discounts
= []
Attributes
- #[Internal]
- #[ListOf]
- CashDiscount::class
$dueDays
public
int|null
$dueDays
= null
Attributes
- #[Internal]
$lateFeeTerms
public
PenaltyTerms|null
$lateFeeTerms
= null
Attributes
- #[Internal]
$text
public
string|null
$text
= null
Attributes
- #[Bt]
- 'BT-20'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:SpecifiedTradePaymentTerms/ram:Description'
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:PaymentTerms/cbc:Note'
Methods
__construct()
public
__construct([string|null $text = null ][, int|null $dueDays = null ][, array<int, CashDiscount> $discounts = [] ][, PenaltyTerms|null $lateFeeTerms = null ]) : mixed
Parameters
- $text : string|null = null
- $dueDays : int|null = null
- $discounts : array<int, CashDiscount> = []
- $lateFeeTerms : PenaltyTerms|null = null
isEmpty()
public
isEmpty() : bool
Return values
booltoArray()
public
toArray() : array<string, mixed>
Return values
array<string, mixed>with()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>