Open Journal Systems
3.3.0
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php
1
<?php
6
namespace
Omnipay\PayPal\Message
;
7
195
class
RestCreatePlanRequest
extends
AbstractRestRequest
196
{
202
public
function
getName
()
203
{
204
return
$this->
getParameter
(
'name'
);
205
}
206
213
public
function
setName
($value)
214
{
215
return
$this->
setParameter
(
'name'
, $value);
216
}
217
223
public
function
getType
()
224
{
225
return
$this->
getParameter
(
'type'
);
226
}
227
235
public
function
setType
($value)
236
{
237
return
$this->
setParameter
(
'type'
, $value);
238
}
239
249
public
function
getPaymentDefinitions
()
250
{
251
return
$this->
getParameter
(
'paymentDefinitions'
);
252
}
253
264
public
function
setPaymentDefinitions
(array $value)
265
{
266
return
$this->
setParameter
(
'paymentDefinitions'
, $value);
267
}
268
278
public
function
getMerchantPreferences
()
279
{
280
return
$this->
getParameter
(
'merchantPreferences'
);
281
}
282
293
public
function
setMerchantPreferences
(array $value)
294
{
295
return
$this->
setParameter
(
'merchantPreferences'
, $value);
296
}
297
298
public
function
getData
()
299
{
300
$this->
validate
(
'name'
,
'description'
,
'type'
);
301
$data = array(
302
'name'
=> $this->
getName
(),
303
'description'
=> $this->
getDescription
(),
304
'type'
=> $this->
getType
(),
305
'payment_definitions'
=> $this->
getPaymentDefinitions
(),
306
'merchant_preferences'
=> $this->
getMerchantPreferences
(),
307
);
308
309
return
$data;
310
}
311
319
protected
function
getEndpoint
()
320
{
321
return
parent::getEndpoint() .
'/payments/billing-plans'
;
322
}
323
}
Omnipay\PayPal\Message\RestCreatePlanRequest\getPaymentDefinitions
getPaymentDefinitions()
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:249
Omnipay\PayPal\Message\RestCreatePlanRequest\setPaymentDefinitions
setPaymentDefinitions(array $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:264
Omnipay\Common\Message\AbstractRequest\getParameter
getParameter($key)
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:172
Omnipay\Common\Message\AbstractRequest\setParameter
setParameter($key, $value)
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:185
Omnipay\PayPal\Message\RestCreatePlanRequest\setType
setType($value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:235
Omnipay\Common\Message\AbstractRequest\getDescription
getDescription()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:461
Omnipay\PayPal\Message\RestCreatePlanRequest\getData
getData()
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:298
Omnipay\PayPal\Message\RestCreatePlanRequest\getMerchantPreferences
getMerchantPreferences()
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:278
Omnipay\PayPal\Message\RestCreatePlanRequest\getType
getType()
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:223
Omnipay\PayPal\Message\RestCreatePlanRequest\getEndpoint
getEndpoint()
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:319
Omnipay\PayPal\Message\RestCreatePlanRequest\getName
getName()
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:202
Omnipay\Common\Message\AbstractRequest\validate
validate()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:226
Omnipay\PayPal\Message\RestCreatePlanRequest\setName
setName($value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:213
Omnipay\PayPal\Message\RestCreatePlanRequest\setMerchantPreferences
setMerchantPreferences(array $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreatePlanRequest.php:293
Omnipay\PayPal\Message
Definition:
lib/vendor/omnipay/paypal/src/Message/AbstractRequest.php:6
plugins
paymethod
paypal
vendor
omnipay
paypal
src
Message
RestCreatePlanRequest.php
Generated on Fri Aug 28 2020 14:53:27 for Open Journal Systems by
1.8.17