3.3.5 • Published 1 year ago

@bbitgmbh/bbit.swiss-qr-bill v3.3.5

Weekly downloads
51
License
SEE LICENSE IN LI...
Repository
-
Last release
1 year ago

Swiss QR bill for Node.js and browsers

Main

Installation

yarn

yarn add @bbitgmbh/bbit.swiss-qr-bill

npm

npm install @bbitgmbh/bbit.swiss-qr-bill --save

Usage

import { BbitQRBillGenerator, IBbitQRBill, BbitQRBillLanguage, BbitQRBillAddressType } from '@bbitgmbh/bbit.swiss-qr-bill';

const defaultData: IBbitQRBill = {
  account: 'CH2830000011623852950',
  amount: 1234.55,
  currency: 'CHF',
  creditor: {
    type: QRBillAddressType.UNSTRUCTURED,
    name: 'bbit gmbh',
    address: 'Rainweg 10',
    postalCode: '3612',
    locality: 'Steffisburg',
    country: 'CH',
  },
  reference: '000000000000000012312312316',
  debtor: {
    type: QRBillAddressType.UNSTRUCTURED,
    name: 'Test AG',
    address: 'Musterstrasse 1',
    postalCode: '3600',
    locality: 'Thun',
    country: 'CH',
  },
  unstructuredMessage: 'Test message',
  billInformation: 'Test billing information',
  language: QRBillLanguage.DE,
};

// create pdf
// returns a Buffer in Node.js or a Blob in browsers
const qr = new BbitQRBillGenerator();
const bufferOrBlob = await qr.generate(defaultData);

Specification

Swiss Payment Standards 2019

Bill information structure

Validation

3.3.1

1 year ago

3.3.0

1 year ago

3.3.5

1 year ago

3.3.4

1 year ago

3.3.2

1 year ago

3.2.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.3

2 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.14

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.9

4 years ago