python-fedex-devs/python-fedex

Possible to convert JSON to WSDL object?

p-doyle opened this issue · 2 comments

Is it possible to use JSON to, for example, populate fields in TrackSelectionDetail? I was hoping to be able to use something like the below:

{'ShipmentAccountNumber': '1234', 'PackageIdentifier': {'Type': 'SHIPPER_REFERENCE', 'Value': 'myreference'}}

I see there are helper functions to convert from WSDL to dict but didn't see anything to do the reverse... is this possible?

Thanks for the great library!

There is no helper now, it could be done yeah.

send a PR if you have, I will close