Quittio 0.3 API

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

$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

toArray()

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>
Return values
static
On this page

Search results