UsBankAccountVerification.php
2.65 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
<?php
namespace Braintree;
/**
 * Braintree UsBankAccountVerification module
 *
 * @package    Braintree
 * @category   Resources
 */
/**
 * Manages Braintree UsBankAccountVerifications
 *
 * <b>== More information ==</b>
 *
 *
 * @package    Braintree
 * @category   Resources
 *
 */
class UsBankAccountVerification extends Result\UsBankAccountVerification
{
    /**
     *  factory method: returns an instance of UsBankAccountVerification
     *  to the requesting method, with populated properties
     *
     * @ignore
     * @return UsBankAccountVerification
     */
    public static function factory($attributes)
    {
        $instance = new self($attributes);
        $instance->_initialize($attributes);
        return $instance;
    }
    /* instance methods */
    /**
     * sets instance properties from an array of values
     *
     * @access protected
     * @param array $usBankAccountVerificationAttribs array of usBankAccountVerification data
     * @return void
     */
    protected function _initialize($usBankAccountVerificationAttribs)
    {
        // set the attributes
        $this->_attributes = $usBankAccountVerificationAttribs;
    }
    /**
     * create a printable representation of the object as:
     * ClassName[property=value, property=value]
     * @return string
     */
    public function  __toString()
    {
        return __CLASS__ . '[' . Util::attributesToString($this->_attributes) . ']';
    }
    // static methods redirecting to gateway
    /**
     * finds a US bank account verification
     *
     * @access public
     * @param string $token unique id
     * @return UsBankAccountVerification
     */
    public static function find($token)
    {
        return Configuration::gateway()->usBankAccountVerification()->find($token);
    }
    /**
     * Returns a ResourceCollection of US bank account verifications matching the search query.
     *
     * @access public
     * @param mixed $query search query
     * @return ResourceCollection
     */
    public static function search($query)
    {
        return Configuration::gateway()->usBankAccountVerification()->search($query);
    }
    /**
     * Returns a ResourceCollection of US bank account verifications matching the search query.
     *
     * @access public
     * @param string $token unique id
     * @param array $amounts micro transfer amounts
     * @return ResourceCollection
     */
    public static function confirmMicroTransferAmounts($token, $amounts)
    {
        return Configuration::gateway()->usBankAccountVerification()->confirmMicroTransferAmounts($token, $amounts);
    }
}
class_alias('Braintree\UsBankAccountVerification', 'Braintree_UsBankAccountVerification');