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