protected function prepareCreateOrderBody(Order $order): array 	{ 		$orderItems = [];  		foreach ($order->orderItems as $index => $item) { 			$orderItems[] = [ 				'OrderItemId' => $index + 1, 				'SKU' => $item->getErpCode(), 				'Name' => $item->order_item_details['name'], 				'Quantity' => $item->quantity, 				'PricePerItem' => MathMoneyOperations::calculate($item->price, MathMoneyOperations::calculate($item->discount_amount, $item->quantity, '/'), '-'), 				'ListPricePerItem' => $item->price, 				'TotalPrice' => $item->total_price_minus_discounts, 				// 'TotalAdjustment' => $item->discounts_applied 			]; 		}  		return [ 			[ 				'Order' => [ 					'OrderId' => $order->order_number, 					'OrderPlacedTime' => formatLocalTimestamp($order->created_at), 					'Customer' => [ 						'ShippingAddress' => [ 							'FirstName' => $order->delivery_address['name'] ?? null, 							'LastName' => null, 							'Phone' => $order->delivery_address['phone'] ?? null, 							'Address' => $order->delivery_address['street'] ?? null, 							'City' => $order->delivery_address['city'] ?? null, 							'ZipCode' => $order->delivery_address['zip_code'] ?? null, 							'Country' => $order->delivery_address['country_code'] ?? null, 							'Email' => $order->customer_email, 						], 						'BillingAddress' => [ 							'FirstName' => $order->invoice_address['name'] ?? null, 							'LastName' => null, 							'Phone' => $order->invoice_address['phone'] ?? null, 							'Address' => $order->invoice_address['street'] ?? null, 							'City' => $order->invoice_address['city'] ?? null, 							'ZipCode' => $order->invoice_address['zip_code'] ?? null, 							'Country' => $order->invoice_address['country_code'] ?? null, 							'Email' => $order->customer_email, 						], 					], 					'OrderItems' => $orderItems, 					'ShippingMode' => $order->store_id ? 'PREUZIMANJE' : 'DOSTAVA', 					'ShippingCost' => $order->shipping_price, 					'UserNotes' => config('custom.erp_test') ? 'TEST' : $order->delivery_address['note'] ?? null, 					'PaymentMethods' => [ 						'PaymentMethod' => [ 							'Name' => $this->determineOrderCreationPaymentMethodName($order->payment_type), 							'Amount' => $order->total_price_minus_discounts, 						], 					], 				], 			], 		]; 	}