-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.h
More file actions
65 lines (42 loc) · 1.28 KB
/
Order.h
File metadata and controls
65 lines (42 loc) · 1.28 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
//
// Created by micha on 18/06/2023.
//
#ifndef SHOP_PROJECT_CLI_ORDER_H
#define SHOP_PROJECT_CLI_ORDER_H
#include <iostream>
#include <string>
using namespace std;
enum PaymentMethod {
gotowka, karta, przelew, blik
};
class Order {
private:
string productName;
int quantity;
double price;
double vatRate;
string orderDate;
double totalValue;
PaymentMethod paymentMethod;
string clientName;
public:
Order(const string &productName, int quantity, double price, double vatRate, const string &orderDate,
double totalValue, PaymentMethod paymentMethod, const string &clientName);
string getProductName() const;
int getQuantity() const;
double getPrice() const;
double getVatRate() const;
string getOrderDate() const;
double getTotalValue() const;
PaymentMethod getPaymentMethod() const;
string getClientName() const;
void setProductName(const string &productName);
void setQuantity(int quantity);
void setPrice(double price);
void setVatRate(double vatRate);
void setOrderDate(const string &orderDate);
void setTotalValue(double totalValue);
void setPaymentMethod(PaymentMethod paymentMethod);
void setClientName(const string &clientName);
};
#endif //SHOP_PROJECT_CLI_ORDER_H