test/unit/contact_test.rb in xero_gateway-2.5.0 vs test/unit/contact_test.rb in xero_gateway-2.6.0

- old
+ new

@@ -78,10 +78,18 @@ </Phone> <Phone> <PhoneType>MOBILE</PhoneType> </Phone> </Phones> + <ContactPersons> + <ContactPerson> + <FirstName>John</FirstName> + <LastName>Smith</LastName> + <EmailAddress>john@acme.com</EmailAddress> + <IncludeInEmails>true</IncludeInEmails> + </ContactPerson> + </ContactPersons> <UpdatedDateUTC>2016-08-31T04:55:39.217</UpdatedDateUTC> <IsSupplier>false</IsSupplier> <IsCustomer>false</IsCustomer> <HasAttachments>false</HasAttachments> </Contact> @@ -170,9 +178,10 @@ contact.address.line_3 = "LINE 3 OF THE ADDRESS" contact.address.line_4 = "LINE 4 OF THE ADDRESS" contact.phone.number = "12345" contact.is_customer = true contact.is_supplier = true + contact.add_contact_person(first_name: 'John', last_name: 'Smith', email_address: 'john@acme.com', include_in_emails: true) contact end end