Class PersonService
- java.lang.Object
-
- com.inteliqua.rest.customer.client.PersonService
-
public class PersonService extends Object
Service class responsible for operations related to persons, including checking if a person exists for a given phone number.
-
-
Constructor Summary
Constructors Constructor Description PersonService(PersonClient personClient)Constructor to initialize the PersonService with a specified person client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmemberExistsForPhone(String telephoneNumber)Checks if a person exists for a given phone number.com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonSearchResponseExtendedPayload>searchExtendedMemberByTelephone(String telephone)Checks if a person exists for a given phone number.com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonSearchResponseExtendedPayload>searchExtendedMemberByTelephone(String telephone, String schemaCode)Checks if a person exists for a given phone number.com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonSearchResponseSimplePayload>searchMemberByTelephone(String telephone)Checks if a person exists for a given phone number.com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonResponseSimplePayload>update(PersonMultiDataUpdateRequest request, String qcCode)Updates an existing Person using the given QC code.
-
-
-
Constructor Detail
-
PersonService
public PersonService(PersonClient personClient)
Constructor to initialize the PersonService with a specified person client.- Parameters:
personClient- The client responsible for making API requests related to persons.
-
-
Method Detail
-
searchMemberByTelephone
public com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonSearchResponseSimplePayload> searchMemberByTelephone(String telephone)
Checks if a person exists for a given phone number.This method searches for a person using the provided telephone number and checks whether the person has associated loyalty membership data.
- Parameters:
telephone- The telephone number of the person to check.- Returns:
- true if the person exists and has loyalty membership data, false otherwise.
-
searchExtendedMemberByTelephone
public com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonSearchResponseExtendedPayload> searchExtendedMemberByTelephone(String telephone)
Checks if a person exists for a given phone number.This method searches for a person using the provided telephone number and checks whether the person has associated loyalty membership data.
- Parameters:
telephone- The telephone number of the person to check.- Returns:
- true if the person exists and has loyalty membership data, false otherwise.
-
searchExtendedMemberByTelephone
public com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonSearchResponseExtendedPayload> searchExtendedMemberByTelephone(String telephone, String schemaCode)
Checks if a person exists for a given phone number.This method searches for a person using the provided telephone number and checks whether the person has associated loyalty membership data.
- Parameters:
telephone- The telephone number of the person to check.- Returns:
- true if the person exists and has loyalty membership data, false otherwise.
-
memberExistsForPhone
public boolean memberExistsForPhone(String telephoneNumber)
Checks if a person exists for a given phone number.This method searches for a person using the provided telephone number and checks whether the person has associated loyalty membership data.
- Parameters:
telephoneNumber- The telephone number of the person to check.- Returns:
- true if the person exists and has loyalty membership data, false otherwise.
-
update
public com.qivos.util.rest.common.envelope.APIResponseEnvelope<PersonResponseSimplePayload> update(PersonMultiDataUpdateRequest request, String qcCode)
Updates an existing Person using the given QC code.- Parameters:
request- the payload containing the fields to update.qcCode- the unique QC identifier of the person to update.- Returns:
- the API Response wrapped in an APIResponseEnvelope.
-
-