1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AllDigitalRewards\WeGift\Entity; |
4
|
|
|
|
5
|
|
|
class Order extends AbstractEntity |
6
|
|
|
{ |
7
|
|
|
protected string $created_by; |
8
|
|
|
protected string $created_on; |
9
|
|
|
protected string $description; |
10
|
|
|
protected string $id; |
11
|
|
|
protected string $idempotency_key; |
12
|
|
|
protected array $invoice_ids; |
13
|
|
|
protected string $status; |
14
|
|
|
protected float $total_price; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @return string |
18
|
|
|
*/ |
19
|
|
|
public function getCreatedBy(): string |
20
|
|
|
{ |
21
|
|
|
return $this->created_by; |
22
|
|
|
} |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @param string $created_by |
26
|
|
|
*/ |
27
|
|
|
public function setCreatedBy(string $created_by): void |
28
|
|
|
{ |
29
|
|
|
$this->created_by = $created_by; |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @return string |
34
|
|
|
*/ |
35
|
|
|
public function getCreatedOn(): string |
36
|
|
|
{ |
37
|
|
|
return $this->created_on; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @param string $created_on |
42
|
|
|
*/ |
43
|
|
|
public function setCreatedOn(string $created_on): void |
44
|
|
|
{ |
45
|
|
|
$this->created_on = $created_on; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @return string |
50
|
|
|
*/ |
51
|
|
|
public function getDescription(): string |
52
|
|
|
{ |
53
|
|
|
return $this->description; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @param string $description |
58
|
|
|
*/ |
59
|
|
|
public function setDescription(string $description): void |
60
|
|
|
{ |
61
|
|
|
$this->description = $description; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @return string |
66
|
|
|
*/ |
67
|
|
|
public function getId(): string |
68
|
|
|
{ |
69
|
|
|
return $this->id; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @param string $id |
74
|
|
|
*/ |
75
|
|
|
public function setId(string $id): void |
76
|
|
|
{ |
77
|
|
|
$this->id = $id; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @return string |
82
|
|
|
*/ |
83
|
|
|
public function getIdempotencyKey(): string |
84
|
|
|
{ |
85
|
|
|
return $this->idempotency_key; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @param string $idempotency_key |
90
|
|
|
*/ |
91
|
|
|
public function setIdempotencyKey(string $idempotency_key): void |
92
|
|
|
{ |
93
|
|
|
$this->idempotency_key = $idempotency_key; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @return array |
98
|
|
|
*/ |
99
|
|
|
public function getInvoiceIds(): array |
100
|
|
|
{ |
101
|
|
|
return $this->invoice_ids; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @param array $invoice_ids |
106
|
|
|
*/ |
107
|
|
|
public function setInvoiceIds(array $invoice_ids): void |
108
|
|
|
{ |
109
|
|
|
$this->invoice_ids = $invoice_ids; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @return string |
114
|
|
|
*/ |
115
|
|
|
public function getStatus(): string |
116
|
|
|
{ |
117
|
|
|
return $this->status; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @param string $status |
122
|
|
|
*/ |
123
|
|
|
public function setStatus(string $status): void |
124
|
|
|
{ |
125
|
|
|
$this->status = $status; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @return float |
130
|
|
|
*/ |
131
|
|
|
public function getTotalPrice(): float |
132
|
|
|
{ |
133
|
|
|
return $this->total_price; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @param float $total_price |
138
|
|
|
*/ |
139
|
|
|
public function setTotalPrice(float $total_price): void |
140
|
|
|
{ |
141
|
|
|
$this->total_price = $total_price; |
142
|
|
|
} |
143
|
|
|
} |
144
|
|
|
|