1 <?php
2
3 namespace rpf\api\module;
4 use rpf\api\apiModule;
5
6 7 8 9 10
11 class bbCustomer_readEntry extends apiModule
12 {
13 protected $rpcMethod = 'bbCustomer::readEntry';
14
15 16 17 18 19 20
21 public function setCeid($ceid)
22 {
23 return $this->addParam('ceid', (integer) $ceid);
24 }
25
26 27 28 29 30 31 32
33 public function setCustomerId($ceid)
34 {
35 return $this->setCeid($ceid);
36 }
37
38 39 40 41 42 43
44 public function setUid($uid)
45 {
46 return $this->addParam('uid', $uid);
47 }
48
49 50 51 52 53 54 55
56 public function setUserId($uid)
57 {
58 return $this->setUid($uid);
59 }
60
61 62 63 64 65 66
67 public function setNewsletter($newsletter = true)
68 {
69 return $this->addParam('newsletter',(bool) $newsletter);
70 }
71
72 73 74 75 76 77 78
79 public function addReturnAddress($bool = true)
80 {
81
82 return $this->addParam('return_adress', (bool) $bool);
83 }
84
85 86 87 88 89 90
91 public function addReturnAddressCountry($bool= true)
92 {
93 $this->addParam('return_adress', (bool) $bool);
94 return $this->addParam('return_adress_country', (bool) $bool);
95 }
96
97 98 99 100 101 102
103 public function addReturnOrders($bool = true)
104 {
105 return $this->addParam('return_orders', (bool) $bool);
106 }
107
108 109 110 111 112 113 114 115
116 public function addReturnAccountEntries($bool = true)
117 {
118 $this->addParam('return_orders', (bool) $bool);
119 return $this->addParam('return_account_entrys', (bool) $bool);
120 }
121
122 123 124 125 126 127
128 public function addReturnSettlements($bool = true)
129 {
130 $this->addParam('return_account_entrys', (bool) $bool);
131 return $this->addParam('return_account_entrys', (bool) $bool);
132 }
133
134 135 136 137 138 139
140 public function addReturnLimits($bool = true)
141 {
142 $this->addParam('return_orders', (bool) $bool);
143 return $this->addParam('return_limits', (bool) $bool);
144 }
145
146 147 148 149 150 151
152 public function addReturnTariff($bool = true)
153 {
154 $this->addParam('return_orders', (bool) $bool);
155 return $this->addParam('return_tariff', (bool) $bool);
156 }
157
158 159 160 161 162 163
164 public function addReturnUser($bool = true)
165 {
166 return $this->addParam('return_user', (bool) $bool);
167 }
168
169 170 171 172 173 174
175 public function addReturnPolicy($bool = true)
176 {
177 $this->addParam('return_user', (bool) $bool);
178 return $this->addParam('return_policy', (bool) $bool);
179 }
180
181 182 183 184 185 186
187 public function addReturnHandles($bool = true)
188 {
189 return $this->addParam('return_handles', (bool) $bool);
190 }
191
192 193 194 195 196 197
198 public function addReturnStaid($bool = true)
199 {
200 return $this->addParam('return_staid', (bool) $bool);
201 }
202
203 204 205 206 207 208
209 public function addReturnOverview($bool = true)
210 {
211 return $this->addParam('return_overview', (bool) $bool);
212 }
213
214 215 216 217 218 219
220 public function addReturnPayInfo($bool = true)
221 {
222 return $this->addParam('return_payinfo', (bool) $bool);
223 }
224
225 226 227 228 229 230
231 public function addReturnPayInfoBank($bool = true)
232 {
233 $this->addParam('return_payinfo', (bool) $bool);
234 return $this->addParam('return_payinfo_bank', (bool) $bool);
235 }
236
237 238 239 240 241 242
243 public function addReturnPayment($bool = true)
244 {
245 $this->addParam('return_payinfo', (bool) $bool);
246 return $this->addParam('return_payment', (bool) $bool);
247 }
248
249 250 251 252 253 254
255 public function addReturnPhoneEncodet($bool = true)
256 {
257 $this->addParam('return_adress', (bool) $bool);
258 return $this->addParam('return_phone_encodet', (bool) $bool);
259 }
260 }