Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barcodes is not defined for DHL\Entity\GB\ShipmentResponse #24

Open
mizkaa opened this issue Dec 13, 2016 · 5 comments
Open

Barcodes is not defined for DHL\Entity\GB\ShipmentResponse #24

mizkaa opened this issue Dec 13, 2016 · 5 comments

Comments

@mizkaa
Copy link

mizkaa commented Dec 13, 2016

Hi,

for some reason I get this error all the time with ShipmentRequest.php sample. What can it mean?

@pernotjln
Copy link

Same issue here ! Any update ?

@mizkaa
Copy link
Author

mizkaa commented Jun 29, 2017

I didnt get it working. I created just a very simple xml curl call in php and then output to pdf with base_encode.

@pernotjln
Copy link

I found a workaround ! Just change BarCodes to Barcodes in ShipmentResponse.php file ;)

@ericknyoto
Copy link

You need to use AP/ShipmentValidateResponse.php
In DHL, AP means ASIA PACIFIC, so each region will have different response.

@tkegan
Copy link

tkegan commented Jun 5, 2018

Building on @ericknyoto 's comment: AM := Americas, EU := Europe, AP := Asia Pacific. GB is not a DHL Region code at least according to the spreadsheet in the Developer Toolkit. I believe it is being used as something like Generic Base in the DHL library. Entity\GB\ShipmentResponse is the only ShipmentResponse or ShipmentValidateResponse which breaks the Barcodes element down into it's constituent parts (as opposed to a simple string type). So I am using @pernotjln 's workaround: Change line 200 of ${repo}/DHL/Entity/GB/ShipmentResponse.php from:

    'BarCodes' => array(

to:

    'Barcodes' => array(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants