From 0bf3b8ca55fbef5760738d7b4f6acde00ef5ab0a Mon Sep 17 00:00:00 2001 From: Fabiano Mallmann <25328512+fabiano-mallmann@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:48:47 -0300 Subject: [PATCH] fix: switch address fields --- .../Base/ResourceGateway/AbstractAddressDataProvider.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gateway/Transaction/Base/ResourceGateway/AbstractAddressDataProvider.php b/Gateway/Transaction/Base/ResourceGateway/AbstractAddressDataProvider.php index 991c55fa..6c1ad969 100644 --- a/Gateway/Transaction/Base/ResourceGateway/AbstractAddressDataProvider.php +++ b/Gateway/Transaction/Base/ResourceGateway/AbstractAddressDataProvider.php @@ -39,10 +39,10 @@ public function getCustomerAddressNumber($shipping) public function getCustomerAddressComplement($shipping) { if ($shipping) { - return !$this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressComplement()) ? 'street_4' : $this->getConfig()->getCustomerAddressComplement(); + return !$this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressComplement()) ? 'street_3' : $this->getConfig()->getCustomerAddressComplement(); } - return !$this->getBillingAddressAttribute($this->getConfig()->getCustomerAddressComplement()) ? 'street_4' : $this->getConfig()->getCustomerAddressComplement(); + return !$this->getBillingAddressAttribute($this->getConfig()->getCustomerAddressComplement()) ? 'street_3' : $this->getConfig()->getCustomerAddressComplement(); } /** @@ -51,10 +51,10 @@ public function getCustomerAddressComplement($shipping) public function getCustomerAddressDistrict($shipping) { if ($shipping) { - $streetLine = !$this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressDistrict()) ? 'street_3' : $this->getConfig()->getCustomerAddressDistrict(); + $streetLine = !$this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressDistrict()) ? 'street_4' : $this->getConfig()->getCustomerAddressDistrict(); return $this->getShippingAddressAttribute($streetLine); } - $streetLine = !$this->getBillingAddressAttribute($this->getConfig()->getCustomerAddressDistrict()) ? 'street_3' : $this->getConfig()->getCustomerAddressDistrict(); + $streetLine = !$this->getBillingAddressAttribute($this->getConfig()->getCustomerAddressDistrict()) ? 'street_4' : $this->getConfig()->getCustomerAddressDistrict(); return $this->getBillingAddressAttribute($streetLine); }