Skip to content

Commit

Permalink
Fixed SalesTrackingCategory for Contacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
SidneyAllen committed Aug 7, 2019
1 parent 82dc2cf commit b26d9d2
Show file tree
Hide file tree
Showing 112 changed files with 271 additions and 153 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Xero-Java

[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.3.10-green.svg)](https://search.maven.org/artifact/com.github.xeroapi/xero-java/2.3.10/jar)
[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.3.11-green.svg)](https://search.maven.org/artifact/com.github.xeroapi/xero-java/2.3.11/jar)

This is the official Java SDK for Xero's API. It supports accounting, fixed asset and bank feed API endpoints. All third party libraries dependencies managed with Maven.

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.github.xeroapi</groupId>
<artifactId>xero-java</artifactId>
<packaging>jar</packaging>
<version>2.3.10</version>
<version>2.3.11</version>
<name>Xero-Java SDK</name>
<description>This is the official Java SDK for Xero API</description>
<url>https://github.com/XeroAPI/Xero-Java</url>
Expand Down Expand Up @@ -298,7 +298,7 @@
<google-api-client-version>1.23.0</google-api-client-version>
<jersey-common-version>2.25.1</jersey-common-version>
<jackson-version>2.9.9</jackson-version>
<jackson-databind>2.9.9.1</jackson-databind>
<jackson-databind>2.9.9.2</jackson-databind>
<jackson-threetenbp-version>2.6.4</jackson-threetenbp-version>
<junit-version>4.12</junit-version>
<org-apache-httpcomponents>4.5.3</org-apache-httpcomponents>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/JsonConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class JsonConfig implements Config {

private String SDK_VERSION = "2.3.10";
private String SDK_VERSION = "2.3.11";
private String APP_TYPE = "Public";
private String USER_AGENT = "Xero-Java-SDK";
private String ACCEPT = "application/xml";
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/xero/models/accounting/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -49,7 +49,7 @@ public class Account {


@JsonProperty("Type")
private AccountType type = null;
private AccountType type;


@JsonProperty("BankAccountNumber")
Expand Down Expand Up @@ -145,7 +145,7 @@ public static BankAccountTypeEnum fromValue(String text) {


@JsonProperty("CurrencyCode")
private CurrencyCode currencyCode = null;
private CurrencyCode currencyCode;


@JsonProperty("TaxType")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/AccountType.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Accounts.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Allocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Allocations.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Attachment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Attachments.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Balances.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/xero/models/accounting/BankTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -116,7 +116,7 @@ public static TypeEnum fromValue(String text) {


@JsonProperty("CurrencyCode")
private CurrencyCode currencyCode = null;
private CurrencyCode currencyCode;


@JsonProperty("CurrencyRate")
Expand Down Expand Up @@ -167,7 +167,7 @@ public static StatusEnum fromValue(String text) {


@JsonProperty("LineAmountTypes")
private LineAmountTypes lineAmountTypes = null;
private LineAmountTypes lineAmountTypes;


@JsonProperty("SubTotal")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/BankTransfer.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/BatchPayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/xero/models/accounting/Bill.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -35,7 +35,7 @@ public class Bill {


@JsonProperty("Type")
private PaymentTermType type = null;
private PaymentTermType type;

public Bill day(Integer day) {
this.day = day;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/CISSetting.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/CISSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
30 changes: 15 additions & 15 deletions src/main/java/com/xero/models/accounting/Contact.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -28,7 +28,7 @@
import com.xero.models.accounting.CurrencyCode;
import com.xero.models.accounting.PaymentTerm;
import com.xero.models.accounting.Phone;
import com.xero.models.accounting.TrackingCategory;
import com.xero.models.accounting.SalesTrackingCategory;
import com.xero.models.accounting.ValidationError;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
Expand Down Expand Up @@ -155,7 +155,7 @@ public static ContactStatusEnum fromValue(String text) {


@JsonProperty("DefaultCurrency")
private CurrencyCode defaultCurrency = null;
private CurrencyCode defaultCurrency;


@JsonProperty("XeroNetworkKey")
Expand All @@ -171,11 +171,11 @@ public static ContactStatusEnum fromValue(String text) {


@JsonProperty("SalesTrackingCategories")
private List<TrackingCategory> salesTrackingCategories = null;
private List<SalesTrackingCategory> salesTrackingCategories = null;


@JsonProperty("PurchasesTrackingCategories")
private List<TrackingCategory> purchasesTrackingCategories = null;
private List<SalesTrackingCategory> purchasesTrackingCategories = null;


@JsonProperty("TrackingCategoryName")
Expand Down Expand Up @@ -653,14 +653,14 @@ public void setPurchasesDefaultAccountCode(String purchasesDefaultAccountCode) {
this.purchasesDefaultAccountCode = purchasesDefaultAccountCode;
}

public Contact salesTrackingCategories(List<TrackingCategory> salesTrackingCategories) {
public Contact salesTrackingCategories(List<SalesTrackingCategory> salesTrackingCategories) {
this.salesTrackingCategories = salesTrackingCategories;
return this;
}

public Contact addSalesTrackingCategoriesItem(TrackingCategory salesTrackingCategoriesItem) {
public Contact addSalesTrackingCategoriesItem(SalesTrackingCategory salesTrackingCategoriesItem) {
if (this.salesTrackingCategories == null) {
this.salesTrackingCategories = new ArrayList<TrackingCategory>();
this.salesTrackingCategories = new ArrayList<SalesTrackingCategory>();
}
this.salesTrackingCategories.add(salesTrackingCategoriesItem);
return this;
Expand All @@ -671,22 +671,22 @@ public Contact addSalesTrackingCategoriesItem(TrackingCategory salesTrackingCate
* @return salesTrackingCategories
**/
@ApiModelProperty(value = "The default sales tracking categories for contacts")
public List<TrackingCategory> getSalesTrackingCategories() {
public List<SalesTrackingCategory> getSalesTrackingCategories() {
return salesTrackingCategories;
}

public void setSalesTrackingCategories(List<TrackingCategory> salesTrackingCategories) {
public void setSalesTrackingCategories(List<SalesTrackingCategory> salesTrackingCategories) {
this.salesTrackingCategories = salesTrackingCategories;
}

public Contact purchasesTrackingCategories(List<TrackingCategory> purchasesTrackingCategories) {
public Contact purchasesTrackingCategories(List<SalesTrackingCategory> purchasesTrackingCategories) {
this.purchasesTrackingCategories = purchasesTrackingCategories;
return this;
}

public Contact addPurchasesTrackingCategoriesItem(TrackingCategory purchasesTrackingCategoriesItem) {
public Contact addPurchasesTrackingCategoriesItem(SalesTrackingCategory purchasesTrackingCategoriesItem) {
if (this.purchasesTrackingCategories == null) {
this.purchasesTrackingCategories = new ArrayList<TrackingCategory>();
this.purchasesTrackingCategories = new ArrayList<SalesTrackingCategory>();
}
this.purchasesTrackingCategories.add(purchasesTrackingCategoriesItem);
return this;
Expand All @@ -697,11 +697,11 @@ public Contact addPurchasesTrackingCategoriesItem(TrackingCategory purchasesTrac
* @return purchasesTrackingCategories
**/
@ApiModelProperty(value = "The default purchases tracking categories for contacts")
public List<TrackingCategory> getPurchasesTrackingCategories() {
public List<SalesTrackingCategory> getPurchasesTrackingCategories() {
return purchasesTrackingCategories;
}

public void setPurchasesTrackingCategories(List<TrackingCategory> purchasesTrackingCategories) {
public void setPurchasesTrackingCategories(List<SalesTrackingCategory> purchasesTrackingCategories) {
this.purchasesTrackingCategories = purchasesTrackingCategories;
}

Expand Down
Loading

0 comments on commit b26d9d2

Please sign in to comment.