Skip to content

Commit d7d7086

Browse files
committed
Fix Payment Terms on Contact
Payment Terms incorrectly set to PaymentTerm Type, when it should be a PaymentTerm object on a Contact.
1 parent a189c27 commit d7d7086

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
@@ -79,7 +79,7 @@ Add the dependency to your pom.xml. Gradle, sbt and other build tools can be fo
7979
<dependency>
8080
<groupId>com.github.xeroapi</groupId>
8181
<artifactId>xero-java</artifactId>
82-
<version>2.2.14</version>
82+
<version>2.2.15</version>
8383
</dependency>
8484

8585

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.14</version>
7+
<version>2.2.15</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
@@ -15,7 +15,7 @@
1515

1616
public class JsonConfig implements Config {
1717

18-
private String SDK_VERSION = "2.2.14";
18+
private String SDK_VERSION = "2.2.15";
1919
private String APP_TYPE = "Public";
2020
private String USER_AGENT = "Xero-Java-SDK";
2121
private String ACCEPT = "application/xml";

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import com.xero.models.accounting.ContactGroup;
2626
import com.xero.models.accounting.ContactPerson;
2727
import com.xero.models.accounting.CurrencyCode;
28-
import com.xero.models.accounting.PaymentTermType;
28+
import com.xero.models.accounting.PaymentTerm;
2929
import com.xero.models.accounting.Phone;
3030
import com.xero.models.accounting.TaxType;
3131
import com.xero.models.accounting.TrackingCategory;
@@ -187,7 +187,7 @@ public static ContactStatusEnum fromValue(String text) {
187187

188188

189189
@JsonProperty("PaymentTerms")
190-
private PaymentTermType paymentTerms = null;
190+
private PaymentTerm paymentTerms = null;
191191

192192
@JsonDeserialize(using = com.xero.api.CustomOffsetDateTimeDeserializer.class)
193193
@JsonProperty("UpdatedDateUTC")
@@ -724,7 +724,7 @@ public void setTrackingCategoryOption(String trackingCategoryOption) {
724724
this.trackingCategoryOption = trackingCategoryOption;
725725
}
726726

727-
public Contact paymentTerms(PaymentTermType paymentTerms) {
727+
public Contact paymentTerms(PaymentTerm paymentTerms) {
728728
this.paymentTerms = paymentTerms;
729729
return this;
730730
}
@@ -734,11 +734,11 @@ public Contact paymentTerms(PaymentTermType paymentTerms) {
734734
* @return paymentTerms
735735
**/
736736
@ApiModelProperty(value = "")
737-
public PaymentTermType getPaymentTerms() {
737+
public PaymentTerm getPaymentTerms() {
738738
return paymentTerms;
739739
}
740740

741-
public void setPaymentTerms(PaymentTermType paymentTerms) {
741+
public void setPaymentTerms(PaymentTerm paymentTerms) {
742742
this.paymentTerms = paymentTerms;
743743
}
744744

0 commit comments

Comments
 (0)