/
CreditCardPaymentNotificationRequest.php
141 lines (108 loc) 路 2.77 KB
/
CreditCardPaymentNotificationRequest.php
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
declare( strict_types = 1 );
namespace WMDE\Fundraising\Frontend\DonationContext\UseCases\CreditCardPaymentNotification;
use WMDE\Euro\Euro;
/**
* @license GNU GPL v2+
* @author Kai Nissen < kai.nissen@wikimedia.de >
*/
class CreditCardPaymentNotificationRequest {
public const NOTIFICATION_TYPE_BILLING = 'billing';
public const NOTIFICATION_TYPE_ERROR = 'error';
private $transactionId;
private $notificationType;
private $amount;
private $customerId;
private $sessionId;
private $authId;
private $donationId;
private $token;
private $updateToken;
private $title;
private $country;
private $currency;
public function getTransactionId(): string {
return $this->transactionId;
}
public function setTransactionId( string $transactionId ): self {
$this->transactionId = $transactionId;
return $this;
}
public function getNotificationType(): string {
return $this->notificationType;
}
public function setNotificationType( string $notificationType ): self {
$this->notificationType = $notificationType;
return $this;
}
public function getAmount(): Euro {
return $this->amount;
}
public function setAmount( Euro $amount ): self {
$this->amount = $amount;
return $this;
}
public function getCustomerId(): string {
return $this->customerId;
}
public function setCustomerId( string $customerId ): self {
$this->customerId = $customerId;
return $this;
}
public function getSessionId(): string {
return $this->sessionId;
}
public function setSessionId( string $sessionId ): self {
$this->sessionId = $sessionId;
return $this;
}
public function getAuthId(): string {
return $this->authId;
}
public function setAuthId( string $authId ): self {
$this->authId = $authId;
return $this;
}
public function getDonationId(): int {
return $this->donationId;
}
public function setDonationId( int $donationId ): self {
$this->donationId = $donationId;
return $this;
}
public function getToken(): string {
return $this->token;
}
public function setToken( string $token ): self {
$this->token = $token;
return $this;
}
public function getUpdateToken(): string {
return $this->updateToken;
}
public function setUpdateToken( string $updateToken ): self {
$this->updateToken = $updateToken;
return $this;
}
public function getTitle(): string {
return $this->title;
}
public function setTitle( string $title ): self {
$this->title = $title;
return $this;
}
public function getCountry(): string {
return $this->country;
}
public function setCountry( string $country ): self {
$this->country = $country;
return $this;
}
public function getCurrency(): string {
return $this->currency;
}
public function setCurrency( string $currency ): self {
$this->currency = $currency;
return $this;
}
}