OrderDetailsEntry.java
929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package fi.insomnia.bortal.verkkomaksutfi;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class OrderDetailsEntry {
public OrderDetailsEntry()
{
setContact(new ContactEntry());
products.add(new ProductEntry("second"));
products.add(new ProductEntry("first"));
}
private boolean includeVat = false;
private ContactEntry contact;
private ProductsListEntry products = new ProductsListEntry();
public void setIncludeVat(boolean set) {
includeVat = set;
}
public String getIncludeVat() {
return includeVat ? "1" : "0";
}
public ContactEntry getContact() {
return contact;
}
public void setContact(ContactEntry contact) {
this.contact = contact;
}
public ProductsListEntry getProducts() {
return products;
}
public void setProducts(ProductsListEntry products) {
this.products = products;
}
}