abantecart / ups-php

PHP SDK to UPS RESTful API
MIT License
13 stars 9 forks source link

Error in OneOfLabelRecoveryResponseLabelResults #12

Open wpessential opened 7 months ago

wpessential commented 7 months ago

There is an issue with the OneOfLabelRecoveryResponseLabelResults class. The class lacks arguments to fetch or retrieve data from the response.

Here is the response from UPS Testing

{ "LabelRecoveryResponse": { "Response": { "ResponseStatus": { "Code": "1", "Description": "Success" }, "TransactionReference": { "CustomerContext": "testing" } }, "ShipmentIdentificationNumber": "1Z12345E8791315509", "LabelResults": { "TrackingNumber": "1Z12345E8791315509", "LabelImage": { "LabelImageFormat": { "Code": "PDF" }, "GraphicImage": "JVBERi0xLjMNJeLjz9MNCjIw=", "URL": "https://www.ups.com/uel/llp/1Z12345E8791315509/link/labelAll/XLBR/0uHrBtnAFwm4NRuUC7XNCqQ7Tb2RRs0D0oimIIqZ3Mse/en_US?loc=en_US&cie=true&pdr=false" }, "Receipt": { "Image": { "ImageFormat": { "Code": "PDF" }, "GraphicImage": "JVBERi0xLjMNJeLjz9MNCjEg" }, "URL": "https://www.ups.com/uel/llp/1Z12345E8791315509/link/receipt/XLBR/0uHrBtnAFwm4NRuUC7XNCqQ7Tb2RRs0D0oimIIqZ3Mse/en_US?loc=en_US&cie=true&pdr=false" } } } }

DemigodCode commented 6 months ago

Same as this: https://github.com/abantecart/ups-php/issues/3

Waiting for UPS fix