From be38b63cfb199a95249c0b098f1541aeb3bb6099 Mon Sep 17 00:00:00 2001 From: Edvaldo da Rosa Date: Tue, 1 Aug 2017 13:29:06 -0300 Subject: [PATCH 1/3] Fix bug Undefined class constant INSTALLMENT_NO_INTEREST_INSTALLMENT_QUANTITY --- source/Enum/Properties/Current.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Enum/Properties/Current.php b/source/Enum/Properties/Current.php index cb9e9855..1cc3ef36 100644 --- a/source/Enum/Properties/Current.php +++ b/source/Enum/Properties/Current.php @@ -165,6 +165,11 @@ class Current * Installment quantity for credit card payment */ const INSTALLMENT_QUANTITY = "installmentQuantity"; + + /** + * Installment no interest installment quantity for credit card payment + */ + const INSTALLMENT_NO_INTEREST_INSTALLMENT_QUANTITY = "noInterestInstallmentQuantity"; /** * Installment value for credit card payment From 7f6a3fea5932f4103bc199c78f9b933e13850c1d Mon Sep 17 00:00:00 2001 From: s2it-moscou Date: Wed, 13 Dec 2017 11:27:01 -0200 Subject: [PATCH 2/3] fix: "already defined constant" errors Fix eventual php notice errors "already defined constant". Updated "VERSION" constant --- source/Library.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/Library.php b/source/Library.php index 490bea01..7cc708f0 100644 --- a/source/Library.php +++ b/source/Library.php @@ -39,7 +39,7 @@ class Library /** * */ - const VERSION = "3.0.0"; + const VERSION = "3.3.2"; /** * @var */ @@ -55,10 +55,10 @@ class Library final public static function initialize() { //Basic configuration - define('PS_BASEPATH', __DIR__); - define('PS_CONFIG_PATH', PS_BASEPATH. "/Configuration/"); - define('PS_CONFIG', PS_CONFIG_PATH."Properties/Conf.xml"); - define('PS_RESOURCES', PS_CONFIG_PATH."Properties/Resources.xml"); + defined('PS_BASEPATH') or define('PS_BASEPATH', __DIR__); + defined('PS_CONFIG_PATH') or define('PS_CONFIG_PATH', PS_BASEPATH. "/Configuration/"); + defined('PS_CONFIG') or define('PS_CONFIG', PS_CONFIG_PATH."Properties/Conf.xml"); + defined('PS_RESOURCES') or define('PS_RESOURCES', PS_CONFIG_PATH."Properties/Resources.xml"); //Validates for cUrl and SimpleXml. self::validate(); //Garbage Collection From 6a2aac99730ac6c81054f59a18e1bf19b158936f Mon Sep 17 00:00:00 2001 From: s2it-moscou Date: Wed, 13 Dec 2017 11:31:57 -0200 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b801ad54..68fed1cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +3.3.2 +- Correção no charset das requisições +- Correção do erro "Undefined class constant 'INSTALLMENT_NO_INTEREST_INSTALLMENT_QUANTITY'" ao configurar o número de parcelas no checkout transparente com cartão de crédito. + 3.3.0 - Removidas funcionalidades depreciadas - Correções e melhorias gerais