All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Allow update_offers to accept more code types when passing a dictionary
- Change the argument for query_pricing to allow to specify any combination of code types and keep compatibility with the old version (a list of EANs when the code type is not specified)
- Allow more code types in query_pricing (not only Ean)
- Update the sandbox URL
- Fix the encoding (raw bytes returned in FNAC responses not encoded in UTF8?)
- Fix the encoding
- Fix some tests and fixtures
- Allow to send tracking information in orders_update (by rafaurl)
- Prevent possible vulnerabilities due to requests<=2.19.1 (CVE-2018-18074)
- Use pipenv for development
- FnapyResponseError is raised for invalid responses
- Fix error when the content of a response is an empty string
- Fix another utf-8 problem (from miss encoding xml)
- Fix
to_unicode
.
- Fix
extract_text
.
- No more tests in the package
- Display a message when no EAN is passed to
query_pricing
.
- Display a message when the limit of EANs is reached in
query_pricing
.
- Fix
parse_xml
- Display a log rather than raise a
FnapyPricingError
when a list of EANs is provided
- Fixed bug in
FnapyConnection
: whencredentials
is provided and if sandbox is False, aFnapyConnectionError
is raised.
- Working with sandbox or real account is now possible
FnapyConnection
now accepts credentials dictionary or sandbox booleanquery_pricing
now accepts a list of EANs
- In the
Query
class, added thewas
method to handle the states (especially the states of orders)
- Really remove
BeautifulSoup
(bs4) from the dependencies
- Remove
BeautifulSoup
dependency
- Improve the text extraction from XML
- In
update_offers
,FnapyUpdateOfferError
is raised if: offer_reference
and at least one of the optional parameters (exceptproduct_reference
) are not providedoffers_data
is empty
- In
- Update documentation
- Implement
delete_offers
- Use pricing_query (V2)
- Check the connection passed to
FnapyManager
is aFnapyConnection
- Add a caveat in the README for the requests sent to the sandbox.
- Improve
update_offers
- Fix Unicode/string confusion bug in
Response
- Support Python 3
- Implement the
Query
class to allow complex queries - Added new classes for requests and responses
(respectively
Request
andResponse
)
- Update the documentation
- Make the manager authenticate when it is created.
- All the methods return a
Response
instance - Store the XML requests as
Request
instances
- Fixed the packaging
- Fix minor things in the constructor of
FnapyManager
- Create the
fnapy
package