From 5202920399abaaa33e0ede37b5154715fe668c5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 5 Nov 2022 05:39:57 +0100 Subject: [PATCH] Please cherry-pick: - updated to latest changes in constructor (order of parameters) - also used newly added constructor with all optional class fields, except contactId, fax/land-line/mobile number and created/updated fields --- .../FinancialsAdminContactWebRequestBean.java | 22 ++++++++++--------- .../FinancialsContactWebRequestBean.java | 3 ++- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java index d7de0732..01603300 100644 --- a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java @@ -444,19 +444,21 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsBean imp this.getPersonalTitle(), this.getFirstName(), this.getFamilyName(), - this.getContactCountry() + this.getContactCountry(), + Boolean.FALSE, + this.getStreet(), + this.getHouseNumber(), + this.getHouseNumberExtension(), + this.getZipCode(), + this.getCity(), + this.getEmailAddress(), + this.getAcademicTitle(), + this.getBirthday(), + this.getComment() ); - // Add all others - localContact.setContactBirthday(this.getBirthday()); - localContact.setContactCity(this.getCity()); - localContact.setContactComment(this.getComment()); - localContact.setContactEmailAddress(this.getEmailAddress()); - localContact.setContactHouseNumber(this.getHouseNumber()); + // Add missing fields localContact.setContactId(this.getContactId()); - localContact.setContactStreet(this.getStreet()); - localContact.setContactTitle(this.getAcademicTitle()); - localContact.setContactZipCode(this.getZipCode()); // Don't set null or wrong references if ((landLine instanceof DialableLandLineNumber) && (landLine.getPhoneCountry() instanceof Country) && (this.getLandLineAreaCode() != null) && (this.getLandLineNumber() != null) && (this.getLandLineAreaCode() > 0) && (this.getLandLineNumber() > 0)) { diff --git a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebRequestBean.java index 21024af8..545e9500 100644 --- a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebRequestBean.java @@ -331,7 +331,8 @@ public class FinancialsContactWebRequestBean extends BaseFinancialsBean implemen this.getPersonalTitle(), this.getFirstName(), this.getFamilyName(), - this.getCountry() + this.getCountry(), + Boolean.FALSE ); // Return instance -- 2.39.5