esr-code-line
Advanced tools
+1
-1
| { | ||
| "name": "esr-code-line", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "A code line generator for orange payment slips used in Switzerland", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+9
-9
| # Code Line Generator for Orange Payment Slips used in Switzerland | ||
| This package contains utility functions for generating the code line on the orange payment slips used in Switzerland. The number is shown on the bottom right of the slip inside the white area: | ||
| This package contains utility functions for generating the code line on the orange payment slips used in Switzerland. The code is shown on the bottom right of the slip inside the white area: | ||
@@ -20,5 +20,5 @@  | ||
| The technical specification is from chapter 5 of the [Postfinance manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf). | ||
| The technical specification is from chapter 5 of the [Postfinance manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf#page=23). | ||
| Please note that the **QR-Bill replaces this standard** (see [paymentstandards.ch](https://www.paymentstandards.ch/)). Depending on the project it may be viable to skip straight to the newer standard. | ||
| Please note that the **QR-Bill replaces this standard** (see [paymentstandards.ch](https://www.paymentstandards.ch/)). Depending on the project it may be viable to skip ahead to this newer one. | ||
@@ -39,7 +39,7 @@ ## Installation | ||
| - `slipType` a code defining the type of the slip. E.g. "01" for a ISR in CHF. | ||
| - (red) `amountFrancsOrEuros` the main currency unit in either CHF or EUR. | ||
| - (red) `amountRappenOrCents` the fractional currency unit in Rappen or Cents. | ||
| - (green) `referenceNumber` the reference number with or without spaces. | ||
| - (blue) `customerNumber` the ISR customer number in CHF or EUR. Formatted VV-XXX-C (ISR code - serial number - check digit). | ||
| -  `slipType` a code defining the type of the slip. E.g. "01" for a ISR in CHF. See section 5.1 of the [manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf#page=26). | ||
| -  `amountFrancsOrEuros` the main currency unit in either CHF or EUR. | ||
| -  `amountRappenOrCents` the fractional currency unit in Rappen or Cents. | ||
| -  `referenceNumber` the reference number with or without spaces. | ||
| -  `customerNumber` the ISR customer number in CHF or EUR. Formatted VV-XXX-C. See section 5.1 of the [manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf#page=26). | ||
@@ -55,3 +55,3 @@ ```js | ||
| customerNumber: "01-162-8", | ||
| }); | ||
| }); // returns "0100003949753>120000000000234478943216899+ 010001628>" | ||
| ``` | ||
@@ -58,0 +58,0 @@ |
35421
1.61%