| 1 |
<?php |
| 2 |
/** |
| 3 |
* Push cloud-print provider adapter interface. |
| 4 |
* |
| 5 |
* @package WCPOS\WooCommercePOS\Interfaces |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace WCPOS\WooCommercePOS\Interfaces; |
| 9 |
|
| 10 |
/** |
| 11 |
* Push_Provider_Adapter_Interface interface. |
| 12 |
*/ |
| 13 |
interface Push_Provider_Adapter_Interface extends Provider_Adapter_Interface { |
| 14 |
/** |
| 15 |
* Submit rendered bytes to the provider. |
| 16 |
* |
| 17 |
* @param array $printer Printer configuration. |
| 18 |
* @param array $job Print job data. |
| 19 |
* @param string $payload Rendered payload bytes. |
| 20 |
* @param string $title Provider job title. |
| 21 |
* |
| 22 |
* @return array{success:bool, retryable:bool, error:string, external_job_id:string, drawer_error:string} |
| 23 |
*/ |
| 24 |
public function submit( array $printer, array $job, string $payload, string $title ): array; |
| 25 |
} |
| 26 |
|