| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 2 | public function download(GetReceiptCommand $command): GetReceiptResult |
|
| 26 | { |
||
| 27 | 2 | $soapCaller = $this->settings()->createCallerForService(Services::cancel()); |
|
| 28 | 2 | $rawResponse = $soapCaller->call('get_receipt', [ |
|
| 29 | 2 | 'taxpayer_id' => $command->rfc(), |
|
| 30 | 2 | 'uuid' => $command->uuid(), |
|
| 31 | 2 | 'type' => $command->type()->value(), |
|
| 32 | 2 | ]); |
|
| 33 | 2 | return new GetReceiptResult($rawResponse); |
|
| 34 | } |
||
| 36 |