forked from Adyen/adyen-php-api-library
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotification.php
130 lines (113 loc) · 3.67 KB
/
Notification.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
namespace Adyen\Service;
use Adyen\AdyenException;
use Adyen\Client;
use Adyen\Service;
use Adyen\Service\ResourceModel\Notification\CreateNotificationConfiguration;
use Adyen\Service\ResourceModel\Notification\DeleteNotificationConfigurations;
use Adyen\Service\ResourceModel\Notification\GetNotificationConfiguration;
use Adyen\Service\ResourceModel\Notification\GetNotificationConfigurationList;
use Adyen\Service\ResourceModel\Notification\TestNotificationConfiguration;
use Adyen\Service\ResourceModel\Notification\UpdateNotificationConfiguration;
/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\BalancePlatform\
* @see \Adyen\Service\Transfers\
*/
class Notification extends Service
{
/**
* @var ResourceModel\Notification\CreateNotificationConfiguration
*/
protected $createNotificationConfiguration;
/**
* @var ResourceModel\Notification\UpdateNotificationConfiguration
*/
protected $updateNotificationConfiguration;
/**
* @var ResourceModel\Notification\GetNotificationConfiguration
*/
protected $getNotificationConfiguration;
/**
* @var ResourceModel\Notification\DeleteNotificationConfigurations
*/
protected $deleteNotificationConfigurations;
/**
* @var ResourceModel\Notification\GetNotificationConfigurationList
*/
protected $getNotificationConfigurationList;
/**
* @var ResourceModel\Notification\TestNotificationConfiguration
*/
protected $testNotificationConfiguration;
/**
* Notification constructor.
*
* @param Client $client
* @throws AdyenException
*/
public function __construct(Client $client)
{
parent::__construct($client);
$this->createNotificationConfiguration = new CreateNotificationConfiguration($this);
$this->updateNotificationConfiguration = new UpdateNotificationConfiguration($this);
$this->getNotificationConfiguration = new GetNotificationConfiguration($this);
$this->deleteNotificationConfigurations = new DeleteNotificationConfigurations($this);
$this->getNotificationConfigurationList = new GetNotificationConfigurationList($this);
$this->testNotificationConfiguration = new TestNotificationConfiguration($this);
}
/**
* @param $params
* @return mixed
* @throws AdyenException
*/
public function createNotificationConfiguration($params)
{
return $this->createNotificationConfiguration->request($params);
}
/**
* @param $params
* @return mixed
* @throws AdyenException
*/
public function updateNotificationConfiguration($params)
{
return $this->updateNotificationConfiguration->request($params);
}
/**
* @param $params
* @return mixed
* @throws AdyenException
*/
public function getNotificationConfiguration($params)
{
return $this->getNotificationConfiguration->request($params);
}
/**
* @param $params
* @return mixed
* @throws AdyenException
*/
public function deleteNotificationConfigurations($params)
{
return $this->deleteNotificationConfigurations->request($params);
}
/**
* @param $params
* @return mixed
* @throws AdyenException
*/
public function getNotificationConfigurationList($params)
{
return $this->getNotificationConfigurationList->request($params);
}
/**
* @param $params
* @return mixed
* @throws AdyenException
*/
public function testNotificationConfiguration($params)
{
return $this->testNotificationConfiguration->request($params);
}
}