forked from Adyen/adyen-php-api-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHop.php
54 lines (47 loc) · 1.25 KB
/
Hop.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
<?php
namespace Adyen\Service;
/**
* @deprecated Please consider using the LegalEntityManagement services instead
* @see \Adyen\Service\LegalEntityManagement\
*/
class Hop extends \Adyen\Service
{
/**
* @var ResourceModel\Hop\GetOnboardingUrl
*/
protected $getOnboardingUrl;
/**
* @var ResourceModel\Hop\GetPciQuestionnaireUrl
*/
protected $getPciQuestionnaireUrl;
/**
* Hop constructor.
*
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
public function __construct(\Adyen\Client $client)
{
parent::__construct($client);
$this->getOnboardingUrl = new \Adyen\Service\ResourceModel\Hop\GetOnboardingUrl($this);
$this->getPciQuestionnaireUrl = new \Adyen\Service\ResourceModel\Hop\GetPciQuestionnaireUrl($this);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function getOnboardingUrl($params)
{
return $this->getOnboardingUrl->request($params);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function getPciQuestionnaireUrl($params)
{
return $this->getPciQuestionnaireUrl->request($params);
}
}