$stateRefundedPartiallyId =
$this->
fetchStateId( OrderTransactionStates::STATE_PARTIALLY_REFUNDED,
$stateMachineId,
$connection );
$stateCancelledId =
$this->
fetchStateId(OrderTransactionStates::STATE_CANCELLED,
$stateMachineId,
$connection);
$stateInProgressId = Uuid::
randomBytes();
$stateFailedId = Uuid::
randomBytes();
$germanId =
$this->
fetchLanguageId('de-DE',
$connection);
$defaultLangId =
$this->
fetchLanguageId('en-GB',
$connection);
$translationEN =
[];
if ($defaultLangId !==
$germanId) { $translationEN =
['language_id' =>
$defaultLangId, 'created_at'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
)];
} $translationDE =
[];
if ($germanId) { $translationDE =
['language_id' =>
$germanId, 'created_at'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
)];
}