$payload['filter'
] =
[ 'sorterKey' => null,
'applierKey' => null,
'usageKey' => null,
'pickerKey' => null,
];
if ($discount->
isConsiderAdvancedRules()) { $payload['filter'
] =
[ 'sorterKey' =>
$discount->
getSorterKey(),
'applierKey' =>
$discount->
getApplierKey(),
'usageKey' =>
$discount->
getUsageKey(),
'pickerKey' =>
$discount->
getPickerKey(),
];
} return $payload;
} /**
* Gets the absolute price for the provided currency.
* This can either be a specific value or the default discount value.
*/