Skip to content

Commit

Permalink
MOL-1256: Add refund amount to flow builder values (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinmann authored Sep 22, 2023
1 parent 0590ca4 commit 06cb67a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Shopware\Core\Framework\Event\EventData\EntityType;
use Shopware\Core\Framework\Event\EventData\EventDataCollection;
use Shopware\Core\Framework\Event\EventData\MailRecipientStruct;
use Shopware\Core\Framework\Event\EventData\ScalarValueType;
use Shopware\Core\Framework\Event\MailAware;
use Shopware\Core\Framework\Event\OrderAware;
use Shopware\Core\Framework\Event\SalesChannelAware;
Expand Down Expand Up @@ -59,6 +60,7 @@ public function getName(): string
public static function getAvailableData(): EventDataCollection
{
return (new EventDataCollection())
->add('amount', new ScalarValueType(ScalarValueType::TYPE_FLOAT))
->add('order', new EntityType(OrderDefinition::class));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class RefundStartedEvent651 extends RefundStartedEvent implements ScalarValuesAw
public function getValues(): array
{
return [
'amount' => $this->amount,
'order' => $this->order,
];
}
Expand Down

0 comments on commit 06cb67a

Please sign in to comment.