
## SwissQRCodetext class

Class for encoding and decoding the text embedded in the SwissQR code.

```js
new SwissQRCodetext(bill)
```

Creates an instance of SwissQRCodetext.

| Parameter | Description |
| --- | --- |
| bill | SwissQR bill data |

**Throws:** BarcodeException

## Methods

| Name | Description |
| --- | --- |
| [getBarcodeType()](#getbarcodetype) | Gets barcode type. |
| [getBill()](#getbill) | SwissQR bill data |
| [getConstructedCodetext()](#getconstructedcodetext) | Construct codetext from SwissQR bill data |
| [initFromString(constructedCodetext)](#initfromstring) | Initializes Bill with constructed codetext. |

### getBarcodeType() {#getbarcodetype}

Gets barcode type.

**Returns:** Barcode type.

### getBill() {#getbill}

SwissQR bill data

### getConstructedCodetext() {#getconstructedcodetext}

Construct codetext from SwissQR bill data

**Returns:** Constructed codetext

### initFromString(constructedCodetext) {#initfromstring}

Initializes Bill with constructed codetext.

| Parameter | Description |
| --- | --- |
| constructedCodetext | Constructed codetext. |
