'totalRounding' =>
json_decode(json_encode(new CashRoundingConfig(2, 0.01, true
), \JSON_THROW_ON_ERROR
), true, 512, \JSON_THROW_ON_ERROR
),
'orderDateTime'
=> (new \
DateTimeImmutable())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
'price' =>
new CartPrice(10, 10, 10,
new CalculatedTaxCollection(),
new TaxRuleCollection(), CartPrice::TAX_STATE_NET
),
'shippingCosts' =>
new CalculatedPrice(10, 10,
new CalculatedTaxCollection(),
new TaxRuleCollection()),
'orderCustomer' =>
[ 'id' => Uuid::
randomHex(),
'email' => 'test@example.com',
'salutationId' =>
$this->
fetchFirstIdFromTable('salutation'
),
'firstName' => 'Max',
'lastName' => 'Mustermann',
],
'stateId' =>
$this->
fetchOrderStateId(OrderStates::STATE_OPEN
),
'paymentMethodId' =>
$this->
fetchFirstIdFromTable('payment_method'
),
'currencyId' => Defaults::CURRENCY,
'currencyFactor' => 1.0,
'salesChannelId' => TestDefaults::SALES_CHANNEL,
'billingAddressId' =>
$addressId,
'addresses' =>
[ [ 'id' =>
$addressId,
'salutationId' =>
$this->
fetchFirstIdFromTable('salutation'
),
'firstName' => 'Max',
'lastName' => 'Mustermann',