Skip to content

Commit 30ed97d

Browse files
committed
Fix date format on CreditNote
1 parent e981abf commit 30ed97d

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Add the dependency to your pom.xml. Gradle, sbt and other build tools can be fo
7474
<dependency>
7575
<groupId>com.github.xeroapi</groupId>
7676
<artifactId>xero-java</artifactId>
77-
<version>2.2.7</version>
77+
<version>2.2.8</version>
7878
</dependency>
7979

8080

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.github.xeroapi</groupId>
55
<artifactId>xero-java</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.2.7</version>
7+
<version>2.2.8</version>
88
<name>Xero-Java SDK</name>
99
<description>This is the official Java SDK for Xero API</description>
1010
<url>https://github.com/XeroAPI/Xero-Java</url>

src/main/java/com/xero/api/JsonConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public String getAccessTokenUrl() {
132132

133133
@Override
134134
public String getUserAgent() {
135-
return USER_AGENT + " " + CONSUMER_KEY + " [Xero-Java-2.2.7]";
135+
return USER_AGENT + " " + CONSUMER_KEY + " [Xero-Java-2.2.8]";
136136
}
137137

138138
@Override

src/main/java/com/xero/models/accounting/CreditNote.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ public static TypeEnum fromValue(String text) {
8181
@JsonProperty("Contact")
8282
private Contact contact = null;
8383

84-
84+
@JsonDeserialize(using = com.xero.api.CustomDateDeserializer.class)
8585
@JsonProperty("Date")
86-
private String date = null;
86+
private LocalDate date = null;
8787

8888
/**
8989
* See Credit Note Status Codes
@@ -236,7 +236,7 @@ public void setContact(Contact contact) {
236236
this.contact = contact;
237237
}
238238

239-
public CreditNote date(String date) {
239+
public CreditNote date(LocalDate date) {
240240
this.date = date;
241241
return this;
242242
}
@@ -246,11 +246,11 @@ public CreditNote date(String date) {
246246
* @return date
247247
**/
248248
@ApiModelProperty(value = "The date the credit note is issued YYYY-MM-DD. If the Date element is not specified then it will default to the current date based on the timezone setting of the organisation")
249-
public String getDate() {
249+
public LocalDate getDate() {
250250
return date;
251251
}
252252

253-
public void setDate(String date) {
253+
public void setDate(LocalDate date) {
254254
this.date = date;
255255
}
256256

0 commit comments

Comments
 (0)