25 private $addressAdapterFactory;
33 AddressAdapterFactory $addressAdapterFactory
36 $this->addressAdapterFactory = $addressAdapterFactory;
46 return $this->order->getBaseCurrencyCode();
56 return $this->order->getIncrementId();
66 return $this->order->getCustomerId();
76 if ($this->order->getBillingAddress()) {
77 return $this->addressAdapterFactory->create(
78 [
'address' => $this->order->getBillingAddress()]
92 if ($this->order->getShippingAddress()) {
93 return $this->addressAdapterFactory->create(
94 [
'address' => $this->order->getShippingAddress()]
108 return $this->order->getStoreId();
118 return $this->order->getEntityId();
128 return $this->order->getBaseGrandTotal();
138 return $this->order->getItems();
148 return $this->order->getRemoteIp();
__construct(Order $order, AddressAdapterFactory $addressAdapterFactory)