AlfyApi
in package
implements
AlfyApiInterface
Class AlfyApi
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- AlfyApi constructor.
- addDeliveryDate() : false|mixed
- cancelOrder() : mixed
- Cancel an order
- execute() : mixed
Properties
$apiKey
protected
string
$apiKey
$storeId
protected
string
$storeId
$url
protected
string
$url
= 'https://api.helloalfy.com/v1/'
Methods
__construct()
AlfyApi constructor.
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
addDeliveryDate()
public
addDeliveryDate(SaleProduct $saleProduct) : false|mixed
Parameters
- $saleProduct : SaleProduct
Return values
false|mixedcancelOrder()
Cancel an order
public
cancelOrder(SaleProduct $saleProduct) : mixed
Parameters
- $saleProduct : SaleProduct
Tags
execute()
protected
execute(mixed $requestType, mixed $endpoint[, array<string|int, mixed> $body = [] ][, array<string|int, mixed> $headers = [] ]) : mixed
Parameters
- $requestType : mixed
- $endpoint : mixed
- $body : array<string|int, mixed> = []
- $headers : array<string|int, mixed> = []