1 | <?php |
||
14 | class Transfers extends MoipResource |
||
15 | { |
||
16 | /** |
||
17 | * @const strign |
||
18 | */ |
||
19 | const PATH = 'transfers'; |
||
20 | |||
21 | /** |
||
22 | * @const strign |
||
23 | */ |
||
24 | const METHOD = 'BANK_ACCOUNT'; |
||
25 | |||
26 | /** |
||
27 | * @const strign |
||
28 | */ |
||
29 | const TYPE = 'CHECKING'; |
||
30 | |||
31 | /** |
||
32 | * @const strign |
||
33 | */ |
||
34 | const TYPE_HOLD = 'CPF'; |
||
35 | |||
36 | /** |
||
37 | * Initializes new instances. |
||
38 | */ |
||
39 | protected function initialize() |
||
43 | |||
44 | /** |
||
45 | * @param stdClass $response |
||
46 | * |
||
47 | * @return Transfers |
||
48 | */ |
||
49 | protected function populate(stdClass $response) |
||
55 | |||
56 | /** |
||
57 | * Set info of transfers. |
||
58 | * |
||
59 | * @param $amount |
||
60 | * @param $bankNumber Bank number. possible values: 001, 237, 341, 041. |
||
61 | * @param $agencyNumber |
||
62 | * @param $agencyCheckNumber |
||
63 | * @param $accountNumber |
||
64 | * @param $accountCheckNumber |
||
65 | * |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function setTransfers( |
||
89 | |||
90 | /** |
||
91 | * |
||
92 | * @param $fullname |
||
93 | * @param $taxDocument |
||
94 | * |
||
95 | * @return $this |
||
96 | */ |
||
97 | public function setHolder($fullname, $taxDocument){ |
||
106 | |||
107 | /** |
||
108 | * Execute Tranfers. |
||
109 | * |
||
110 | * @return Transfers |
||
111 | */ |
||
112 | public function execute() |
||
120 | |||
121 | /** |
||
122 | * Get MoIP Transfers id. |
||
123 | * |
||
124 | * @return strign |
||
125 | */ |
||
126 | public function getId() |
||
130 | } |