/
FirstGivingIdealRequest.php
91 lines (69 loc) · 1.94 KB
/
FirstGivingIdealRequest.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
<?php
class FirstGivingIdealRequest {
private $_bankId = NULL;
private $_amount = NULL;
private $_returnUrl = NULL;
// Quantiv charity id
private $_charityId = NULL;
private $_callbackUrl = NULL;
// Donor email address
private $_email = NULL;
// Local fundraiser id
private $_fundraiserId = NULL;
public function getBankId() {
return $this->_bankId;
}
public function getAmount() {
return $this->_amount;
}
public function getReturnUrl() {
return $this->_returnUrl;
}
public function getCharityId() {
return $this->_charityId;
}
public function getCallbackUrl() {
return $this->_callbackUrl;
}
public function setBankId($bankId) {
$this->_bankId = $bankId;
}
public function setAmount($amount) {
$this->_amount = $amount;
}
public function setReturnUrl($returnUrl) {
$this->_returnUrl = $returnUrl;
}
public function setCharityId($charityId) {
$this->_charityId = $charityId;
}
public function setCallbackUrl($callbackUrl) {
$this->_callbackUrl = $callbackUrl;
}
public function setEmail($email) {
$this->_email = $email;
}
public function getEmail() {
return $this->_email;
}
public function setFundraiserId($fundraiserId) {
$this->_fundraiserId = $fundraiserId;
}
public function getFundraiserId() {
return $this->_fundraiserId;
}
public function toArray() {
$arr = array(
'bankId' => $this->_bankId,
'amount' => $this->_amount,
'returnUrl' => $this->_returnUrl,
'charityId' => $this->_charityId,
'fundraiserId' => $this->_fundraiserId,
'email' => $this->_email
);
if ($this->_callbackUrl !== NULL) {
$arr['callbackUrl'] = $this->_callbackUrl;
}
return $arr;
}
}