yield 'Test absolute price definition' =>
[ new AbsolutePriceDefinition(20,
$rule),
];
yield 'Test percentage price definition' =>
[ new PercentagePriceDefinition(-20,
$rule),
];
yield 'Test currency price definition' =>
[ new CurrencyPriceDefinition(new PriceCollection([ new Price(Defaults::CURRENCY, 100, 200, false
),
new Price(Uuid::
randomHex(), 200, 300, true
),
]),
$rule),
];
$customFieldsRule =
new LineItemCustomFieldRule( LineItemCustomFieldRule::OPERATOR_EQ,
['name' => 'foobar', 'type' => CustomFieldTypes::BOOL
] );
$customFieldsRule->
assign([ 'selectedField' => 'foo',