| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Exchange extends Resource implements Buildable |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The enpoint for exchange requests |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | const ENDPOINT = '/exchange'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @see https://revolut-engineering.github.io/api-docs/business-api/#exchanges-exchange-currency 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\ExchangeBuilder |
||
| 27 | */ |
||
| 28 | public function build() |
||
| 31 | } |
||
| 32 | } |
||
| 33 |