1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Speicher210\Fastbill\Api\Model\Notification\Payment; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation as JMS; |
6
|
|
|
use Speicher210\Fastbill\Api\Model\Notification\AbstractNotificationPayload; |
7
|
|
|
use Speicher210\Fastbill\Api\Model\Notification\Customer\Customer; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* Abstract payment notification payload model. |
11
|
|
|
*/ |
12
|
|
|
abstract class AbstractPaymentNotificationPayload extends AbstractNotificationPayload implements PaymentNotificationPayloadInterface |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* The customer for the payment notification. |
16
|
|
|
* |
17
|
|
|
* @var Customer |
18
|
|
|
* |
19
|
|
|
* @JMS\Type("Speicher210\Fastbill\Api\Model\Notification\Customer\Customer") |
20
|
|
|
* @JMS\SerializedName("customer") |
21
|
|
|
*/ |
22
|
|
|
protected $customer; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* The subscription for the payment notification. |
26
|
|
|
* |
27
|
|
|
* @var PaymentSubscription |
28
|
|
|
* |
29
|
|
|
* @JMS\Type("Speicher210\Fastbill\Api\Model\Notification\Payment\PaymentSubscription") |
30
|
|
|
* @JMS\SerializedName("subscription") |
31
|
|
|
*/ |
32
|
|
|
protected $subscription; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* The payment for the payment notification. |
36
|
|
|
* |
37
|
|
|
* @var Payment |
38
|
|
|
* |
39
|
|
|
* @JMS\Type("Speicher210\Fastbill\Api\Model\Notification\Payment\Payment") |
40
|
|
|
* @JMS\SerializedName("payment") |
41
|
|
|
*/ |
42
|
|
|
protected $payment; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* The date and time when the payment notification was created. |
46
|
|
|
* |
47
|
|
|
* @var \DateTime |
48
|
|
|
* |
49
|
|
|
* @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
50
|
|
|
* @JMS\SerializedName("created") |
51
|
|
|
*/ |
52
|
|
|
protected $created; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* {@inheritdoc} |
56
|
|
|
*/ |
57
|
|
|
public function getCustomer() |
58
|
|
|
{ |
59
|
|
|
return $this->customer; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* {@inheritdoc} |
64
|
|
|
*/ |
65
|
|
|
public function setCustomer($customer) |
66
|
|
|
{ |
67
|
|
|
$this->customer = $customer; |
68
|
|
|
|
69
|
|
|
return $this; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* {@inheritdoc} |
74
|
|
|
*/ |
75
|
|
|
public function getSubscription() |
76
|
|
|
{ |
77
|
|
|
return $this->subscription; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* {@inheritdoc} |
82
|
|
|
*/ |
83
|
|
|
public function setSubscription($subscription) |
84
|
|
|
{ |
85
|
|
|
$this->subscription = $subscription; |
86
|
|
|
|
87
|
|
|
return $this; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* {@inheritdoc} |
92
|
|
|
*/ |
93
|
|
|
public function getPayment() |
94
|
|
|
{ |
95
|
|
|
return $this->payment; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* {@inheritdoc} |
100
|
|
|
*/ |
101
|
|
|
public function setPayment($payment) |
102
|
|
|
{ |
103
|
|
|
$this->payment = $payment; |
104
|
|
|
|
105
|
|
|
return $this; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* {@inheritdoc} |
110
|
|
|
*/ |
111
|
|
|
public function getCreated() |
112
|
|
|
{ |
113
|
|
|
return $this->created; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* {@inheritdoc} |
118
|
|
|
*/ |
119
|
|
|
public function setCreated($created) |
120
|
|
|
{ |
121
|
|
|
$this->created = $created; |
122
|
|
|
|
123
|
|
|
return $this; |
124
|
|
|
} |
125
|
|
|
} |
126
|
|
|
|