sequra_create_order_request_delivery_method_options
Hook
Filter
Filter the delivery method options.
Description
This filter allows modifying the delivery method to be used to build the payload attribute for the Order, OrderUpdate and DeliveryReport API calls.
Parameter | Type | Description |
---|---|---|
$delivery_method | \SeQura\Core\BusinessLogic\Domain\Order\Models\OrderRequest\DeliveryMethod | Instance |
Changelog
Version | Description |
---|---|
3.0.0 | Introduced |
Usage Example
add_filter('sequra_create_order_request_delivery_method_options', function($delivery_method){
return new \SeQura\Core\BusinessLogic\Domain\Order\Models\OrderRequest\DeliveryMethod(
$delivery_method->getName(),
$delivery_method->getDays(),
$delivery_method->getProvider(),
$delivery_method->getHomeDelivery()
);
});
Updated 3 months ago