->
first();
$paymentMethodId =
$salesChannel->
getPaymentMethodId();
$shippingMethodId =
$salesChannel->
getShippingMethodId();
$salutationId =
$this->
getValidSalutationId();
$countryId =
$this->
getValidCountryId(TestDefaults::SALES_CHANNEL
);
$order =
[ [ 'id' =>
$orderId,
'orderNumber' =>
$orderNumber,
'price' =>
new CartPrice(10, 10, 10,
new CalculatedTaxCollection(),
new TaxRuleCollection(), CartPrice::TAX_STATE_NET
),
'shippingCosts' =>
new CalculatedPrice(10, 10,
new CalculatedTaxCollection(),
new TaxRuleCollection()),
'stateId' =>
$this->
getContainer()->
get(InitialStateIdLoader::
class)->
get(OrderStates::STATE_MACHINE
),
'versionId' => Defaults::LIVE_VERSION,
'paymentMethodId' =>
$paymentMethodId,
'currencyId' => Defaults::CURRENCY,
'currencyFactor' => 1,
'salesChannelId' => TestDefaults::SALES_CHANNEL,
'orderDateTime' => '2019-04-01 08:36:43.267',
'itemRounding' =>
json_decode(json_encode(new CashRoundingConfig(2, 0.01, true
), \JSON_THROW_ON_ERROR
), true, 512, \JSON_THROW_ON_ERROR
),
'totalRounding' =>
json_decode(json_encode(new CashRoundingConfig(2, 0.01, true
), \JSON_THROW_ON_ERROR
), true, 512, \JSON_THROW_ON_ERROR
),
'deliveries' =>
[ [