-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from szprutamich/master
Version 2.46
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/main/java/com/testdroid/api/model/APICountryVatRate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
*/ | ||
@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 <T extends APIEntity> void clone(T from) { | ||
APICountryVatRate countryVatRate = (APICountryVatRate) from; | ||
cloneBase(from); | ||
this.countryCode = countryVatRate.countryCode; | ||
this.vatRate = countryVatRate.vatRate; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,3 +66,4 @@ APIActivity | |
APIDevicePicker | ||
APIDeviceFilter | ||
APIDeviceFilterGroup | ||
APICountryVatRate |