DivideBV / Postnl

Library to connect to PostNL's SOAP service called CIF
GNU General Public License v2.0
31 stars 40 forks source link

How to post a email or smsnumber of customer... #79

Closed Peterbins closed 4 years ago

Peterbins commented 4 years ago

How to use the code to also send the contact details to the api?

Peterbins commented 4 years ago

First make a complextype contact.

$contact = ComplexTypes\Contact::create() ->setContactType('01') ->setEmail('receiver');

set the contact ->setContacts(new DivideBV\Postnl\ComplexTypes\ArrayOfContact([$contact]))