Open wpessential opened 10 months ago
There is an issue with the OneOfShipmentResponseShipmentResultsPackageResults class. The class lacks arguments to fetch or retrieve data from the response.
Here is the response from UPS Testing
{ "ShipmentResponse": { "Response": { "ResponseStatus": { "Code": "1", "Description": "Success" }, "Alert": { "Code": "129001", "Description": "Additional Handling has automatically been set on Package 1." }, "TransactionReference": { "CustomerContext": "testing" } }, "ShipmentResults": { "ShipmentCharges": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "87.17" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "31.40" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "118.57" } }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "98.0" }, "ShipmentIdentificationNumber": "1ZXXXXXXXXXXXXXXXX", "PackageResults": { "TrackingNumber": "1ZXXXXXXXXXXXXXXXX", "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "71.26" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "31.40" }, "ShippingLabel": { "ImageFormat": { "Code": "GIF", "Description": "GIF" }, "GraphicImage": "R0lGODlheAUgA/cAAAAAAAEBAQICAg" }, "ItemizedCharges": [ { "Code": "100", "CurrencyCode": "USD", "MonetaryValue": "24.50" }, { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "15.91" }, { "Code": "432", "CurrencyCode": "USD", "MonetaryValue": "6.90" } ] } } } }
Same as this: https://github.com/abantecart/ups-php/issues/3
Waiting for UPS fix
@abolabo should be fixed now.
There is an issue with the OneOfShipmentResponseShipmentResultsPackageResults class. The class lacks arguments to fetch or retrieve data from the response.
Here is the response from UPS Testing
{ "ShipmentResponse": { "Response": { "ResponseStatus": { "Code": "1", "Description": "Success" }, "Alert": { "Code": "129001", "Description": "Additional Handling has automatically been set on Package 1." }, "TransactionReference": { "CustomerContext": "testing" } }, "ShipmentResults": { "ShipmentCharges": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "87.17" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "31.40" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "118.57" } }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "98.0" }, "ShipmentIdentificationNumber": "1ZXXXXXXXXXXXXXXXX", "PackageResults": { "TrackingNumber": "1ZXXXXXXXXXXXXXXXX", "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "71.26" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "31.40" }, "ShippingLabel": { "ImageFormat": { "Code": "GIF", "Description": "GIF" }, "GraphicImage": "R0lGODlheAUgA/cAAAAAAAEBAQICAg" }, "ItemizedCharges": [ { "Code": "100", "CurrencyCode": "USD", "MonetaryValue": "24.50" }, { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "15.91" }, { "Code": "432", "CurrencyCode": "USD", "MonetaryValue": "6.90" } ] } } } }