Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Transfer extends Resource implements Buildable |
||
9 | { |
||
10 | /** |
||
11 | * The enpoint for transfer requests |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | const ENDPOINT = '/transfer'; |
||
16 | |||
17 | /** |
||
18 | * @see https://revolut-engineering.github.io/api-docs/business-api/#transfers-create-transfer Official API documentation |
||
19 | */ |
||
20 | public function create(array $json) |
||
21 | { |
||
22 | return $this->client->post(self::ENDPOINT, ['json' => $json]); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return \tbclla\Revolut\Builders\TransferBuilder |
||
27 | */ |
||
28 | public function build() |
||
31 | } |
||
32 | } |
||
33 |