'transition' => 'authorize',
'from' =>
$this->
getStateIds($connection,
$machineId,
['open', 'in_progress', 'reminded'
]),
'to' =>
[ 'paid' =>
$this->
getStateId($connection,
$machineId, 'paid'
),
'paid_partially' =>
$this->
getStateId($connection,
$machineId, 'paid_partially'
),
'fail' =>
$this->
getStateId($connection,
$machineId, 'failed'
),
'cancel' =>
$this->
getStateId($connection,
$machineId, 'cancelled'
),
],
];
$this->
insertState($connection,
$state,
$machineId);
$state =
[ 'technical_name' => 'chargeback',
'translations' =>
[ 'en-GB' => 'Chargeback',
'de-DE' => 'Rückbuchung',
],
'transition' => 'chargeback',
'from' =>
$this->
getStateIds($connection,
$machineId,
['paid', 'paid_partially'
]),
'to' =>
[ 'paid' =>
$this->
getStateId($connection,
$machineId, 'paid'
),