Completed
Push — master ( 4e804b...c0f903 )
by ARCANEDEV
6s
created

BankAccount   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 1
c 3
b 0
f 2
lcom 0
cbo 1
dl 0
loc 21
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A verify() 0 6 1
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