| 1 |
<?php |
| 2 |
/** |
| 3 |
* Shopper service interface |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Services |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Services\Shopper; |
| 10 |
|
| 11 |
/** |
| 12 |
* Handle use cases related to Shopper |
| 13 |
*/ |
| 14 |
interface Interface_Shopper_Service { |
| 15 |
|
| 16 |
/** |
| 17 |
* Get customer IP |
| 18 |
*/ |
| 19 |
public function get_ip(): string; |
| 20 |
|
| 21 |
/** |
| 22 |
* Get User Agent |
| 23 |
*/ |
| 24 |
public function get_user_agent(): string; |
| 25 |
|
| 26 |
/** |
| 27 |
* Check if the shopper is using a mobile device |
| 28 |
*/ |
| 29 |
public function is_using_mobile(): bool; |
| 30 |
|
| 31 |
/** |
| 32 |
* Get customer date of birth |
| 33 |
*/ |
| 34 |
public function get_date_of_birth( int $customer_id ): string; |
| 35 |
} |
| 36 |
|