-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.cpp
More file actions
81 lines (61 loc) · 2.11 KB
/
Order.cpp
File metadata and controls
81 lines (61 loc) · 2.11 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//
// Created by micha on 18/06/2023.
//
#include "Order.h"
Order::Order(const string &productName, int quantity, double price, double vatRate, const string &orderDate,
double totalValue, PaymentMethod paymentMethod, const string &clientName) : productName(productName),
quantity(quantity),
price(price), vatRate(vatRate),
orderDate(orderDate),
totalValue(totalValue),
paymentMethod(paymentMethod),
clientName(clientName) {
}
string Order::getProductName() const {
return productName;
}
int Order::getQuantity() const {
return quantity;
}
double Order::getPrice() const {
return price;
}
double Order::getVatRate() const {
return vatRate;
}
string Order::getOrderDate() const {
return orderDate;
}
double Order::getTotalValue() const {
return totalValue;
}
PaymentMethod Order::getPaymentMethod() const {
return paymentMethod;
}
string Order::getClientName() const {
return clientName;
}
void Order::setProductName(const string &productName) {
this->productName = productName;
}
void Order::setQuantity(int quantity) {
this->quantity = quantity;
}
void Order::setPrice(double price) {
this->price = price;
}
void Order::setVatRate(double vatRate) {
this->vatRate = vatRate;
}
void Order::setOrderDate(const string &orderDate) {
this->orderDate = orderDate;
}
void Order::setTotalValue(double totalValue) {
this->totalValue = totalValue;
}
void Order::setPaymentMethod(PaymentMethod paymentMethod) {
this->paymentMethod = paymentMethod;
}
void Order::setClientName(const string &clientName) {
this->clientName = clientName;
}