Skip to content

Commit

Permalink
Change postalCode to String
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisxmlapi committed Mar 28, 2022
1 parent 31ba0a2 commit c4902ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The java library for the [Whois XML API service](https://whois.whoisxmlapi.com/)
```
```groovy
dependencies {
implementation 'com.whoisxmlapi:whois-api-java:v1.0.4'
implementation 'com.whoisxmlapi:whois-api-java:v1.1.0'
}
```

Expand All @@ -36,7 +36,7 @@ The java library for the [Whois XML API service](https://whois.whoisxmlapi.com/)
<dependency>
<groupId>com.whoisxmlapi</groupId>
<artifactId>whois-api-java</artifactId>
<version>v1.0.4</version>
<version>v1.1.0</version>
</dependency>
```
### Jar files
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sourceCompatibility = 1.8
targetCompatibility = 1.8

group 'com.whoisxmlapi'
version '1.0.4'
version '1.1.0'

repositories {
mavenCentral()
Expand Down Expand Up @@ -38,7 +38,7 @@ publishing {
mavenJava(MavenPublication) {
artifactId = 'whois-api-client'
groupId = 'com.whoisxmlapi'
version = '1.0.4'
version = '1.1.0'
from components.java
pom {
name = 'WhoisXML API client'
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/whoisxmlapi/whoisapi/model/BaseContact.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public abstract class BaseContact {
protected String street2;
protected String city;
protected String state;
protected Integer postalCode;
protected String postalCode;
protected String country;
protected String email;
protected String telephone;
Expand Down Expand Up @@ -41,8 +41,8 @@ public Optional<String> getState() {
return OptionalBuilder.buildOptionalString(this.state);
}

public Optional<Integer> getPostCode() {
return OptionalBuilder.buildOptionalInt(this.postalCode);
public Optional<String> getPostCode() {
return OptionalBuilder.buildOptionalString(this.postalCode);
}

public Optional<String> getCountry() {
Expand Down

0 comments on commit c4902ea

Please sign in to comment.