How to add custom options or fields to an Order Adjuster? How do you add options or custom fields to an OrderAdjuster in Commerce 2?
I'm migrating a website from Craft2 to Craft3 and need this, this is how I do it in Commerce 2:
$promotionsAdjuster-&gt;optionsJson = [
    'lineItemsAffected' =&gt; [$lineItem-&gt;id],
    'affectedDiscountId' =&gt; $adjustment-&gt;id,
    'removeAffectedDiscountAmount' =&gt; $adjustment-&gt;amount - ($lineItem-&gt;total*$adjustment-&gt;optionsJson['percentDiscount']),
    'percentageDiscount' =&gt; true
];
Found it, you just need to use:
// `sourceSnapshot` can contain information to explain the adjustment
$adjustment-&gt;sourceSnapshot = [ 'data' =&gt; 'value' ];