post new contact: process postalAddress
This commit is contained in:
parent
a7ffee9348
commit
27de4ce634
@ -131,6 +131,7 @@ public class HsOfficeContactController implements HsOfficeContactsApi {
|
|||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
final BiConsumer<HsOfficeContactInsertResource, HsOfficeContactRbacEntity> RESOURCE_TO_ENTITY_POSTMAPPER = (resource, entity) -> {
|
final BiConsumer<HsOfficeContactInsertResource, HsOfficeContactRbacEntity> RESOURCE_TO_ENTITY_POSTMAPPER = (resource, entity) -> {
|
||||||
|
entity.putPostalAddress(from(resource.getPostalAddress()));
|
||||||
entity.putEmailAddresses(from(resource.getEmailAddresses()));
|
entity.putEmailAddresses(from(resource.getEmailAddresses()));
|
||||||
entity.putPhoneNumbers(from(resource.getPhoneNumbers()));
|
entity.putPhoneNumbers(from(resource.getPhoneNumbers()));
|
||||||
};
|
};
|
||||||
|
@ -185,6 +185,7 @@ public class HsOfficeRelationController implements HsOfficeRelationsApi {
|
|||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
final BiConsumer<HsOfficeContactInsertResource, HsOfficeContactRealEntity> CONTACT_RESOURCE_TO_ENTITY_POSTMAPPER = (resource, entity) -> {
|
final BiConsumer<HsOfficeContactInsertResource, HsOfficeContactRealEntity> CONTACT_RESOURCE_TO_ENTITY_POSTMAPPER = (resource, entity) -> {
|
||||||
|
entity.putPostalAddress(from(resource.getPostalAddress()));
|
||||||
entity.putEmailAddresses(from(resource.getEmailAddresses()));
|
entity.putEmailAddresses(from(resource.getEmailAddresses()));
|
||||||
entity.putPhoneNumbers(from(resource.getPhoneNumbers()));
|
entity.putPhoneNumbers(from(resource.getPhoneNumbers()));
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user