Skip to content

Commit c4902ea

Browse files
committed
Change postalCode to String
1 parent 31ba0a2 commit c4902ea

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The java library for the [Whois XML API service](https://whois.whoisxmlapi.com/)
1818
```
1919
```groovy
2020
dependencies {
21-
implementation 'com.whoisxmlapi:whois-api-java:v1.0.4'
21+
implementation 'com.whoisxmlapi:whois-api-java:v1.1.0'
2222
}
2323
```
2424

@@ -36,7 +36,7 @@ The java library for the [Whois XML API service](https://whois.whoisxmlapi.com/)
3636
<dependency>
3737
<groupId>com.whoisxmlapi</groupId>
3838
<artifactId>whois-api-java</artifactId>
39-
<version>v1.0.4</version>
39+
<version>v1.1.0</version>
4040
</dependency>
4141
```
4242
### Jar files

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sourceCompatibility = 1.8
77
targetCompatibility = 1.8
88

99
group 'com.whoisxmlapi'
10-
version '1.0.4'
10+
version '1.1.0'
1111

1212
repositories {
1313
mavenCentral()
@@ -38,7 +38,7 @@ publishing {
3838
mavenJava(MavenPublication) {
3939
artifactId = 'whois-api-client'
4040
groupId = 'com.whoisxmlapi'
41-
version = '1.0.4'
41+
version = '1.1.0'
4242
from components.java
4343
pom {
4444
name = 'WhoisXML API client'

src/main/java/com/whoisxmlapi/whoisapi/model/BaseContact.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public abstract class BaseContact {
1111
protected String street2;
1212
protected String city;
1313
protected String state;
14-
protected Integer postalCode;
14+
protected String postalCode;
1515
protected String country;
1616
protected String email;
1717
protected String telephone;
@@ -41,8 +41,8 @@ public Optional<String> getState() {
4141
return OptionalBuilder.buildOptionalString(this.state);
4242
}
4343

44-
public Optional<Integer> getPostCode() {
45-
return OptionalBuilder.buildOptionalInt(this.postalCode);
44+
public Optional<String> getPostCode() {
45+
return OptionalBuilder.buildOptionalString(this.postalCode);
4646
}
4747

4848
public Optional<String> getCountry() {

0 commit comments

Comments
 (0)