Skip to content

Commit 5b2d42f

Browse files
committed
Use Address builder in README
1 parent 1735a2f commit 5b2d42f

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,27 @@ You can download our JAR files from here: https://github.com/BlockScore/blocksco
2323
## Usage
2424

2525
```java
26-
BlockscoreApiClient client = new BlockscoreApiClient("[your api key here]");
26+
BlockscoreApiClient client = new BlockscoreApiClient("your api key here");
27+
28+
Address address = new Address();
29+
address.setStreet1("1 Infinite Loop")
30+
.setStreet2("Apt 6")
31+
.setCity("Cupertino")
32+
.setSubdivision("CA")
33+
.setPostalCode("95014")
34+
.setCountryCode("US");
2735

28-
Address address = new Address("1 Infinite Loop", "Apt 6", "Cupertino", "CA", "95014", "US");
2936
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
3037
Date dateOfBirth = dateOfBirth = formatter.parse("1980-08-23");
3138

3239
Person.Builder builder = new Person.Builder(client);
3340
builder.setFirstName("John")
34-
.setMiddleName("Pearce")
35-
.setLastName("Doe")
36-
.setDocumentType("ssn")
37-
.setDocumentValue("0000")
38-
.setAddress(address)
39-
.setDateOfBirth(dateOfBirth);
41+
.setMiddleName("Pearce")
42+
.setLastName("Doe")
43+
.setDocumentType("ssn")
44+
.setDocumentValue("0000")
45+
.setAddress(address)
46+
.setDateOfBirth(dateOfBirth);
4047

4148
builder.create();
4249
```

0 commit comments

Comments
 (0)