Compare commits
No commits in common. "ff7c93617241774212df935c6fe5c39b30d0bb76" and "e3142c34298fd18279af95f768f99ec14112c718" have entirely different histories.
ff7c936172
...
e3142c3429
@ -114,13 +114,6 @@ PostalPoint uses the Jimp library version 1.6 for creating and manipulating imag
|
|||||||
* `Jimp()`: The [JavaScript Image Manipulation Program](https://jimp-dev.github.io/jimp/). Access like so: `const {Jimp} = global.apis.graphics.Jimp();`.
|
* `Jimp()`: The [JavaScript Image Manipulation Program](https://jimp-dev.github.io/jimp/). Access like so: `const {Jimp} = global.apis.graphics.Jimp();`.
|
||||||
* `async loadFont(filename)`: Replacement for [Jimp's loadFont](https://jimp-dev.github.io/jimp/api/jimp/functions/loadfont/), which gets very confused about our JS environment and ends up crashing everything.
|
* `async loadFont(filename)`: Replacement for [Jimp's loadFont](https://jimp-dev.github.io/jimp/api/jimp/functions/loadfont/), which gets very confused about our JS environment and ends up crashing everything.
|
||||||
|
|
||||||
#### I18N
|
|
||||||
|
|
||||||
`global.apis.i18n.`:
|
|
||||||
|
|
||||||
* `country()`: Returns the 2-character country code that PostalPoint is running in (examples: "US", "CA").
|
|
||||||
* `currency()`: Returns the 3-character currency code (examples: "usd", "cad").
|
|
||||||
|
|
||||||
#### Kiosk
|
#### Kiosk
|
||||||
|
|
||||||
`global.apis.kiosk.`:
|
`global.apis.kiosk.`:
|
||||||
|
@ -34,8 +34,6 @@ async function purchase(rateid) {
|
|||||||
rate.retail_rate, 1, rate.cost_rate, 0
|
rate.retail_rate, 1, rate.cost_rate, 0
|
||||||
);
|
);
|
||||||
receiptitem.barcode = tracking;
|
receiptitem.barcode = tracking;
|
||||||
receiptitem.carrier = "Carrier Name";
|
|
||||||
receiptitem.service = "Service Name";
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
label: label,
|
label: label,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user