Open Journal Systems
3.3.0
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php
1
<?php
6
namespace
Omnipay\PayPal\Message
;
7
211
class
RestCreateSubscriptionRequest
extends
AbstractRestRequest
212
{
218
public
function
getName
()
219
{
220
return
$this->
getParameter
(
'name'
);
221
}
222
229
public
function
setName
($value)
230
{
231
return
$this->
setParameter
(
'name'
, $value);
232
}
233
239
public
function
getPlanId
()
240
{
241
return
$this->
getParameter
(
'planId'
);
242
}
243
250
public
function
setPlanId
($value)
251
{
252
return
$this->
setParameter
(
'planId'
, $value);
253
}
254
260
public
function
getStartDate
()
261
{
262
return
$this->
getParameter
(
'startDate'
);
263
}
264
271
public
function
setStartDate
(\DateTime $value)
272
{
273
return
$this->
setParameter
(
'startDate'
, $value);
274
}
275
285
public
function
getAgreementDetails
()
286
{
287
return
$this->
getParameter
(
'agreementDetails'
);
288
}
289
300
public
function
setAgreementDetails
(array $value)
301
{
302
return
$this->
setParameter
(
'agreementDetails'
, $value);
303
}
304
314
public
function
getPayerDetails
()
315
{
316
return
$this->
getParameter
(
'payerDetails'
);
317
}
318
329
public
function
setPayerDetails
(array $value)
330
{
331
return
$this->
setParameter
(
'payerDetails'
, $value);
332
}
333
343
public
function
getShippingAddress
()
344
{
345
return
$this->
getParameter
(
'shippingAddress'
);
346
}
347
358
public
function
setShippingAddress
(array $value)
359
{
360
return
$this->
setParameter
(
'shippingAddress'
, $value);
361
}
362
372
public
function
getMerchantPreferences
()
373
{
374
return
$this->
getParameter
(
'merchantPreferences'
);
375
}
376
387
public
function
setMerchantPreferences
(array $value)
388
{
389
return
$this->
setParameter
(
'merchantPreferences'
, $value);
390
}
391
401
public
function
getChargeModel
()
402
{
403
return
$this->
getParameter
(
'chargeModel'
);
404
}
405
416
public
function
setChargeModel
(array $value)
417
{
418
return
$this->
setParameter
(
'chargeModel'
, $value);
419
}
420
421
public
function
getData
()
422
{
423
$this->
validate
(
'name'
,
'description'
,
'startDate'
,
'payerDetails'
,
'planId'
);
424
$data = array(
425
'name'
=> $this->
getName
(),
426
'description'
=> $this->
getDescription
(),
427
'start_date'
=> $this->
getStartDate
()->format(
'c'
),
428
'agreement_details'
=> $this->
getAgreementDetails
(),
429
'payer'
=> $this->
getPayerDetails
(),
430
'plan'
=> array(
431
'id'
=> $this->
getPlanId
(),
432
),
433
'shipping_address'
=> $this->
getShippingAddress
(),
434
'override_merchant_preferences'
=> $this->
getMerchantPreferences
(),
435
'override_charge_models'
=> $this->
getChargeModel
(),
436
);
437
438
return
$data;
439
}
440
448
protected
function
getEndpoint
()
449
{
450
return
parent::getEndpoint() .
'/payments/billing-agreements'
;
451
}
452
453
protected
function
createResponse
($data, $statusCode)
454
{
455
return
$this->response =
new
RestAuthorizeResponse
($this, $data, $statusCode);
456
}
457
}
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\createResponse
createResponse($data, $statusCode)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:453
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getName
getName()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:218
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getAgreementDetails
getAgreementDetails()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:285
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\RestCreateSubscriptionRequest\setPayerDetails
setPayerDetails(array $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:329
Omnipay\Common\Message\AbstractRequest\getDescription
getDescription()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:461
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getChargeModel
getChargeModel()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:401
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\setPlanId
setPlanId($value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:250
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getMerchantPreferences
getMerchantPreferences()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:372
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getPayerDetails
getPayerDetails()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:314
Omnipay\PayPal\Message\RestAuthorizeResponse
Definition:
lib/vendor/omnipay/paypal/src/Message/RestAuthorizeResponse.php:13
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\setName
setName($value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:229
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\setMerchantPreferences
setMerchantPreferences(array $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:387
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\setAgreementDetails
setAgreementDetails(array $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:300
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\setStartDate
setStartDate(\DateTime $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:271
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\setChargeModel
setChargeModel(array $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:416
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getShippingAddress
getShippingAddress()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:343
Omnipay\Common\Message\AbstractRequest\validate
validate()
Definition:
lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractRequest.php:226
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getStartDate
getStartDate()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:260
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData
getData()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:421
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getEndpoint
getEndpoint()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:448
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getPlanId
getPlanId()
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:239
Omnipay\PayPal\Message
Definition:
lib/vendor/omnipay/paypal/src/Message/AbstractRequest.php:6
Omnipay\PayPal\Message\RestCreateSubscriptionRequest\setShippingAddress
setShippingAddress(array $value)
Definition:
vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php:358
plugins
paymethod
paypal
vendor
omnipay
paypal
src
Message
RestCreateSubscriptionRequest.php
Generated on Fri Aug 28 2020 14:53:28 for Open Journal Systems by
1.8.17