-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from Rogerrrrrrrs/development
Release v1.2.0
- Loading branch information
Showing
14 changed files
with
235 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const SwissQRBill = require("swissqrbill"); | ||
|
||
const data = { | ||
currency: "CHF", | ||
amount: 1199.95, | ||
reference: "210000000003139471430009017", | ||
creditor: { | ||
name: "Robert Schneider AG", | ||
address: "Rue du Lac 1268", | ||
zip: 2501, | ||
city: "Biel", | ||
account: "CH4431999123000889012", | ||
country: "CH" | ||
}, | ||
debitor: { | ||
name: "Pia-Maria Rutschmann-Schnyder", | ||
address: "Grosse Marktgasse 28", | ||
zip: 9400, | ||
city: "Rorschach", | ||
country: "CH" | ||
} | ||
}; | ||
|
||
const pdf = new SwissQRBill.PDF(data, "./output/callback.pdf", () => { | ||
console.log("File has been successfully created."); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const SwissQRBill = require("swissqrbill"); | ||
|
||
const data = { | ||
currency: "CHF", | ||
amount: 1199.95, | ||
reference: "210000000003139471430009017", | ||
creditor: { | ||
name: "Robert Schneider AG", | ||
address: "Rue du Lac 1268", | ||
zip: 2501, | ||
city: "Biel", | ||
account: "CH4431999123000889012", | ||
country: "CH" | ||
}, | ||
debitor: { | ||
name: "Pia-Maria Rutschmann-Schnyder", | ||
address: "Grosse Marktgasse 28", | ||
zip: 9400, | ||
city: "Rorschach", | ||
country: "CH" | ||
} | ||
}; | ||
|
||
const pdf = new SwissQRBill.PDF(data, "./output/event.pdf"); | ||
|
||
pdf.on("finish", () => { | ||
console.log("File has been successfully created."); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.