Commit Graph

9 Commits

Author SHA1 Message Date
Harald Welte 2482fd13cf Add inema.am_exchange module for DPAG AM.exchange
In their infinite wisdom, DPAG decided to require electronic advance
information about international shipments of goods ("Warenpost
International") but not offer that through the same API that one uses to
purchase the franking/postage ("Internetmarke API").

Instead, on has to implement talking to a completely different API
called AM.exchange.  That API seems to be designed for really large-scale
customers to register mass mailings, distribution of magazines, etc.

To make things even more exciting, accessing that AM.exchange API
requires new user credentials, concluding new contracts,...

This commit adds the bulk of the functionality required to talk to
AM.exchange to provide customs-related information about shipments.

Contrary to Internetmarke-API, AM.exchange doesn't appear to be hosting
the WSDL definitions of its interface anywhere publicly.  So instead, we
have to ship the WSDL files together with python-inema.
2019-06-03 07:34:09 +00:00
Harald Welte 9ec7af1df4 products.json: Avoid "Umlauts" for python 2.x compatibility
Without this patch, python 2.x would abort with a famous
	'ascii' codec can't decode byte ...
error.  This is why I kept the file free of special characters
so far, but commit 6d2ee85a7e
unfortunately broke that assumption.

I'm sure there's a proper solution, but I really don't feel like
investing time into researching and testing that now.
2019-06-03 07:34:09 +00:00
Georg Sauthoff 6d2ee85a7e Add some new Warenpost products
reported by Remi Bergsma
2019-03-25 14:24:50 +01:00
Georg Sauthoff 68e58a42e2 Fix name-key typo in products.json
reported by Remi Bergsma
2019-03-25 14:20:59 +01:00
Harald Welte 7e1493ee09 products.json: Warenpost "L" is up to 2kg, not 1kg 2019-01-09 00:34:19 +01:00
Harald Welte a4950a0e0b products.json: Update to 20190101
* add new "Warenpost International" prices
* update pricing
* order document in logical groups + ascending order
2019-01-09 00:14:35 +01:00
Georg Sauthoff db0e33d420 Update prices of Waren-/Büchersendung products
cf. https://web.archive.org/web/20180810155706/https://shop.deutschepost.de/briefversand/spezielle-versandformen/buechersendung-und-warensendung
2018-08-10 18:01:27 +02:00
Georg Sauthoff bf758177bf add formats retrieval method
and cache the result as json
2016-09-23 18:36:32 +02:00
Harald Welte c136b66a31 fix setup.py / install on FreeBSD 2016-07-24 12:48:20 +02:00