Created
May 10, 2017 08:27
-
-
Save trico/13f708e8c032dc3ce95599f93341a6e1 to your computer and use it in GitHub Desktop.
barcode formater
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
{ | |
"coupon_id": { | |
// representer solo tiene format e includes_control | |
"representer": { | |
"format": "ean_13", // posible valores 'ean_13', 'code_25_interleaved', 'code_39', 'code_128' | |
"includes_control": true // posibles valores true/false | |
}, | |
// formater tiene max_size, prefix y format | |
"formater": { | |
// cualquier número pero hay que tener en cuenta que si format es ean_13 max_size es ean_13 | |
"max_size":13, | |
// texto | |
"prefix":"275", | |
// de momento solo se permite ean_13 | |
"format":"ean_13" | |
} | |
}, | |
// el resto tiene lo mismo que coupon_id | |
"customer_id": { | |
// ... | |
}, | |
"activity_id": { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment