# woocommerce-pos/1.10.18/includes/Interfaces/Provider_Adapter_Interface.php

WCPOS – Point of Sale (POS) plugin for WooCommerce, version 1.10.18. 50 lines.

- Page: https://pluginprobe.com/plugins/woocommerce-pos/1.10.18/code/includes/Interfaces/Provider_Adapter_Interface.php
- Raw: https://pluginprobe.com/plugins/woocommerce-pos/1.10.18/raw/includes/Interfaces/Provider_Adapter_Interface.php
- Modified: 2026-08-25T07:52:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woocommerce-pos/1.10.18/code/includes/Interfaces/Provider_Adapter_Interface.php#L10-L20`.

```php
<?php
/**
 * Cloud-print provider adapter interface.
 *
 * @package WCPOS\WooCommercePOS\Interfaces
 */

namespace WCPOS\WooCommercePOS\Interfaces;

/**
 * Provider_Adapter_Interface interface.
 */
interface Provider_Adapter_Interface {
	/**
	 * Return the provider's default job content type.
	 *
	 * @return string
	 */
	public function content_type(): string;

	/**
	 * Resolve a template to the provider's wire format and content type.
	 *
	 * @param array $printer  Printer configuration.
	 * @param array $template Template configuration.
	 *
	 * @return array{kind:string, content_type:string}
	 */
	public function format( array $printer, array $template ): array;

	/**
	 * Build a base64-encoded provider diagnostic.
	 *
	 * @param string $printer_name Printer display name.
	 *
	 * @return array{content_type:string, payload:string}
	 */
	public function diagnostic( string $printer_name ): array;

	/**
	 * Resolve provider status from printer data and plain runtime context.
	 *
	 * @param array $printer Printer configuration.
	 * @param array $context Runtime status context.
	 *
	 * @return string
	 */
	public function status( array $printer, array $context ): string;
}

```
