From 4bb8f3b837b4e2b09b1d5a62ca3942e2fc141cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Walker?= Date: Mon, 14 Oct 2024 19:46:16 -0300 Subject: [PATCH] fix: trata externally_paid como paid --- src/Gateways/IuguGateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gateways/IuguGateway.php b/src/Gateways/IuguGateway.php index e2f369f..aacb4a9 100644 --- a/src/Gateways/IuguGateway.php +++ b/src/Gateways/IuguGateway.php @@ -26,6 +26,7 @@ class IuguGateway implements Gateway { private const STATUS_PENDING = 'pending'; private const STATUS_PAID = 'paid'; + private const STATUS_EXTERNALLY_PAID = 'externally_paid'; private const STATUS_CANCELED = 'canceled'; private const STATUS_IN_ANALYSIS = 'in_analysis'; private const STATUS_DRAFT = 'draft'; @@ -172,6 +173,7 @@ private static function iuguStatusToMultiPayment($iuguStatus): string case self::STATUS_PARTIALLY_PAID: return Invoice::STATUS_PENDING; case self::STATUS_PAID: + case self::STATUS_EXTERNALLY_PAID: case self::STATUS_AUTHORIZED: case self::STATUS_IN_PROTEST: return Invoice::STATUS_PAID;