devartis / passbook

Python library to create Apple Passbook (.pkpass) files
http://www.devartis.com/
MIT License
272 stars 108 forks source link

Fix currency field. #50

Closed mbaechtold closed 2 years ago

mbaechtold commented 4 years ago

A field containing a numeric value can have an optional number style key. The key has to be either "currencyCode" or "numberStyle".

See the documentation about "Number Style Keys" available at https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/FieldDictionary.html#//apple_ref/doc/uid/TP40012026-CH4-SW7

Closes issue #38.

This has been inspired by https://github.com/devartis/passbook/pull/37/files and https://github.com/ofw/wallet-py3k/commit/f5aff37dc80380ee1ea96c7af5e84615ae9f79f0

mbaechtold commented 2 years ago

Hello @fara, could you please have a look at my proposed changes? 😃

mbaechtold commented 2 years ago

Thank you @fara 🎉