-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.js.example
72 lines (63 loc) · 2.67 KB
/
settings.js.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
module.exports = {
// this is for the address labels only, not the prepaid shipping labels
allowLineBreaks: false, // allow automatic line breaking
// this is for the address labels only, not the prepaid shipping labels
padding: {
top: 15,
left: 15,
right: 15,
bottom: 15
},
// Good setting for U.S. addresses with no country on label
// this is for the address labels only, not the prepaid shipping labels
font: {
size: 55,
lineSpacing: 10,
color: '#000000',
normal: 'Inconsolata-Regular.ttf',
bold: 'Inconsolata-Bold.ttf'
},
/*
// Good setting for international address with country on label
font: {
size: 45,
lineSpacing: 10,
color: '#000000',
normal: 'Inconsolata-Regular.ttf',
bold: 'Inconsolata-Bold.ttf'
},
*/
label: {
// only change width and height if using different label paper
// this is for the address labels only, not the prepaid shipping labels
width: 1083, // in pixels,
height: 336 // in pixels
},
easypost: {
apiKeyTesting: '0000000000000000000000', // your easypost testing API key
apiKey: '1111111111111111111111', // your real actual easypost API key
printer: 'Zebra-ZP-500-Plus' // The printer name as shown by lpstat -p -D
},
// Only used for pre-paid package shipping labels
fromAddress: {
name: "Organization or person",
street1: "Somestreet 42",
street2: "Building 1337",
city: "Oakland",
state: "CA",
zip: "94607",
phone: "132-321-3142"
},
// Only used for pre-paid package shipping labels with an international destination
// For more info see:
// https://www.easypost.com/customs-guide
customsInfo: {
customs_signer: "Nobody",
contents_type: "gift", // The type of item you are sending. You pass one of the following: 'merchandise', 'returned_goods', 'documents', 'gift', 'sample', 'other'
contents_explanation: "", // Fill out if you specify "other" in contents_type
eel_pfc: "NOEEI 30.37(a)", // Assuming < $2,500 value of goods and non-humanitarian shipment use "NOEEI 30.36" if shipping to Canada and "NOEEI 30.37(a)" otherwise.
non_delivery_option: "return", // "return" or "abandon"
restriction_type: "none", // Describes if your shipment requires any special treatment / quarantine when entering the country. You pass one of the following: 'none', 'other', 'quarantine', 'sanitary_phytosanitary_inspection'
restriction_comments: "", // Fill out if you specify "other" in restriction_type
}
};