Releases: alexdlaird/amazon-orders
Releases · alexdlaird/amazon-orders
4.0.1
4.0.0
Added
- Improvements to error handling and logging when persisted session expires.
- Stability improvements.
Changed
AmazonOrders.get_order_history()
now fetches each individual order usingasyncio
for 5-10x performance improvements.AmazonOrders.request
now takespersist_cookies
, which defaults toFalse
. Cookies are now only persisted when the login form is submitted, rather than with every request.AmazonSession
is now thread-safe.- Support for Amazon's new login auth flow.
- Renamed
constants.Constants.TRANSACTION_HISTORY_LANDING_ROUTE
toconstants.Constants.TRANSACTION_HISTORY_ROUTE
. - Renamed
constants.Constants.TRANSACTION_HISTORY_LANDING_URL
toconstants.Constants.TRANSACTION_HISTORY_URL
. - Testing environment variables are now consistently prefixed with
AMAZON_
.
Removed
AmazonSession.last_response
andAmazonSession.last_response_parsed
. These variables forcedAmazonSession
in to a statefulness that means its underlying functionality cannot be made async. Use the response object AmazonSessionResponse instead.constants.Constants.ORDER_HISTORY_LANDING_URL
.- Evaluation of
OTP_SECRET_KEY
, useAMAZON_OTP_SECRET_KEY
. - Removed
SIGN_IN_REDIRECT_URL
, as it is no longer needed with the new auth flow.
3.2.19
Added
AmazonSession.otp_secret_key
field.- Values for
username
,password
, andotp_secret_key
stored inAmazonOrdersConfig
will now be used in precedence chain. - Stability improvements to authentication flows.
Changed
OTP_SECRET_KEY
is replaced withAMAZON_OTP_SECRET_KEY
. Evaluation ofOTP_SECRET_KEY
will be removed in the next major release.
3.2.18
Added
- Documentation improvements.
Changed
- Paging is more clear now, based on the value of
keep_paging
(--single-page
from the CLI) rather than evaluatingstart_index
.
3.2.17
Added
- Authentication will now use environment variables
AMAZON_USERNAME
andAMAZON_PASSWORD
, if present. - OTP can now be auto-solved if environment variable
OTP_SECRET_KEY
is populated with a time-based secret key. - Documentation improvements.
3.2.16
Added
Order.index
field.- Fixes for parsing issues from orders made at physical Amazon Store.
3.2.15
Fixed
- Issue where
AmazonOrdersConfig
could not be pickled.
3.2.14
Added
Order.free_shipping
field.
Fixed
- Duplicate currency symbol in CLI output for Order details.
3.2.13
Fixed
- Broken parsing when
Transaction.order_number
is not selected from<a>
tag. - Parsing issue with
Transaction.seller
in pending Transactions.
3.2.12
Fixed
Order.coupon_savings
andOrder.promotion_applied
may have multiple values, sum if so.