|
1
|
|
|
<?php namespace Arcanedev\Stripe\Resources; |
|
2
|
|
|
|
|
3
|
|
|
use Arcanedev\Stripe\Bases\ExternalAccount; |
|
4
|
|
|
use Arcanedev\Stripe\Contracts\Resources\BankAccountInterface; |
|
5
|
|
|
|
|
6
|
|
|
/** |
|
7
|
|
|
* Class BankAccount |
|
8
|
|
|
* |
|
9
|
|
|
* @package Arcanedev\Stripe\Resources |
|
10
|
|
|
* @author ARCANEDEV <[email protected]> |
|
11
|
|
|
* |
|
12
|
|
|
* @link https://stripe.com/docs/api#bank_accounts |
|
13
|
|
|
* |
|
14
|
|
|
* @property string id |
|
15
|
|
|
* @property string object // 'bank_account' |
|
16
|
|
|
* @property string account |
|
17
|
|
|
* @property string country |
|
18
|
|
|
* @property string currency |
|
19
|
|
|
* @property bool default_for_currency |
|
20
|
|
|
* @property string last4 |
|
21
|
|
|
* @property \Arcanedev\Stripe\AttachedObject metadata |
|
22
|
|
|
* @property string status // 'new', 'validated', 'verified', or 'errored' |
|
23
|
|
|
* @property string bank_name |
|
24
|
|
|
* @property string fingerprint |
|
25
|
|
|
* @property string routing_number |
|
26
|
|
|
*/ |
|
27
|
|
|
class BankAccount extends ExternalAccount implements BankAccountInterface |
|
28
|
|
|
{ |
|
29
|
|
|
/* ------------------------------------------------------------------------------------------------ |
|
30
|
|
|
| CRUD Functions |
|
31
|
|
|
| ------------------------------------------------------------------------------------------------ |
|
32
|
|
|
*/ |
|
33
|
|
|
/** |
|
34
|
|
|
* Get the verified bank account. |
|
35
|
|
|
* |
|
36
|
|
|
* @param array|null $params |
|
37
|
|
|
* @param array|string|null $options |
|
38
|
|
|
* |
|
39
|
|
|
* @return self |
|
40
|
|
|
*/ |
|
41
|
10 |
|
public function verify($params = null, $options = null) |
|
42
|
|
|
{ |
|
43
|
10 |
|
$url = $this->instanceUrl() . '/verify'; |
|
44
|
|
|
|
|
45
|
10 |
|
return $this->scopedPostCall($url, $params, $options); |
|
46
|
|
|
} |
|
47
|
|
|
} |
|
48
|
|
|
|