Introduce fluent Interface
python
import purplship
proxy = purplship.gateway['aups'].create({
"server_url": "https://digitalapi.auspost.com.au/test",
"username": "username",
"password": "password",
"account_number": "1234567"
})
rates = purplship.rating.fetch(
shipper={"postal_code": "H3N1S4", "country_code": "CA"},
recipient = {"city": "Lome", "country_code": "TG"},
shipment = {
"items": [
{"id": "1", "height": 3, "length": 10, "width": 3, "weight": 4.0}
]
}
).from_(aups).parse()
Integrate Basic Australia post service
- Quotes (ShippingPriceRequest)
- Tracking
Changes
- added 'suburb' to Party (address)
- introduce jstruct
- use attrs for dataclasses