combo/combo/apps/lingo
Valentin Deniaud 66b12b846a misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
..
management lingo: always log notification content on errors (#61401) 2022-02-18 08:41:09 +01:00
migrations misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
static/js tipi: update refdet's test valeur used for ROLMRE protocol (#66430) 2022-06-21 11:42:31 +02:00
templates/lingo html: add pk-data-table class to invoices table (#71414) 2022-11-29 09:56:44 +01:00
README lingo: import README 2015-12-30 17:49:31 +01:00
__init__.py misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
admin.py misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
forms.py lingo: hide TIPI service on payment backend creation (#74357) 2023-02-12 17:15:29 +01:00
manager_views.py lingo: hide TIPI service on payment backend creation (#74357) 2023-02-12 17:15:29 +01:00
models.py misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
urls.py general: update all pk URL fragments to only match on numbers (#72721) 2022-12-28 14:24:21 +01:00
utils.py misc: apply pyupgrade (#55868) 2021-07-27 16:45:52 +02:00
views.py misc: apply django-upgrade (#69798) 2022-10-03 14:22:16 +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"], ... }, ...}