title: NetSuite add customer address
body: <p>I have seen the other examples here on StackOverflow but neither are working for me, my code creates an address line in NetSuite but the addr1, city, state and zip are empty, the default billing and shipping do show false or if I set it to true it shows true so that part is updating.. The response doesn't show any errors. Any ideas?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$customer = new Customer();
  $customer-&gt;internalId = 16;
  $customer-&gt;firstName = 'Joe';
  $customer-&gt;middleName = 'A';
  $customer-&gt;lastName = 'Smith';
  $customer-&gt;email = 'joe@email.com';
  
  $address = new CustomerAddressBook();
  $address-&gt;defaultShipping = false;
  $address-&gt;defaultBilling = false;
  $address-&gt;isResidential = true;
  $address-&gt;addr1 = '123 Street';
  $address-&gt;city = 'New York';
  $address-&gt;zip = '12345';
  $address-&gt;state = 'NY';
  
  $addressBook = new CustomerAddressbookList();
  $addressBook-&gt;addressbook = array($address);
  $addressBook-&gt;replaceAll = false;
  
  // add address to cutomer
  $customer-&gt;addressbookList = $addressBook;
  
  
  $request = new UpdateRequest();
  $request-&gt;record = $customer;
  
  $netsuiteService = new NetSuiteService();
  $response = $netsuiteService-&gt;update($request);
  </code></pre>