JeremyDunn / php-fedex-api-wrapper

This library provides a fluid interface for constructing requests to the FedEx web service API.
269 stars 184 forks source link

Setting multiple AddressLines elements? #118

Closed mehgcap closed 2 years ago

mehgcap commented 5 years ago

I'm wondering how--or if--we can provide multiple AddressLines elements. The WSDL specifies AddressLines as occurring 0 to 2 times, but there's only a setAddressLines function. This means that calling it twice would override the first value with the second value.

When I submit an array of lines with setAddressLines, my lines get concatenated together. I imagine setting two AddressLines elements would avoid this problem, at least for the first two lines, but I can't work out how to do that with this library.

mehgcap commented 5 years ago

Please disregard, and close this issue. I was inadvertently sending an array of one string, not an array of all the address line strings. Changing it to send the two strings FedEx supports works just fine. Sorry for the confusion.