> For the complete documentation index, see [llms.txt](https://create.cloud4wi.ai/dev-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://create.cloud4wi.ai/dev-hub/wifi-sdk/integrating-the-sdk/android/objects/customer.md).

# Customer

```java
String username;
String password;
String firstName;
String lastName;
String phoneNumber;
String email;
String gender;
String birthDate;
String language;
String country;
String zipCode;
String companyName;
String civilStatus;
Boolean phoneVerified;
Boolean emailVerified;
Boolean ppd;
Boolean profiling;
Map<String, String> custom;
Map<String, Boolean> policies = new HashMap();
CustomerDocument document;
Boolean lock;
String extId;
String extProp1;
String extProp2;
```

## Format

<table><thead><tr><th>Param</th><th width="246.33333333333331">Format</th><th>Example</th></tr></thead><tbody><tr><td>language</td><td>ISO 639-1</td><td>"it"</td></tr><tr><td>country</td><td>ISO 3166-1 alpha2</td><td>"IT"</td></tr><tr><td>birthdate</td><td>YYYY-MM-DD</td><td>"2000-12-01"</td></tr><tr><td>gender</td><td>{M,F,O}</td><td>"M"</td></tr><tr><td>phoneNumber</td><td>international prefix + number</td><td>"+39123456789"</td></tr></tbody></table>

## Policies

They represent the list of the policy to apply to the customer.  You can retrieve them using the function&#x20;

```swift
cloud4wiSDK.getListOfPolicies
```

It is mandatory that the policies returned by the function `getListOfPolicies` in position 0 and 1 (named "`termsOfUse`" and "`privacy`") are set to `true`.

## Profiling and PPD

In order to be able to process and profiling the customer it is necessary that the attributes `profiling` and `ppd` are set to `true`.

## Init example

```java
Customer customer = new Customer();
customer.setFirstName("Luigi");
customer.setLastName("Red");
customer.setEmail("luigi@cloud4wi.com");

customer.setPpd(true);
customer.setProfiling(true);

customer.setBirthDate("1985-01-01");
customer.setGender("M");
customer.setExtId("extIdx");
customer.setExtProp1("extProp1x");
customer.setExtProp2("extProp2x");
customer.setPhoneNumber("+39338123456789");
customer.setCountry("IT");
customer.setLanguage("it");

CustomerDocument customerDocument = new CustomerDocument();
customerDocument.setMemberId("membId123");
customerDocument.setType("passport");
customerDocument.setPassportNumber("pp123456789");
customerDocument.setPersonalId("pid123465");
customer.setDocument(customerDocument);

Map<String,String> map = new HashMap<>();
map.put("custom1","true");
map.put("custom2", "false");

customer.addPolicy("termsOfUse", true);
customer.addPolicy("privacy", true);

customer.setCustom(map);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://create.cloud4wi.ai/dev-hub/wifi-sdk/integrating-the-sdk/android/objects/customer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
