tijsverkoyen / bpost

Other
28 stars 47 forks source link

No barcode? #24

Closed Lambik closed 7 years ago

Lambik commented 8 years ago

Hi,

When I fetchOrder(), I get the info with the box(es), which is correct. However, I don't get the barcode associated with the order (that is IN_TRANSIT at the moment).

When I dump the XML the API gives back, there is a barcode element present:

+"box": SimpleXMLElement {#1887 +"sender": SimpleXMLElement {#1890} +"nationalBox": SimpleXMLElement {#1891} +"barcode": "3232xxxxxxxxxxxxxxxxxxx4030" +"status": "IN_TRANSIT"

However, the Box object ignores this in its createFromXML. Could you add the necessary logic? Thanks!