---
title: "PaymentTerms – API-Referenz · Quittio"
description: "Structured payment terms. Serialised into BT-20 text (and structured elements where the profile allows)."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Data/Payment/PaymentTerms"
locale: de
meta:
  "og:description": "Structured payment terms. Serialised into BT-20 text (and structured elements where the profile allows)."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "PaymentTerms – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [Data](https://quittio.dev/docs/api/Quittio/Core/Data) \\ [Payment](https://quittio.dev/docs/api/Quittio/Core/Data/Payment)

# PaymentTerms

final readonly class in quittio/core · uses [`Immutable`](https://quittio.dev/docs/api/Quittio/Core/Data/Concerns/Immutable)

`Quittio\Core\Data\Payment\PaymentTerms` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Data/Payment/PaymentTerms.php#L14)

Structured payment terms. Serialised into BT-20 text (and structured elements where the profile allows).

## Properties \#

| Property | Type | Description |
| --- | --- | --- |
| `$discounts` readonly | `list< [CashDiscount](https://quittio.dev/docs/api/Quittio/Core/Data/Payment/CashDiscount)>` | |
| `$dueDays` readonly | `?int` | |
| `$lateFeeTerms` readonly | `? [PenaltyTerms](https://quittio.dev/docs/api/Quittio/Core/Data/Payment/PenaltyTerms)` | |
| `$text` readonly | `?string` | |

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `->isEmpty()` | |
| `->toArray()` | |
| `->with()` | Returns a copy with the given properties replaced. |

### `__construct()`#

```
public function __construct(
    ?string $text = null,
    ?int $dueDays = null,
    list<CashDiscount> $discounts = [],
    ?PenaltyTerms $lateFeeTerms = null,
)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$text` | `?string` = `null` | |
| `$dueDays` | `?int` = `null` | |
| `$discounts` | `list< [CashDiscount](https://quittio.dev/docs/api/Quittio/Core/Data/Payment/CashDiscount)>` = `[]` | |
| `$lateFeeTerms` | `? [PenaltyTerms](https://quittio.dev/docs/api/Quittio/Core/Data/Payment/PenaltyTerms)` = `null` | |

### `isEmpty()`#

```
public function isEmpty(): bool
```

<dl><dt>Returns</dt>
<dd><code>bool</code></dd>
</dl>

### `toArray()`#

```
public function toArray(): array<string, mixed>
```

<dl><dt>Returns</dt>
<dd><code>array&lt;string, mixed&gt;</code></dd>
</dl>

### `with()`#

```
public function with(array<string, mixed> $changes): static
```

Returns a copy with the given properties replaced.

| Parameter | Type | Description |
| --- | --- | --- |
| `$changes` | `array<string, mixed>` | |

<dl><dt>Returns</dt>
<dd><code>static</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/Data/Payment/PaymentTerms#webpage","@type":"WebPage","description":"Structured payment terms. Serialised into BT-20 text (and structured elements where the profile allows).","name":"PaymentTerms – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Data/Payment/PaymentTerms","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Data/Payment/PaymentTerms"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```