public function toArray($request): array 	{ 		return [ 			'id' => $this->id, 			'status' => $this->status, 			'payment_type' => $this->payment_type, 			'payment_id' => $this->payment_id, 			'payment_created_at' => $this->payment_created_at ? formatTimestamp($this->payment_created_at) : null, 			'ready_for_pickup' => $this->ready_for_pickup, 			'customer_email' => $this->customer_email, 			'calculation' => [ 				'total_price' => number_format((float) $this->total_price, 2), 				'second_total_price' => convertToSecondCurrency($this->total_price, $this->currency), 				'total_discounts' => number_format((float) $this->total_discounts, 2), 				'second_total_discounts' => convertToSecondCurrency($this->total_discounts, $this->currency), 				'total_price_minus_discounts' => number_format((float) $this->total_price_minus_discounts, 2), 				'second_total_price_minus_discounts' => convertToSecondCurrency($this->total_price_minus_discounts, $this->currency), 				'tax_total' => number_format((float) $this->tax_total, 2), 				'second_tax_total' => convertToSecondCurrency($this->tax_total, $this->currency), 				'shipping' => number_format((float) $this->shipping_price, 2), 				'second_shipping' => convertToSecondCurrency($this->shipping_price, $this->currency), 				'final_price' => number_format((float) $this->final_price, 2), 				'second_final_price' => convertToSecondCurrency($this->final_price, $this->currency), 			], 			'currency' => $this->currency, 			'reference_number' => $this->reference_number, 			'shipments' => ShipmentResource::collection($this->shipments), 			'corvus' => $this->when((bool) $this->corvus, $this->corvus), 			'paypal' => $this->when((bool) $this->paypal, $this->paypal), 			'order_items' => OrderItemResource::collection($this->orderItems), 			'delivery_address' => $this->delivery_address, 			'invoice_address' => $this->invoice_address, 			'r1' => $this->r1, 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}