@Idham choudryChoudry,
you can add below code in to your observer to get customer information.
use Magento\Customer\Api\CustomerRepositoryInterface;
use Magento\Customer\Model\Session;
use Magento\Sales\Model\Order;
class yourobserver implements ObserverInterface
{
protected $customerSession;
protected $customerrepository;
protected $order;
public function __construct(
Session $customerSession,
CustomerRepositoryInterface $customerrepository,
Order $order
)
{
$this->customerSession = $customerSession;
$this->customerrepository = $customerrepository;
$this->order = $order;
}
public function execute(\Magento\Framework\Event\Observer $observer)
{
$event = $observer->getEvent();
$orderIds = $event->getOrderIds();
$order = $observer->getEvent()->getOrder();
$ordercoll = $this->order->loadByAttribute("entity_id",$orderIds[0]);
$shippingdetails = $ordercoll->getShippingAddress()->getData();
$magento_address_id = $ordercoll->getShippingAddress()->getId();
$billingdetails = $ordercoll->getBillingAddress()->getData();
$paymentdetails = $ordercoll->getPayment()->getData();
$shipmentdetails = $ordercoll->getShippingmethod();
$customerinfo = $this->customerSession->getData();
$shipping_amount = $ordercoll->getShippingAmount();
$discount_amount = $ordercoll->getDiscountAmount();
$discount_description = $ordercoll->getDiscountDescription();
$applied_rule_ids = $ordercoll->getAppliedRuleIds();
}
}