Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<parameters>true</parameters>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,45 +1,18 @@
package bg.softuni.invoice.model.service;

import bg.softuni.invoice.model.enumerated.VatValue;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Setter
@Getter
public class SaleServiceModel {

private String name;
private int quantity;
private BigDecimal price;
private VatValue vatValue;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getQuantity() {
return quantity;
}

public void setQuantity(int quantity) {
this.quantity = quantity;
}

public BigDecimal getPrice() {
return price;
}

public void setPrice(BigDecimal price) {
this.price = price;
}

public VatValue getVatValue() {
return vatValue;
}

public void setVatValue(VatValue vatValue) {
this.vatValue = vatValue;
}
}
44 changes: 5 additions & 39 deletions src/main/java/bg/softuni/invoice/model/view/SaleViewModel.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package bg.softuni.invoice.model.view;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Setter
@Getter
public class SaleViewModel {

private String id;
Expand All @@ -10,43 +15,4 @@ public class SaleViewModel {
private BigDecimal price;
private int vatValue;

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getQuantity() {
return quantity;
}

public void setQuantity(int quantity) {
this.quantity = quantity;
}

public BigDecimal getPrice() {
return price;
}

public void setPrice(BigDecimal price) {
this.price = price;
}

public int getVatValue() {
return vatValue;
}

public void setVatValue(int vatValue) {
this.vatValue = vatValue;
}
}