From 6453cc4ed3ed3dbafda79afea7d77c5f295e4195 Mon Sep 17 00:00:00 2001 From: "michal.szpruta" Date: Tue, 3 Oct 2017 19:52:10 +0200 Subject: [PATCH] Version 2.46 --- pom.xml | 2 +- .../java/com/testdroid/api/APIEntity.java | 3 +- .../api/model/APICountryVatRate.java | 51 +++++++++++++++++++ .../java/com/testdroid/api/model/jaxb.index | 1 + 4 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/testdroid/api/model/APICountryVatRate.java diff --git a/pom.xml b/pom.xml index 43733afa..3147e900 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.testdroid testdroid-api - 2.44 + 2.46 jar Testdroid API v2 https://github.com/bitbar/testdroid-api diff --git a/src/main/java/com/testdroid/api/APIEntity.java b/src/main/java/com/testdroid/api/APIEntity.java index eae5c702..2477969c 100644 --- a/src/main/java/com/testdroid/api/APIEntity.java +++ b/src/main/java/com/testdroid/api/APIEntity.java @@ -102,7 +102,8 @@ APIActivity.class, APIDevicePicker.class, APIDeviceFilter.class, - APIDeviceFilterGroup.class + APIDeviceFilterGroup.class, + APICountryVatRate.class }) public abstract class APIEntity { diff --git a/src/main/java/com/testdroid/api/model/APICountryVatRate.java b/src/main/java/com/testdroid/api/model/APICountryVatRate.java new file mode 100644 index 00000000..2d69c176 --- /dev/null +++ b/src/main/java/com/testdroid/api/model/APICountryVatRate.java @@ -0,0 +1,51 @@ +package com.testdroid.api.model; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.testdroid.api.APIEntity; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author MichaƂ Szpruta + */ +@XmlRootElement +public class APICountryVatRate extends APIEntity { + + private String countryCode; + + private Integer vatRate; + + public APICountryVatRate() { + } + + public APICountryVatRate(Long id, String countryCode, Integer vatRate) { + super(id); + this.countryCode = countryCode; + this.vatRate = vatRate; + } + + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + public Integer getVatRate() { + return vatRate; + } + + public void setVatRate(Integer vatRate) { + this.vatRate = vatRate; + } + + @Override + @JsonIgnore + protected void clone(T from) { + APICountryVatRate countryVatRate = (APICountryVatRate) from; + cloneBase(from); + this.countryCode = countryVatRate.countryCode; + this.vatRate = countryVatRate.vatRate; + } +} diff --git a/src/main/java/com/testdroid/api/model/jaxb.index b/src/main/java/com/testdroid/api/model/jaxb.index index d1cc7529..499bd5c6 100644 --- a/src/main/java/com/testdroid/api/model/jaxb.index +++ b/src/main/java/com/testdroid/api/model/jaxb.index @@ -66,3 +66,4 @@ APIActivity APIDevicePicker APIDeviceFilter APIDeviceFilterGroup +APICountryVatRate