forked from Adyen/adyen-php-api-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFund.php
More file actions
executable file
·114 lines (98 loc) · 2.82 KB
/
Copy pathFund.php
File metadata and controls
executable file
·114 lines (98 loc) · 2.82 KB
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
<?php
namespace Adyen\Service;
class Fund extends \Adyen\Service
{
/**
* @var ResourceModel\Fund\PayoutAccountHolder
*/
protected $payoutAccountHolder;
/**
* @var ResourceModel\Fund\AccountHolderBalance
*/
protected $accountHolderBalance;
/**
* @var ResourceModel\Fund\AccountHolderTransactionList
*/
protected $accountHolderTransactionList;
/**
* @var ResourceModel\Fund\RefundNotPaidOutTransfers
*/
protected $refundNotPaidOutTransfers;
/**
* @var ResourceModel\Fund\SetupBeneficiary
*/
protected $setupBeneficiary;
/**
* @var ResourceModel\Fund\TransferFunds
*/
protected $transferFunds;
/**
* Fund constructor.
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
public function __construct(\Adyen\Client $client)
{
parent::__construct($client);
$this->payoutAccountHolder = new \Adyen\Service\ResourceModel\Fund\PayoutAccountHolder($this);
$this->accountHolderBalance = new \Adyen\Service\ResourceModel\Fund\AccountHolderBalance($this);
$this->accountHolderTransactionList = new \Adyen\Service\ResourceModel\Fund\AccountHolderTransactionList($this);
$this->refundNotPaidOutTransfers = new \Adyen\Service\ResourceModel\Fund\RefundNotPaidOutTransfers($this);
$this->setupBeneficiary = new \Adyen\Service\ResourceModel\Fund\SetupBeneficiary($this);
$this->transferFunds = new \Adyen\Service\ResourceModel\Fund\TransferFunds($this);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function payoutAccountHolder($params)
{
return $this->payoutAccountHolder->request($params);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function accountHolderBalance($params)
{
return $this->accountHolderBalance->request($params);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function accountHolderTransactionList($params)
{
return $this->accountHolderTransactionList->request($params);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function refundNotPaidOutTransfers($params)
{
return $this->refundNotPaidOutTransfers->request($params);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function setupBeneficiary($params)
{
return $this->setupBeneficiary->request($params);
}
/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function transferFunds($params)
{
return $this->transferFunds->request($params);
}
}