combo/combo/apps/lingo
Benjamin Dauvergne 0aac640e37 lingo: remove uselesss csrftoken directive (#57850) 2021-10-21 08:20:12 +02:00
..
management misc: fix no-else-raise pylint error (#56288) 2021-08-31 10:06:46 +02:00
migrations misc: fix unused-import pylint error (#56288) 2021-08-31 10:00:38 +02:00
static/js lingo: add test value for ROLMRE (#16871) 2020-10-12 15:27:42 +02:00
templates/lingo lingo: remove uselesss csrftoken directive (#57850) 2021-10-21 08:20:12 +02:00
README lingo: import README 2015-12-30 17:49:31 +01:00
__init__.py misc: fix bare-except pylint error (#56288) 2021-08-31 10:06:46 +02:00
admin.py trivial: apply black 2021-02-15 18:02:39 +01:00
forms.py lingo: filter transaction list by regie (#56651) 2021-10-15 08:12:54 +02:00
manager_views.py lingo: remove callback_url on backend page (#56650) 2021-10-15 09:15:15 +02:00
models.py misc: fix invalid-str-returned pylint error (#56288) 2021-08-31 10:06:46 +02:00
urls.py general: handle /manage/ access to users with page edit roles (#56188) 2021-09-10 11:19:23 +02:00
utils.py misc: apply pyupgrade (#55868) 2021-07-27 16:45:52 +02:00
views.py lingo: change log level when payment backend is not found (#56647) 2021-10-01 10:07:25 +02:00

README

Lingo
=====

Lingo is an extension module for the combo content management system, adding
basket and payment features.

License
-------

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.

API
---

Items amount can be added to basket through API by posting to
*/api/lingo/add-basket-item* endpoint a json payload containing *amount* and/or
*"extra": {"amount": ...}* attribute or passing *amount* in the query string

For example:

    {"display_name": "<item display name>",
     "url": "http://<item url>",
     "amount": "42.42",
     "extra": {"amount": "10.42", ...},
     ...
     }

or
    /api/lingo/add-basket-item?amount=10

The "amount" attribute should be float or decimal or a list of
floats/decimals. For example:

    {"amount": [14.12], "extra": {"amount": ["10.42", "5", "10"], ... }, ...}