sequra_create_order_request_merchant_options

Hook Filter

Filter the options.

Description

This filter allows modifying the options to be used to build the payload for the Order API calls.

ParameterTypeDescription
$optionsSeQura\WC\Core\Extension\BusinessLogic\Domain\Order\Models\OrderRequest\OptionsOptions instance

Changelog

VersionDescription
3.0.0Introduced

Usage Example

add_filter('sequra_create_order_request_merchant_options', function($options){
  return new \SeQura\WC\Core\Extension\BusinessLogic\Domain\Order\Models\OrderRequest\Options(
    $options->getHasJquery(), // Your custom value here.
    $options->getUsesShippedCart(), // Your custom value here.
    $options->getAddressesMayBeMissing(), // Your custom value here.
    $options->getImmutableCustomerData(), // Your custom value here.
    $options->get_desired_first_charge_on() // Your custom value here.
  );
});