diff --git a/SECURITY.md b/SECURITY.md
deleted file mode 100644
index 034e848..0000000
--- a/SECURITY.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Security Policy
-
-## Supported Versions
-
-Use this section to tell people about which versions of your project are
-currently being supported with security updates.
-
-| Version | Supported |
-| ------- | ------------------ |
-| 5.1.x | :white_check_mark: |
-| 5.0.x | :x: |
-| 4.0.x | :white_check_mark: |
-| < 4.0 | :x: |
-
-## Reporting a Vulnerability
-
-Use this section to tell people how to report a vulnerability.
-
-Tell them where to go, how often they can expect to get an update on a
-reported vulnerability, what to expect if the vulnerability is accepted or
-declined, etc.
diff --git a/composer.json b/composer.json
index a1d5007..a3f41c5 100644
--- a/composer.json
+++ b/composer.json
@@ -2,10 +2,10 @@
"name": "payvision/payvision-sdk-php",
"description": "Payvision PHP SDK",
"type": "library",
- "version": "5.1.2",
+ "version": "4.2.0",
"license": "MIT",
"require": {
- "php": "^7.2.5|^7.3",
+ "php": "~7.1.3||~7.2.0||~7.3.0",
"ext-simplexml": "*",
"ext-json": "*",
"ext-curl": "*",
@@ -23,11 +23,11 @@
}
},
"require-dev": {
- "phpunit/phpunit": "^8.5",
+ "phpunit/phpunit": "^7.5",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
- "object-calisthenics/phpcs-calisthenics-rules": "^3.8",
+ "object-calisthenics/phpcs-calisthenics-rules": "^3.5",
"phpcompatibility/php-compatibility": "^9.3",
- "slevomat/coding-standard": "^6.3",
+ "slevomat/coding-standard": "^5.0",
"squizlabs/php_codesniffer": "^3.5"
}
}
diff --git a/phpcs.xml b/phpcs.xml
index ad8aa04..507be23 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -14,23 +14,33 @@
./vendor
- ./src/Domain/Payments
- ./src/Domain/Checkouts
- ./src/Domain/Paymentlink
- ./src/Application/Payments
- ./src/Application/Checkouts
- ./src/Application/Paymentlink
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
-
+
@@ -75,12 +85,14 @@
-
+
+
-
+
+
@@ -106,9 +118,6 @@
-
-
-
diff --git a/src/DataType/CountryCode.php b/src/DataType/CountryCode.php
index 68c3980..f22b231 100644
--- a/src/DataType/CountryCode.php
+++ b/src/DataType/CountryCode.php
@@ -18,255 +18,255 @@
*/
class CountryCode extends AbstractCode implements DataType
{
- public const ANDORRA = "AD";
- public const UNITED_ARAB_EMIRATES = "AE";
- public const AFGHANISTAN = "AF";
- public const ANTIGUA_AND_BARBUDA = "AG";
- public const ANGUILLA = "AI";
- public const ALBANIA = "AL";
- public const ARMENIA = "AM";
- public const ANGOLA = "AO";
- public const ANTARCTICA = "AQ";
- public const ARGENTINA = "AR";
- public const AMERICAN_SAMOA = "AS";
- public const AUSTRIA = "AT";
- public const AUSTRALIA = "AU";
- public const ARUBA = "AW";
- public const ALAND_ISLANDS = "AX";
- public const AZERBAIJAN = "AZ";
- public const BOSNIA_AND_HERZEGOVINA = "BA";
- public const BARBADOS = "BB";
- public const BANGLADESH = "BD";
- public const BELGIUM = "BE";
- public const BURKINA_FASO = "BF";
- public const BULGARIA = "BG";
- public const BAHRAIN = "BH";
- public const BURUNDI = "BI";
- public const BENIN = "BJ";
- public const SAINT_BARTHELEMY = "BL";
- public const BERMUDA = "BM";
- public const BRUNEI_DARUSSALAM = "BN";
- public const BOLIVIA = "BO";
- public const BONAIRE = "BQ";
- public const BRAZIL = "BR";
- public const BAHAMAS = "BS";
- public const BHUTAN = "BT";
- public const BOUVET_ISLAND = "BV";
- public const BOTSWANA = "BW";
- public const BELARUS = "BY";
- public const BELIZE = "BZ";
- public const CANADA = "CA";
- public const COCOS_KEELING_ISLANDS = "CC";
- public const CONGO_KINSHANA = "CD";
- public const CENTRAL_AFRICAN_REPUBLIC = "CF";
- public const CONGO_BRAZZAVILLE = "CG";
- public const SWITZERLAND = "CH";
- public const COTE_DIVOIRE = "CI";
- public const COOK_ISLANDS = "CK";
- public const CHILE = "CL";
- public const CAMEROON = "CM";
- public const CHINA = "CN";
- public const COLOMBIA = "CO";
- public const COSTA_RICA = "CR";
- public const CUBA = "CU";
- public const CAPE_VERDE = "CV";
- public const CURACAO = "CW";
- public const CHRISTMAS_ISLAND = "CX";
- public const CYPRUS = "CY";
- public const CZECH_REPUBLIC = "CZ";
- public const GERMANY = "DE";
- public const DJIBOUTI = "DJ";
- public const DENMARK = "DK";
- public const DOMINICA = "DM";
- public const DOMINICAN_REPUBLIC = "DO";
- public const ALGERIA = "DZ";
- public const ECUADOR = "EC";
- public const ESTONIA = "EE";
- public const EGYPT = "EG";
- public const WESTERN_SAHARA = "EH";
- public const ERITREA = "ER";
- public const SPAIN = "ES";
- public const ETHIOPIA = "ET";
- public const FINLAND = "FI";
- public const FIJI = "FJ";
- public const FALKLAND_ISLANDS_MALVINAS = "FK";
- public const MICRONESIA = "FM";
- public const FAROE_ISLANDS = "FO";
- public const FRANCE = "FR";
- public const GABON = "GA";
- public const UNITED_KINGDOM = "GB";
- public const GRENADA = "GD";
- public const GEORGIA = "GE";
- public const FRENCH_GUIANA = "GF";
- public const GUERNSEY = "GG";
- public const GHANA = "GH";
- public const GIBRALTAR = "GI";
- public const GREENLAND = "GL";
- public const GAMBIA = "GM";
- public const GUINEA = "GN";
- public const GUADELOUPE = "GP";
- public const EQUATORIAL_GUINEA = "GQ";
- public const GREECE = "GR";
- public const SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS = "GS";
- public const GUATEMALA = "GT";
- public const GUAM = "GU";
- public const GUINEA_BISSAU = "GW";
- public const GUYANA = "GY";
- public const HONG_KONG = "HK";
- public const HEARD_ISLAND_AND_MCDONALD_ISLANDS = "HM";
- public const HONDURAS = "HN";
- public const CROATIA = "HR";
- public const HAITI = "HT";
- public const HUNGARY = "HU";
- public const INDONESIA = "ID";
- public const IRELAND = "IE";
- public const ISRAEL = "IL";
- public const ISLE_OF_MAN = "IM";
- public const INDIA = "IN";
- public const BRITISH_INDIAN_OCEAN_TERRITORY = "IO";
- public const IRAQ = "IQ";
- public const IRAN_ISLAMIC_REPUBLIC_OF = "IR";
- public const ICELAND = "IS";
- public const ITALY = "IT";
- public const JERSEY = "JE";
- public const JAMAICA = "JM";
- public const JORDAN = "JO";
- public const JAPAN = "JP";
- public const KENYA = "KE";
- public const KYRGYZSTAN = "KG";
- public const CAMBODIA = "KH";
- public const KIRIBATI = "KI";
- public const COMOROS = "KM";
- public const SAINT_KITTS_AND_NEVIS = "KN";
- public const KOREA_DEMOCRATIC_PEOPLES_REPUBLIC_OF = "KP";
- public const KOREA_REPUBLIC_OF = "KR";
- public const KUWAIT = "KW";
- public const CAYMAN_ISLANDS = "KY";
- public const KAZAKHSTAN = "KZ";
- public const LAO_PEOPLES_DEMOCRATIC_REPUBLIC = "LA";
- public const LEBANON = "LB";
- public const SAINT_LUCIA = "LC";
- public const LIECHTENSTEIN = "LI";
- public const SRI_LANKA = "LK";
- public const LIBERIA = "LR";
- public const LESOTHO = "LS";
- public const LITHUANIA = "LT";
- public const LUXEMBOURG = "LU";
- public const LATVIA = "LV";
- public const LIBYA = "LY";
- public const MOROCCO = "MA";
- public const MONACO = "MC";
- public const MOLDOVA_REPUBLIC_OF = "MD";
- public const MONTENEGRO = "ME";
- public const SAINT_MARTIN_FRENCH_PART = "MF";
- public const MADAGASCAR = "MG";
- public const MARSHALL_ISLANDS = "MH";
- public const MACEDONIA_THE_FORMER_YUGOSLAV_REPUBLIC_OF = "MK";
- public const MALI = "ML";
- public const MYANMAR = "MM";
- public const MONGOLIA = "MN";
- public const MACAO = "MO";
- public const NORTHERN_MARIANA_ISLANDS = "MP";
- public const MARTINIQUE = "MQ";
- public const MAURITANIA = "MR";
- public const MONTSERRAT = "MS";
- public const MALTA = "MT";
- public const MAURITIUS = "MU";
- public const MALDIVES = "MV";
- public const MALAWI = "MW";
- public const MEXICO = "MX";
- public const MALAYSIA = "MY";
- public const MOZAMBIQUE = "MZ";
- public const NAMIBIA = "NA";
- public const NEW_CALEDONIA = "NC";
- public const NIGER = "NE";
- public const NORFOLK_ISLAND = "NF";
- public const NIGERIA = "NG";
- public const NICARAGUA = "NI";
- public const NETHERLANDS = "NL";
- public const NORWAY = "NO";
- public const NEPAL = "NP";
- public const NAURU = "NR";
- public const NIUE = "NU";
- public const NEW_ZEALAND = "NZ";
- public const OMAN = "OM";
- public const PANAMA = "PA";
- public const PERU = "PE";
- public const FRENCH_POLYNESIA = "PF";
- public const PAPUA_NEW_GUINEA = "PG";
- public const PHILIPPINES = "PH";
- public const PAKISTAN = "PK";
- public const POLAND = "PL";
- public const SAINT_PIERRE_AND_MIQUELON = "PM";
- public const PITCAIRN = "PN";
- public const PUERTO_RICO = "PR";
- public const PALESTINE_STATE_OF = "PS";
- public const PORTUGAL = "PT";
- public const PALAU = "PW";
- public const PARAGUAY = "PY";
- public const QATAR = "QA";
- public const REUNION = "RE";
- public const ROMANIA = "RO";
- public const SERBIA = "RS";
- public const RUSSIAN_FEDERATION = "RU";
- public const RWANDA = "RW";
- public const SAUDI_ARABIA = "SA";
- public const SOLOMON_ISLANDS = "SB";
- public const SEYCHELLES = "SC";
- public const SUDAN = "SD";
- public const SWEDEN = "SE";
- public const SINGAPORE = "SG";
- public const SAINT_HELENA_ASCENSION_AND_TRISTAN_DA_CUNHA = "SH";
- public const SLOVENIA = "SI";
- public const SVALBARD_AND_JAN_MAYEN = "SJ";
- public const SLOVAKIA = "SK";
- public const SIERRA_LEONE = "SL";
- public const SAN_MARINO = "SM";
- public const SENEGAL = "SN";
- public const SOMALIA = "SO";
- public const SURINAME = "SR";
- public const SOUTH_SUDAN = "SS";
- public const SAO_TOME_AND_PRINCIPE = "ST";
- public const EL_SALVADOR = "SV";
- public const SINT_MAARTEN_DUTCH_PART = "SX";
- public const SYRIAN_ARAB_REPUBLIC = "SY";
- public const SWAZILAND = "SZ";
- public const TURKS_AND_CAICOS_ISLANDS = "TC";
- public const CHAD = "TD";
- public const FRENCH_SOUTHERN_TERRITORIES = "TF";
- public const TOGO = "TG";
- public const THAILAND = "TH";
- public const TAJIKISTAN = "TJ";
- public const TOKELAU = "TK";
- public const TIMOR_LESTE = "TL";
- public const TURKMENISTAN = "TM";
- public const TUNISIA = "TN";
- public const TONGA = "TO";
- public const TURKEY = "TR";
- public const TRINIDAD_AND_TOBAGO = "TT";
- public const TUVALU = "TV";
- public const TAIWAN_PROVINCE_OF_CHINA = "TW";
- public const TANZANIA_UNITED_REPUBLIC_OF = "TZ";
- public const UKRAINE = "UA";
- public const UGANDA = "UG";
- public const UNITED_STATES_MINOR_OUTLYING_ISLANDS = "UM";
- public const UNITED_STATES = "US";
- public const URUGUAY = "UY";
- public const UZBEKISTAN = "UZ";
- public const HOLY_SEE_VATICAN_CITY_STATE = "VA";
- public const SAINT_VINCENT_AND_THE_GRENADINES = "VC";
- public const VENEZUELA_BOLIVARIAN_REPUBLIC_OF = "VE";
- public const VIRGIN_ISLANDS_BRITISH = "VG";
- public const VIRGIN_ISLANDS_US = "VI";
- public const VIET_NAM = "VN";
- public const VANUATU = "VU";
- public const WALLIS_AND_FUTUNA = "WF";
- public const SAMOA = "WS";
- public const YEMEN = "YE";
- public const MAYOTTE = "YT";
- public const SOUTH_AFRICA = "ZA";
- public const ZAMBIA = "ZM";
- public const ZIMBABWE = "ZW";
+ const ANDORRA = "AD";
+ const UNITED_ARAB_EMIRATES = "AE";
+ const AFGHANISTAN = "AF";
+ const ANTIGUA_AND_BARBUDA = "AG";
+ const ANGUILLA = "AI";
+ const ALBANIA = "AL";
+ const ARMENIA = "AM";
+ const ANGOLA = "AO";
+ const ANTARCTICA = "AQ";
+ const ARGENTINA = "AR";
+ const AMERICAN_SAMOA = "AS";
+ const AUSTRIA = "AT";
+ const AUSTRALIA = "AU";
+ const ARUBA = "AW";
+ const ALAND_ISLANDS = "AX";
+ const AZERBAIJAN = "AZ";
+ const BOSNIA_AND_HERZEGOVINA = "BA";
+ const BARBADOS = "BB";
+ const BANGLADESH = "BD";
+ const BELGIUM = "BE";
+ const BURKINA_FASO = "BF";
+ const BULGARIA = "BG";
+ const BAHRAIN = "BH";
+ const BURUNDI = "BI";
+ const BENIN = "BJ";
+ const SAINT_BARTHELEMY = "BL";
+ const BERMUDA = "BM";
+ const BRUNEI_DARUSSALAM = "BN";
+ const BOLIVIA = "BO";
+ const BONAIRE = "BQ";
+ const BRAZIL = "BR";
+ const BAHAMAS = "BS";
+ const BHUTAN = "BT";
+ const BOUVET_ISLAND = "BV";
+ const BOTSWANA = "BW";
+ const BELARUS = "BY";
+ const BELIZE = "BZ";
+ const CANADA = "CA";
+ const COCOS_KEELING_ISLANDS = "CC";
+ const CONGO_KINSHANA = "CD";
+ const CENTRAL_AFRICAN_REPUBLIC = "CF";
+ const CONGO_BRAZZAVILLE = "CG";
+ const SWITZERLAND = "CH";
+ const COTE_DIVOIRE = "CI";
+ const COOK_ISLANDS = "CK";
+ const CHILE = "CL";
+ const CAMEROON = "CM";
+ const CHINA = "CN";
+ const COLOMBIA = "CO";
+ const COSTA_RICA = "CR";
+ const CUBA = "CU";
+ const CAPE_VERDE = "CV";
+ const CURACAO = "CW";
+ const CHRISTMAS_ISLAND = "CX";
+ const CYPRUS = "CY";
+ const CZECH_REPUBLIC = "CZ";
+ const GERMANY = "DE";
+ const DJIBOUTI = "DJ";
+ const DENMARK = "DK";
+ const DOMINICA = "DM";
+ const DOMINICAN_REPUBLIC = "DO";
+ const ALGERIA = "DZ";
+ const ECUADOR = "EC";
+ const ESTONIA = "EE";
+ const EGYPT = "EG";
+ const WESTERN_SAHARA = "EH";
+ const ERITREA = "ER";
+ const SPAIN = "ES";
+ const ETHIOPIA = "ET";
+ const FINLAND = "FI";
+ const FIJI = "FJ";
+ const FALKLAND_ISLANDS_MALVINAS = "FK";
+ const MICRONESIA = "FM";
+ const FAROE_ISLANDS = "FO";
+ const FRANCE = "FR";
+ const GABON = "GA";
+ const UNITED_KINGDOM = "GB";
+ const GRENADA = "GD";
+ const GEORGIA = "GE";
+ const FRENCH_GUIANA = "GF";
+ const GUERNSEY = "GG";
+ const GHANA = "GH";
+ const GIBRALTAR = "GI";
+ const GREENLAND = "GL";
+ const GAMBIA = "GM";
+ const GUINEA = "GN";
+ const GUADELOUPE = "GP";
+ const EQUATORIAL_GUINEA = "GQ";
+ const GREECE = "GR";
+ const SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS = "GS";
+ const GUATEMALA = "GT";
+ const GUAM = "GU";
+ const GUINEA_BISSAU = "GW";
+ const GUYANA = "GY";
+ const HONG_KONG = "HK";
+ const HEARD_ISLAND_AND_MCDONALD_ISLANDS = "HM";
+ const HONDURAS = "HN";
+ const CROATIA = "HR";
+ const HAITI = "HT";
+ const HUNGARY = "HU";
+ const INDONESIA = "ID";
+ const IRELAND = "IE";
+ const ISRAEL = "IL";
+ const ISLE_OF_MAN = "IM";
+ const INDIA = "IN";
+ const BRITISH_INDIAN_OCEAN_TERRITORY = "IO";
+ const IRAQ = "IQ";
+ const IRAN_ISLAMIC_REPUBLIC_OF = "IR";
+ const ICELAND = "IS";
+ const ITALY = "IT";
+ const JERSEY = "JE";
+ const JAMAICA = "JM";
+ const JORDAN = "JO";
+ const JAPAN = "JP";
+ const KENYA = "KE";
+ const KYRGYZSTAN = "KG";
+ const CAMBODIA = "KH";
+ const KIRIBATI = "KI";
+ const COMOROS = "KM";
+ const SAINT_KITTS_AND_NEVIS = "KN";
+ const KOREA_DEMOCRATIC_PEOPLES_REPUBLIC_OF = "KP";
+ const KOREA_REPUBLIC_OF = "KR";
+ const KUWAIT = "KW";
+ const CAYMAN_ISLANDS = "KY";
+ const KAZAKHSTAN = "KZ";
+ const LAO_PEOPLES_DEMOCRATIC_REPUBLIC = "LA";
+ const LEBANON = "LB";
+ const SAINT_LUCIA = "LC";
+ const LIECHTENSTEIN = "LI";
+ const SRI_LANKA = "LK";
+ const LIBERIA = "LR";
+ const LESOTHO = "LS";
+ const LITHUANIA = "LT";
+ const LUXEMBOURG = "LU";
+ const LATVIA = "LV";
+ const LIBYA = "LY";
+ const MOROCCO = "MA";
+ const MONACO = "MC";
+ const MOLDOVA_REPUBLIC_OF = "MD";
+ const MONTENEGRO = "ME";
+ const SAINT_MARTIN_FRENCH_PART = "MF";
+ const MADAGASCAR = "MG";
+ const MARSHALL_ISLANDS = "MH";
+ const MACEDONIA_THE_FORMER_YUGOSLAV_REPUBLIC_OF = "MK";
+ const MALI = "ML";
+ const MYANMAR = "MM";
+ const MONGOLIA = "MN";
+ const MACAO = "MO";
+ const NORTHERN_MARIANA_ISLANDS = "MP";
+ const MARTINIQUE = "MQ";
+ const MAURITANIA = "MR";
+ const MONTSERRAT = "MS";
+ const MALTA = "MT";
+ const MAURITIUS = "MU";
+ const MALDIVES = "MV";
+ const MALAWI = "MW";
+ const MEXICO = "MX";
+ const MALAYSIA = "MY";
+ const MOZAMBIQUE = "MZ";
+ const NAMIBIA = "NA";
+ const NEW_CALEDONIA = "NC";
+ const NIGER = "NE";
+ const NORFOLK_ISLAND = "NF";
+ const NIGERIA = "NG";
+ const NICARAGUA = "NI";
+ const NETHERLANDS = "NL";
+ const NORWAY = "NO";
+ const NEPAL = "NP";
+ const NAURU = "NR";
+ const NIUE = "NU";
+ const NEW_ZEALAND = "NZ";
+ const OMAN = "OM";
+ const PANAMA = "PA";
+ const PERU = "PE";
+ const FRENCH_POLYNESIA = "PF";
+ const PAPUA_NEW_GUINEA = "PG";
+ const PHILIPPINES = "PH";
+ const PAKISTAN = "PK";
+ const POLAND = "PL";
+ const SAINT_PIERRE_AND_MIQUELON = "PM";
+ const PITCAIRN = "PN";
+ const PUERTO_RICO = "PR";
+ const PALESTINE_STATE_OF = "PS";
+ const PORTUGAL = "PT";
+ const PALAU = "PW";
+ const PARAGUAY = "PY";
+ const QATAR = "QA";
+ const REUNION = "RE";
+ const ROMANIA = "RO";
+ const SERBIA = "RS";
+ const RUSSIAN_FEDERATION = "RU";
+ const RWANDA = "RW";
+ const SAUDI_ARABIA = "SA";
+ const SOLOMON_ISLANDS = "SB";
+ const SEYCHELLES = "SC";
+ const SUDAN = "SD";
+ const SWEDEN = "SE";
+ const SINGAPORE = "SG";
+ const SAINT_HELENA_ASCENSION_AND_TRISTAN_DA_CUNHA = "SH";
+ const SLOVENIA = "SI";
+ const SVALBARD_AND_JAN_MAYEN = "SJ";
+ const SLOVAKIA = "SK";
+ const SIERRA_LEONE = "SL";
+ const SAN_MARINO = "SM";
+ const SENEGAL = "SN";
+ const SOMALIA = "SO";
+ const SURINAME = "SR";
+ const SOUTH_SUDAN = "SS";
+ const SAO_TOME_AND_PRINCIPE = "ST";
+ const EL_SALVADOR = "SV";
+ const SINT_MAARTEN_DUTCH_PART = "SX";
+ const SYRIAN_ARAB_REPUBLIC = "SY";
+ const SWAZILAND = "SZ";
+ const TURKS_AND_CAICOS_ISLANDS = "TC";
+ const CHAD = "TD";
+ const FRENCH_SOUTHERN_TERRITORIES = "TF";
+ const TOGO = "TG";
+ const THAILAND = "TH";
+ const TAJIKISTAN = "TJ";
+ const TOKELAU = "TK";
+ const TIMOR_LESTE = "TL";
+ const TURKMENISTAN = "TM";
+ const TUNISIA = "TN";
+ const TONGA = "TO";
+ const TURKEY = "TR";
+ const TRINIDAD_AND_TOBAGO = "TT";
+ const TUVALU = "TV";
+ const TAIWAN_PROVINCE_OF_CHINA = "TW";
+ const TANZANIA_UNITED_REPUBLIC_OF = "TZ";
+ const UKRAINE = "UA";
+ const UGANDA = "UG";
+ const UNITED_STATES_MINOR_OUTLYING_ISLANDS = "UM";
+ const UNITED_STATES = "US";
+ const URUGUAY = "UY";
+ const UZBEKISTAN = "UZ";
+ const HOLY_SEE_VATICAN_CITY_STATE = "VA";
+ const SAINT_VINCENT_AND_THE_GRENADINES = "VC";
+ const VENEZUELA_BOLIVARIAN_REPUBLIC_OF = "VE";
+ const VIRGIN_ISLANDS_BRITISH = "VG";
+ const VIRGIN_ISLANDS_US = "VI";
+ const VIET_NAM = "VN";
+ const VANUATU = "VU";
+ const WALLIS_AND_FUTUNA = "WF";
+ const SAMOA = "WS";
+ const YEMEN = "YE";
+ const MAYOTTE = "YT";
+ const SOUTH_AFRICA = "ZA";
+ const ZAMBIA = "ZM";
+ const ZIMBABWE = "ZW";
/**
* @var string
@@ -288,7 +288,7 @@ public function __construct(string $countryCode = null)
* @param string $countryCode
* @throws DataTypeException
*/
- public function set(string $countryCode = null): void
+ public function set(string $countryCode = null)
{
if ($countryCode !== null && !\array_key_exists($countryCode, $this->getConstants())) {
throw new DataTypeException(
@@ -303,7 +303,7 @@ public function set(string $countryCode = null): void
/**
* @return string|null
*/
- public function get(): ?string
+ public function get()
{
return $this->countryCode;
}
diff --git a/src/DataType/CurrencyCode.php b/src/DataType/CurrencyCode.php
index 99d5919..4a6572c 100644
--- a/src/DataType/CurrencyCode.php
+++ b/src/DataType/CurrencyCode.php
@@ -18,166 +18,166 @@
*/
class CurrencyCode extends AbstractCode implements DataType
{
- public const UAE_DIRHAM = "AED";
- public const AFGHANI = "AFN";
- public const ALBANIAN_LEK = "ALL";
- public const ARMENIAN_DRAM = "AMD";
- public const NETHERLANDS_ANTILLIAN_GUILDER = "ANG";
- public const KWANZA = "AOA";
- public const ARGENTINE_PESO = "ARS";
- public const AUSTRALIAN_DOLLAR = "AUD";
- public const ARUBAN_GUILDER = "AWG";
- public const AZERBAIJANIAN_NEW_MANAT = "AZN";
- public const CONVERTIBLE_MARKS = "BAM";
- public const BARBADOS_DOLLAR = "BBD";
- public const TAKA = "BDT";
- public const BULGARIAN_LEV = "BGN";
- public const BAHRAINI_DINAR = "BHD";
- public const BURUNDI_FRANC = "BIF";
- public const BERMUDA_DOLLAR = "BMD";
- public const BRUNEI_DOLLAR = "BND";
- public const BOLIVIANO = "BOB";
- public const MVDOL = "BOV";
- public const BRAZILIAN_REAL = "BRL";
- public const BAHAMIAN_DOLLAR = "BSD";
- public const NGULTRUM = "BTN";
- public const PULA = "BWP";
- public const BELARUSSIAN_RUBLE = "BYN";
- public const BELIZE_DOLLAR = "BZD";
- public const CANADIAN_DOLLAR = "CAD";
- public const CONGO_FRANCS = "CDF";
- public const SWISS_FRANC = "CHF";
- public const UNIDADES_DE_FOMENTO = "CLF";
- public const CHILEAN_PESO = "CLP";
- public const YUAN_RENMINBI = "CNY";
- public const COLOMBIAN_PESO = "COP";
- public const COSTA_RICAN_COLON = "CRC";
- public const CUBAN_CONVERTIBLE_PESO = "CUC";
- public const CUBAN_PESO = "CUP";
- public const CAPE_VERDE_ESCUDO = "CVE";
- public const CZECH_KORUNA = "CZK";
- public const DJIBOUTI_FRANC = "DJF";
- public const DANISH_KRONE = "DKK";
- public const DOMINICAN_PESO = "DOP";
- public const ALGERIAN_DINAR = "DZD";
- public const EGYPTIAN_POUND = "EGP";
- public const NAKFA = "ERN";
- public const ETHIOPIAN_BIRR = "ETB";
- public const EURO = "EUR";
- public const FIJI_DOLLAR = "FJD";
- public const FALKLAND_ISLANDS_POUND = "FKP";
- public const POUND_STERLING = "GBP";
- public const GEORGIAN_LARI = "GEL";
- public const GHANA_CEDI = "GHS";
- public const GIBRALTAR_POUND = "GIP";
- public const DALASI = "GMD";
- public const GUINEA_FRANC = "GNF";
- public const QUETZAL = "GTQ";
- public const GUYANA_DOLLAR = "GYD";
- public const HONG_KONG_DOLLAR = "HKD";
- public const LEMPIRA = "HNL";
- public const KUNA = "HRK";
- public const GOURDE = "HTG";
- public const FORINT = "HUF";
- public const RUPIAH = "IDR";
- public const SHEKEL = "ILS";
- public const INDIAN_RUPEE = "INR";
- public const IRAQI_DINAR = "IQD";
- public const IRANIAN_RIAL = "IRR";
- public const ICELAND_KRONA = "ISK";
- public const JAMAICAN_DOLLAR = "JMD";
- public const JORDANIAN_DINAR = "JOD";
- public const YEN = "JPY";
- public const KENYAN_SHILLING = "KES";
- public const SOM = "KGS";
- public const RIEL = "KHR";
- public const COMORO_FRANC = "KMF";
- public const NORTH_KOREAN_WON = "KPW";
- public const KOREAN_WON = "KRW";
- public const KUWAITI_DINAR = "KWD";
- public const CAYMAN_ISLANDS_DOLLAR = "KYD";
- public const KAZAKHSTANIAN_TENGE = "KZT";
- public const KIP = "LAK";
- public const LEBANESE_POUND = "LBP";
- public const SRI_LANKA_RUPEE = "LKR";
- public const LIBERIAN_DOLLAR = "LRD";
- public const LOTI = "LSL";
- public const LIBYAN_DINAR = "LYD";
- public const MOROCCAN_DIRHAM = "MAD";
- public const MOLDOVAN_LEU = "MDL";
- public const MALAGASY_AGIARY = "MGA";
- public const MACEDONIAN_DENAR = "MKD";
- public const KYAT = "MMK";
- public const TUGRIK = "MNT";
- public const PATACA = "MOP";
- public const OUGUIYA = "MRU";
- public const MAURITIUS_RUPEE = "MUR";
- public const RUFIYAA = "MVR";
- public const KWACHA = "MWK";
- public const MEXICAN_PESO = "MXN";
- public const MALAYSIAN_RINGGIT = "MYR";
- public const METICAL = "MZN";
- public const NAMIBIAN_DOLLAR = "NAD";
- public const NAIRA = "NGN";
- public const CORDOBA_ORO = "NIO";
- public const NORWEGIAN_KRONE = "NOK";
- public const NEPALESE_RUPEE = "NPR";
- public const NEW_ZEALAND_DOLLAR = "NZD";
- public const RIAL_OMANI = "OMR";
- public const BALBOA = "PAB";
- public const NUEVO_SOL = "PEN";
- public const KINA = "PGK";
- public const PHILIPPINE_PESO = "PHP";
- public const PAKISTAN_RUPEE = "PKR";
- public const ZLOTY = "PLN";
- public const GUARANI = "PYG";
- public const QATARI_RIAL = "QAR";
- public const ROMANIAN_LEU = "RON";
- public const SERBIAN_DINAR = "RSD";
- public const RUSSIAN_RUBLE = "RUB";
- public const RWANDA_FRANC = "RWF";
- public const SAUDI_RIYAL = "SAR";
- public const SOLOMON_ISLANDS_DOLLAR = "SBD";
- public const SEYCHELLES_RUPEE = "SCR";
- public const SUDANESE_POUND = "SDG";
- public const SWEDISH_KRONA = "SEK";
- public const SINGAPORE_DOLLAR = "SGD";
- public const SAINT_HELENA_POUND = "SHP";
- public const LEONE = "SLL";
- public const SOMALI_SHILLING = "SOS";
- public const SURINAM_DOLLAR = "SRD";
- public const SOUTH_SUDANESE_POUND = "SSP";
- public const DOBRA = "STN";
- public const EL_SALVADOR_COLON = "SVC";
- public const SYRIAN_POUND = "SYP";
- public const LILANGENI = "SZL";
- public const BAHT = "THB";
- public const SOMONI = "TJS";
- public const TURKMENISTANI_MANAT = "TMT";
- public const TUNISIAN_DINAR = "TND";
- public const PAANGA = "TOP";
- public const NEW_TURKISH_LIRA = "TRY";
- public const TRINIDAD_AND_TOBAGO_DOLLAR = "TTD";
- public const NEW_TAIWAN_DOLLAR = "TWD";
- public const TANZANIAN_SHILLING = "TZS";
- public const UKRAINIAN_HRYVNA = "UAH";
- public const UGANDA_SHILLING = "UGX";
- public const US_DOLLAR = "USD";
- public const URUGUAYAN_PESO = "UYU";
- public const UZBEKISTAN_SUM = "UZS";
- public const VENEZUELAN_BOLIVAR_FUERTE = "VEF";
- public const DONG = "VND";
- public const VATU = "VUV";
- public const TALA = "WST";
- public const CFA_FRANC_BEAC = "XAF";
- public const EAST_CARIBBEAN_DOLLAR = "XCD";
- public const SDR_SPECIAL_DRAWING_RIGHT = "XDR";
- public const CFA_FRANC_BCEAO = "XOF";
- public const CFP_FRANC = "XPF";
- public const YEMENI_RIAL = "YER";
- public const SOUTH_AFRICAN_RAND = "ZAR";
- public const ZAMBIA_KWACHA = "ZMW";
- public const ZIMBABWE_DOLLAR = "ZWL";
+ const UAE_DIRHAM = "AED";
+ const AFGHANI = "AFN";
+ const ALBANIAN_LEK = "ALL";
+ const ARMENIAN_DRAM = "AMD";
+ const NETHERLANDS_ANTILLIAN_GUILDER = "ANG";
+ const KWANZA = "AOA";
+ const ARGENTINE_PESO = "ARS";
+ const AUSTRALIAN_DOLLAR = "AUD";
+ const ARUBAN_GUILDER = "AWG";
+ const AZERBAIJANIAN_NEW_MANAT = "AZN";
+ const CONVERTIBLE_MARKS = "BAM";
+ const BARBADOS_DOLLAR = "BBD";
+ const TAKA = "BDT";
+ const BULGARIAN_LEV = "BGN";
+ const BAHRAINI_DINAR = "BHD";
+ const BURUNDI_FRANC = "BIF";
+ const BERMUDA_DOLLAR = "BMD";
+ const BRUNEI_DOLLAR = "BND";
+ const BOLIVIANO = "BOB";
+ const MVDOL = "BOV";
+ const BRAZILIAN_REAL = "BRL";
+ const BAHAMIAN_DOLLAR = "BSD";
+ const NGULTRUM = "BTN";
+ const PULA = "BWP";
+ const BELARUSSIAN_RUBLE = "BYN";
+ const BELIZE_DOLLAR = "BZD";
+ const CANADIAN_DOLLAR = "CAD";
+ const CONGO_FRANCS = "CDF";
+ const SWISS_FRANC = "CHF";
+ const UNIDADES_DE_FOMENTO = "CLF";
+ const CHILEAN_PESO = "CLP";
+ const YUAN_RENMINBI = "CNY";
+ const COLOMBIAN_PESO = "COP";
+ const COSTA_RICAN_COLON = "CRC";
+ const CUBAN_CONVERTIBLE_PESO = "CUC";
+ const CUBAN_PESO = "CUP";
+ const CAPE_VERDE_ESCUDO = "CVE";
+ const CZECH_KORUNA = "CZK";
+ const DJIBOUTI_FRANC = "DJF";
+ const DANISH_KRONE = "DKK";
+ const DOMINICAN_PESO = "DOP";
+ const ALGERIAN_DINAR = "DZD";
+ const EGYPTIAN_POUND = "EGP";
+ const NAKFA = "ERN";
+ const ETHIOPIAN_BIRR = "ETB";
+ const EURO = "EUR";
+ const FIJI_DOLLAR = "FJD";
+ const FALKLAND_ISLANDS_POUND = "FKP";
+ const POUND_STERLING = "GBP";
+ const GEORGIAN_LARI = "GEL";
+ const GHANA_CEDI = "GHS";
+ const GIBRALTAR_POUND = "GIP";
+ const DALASI = "GMD";
+ const GUINEA_FRANC = "GNF";
+ const QUETZAL = "GTQ";
+ const GUYANA_DOLLAR = "GYD";
+ const HONG_KONG_DOLLAR = "HKD";
+ const LEMPIRA = "HNL";
+ const KUNA = "HRK";
+ const GOURDE = "HTG";
+ const FORINT = "HUF";
+ const RUPIAH = "IDR";
+ const SHEKEL = "ILS";
+ const INDIAN_RUPEE = "INR";
+ const IRAQI_DINAR = "IQD";
+ const IRANIAN_RIAL = "IRR";
+ const ICELAND_KRONA = "ISK";
+ const JAMAICAN_DOLLAR = "JMD";
+ const JORDANIAN_DINAR = "JOD";
+ const YEN = "JPY";
+ const KENYAN_SHILLING = "KES";
+ const SOM = "KGS";
+ const RIEL = "KHR";
+ const COMORO_FRANC = "KMF";
+ const NORTH_KOREAN_WON = "KPW";
+ const KOREAN_WON = "KRW";
+ const KUWAITI_DINAR = "KWD";
+ const CAYMAN_ISLANDS_DOLLAR = "KYD";
+ const KAZAKHSTANIAN_TENGE = "KZT";
+ const KIP = "LAK";
+ const LEBANESE_POUND = "LBP";
+ const SRI_LANKA_RUPEE = "LKR";
+ const LIBERIAN_DOLLAR = "LRD";
+ const LOTI = "LSL";
+ const LIBYAN_DINAR = "LYD";
+ const MOROCCAN_DIRHAM = "MAD";
+ const MOLDOVAN_LEU = "MDL";
+ const MALAGASY_AGIARY = "MGA";
+ const MACEDONIAN_DENAR = "MKD";
+ const KYAT = "MMK";
+ const TUGRIK = "MNT";
+ const PATACA = "MOP";
+ const OUGUIYA = "MRU";
+ const MAURITIUS_RUPEE = "MUR";
+ const RUFIYAA = "MVR";
+ const KWACHA = "MWK";
+ const MEXICAN_PESO = "MXN";
+ const MALAYSIAN_RINGGIT = "MYR";
+ const METICAL = "MZN";
+ const NAMIBIAN_DOLLAR = "NAD";
+ const NAIRA = "NGN";
+ const CORDOBA_ORO = "NIO";
+ const NORWEGIAN_KRONE = "NOK";
+ const NEPALESE_RUPEE = "NPR";
+ const NEW_ZEALAND_DOLLAR = "NZD";
+ const RIAL_OMANI = "OMR";
+ const BALBOA = "PAB";
+ const NUEVO_SOL = "PEN";
+ const KINA = "PGK";
+ const PHILIPPINE_PESO = "PHP";
+ const PAKISTAN_RUPEE = "PKR";
+ const ZLOTY = "PLN";
+ const GUARANI = "PYG";
+ const QATARI_RIAL = "QAR";
+ const ROMANIAN_LEU = "RON";
+ const SERBIAN_DINAR = "RSD";
+ const RUSSIAN_RUBLE = "RUB";
+ const RWANDA_FRANC = "RWF";
+ const SAUDI_RIYAL = "SAR";
+ const SOLOMON_ISLANDS_DOLLAR = "SBD";
+ const SEYCHELLES_RUPEE = "SCR";
+ const SUDANESE_POUND = "SDG";
+ const SWEDISH_KRONA = "SEK";
+ const SINGAPORE_DOLLAR = "SGD";
+ const SAINT_HELENA_POUND = "SHP";
+ const LEONE = "SLL";
+ const SOMALI_SHILLING = "SOS";
+ const SURINAM_DOLLAR = "SRD";
+ const SOUTH_SUDANESE_POUND = "SSP";
+ const DOBRA = "STN";
+ const EL_SALVADOR_COLON = "SVC";
+ const SYRIAN_POUND = "SYP";
+ const LILANGENI = "SZL";
+ const BAHT = "THB";
+ const SOMONI = "TJS";
+ const TURKMENISTANI_MANAT = "TMT";
+ const TUNISIAN_DINAR = "TND";
+ const PAANGA = "TOP";
+ const NEW_TURKISH_LIRA = "TRY";
+ const TRINIDAD_AND_TOBAGO_DOLLAR = "TTD";
+ const NEW_TAIWAN_DOLLAR = "TWD";
+ const TANZANIAN_SHILLING = "TZS";
+ const UKRAINIAN_HRYVNA = "UAH";
+ const UGANDA_SHILLING = "UGX";
+ const US_DOLLAR = "USD";
+ const URUGUAYAN_PESO = "UYU";
+ const UZBEKISTAN_SUM = "UZS";
+ const VENEZUELAN_BOLIVAR_FUERTE = "VEF";
+ const DONG = "VND";
+ const VATU = "VUV";
+ const TALA = "WST";
+ const CFA_FRANC_BEAC = "XAF";
+ const EAST_CARIBBEAN_DOLLAR = "XCD";
+ const SDR_SPECIAL_DRAWING_RIGHT = "XDR";
+ const CFA_FRANC_BCEAO = "XOF";
+ const CFP_FRANC = "XPF";
+ const YEMENI_RIAL = "YER";
+ const SOUTH_AFRICAN_RAND = "ZAR";
+ const ZAMBIA_KWACHA = "ZMW";
+ const ZIMBABWE_DOLLAR = "ZWL";
/**
* @var string
@@ -199,7 +199,7 @@ public function __construct(string $currencyCode = null)
* @param string $currencyCode
* @throws DataTypeException
*/
- public function set(string $currencyCode = null): void
+ public function set(string $currencyCode = null)
{
if ($currencyCode !== null && !\array_key_exists($currencyCode, $this->getConstants())) {
throw new DataTypeException(
@@ -214,7 +214,7 @@ public function set(string $currencyCode = null): void
/**
* @return string|null
*/
- public function get(): ?string
+ public function get()
{
return $this->currencyCode;
}
diff --git a/src/DataType/Date.php b/src/DataType/Date.php
index fc87bf1..781fae5 100644
--- a/src/DataType/Date.php
+++ b/src/DataType/Date.php
@@ -26,7 +26,7 @@ public function __construct(string $value)
/**
* @return string|null
*/
- public function get(): ?string
+ public function get()
{
return $this->value->format('Y-m-d');
}
diff --git a/src/DataType/DateTime.php b/src/DataType/DateTime.php
index 0de96c5..fa5fc4e 100644
--- a/src/DataType/DateTime.php
+++ b/src/DataType/DateTime.php
@@ -26,7 +26,7 @@ public function __construct(string $value)
/**
* @return string|null
*/
- public function get(): ?string
+ public function get()
{
return $this->value->format('Y-m-d\TH:i:s\Z');
}
diff --git a/src/DataType/LanguageCode.php b/src/DataType/LanguageCode.php
index be2407d..3497661 100644
--- a/src/DataType/LanguageCode.php
+++ b/src/DataType/LanguageCode.php
@@ -223,7 +223,7 @@ public function __construct(string $languageCode = null)
* @param string $languageCode
* @throws DataTypeException
*/
- public function set(string $languageCode = null): void
+ public function set(string $languageCode = null)
{
if ($languageCode !== null && !\array_key_exists($languageCode, $this->getConstants())) {
throw new DataTypeException(
@@ -238,7 +238,7 @@ public function set(string $languageCode = null): void
/**
* @return string|null
*/
- public function get(): ?string
+ public function get()
{
return $this->languageCode;
}
diff --git a/src/DataType/LimitedString.php b/src/DataType/LimitedString.php
index 165ee16..87cb77b 100644
--- a/src/DataType/LimitedString.php
+++ b/src/DataType/LimitedString.php
@@ -40,7 +40,7 @@ public function __construct(string $str = null, int $maxLength = 255)
* @param string $str
* @throws DataTypeException
*/
- private function set(string $str = null): void
+ private function set(string $str = null)
{
if (\strlen((string)$str) > $this->maxLength) {
throw new DataTypeException(
@@ -55,7 +55,7 @@ private function set(string $str = null): void
/**
* @return string|null
*/
- public function get(): ?string
+ public function get()
{
return $this->str;
}
diff --git a/src/DataType/NonNegativeAmount.php b/src/DataType/NonNegativeAmount.php
index df68fb9..977aae5 100644
--- a/src/DataType/NonNegativeAmount.php
+++ b/src/DataType/NonNegativeAmount.php
@@ -33,7 +33,7 @@ public function __construct(float $amount = null)
* @param float $amount
* @throws DataTypeException
*/
- public function set(float $amount = null): void
+ public function set(float $amount = null)
{
if ($amount < 0) {
throw new DataTypeException(
@@ -48,7 +48,7 @@ public function set(float $amount = null): void
/**
* @return float|null
*/
- public function get(): ?float
+ public function get()
{
return $this->amount;
}
diff --git a/src/DataType/Url.php b/src/DataType/Url.php
index 6fa6e97..20eaf2f 100644
--- a/src/DataType/Url.php
+++ b/src/DataType/Url.php
@@ -37,7 +37,7 @@ public function __construct(string $url = null)
/**
* @return string|null
*/
- public function get(): ?string
+ public function get()
{
return $this->url;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestBillingAddress.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestBillingAddress.php
index 9b29ccf..46e204a 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestBillingAddress.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestBillingAddress.php
@@ -88,7 +88,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCity(): ?string
+ public function getCity()
{
return $this->city;
}
@@ -96,7 +96,7 @@ public function getCity(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -104,7 +104,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getHouseNumber(): ?string
+ public function getHouseNumber()
{
return $this->houseNumber;
}
@@ -112,7 +112,7 @@ public function getHouseNumber(): ?string
/**
* @return string|null
*/
- public function getHouseNumberSuffix(): ?string
+ public function getHouseNumberSuffix()
{
return $this->houseNumberSuffix;
}
@@ -120,7 +120,7 @@ public function getHouseNumberSuffix(): ?string
/**
* @return string|null
*/
- public function getStateCode(): ?string
+ public function getStateCode()
{
return $this->stateCode;
}
@@ -128,7 +128,7 @@ public function getStateCode(): ?string
/**
* @return string|null
*/
- public function getStreet(): ?string
+ public function getStreet()
{
return $this->street;
}
@@ -136,7 +136,7 @@ public function getStreet(): ?string
/**
* @return string|null
*/
- public function getStreetInfo(): ?string
+ public function getStreetInfo()
{
return $this->streetInfo;
}
@@ -144,7 +144,7 @@ public function getStreetInfo(): ?string
/**
* @return string|null
*/
- public function getZip(): ?string
+ public function getZip()
{
return $this->zip;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestBody.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestBody.php
index e26253d..f7ab2a0 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestBody.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestBody.php
@@ -106,7 +106,7 @@ public function getTransaction(): RequestTransaction
/**
* @return RequestBillingAddress|null
*/
- public function getBillingAddress(): ?RequestBillingAddress
+ public function getBillingAddress()
{
return $this->billingAddress;
}
@@ -114,7 +114,7 @@ public function getBillingAddress(): ?RequestBillingAddress
/**
* @return Customer|null
*/
- public function getCustomer(): ?Customer
+ public function getCustomer()
{
return $this->customer;
}
@@ -122,7 +122,7 @@ public function getCustomer(): ?Customer
/**
* @return RequestDba|null
*/
- public function getDba(): ?RequestDba
+ public function getDba()
{
return $this->dba;
}
@@ -130,7 +130,7 @@ public function getDba(): ?RequestDba
/**
* @return RequestOption|null
*/
- public function getOption(): ?RequestOption
+ public function getOption()
{
return $this->option;
}
@@ -138,7 +138,7 @@ public function getOption(): ?RequestOption
/**
* @return RequestOrder|null
*/
- public function getOrder(): ?RequestOrder
+ public function getOrder()
{
return $this->order;
}
@@ -146,7 +146,7 @@ public function getOrder(): ?RequestOrder
/**
* @return RequestShippingAddress|null
*/
- public function getShippingAddress(): ?RequestShippingAddress
+ public function getShippingAddress()
{
return $this->shippingAddress;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestCheckout.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestCheckout.php
index e3778ff..ea5a363 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestCheckout.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestCheckout.php
@@ -82,7 +82,7 @@ public function getReturnUrl(): string
/**
* @return OneClick|null
*/
- public function getOneClick(): ?OneClick
+ public function getOneClick()
{
return $this->oneClick;
}
@@ -90,7 +90,7 @@ public function getOneClick(): ?OneClick
/**
* @return bool|null
*/
- public function getThreeDSecure(): ?bool
+ public function getThreeDSecure()
{
return $this->threeDSecure;
}
@@ -98,7 +98,7 @@ public function getThreeDSecure(): ?bool
/**
* @return string|null
*/
- public function getTokenize(): ?string
+ public function getTokenize()
{
return $this->tokenize;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestDba.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestDba.php
index 2b3384e..b0e5ecc 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestDba.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestDba.php
@@ -104,7 +104,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCity(): ?string
+ public function getCity()
{
return $this->city;
}
@@ -112,7 +112,7 @@ public function getCity(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -120,7 +120,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getEmail(): ?string
+ public function getEmail()
{
return $this->email;
}
@@ -128,7 +128,7 @@ public function getEmail(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
@@ -136,7 +136,7 @@ public function getName(): ?string
/**
* @return string|null
*/
- public function getPhoneNumber(): ?string
+ public function getPhoneNumber()
{
return $this->phoneNumber;
}
@@ -144,7 +144,7 @@ public function getPhoneNumber(): ?string
/**
* @return string|null
*/
- public function getShortName(): ?string
+ public function getShortName()
{
return $this->shortName;
}
@@ -152,7 +152,7 @@ public function getShortName(): ?string
/**
* @return string|null
*/
- public function getStateCode(): ?string
+ public function getStateCode()
{
return $this->stateCode;
}
@@ -160,7 +160,7 @@ public function getStateCode(): ?string
/**
* @return string|null
*/
- public function getStreet(): ?string
+ public function getStreet()
{
return $this->street;
}
@@ -168,7 +168,7 @@ public function getStreet(): ?string
/**
* @return string|null
*/
- public function getSubMerchantId(): ?string
+ public function getSubMerchantId()
{
return $this->subMerchantId;
}
@@ -176,7 +176,7 @@ public function getSubMerchantId(): ?string
/**
* @return string|null
*/
- public function getZip(): ?string
+ public function getZip()
{
return $this->zip;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestOption.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestOption.php
index 179c098..2820ef7 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestOption.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestOption.php
@@ -96,7 +96,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getBrandName(): ?string
+ public function getBrandName()
{
return $this->brandName;
}
@@ -104,7 +104,7 @@ public function getBrandName(): ?string
/**
* @return string|null
*/
- public function getCartBorderColor(): ?string
+ public function getCartBorderColor()
{
return $this->cartBorderColor;
}
@@ -112,7 +112,7 @@ public function getCartBorderColor(): ?string
/**
* @return string|null
*/
- public function getCountryRestriction(): ?string
+ public function getCountryRestriction()
{
return $this->countryRestriction;
}
@@ -120,7 +120,7 @@ public function getCountryRestriction(): ?string
/**
* @return string|null
*/
- public function getHeaderImage(): ?string
+ public function getHeaderImage()
{
return $this->headerImage;
}
@@ -128,7 +128,7 @@ public function getHeaderImage(): ?string
/**
* @return string|null
*/
- public function getLocale(): ?string
+ public function getLocale()
{
return $this->locale;
}
@@ -136,7 +136,7 @@ public function getLocale(): ?string
/**
* @return int|null
*/
- public function getMinAgeRestriction(): ?int
+ public function getMinAgeRestriction()
{
return $this->minAgeRestriction;
}
@@ -144,7 +144,7 @@ public function getMinAgeRestriction(): ?int
/**
* @return string|null
*/
- public function getNoShipping(): ?string
+ public function getNoShipping()
{
return $this->noShipping;
}
@@ -152,7 +152,7 @@ public function getNoShipping(): ?string
/**
* @return int|null
*/
- public function getProcessingType(): ?int
+ public function getProcessingType()
{
return $this->processingType;
}
@@ -160,7 +160,7 @@ public function getProcessingType(): ?int
/**
* @return int|null
*/
- public function getQuantity(): ?int
+ public function getQuantity()
{
return $this->quantity;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestOrder.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestOrder.php
index 473fe9c..727765e 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestOrder.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestOrder.php
@@ -32,7 +32,7 @@ public function __construct(
/**
* @return RequestOrderLine[]|null
*/
- public function getOrderlines(): ?array
+ public function getOrderlines()
{
return $this->orderlines;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestOrderLine.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestOrderLine.php
index 89eda46..9dda2f0 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestOrderLine.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestOrderLine.php
@@ -120,7 +120,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCurrencyCode(): ?string
+ public function getCurrencyCode()
{
return $this->currencyCode;
}
@@ -128,7 +128,7 @@ public function getCurrencyCode(): ?string
/**
* @return string|null
*/
- public function getDescription(): ?string
+ public function getDescription()
{
return $this->description;
}
@@ -136,7 +136,7 @@ public function getDescription(): ?string
/**
* @return float|null
*/
- public function getDiscountAmount(): ?float
+ public function getDiscountAmount()
{
return $this->discountAmount;
}
@@ -144,7 +144,7 @@ public function getDiscountAmount(): ?float
/**
* @return float|null
*/
- public function getItemAmount(): ?float
+ public function getItemAmount()
{
return $this->itemAmount;
}
@@ -152,7 +152,7 @@ public function getItemAmount(): ?float
/**
* @return string|null
*/
- public function getProductCode(): ?string
+ public function getProductCode()
{
return $this->productCode;
}
@@ -160,7 +160,7 @@ public function getProductCode(): ?string
/**
* @return string|null
*/
- public function getProductName(): ?string
+ public function getProductName()
{
return $this->productName;
}
@@ -168,7 +168,7 @@ public function getProductName(): ?string
/**
* @return string|null
*/
- public function getPurchaseType(): ?string
+ public function getPurchaseType()
{
return $this->purchaseType;
}
@@ -176,7 +176,7 @@ public function getPurchaseType(): ?string
/**
* @return int|null
*/
- public function getQuantity(): ?int
+ public function getQuantity()
{
return $this->quantity;
}
@@ -184,7 +184,7 @@ public function getQuantity(): ?int
/**
* @return int|null
*/
- public function getSequenceNumber(): ?int
+ public function getSequenceNumber()
{
return $this->sequenceNumber;
}
@@ -192,7 +192,7 @@ public function getSequenceNumber(): ?int
/**
* @return float|null
*/
- public function getShippingAmount(): ?float
+ public function getShippingAmount()
{
return $this->shippingAmount;
}
@@ -200,7 +200,7 @@ public function getShippingAmount(): ?float
/**
* @return float|null
*/
- public function getTaxPercentage(): ?float
+ public function getTaxPercentage()
{
return $this->taxPercentage;
}
@@ -208,7 +208,7 @@ public function getTaxPercentage(): ?float
/**
* @return float|null
*/
- public function getTotalAmount(): ?float
+ public function getTotalAmount()
{
return $this->totalAmount;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestShippingAddress.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestShippingAddress.php
index 36fbbbb..2b05de0 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestShippingAddress.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestShippingAddress.php
@@ -98,7 +98,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCity(): ?string
+ public function getCity()
{
return $this->city;
}
@@ -106,7 +106,7 @@ public function getCity(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -114,7 +114,7 @@ public function getCountryCode(): ?string
/**
* @return Customer|null
*/
- public function getCustomer(): ?Customer
+ public function getCustomer()
{
return $this->customer;
}
@@ -122,7 +122,7 @@ public function getCustomer(): ?Customer
/**
* @return string|null
*/
- public function getHouseNumber(): ?string
+ public function getHouseNumber()
{
return $this->houseNumber;
}
@@ -130,7 +130,7 @@ public function getHouseNumber(): ?string
/**
* @return string|null
*/
- public function getHouseNumberSuffix(): ?string
+ public function getHouseNumberSuffix()
{
return $this->houseNumberSuffix;
}
@@ -138,7 +138,7 @@ public function getHouseNumberSuffix(): ?string
/**
* @return string|null
*/
- public function getStateCode(): ?string
+ public function getStateCode()
{
return $this->stateCode;
}
@@ -146,7 +146,7 @@ public function getStateCode(): ?string
/**
* @return string|null
*/
- public function getStreet(): ?string
+ public function getStreet()
{
return $this->street;
}
@@ -154,7 +154,7 @@ public function getStreet(): ?string
/**
* @return string|null
*/
- public function getStreetInfo(): ?string
+ public function getStreetInfo()
{
return $this->streetInfo;
}
@@ -162,7 +162,7 @@ public function getStreetInfo(): ?string
/**
* @return string|null
*/
- public function getZip(): ?string
+ public function getZip()
{
return $this->zip;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/RequestTransaction.php b/src/Domain/Checkouts/ValueObject/Checkout/RequestTransaction.php
index ec956d1..22da912 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/RequestTransaction.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/RequestTransaction.php
@@ -13,17 +13,17 @@
class RequestTransaction
{
- public const SOURCE_ECOMMERCE = 'EC';
- public const SOURCE_MAIL_ORDER = 'MO';
- public const SOURCE_TELEPHONE_ORDER = 'TO';
+ const SOURCE_ECOMMERCE = 'EC';
+ const SOURCE_MAIL_ORDER = 'MO';
+ const SOURCE_TELEPHONE_ORDER = 'TO';
- public const TYPE_SINGLE = 'SINGLE';
- public const TYPE_FIRST = 'FIRST';
- public const TYPE_RECURRING = 'RECURRING';
- public const TYPE_LAST = 'LAST';
+ const TYPE_SINGLE = 'SINGLE';
+ const TYPE_FIRST = 'FIRST';
+ const TYPE_RECURRING = 'RECURRING';
+ const TYPE_LAST = 'LAST';
- public const AUTHORIZATION_MODE_AUTHORIZE = 'authorize';
- public const AUTHORIZATION_MODE_PAYMENT = 'payment';
+ const AUTHORIZATION_MODE_AUTHORIZE = 'authorize';
+ const AUTHORIZATION_MODE_PAYMENT = 'payment';
/**
* @var float
@@ -172,7 +172,7 @@ public function getTrackingCode(): string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -180,7 +180,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
@@ -188,7 +188,7 @@ public function getDescriptor(): ?string
/**
* @return string|null
*/
- public function getInvoiceId(): ?string
+ public function getInvoiceId()
{
return $this->invoiceId;
}
@@ -196,7 +196,7 @@ public function getInvoiceId(): ?string
/**
* @return string|null
*/
- public function getLanguageCode(): ?string
+ public function getLanguageCode()
{
return $this->languageCode;
}
@@ -204,7 +204,7 @@ public function getLanguageCode(): ?string
/**
* @return string|null
*/
- public function getNotifyUrl(): ?string
+ public function getNotifyUrl()
{
return $this->notifyUrl;
}
@@ -212,7 +212,7 @@ public function getNotifyUrl(): ?string
/**
* @return string|null
*/
- public function getPurchaseId(): ?string
+ public function getPurchaseId()
{
return $this->purchaseId;
}
@@ -220,7 +220,7 @@ public function getPurchaseId(): ?string
/**
* @return string|null
*/
- public function getSource(): ?string
+ public function getSource()
{
return $this->source;
}
@@ -228,7 +228,7 @@ public function getSource(): ?string
/**
* @return int|null
*/
- public function getStoreId(): ?int
+ public function getStoreId()
{
return $this->storeId;
}
@@ -236,7 +236,7 @@ public function getStoreId(): ?int
/**
* @return string|null
*/
- public function getType(): ?string
+ public function getType()
{
return $this->type;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/Response.php b/src/Domain/Checkouts/ValueObject/Checkout/Response.php
index 0343d14..91d1760 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/Response.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/Response.php
@@ -13,11 +13,11 @@
class Response
{
- public const ABANDONED = 4;
- public const PENDING = 2;
- public const COMPLETED = 0;
- public const INPUT_ERROR = -1;
- public const UNEXPECTED_ERROR = -7;
+ const ABANDONED = 4;
+ const PENDING = 2;
+ const COMPLETED = 0;
+ const INPUT_ERROR = -1;
+ const UNEXPECTED_ERROR = -7;
/**
* @var ResponseBody
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/ResponseBody.php b/src/Domain/Checkouts/ValueObject/Checkout/ResponseBody.php
index bc40fb2..4a956be 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/ResponseBody.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/ResponseBody.php
@@ -50,7 +50,7 @@ public function __construct(
/**
* @return ResponseCheckout|null
*/
- public function getCheckout(): ?ResponseCheckout
+ public function getCheckout()
{
return $this->checkout;
}
@@ -58,7 +58,7 @@ public function getCheckout(): ?ResponseCheckout
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -66,7 +66,7 @@ public function getError(): ?Error
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/ResponseCheckout.php b/src/Domain/Checkouts/ValueObject/Checkout/ResponseCheckout.php
index 5dbc3a3..bc7beab 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/ResponseCheckout.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/ResponseCheckout.php
@@ -114,7 +114,7 @@ public function getRedirect(): ResponseRedirect
/**
* @return OneClick|null
*/
- public function getOneClick(): ?OneClick
+ public function getOneClick()
{
return $this->oneClick;
}
@@ -122,7 +122,7 @@ public function getOneClick(): ?OneClick
/**
* @return bool|null
*/
- public function getThreeDSecure(): ?bool
+ public function getThreeDSecure()
{
return $this->threeDSecure;
}
@@ -130,7 +130,7 @@ public function getThreeDSecure(): ?bool
/**
* @return string|null
*/
- public function getTokenize(): ?string
+ public function getTokenize()
{
return $this->tokenize;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/ResponseRedirect.php b/src/Domain/Checkouts/ValueObject/Checkout/ResponseRedirect.php
index cea4417..ff6cea3 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/ResponseRedirect.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/ResponseRedirect.php
@@ -40,7 +40,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getMethod(): ?string
+ public function getMethod()
{
return $this->method;
}
@@ -48,7 +48,7 @@ public function getMethod(): ?string
/**
* @return string|null
*/
- public function getUrl(): ?string
+ public function getUrl()
{
return $this->url;
}
diff --git a/src/Domain/Checkouts/ValueObject/Checkout/ResponseTransaction.php b/src/Domain/Checkouts/ValueObject/Checkout/ResponseTransaction.php
index eaa793e..b7d6127 100644
--- a/src/Domain/Checkouts/ValueObject/Checkout/ResponseTransaction.php
+++ b/src/Domain/Checkouts/ValueObject/Checkout/ResponseTransaction.php
@@ -13,8 +13,8 @@
class ResponseTransaction
{
- public const AUTHORIZATION_MODE_AUTHORIZE = 'authorize';
- public const AUTHORIZATION_MODE_PAYMENT = 'payment';
+ const AUTHORIZATION_MODE_AUTHORIZE = 'authorize';
+ const AUTHORIZATION_MODE_PAYMENT = 'payment';
/**
* @var float
diff --git a/src/Domain/Checkouts/ValueObject/Customer.php b/src/Domain/Checkouts/ValueObject/Customer.php
index acb417d..244a50a 100644
--- a/src/Domain/Checkouts/ValueObject/Customer.php
+++ b/src/Domain/Checkouts/ValueObject/Customer.php
@@ -13,23 +13,23 @@
class Customer
{
- public const SEX_MALE = 'M';
- public const SEX_FEMALE = 'F';
+ const SEX_MALE = 'M';
+ const SEX_FEMALE = 'F';
- public const IDENTIFICATION_TYPE_PASSPORT = 1;
- public const IDENTIFICATION_TYPE_DRIVERS_LICENCE = 2;
- public const IDENTIFICATION_TYPE_ID_CARD = 3;
- public const IDENTIFICATION_TYPE_TAX_STATEMENT = 4;
+ const IDENTIFICATION_TYPE_PASSPORT = 1;
+ const IDENTIFICATION_TYPE_DRIVERS_LICENCE = 2;
+ const IDENTIFICATION_TYPE_ID_CARD = 3;
+ const IDENTIFICATION_TYPE_TAX_STATEMENT = 4;
- public const CUSTOMER_TYPE_PERSONAL = 1;
- public const CUSTOMER_TYPE_COMPANY = 2;
+ const CUSTOMER_TYPE_PERSONAL = 1;
+ const CUSTOMER_TYPE_COMPANY = 2;
- public const DEVICE_TYPE_DESKTOP_WEB = 1;
- public const DEVICE_TYPE_DESKTOP_APP = 2;
- public const DEVICE_TYPE_MOBILE_WEB = 3;
- public const DEVICE_TYPE_MOBILE_APP = 4;
- public const DEVICE_TYPE_TABLET_WEB = 5;
- public const DEVICE_TYPE_TABLET_APP = 6;
+ const DEVICE_TYPE_DESKTOP_WEB = 1;
+ const DEVICE_TYPE_DESKTOP_APP = 2;
+ const DEVICE_TYPE_MOBILE_WEB = 3;
+ const DEVICE_TYPE_MOBILE_APP = 4;
+ const DEVICE_TYPE_TABLET_WEB = 5;
+ const DEVICE_TYPE_TABLET_APP = 6;
/**
* @var string
@@ -178,7 +178,7 @@ public function getIpAddress(): string
/**
* @return \Payvision\SDK\DataType\Date|null
*/
- public function getBirthDate(): ?\Payvision\SDK\DataType\Date
+ public function getBirthDate()
{
return $this->birthDate;
}
@@ -186,7 +186,7 @@ public function getBirthDate(): ?\Payvision\SDK\DataType\Date
/**
* @return string|null
*/
- public function getCompanyName(): ?string
+ public function getCompanyName()
{
return $this->companyName;
}
@@ -194,7 +194,7 @@ public function getCompanyName(): ?string
/**
* @return string|null
*/
- public function getCustomerId(): ?string
+ public function getCustomerId()
{
return $this->customerId;
}
@@ -202,7 +202,7 @@ public function getCustomerId(): ?string
/**
* @return string|null
*/
- public function getDeviceType(): ?string
+ public function getDeviceType()
{
return $this->deviceType;
}
@@ -210,7 +210,7 @@ public function getDeviceType(): ?string
/**
* @return string|null
*/
- public function getEmail(): ?string
+ public function getEmail()
{
return $this->email;
}
@@ -218,7 +218,7 @@ public function getEmail(): ?string
/**
* @return string|null
*/
- public function getFamilyName(): ?string
+ public function getFamilyName()
{
return $this->familyName;
}
@@ -226,7 +226,7 @@ public function getFamilyName(): ?string
/**
* @return string|null
*/
- public function getGivenName(): ?string
+ public function getGivenName()
{
return $this->givenName;
}
@@ -234,7 +234,7 @@ public function getGivenName(): ?string
/**
* @return string|null
*/
- public function getHttpUserAgent(): ?string
+ public function getHttpUserAgent()
{
return $this->httpUserAgent;
}
@@ -242,7 +242,7 @@ public function getHttpUserAgent(): ?string
/**
* @return string|null
*/
- public function getIdentificationNumber(): ?string
+ public function getIdentificationNumber()
{
return $this->identificationNumber;
}
@@ -250,7 +250,7 @@ public function getIdentificationNumber(): ?string
/**
* @return int|null
*/
- public function getIdentificationTypeId(): ?int
+ public function getIdentificationTypeId()
{
return $this->identificationTypeId;
}
@@ -258,7 +258,7 @@ public function getIdentificationTypeId(): ?int
/**
* @return string|null
*/
- public function getMobileNumber(): ?string
+ public function getMobileNumber()
{
return $this->mobileNumber;
}
@@ -266,7 +266,7 @@ public function getMobileNumber(): ?string
/**
* @return string|null
*/
- public function getPhoneNumber(): ?string
+ public function getPhoneNumber()
{
return $this->phoneNumber;
}
@@ -274,7 +274,7 @@ public function getPhoneNumber(): ?string
/**
* @return string|null
*/
- public function getSex(): ?string
+ public function getSex()
{
return $this->sex;
}
@@ -282,7 +282,7 @@ public function getSex(): ?string
/**
* @return string|null
*/
- public function getTaxNumber(): ?string
+ public function getTaxNumber()
{
return $this->taxNumber;
}
@@ -290,7 +290,7 @@ public function getTaxNumber(): ?string
/**
* @return int|null
*/
- public function getType(): ?int
+ public function getType()
{
return $this->type;
}
diff --git a/src/Domain/Checkouts/ValueObject/Error.php b/src/Domain/Checkouts/ValueObject/Error.php
index 2275fa5..d45b43b 100644
--- a/src/Domain/Checkouts/ValueObject/Error.php
+++ b/src/Domain/Checkouts/ValueObject/Error.php
@@ -64,7 +64,7 @@ public function getMessage(): string
/**
* @return string|null
*/
- public function getDetailedMessage(): ?string
+ public function getDetailedMessage()
{
return $this->detailedMessage;
}
diff --git a/src/Domain/Checkouts/ValueObject/OneClick.php b/src/Domain/Checkouts/ValueObject/OneClick.php
index 357cf1e..0c6fdfd 100644
--- a/src/Domain/Checkouts/ValueObject/OneClick.php
+++ b/src/Domain/Checkouts/ValueObject/OneClick.php
@@ -56,7 +56,7 @@ public function __construct(
/**
* @return bool|null
*/
- public function getRequireCvv(): ?bool
+ public function getRequireCvv()
{
return $this->requireCvv;
}
@@ -64,7 +64,7 @@ public function getRequireCvv(): ?bool
/**
* @return bool|null
*/
- public function getThreeDSecure(): ?bool
+ public function getThreeDSecure()
{
return $this->threeDSecure;
}
@@ -72,7 +72,7 @@ public function getThreeDSecure(): ?bool
/**
* @return string[]|null
*/
- public function getTokens(): ?array
+ public function getTokens()
{
return $this->tokens;
}
@@ -80,7 +80,7 @@ public function getTokens(): ?array
/**
* @return bool|null
*/
- public function getUseCustomerTokens(): ?bool
+ public function getUseCustomerTokens()
{
return $this->useCustomerTokens;
}
diff --git a/src/Domain/Checkouts/ValueObject/Payment/ResponseBank.php b/src/Domain/Checkouts/ValueObject/Payment/ResponseBank.php
index c6bf8e2..c422d43 100644
--- a/src/Domain/Checkouts/ValueObject/Payment/ResponseBank.php
+++ b/src/Domain/Checkouts/ValueObject/Payment/ResponseBank.php
@@ -72,7 +72,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getAccountHolderName(): ?string
+ public function getAccountHolderName()
{
return $this->accountHolderName;
}
@@ -80,7 +80,7 @@ public function getAccountHolderName(): ?string
/**
* @return string|null
*/
- public function getAccountNumber(): ?string
+ public function getAccountNumber()
{
return $this->accountNumber;
}
@@ -88,7 +88,7 @@ public function getAccountNumber(): ?string
/**
* @return string|null
*/
- public function getBic(): ?string
+ public function getBic()
{
return $this->bic;
}
@@ -96,7 +96,7 @@ public function getBic(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -104,7 +104,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getIban(): ?string
+ public function getIban()
{
return $this->iban;
}
@@ -112,7 +112,7 @@ public function getIban(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
diff --git a/src/Domain/Checkouts/ValueObject/Payment/ResponseBody.php b/src/Domain/Checkouts/ValueObject/Payment/ResponseBody.php
index 610b799..0f5af5b 100644
--- a/src/Domain/Checkouts/ValueObject/Payment/ResponseBody.php
+++ b/src/Domain/Checkouts/ValueObject/Payment/ResponseBody.php
@@ -82,7 +82,7 @@ public function __construct(
/**
* @return ResponseBank|null
*/
- public function getBank(): ?ResponseBank
+ public function getBank()
{
return $this->bank;
}
@@ -90,7 +90,7 @@ public function getBank(): ?ResponseBank
/**
* @return ResponseCard|null
*/
- public function getCard(): ?ResponseCard
+ public function getCard()
{
return $this->card;
}
@@ -98,7 +98,7 @@ public function getCard(): ?ResponseCard
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -106,7 +106,7 @@ public function getError(): ?Error
/**
* @return ResponseRedirect|null
*/
- public function getRedirect(): ?ResponseRedirect
+ public function getRedirect()
{
return $this->redirect;
}
@@ -114,7 +114,7 @@ public function getRedirect(): ?ResponseRedirect
/**
* @return ResponseThreeDSecure|null
*/
- public function getThreeDSecure(): ?ResponseThreeDSecure
+ public function getThreeDSecure()
{
return $this->threeDSecure;
}
@@ -122,7 +122,7 @@ public function getThreeDSecure(): ?ResponseThreeDSecure
/**
* @return ResponseToken|null
*/
- public function getToken(): ?ResponseToken
+ public function getToken()
{
return $this->token;
}
@@ -130,7 +130,7 @@ public function getToken(): ?ResponseToken
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Checkouts/ValueObject/Payment/ResponseCard.php b/src/Domain/Checkouts/ValueObject/Payment/ResponseCard.php
index 3b386f5..b693219 100644
--- a/src/Domain/Checkouts/ValueObject/Payment/ResponseCard.php
+++ b/src/Domain/Checkouts/ValueObject/Payment/ResponseCard.php
@@ -112,7 +112,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getApprovalCode(): ?string
+ public function getApprovalCode()
{
return $this->approvalCode;
}
@@ -120,7 +120,7 @@ public function getApprovalCode(): ?string
/**
* @return string|null
*/
- public function getAvsAuthorizationEntity(): ?string
+ public function getAvsAuthorizationEntity()
{
return $this->avsAuthorizationEntity;
}
@@ -128,7 +128,7 @@ public function getAvsAuthorizationEntity(): ?string
/**
* @return string|null
*/
- public function getAvsResult(): ?string
+ public function getAvsResult()
{
return $this->avsResult;
}
@@ -136,7 +136,7 @@ public function getAvsResult(): ?string
/**
* @return string|null
*/
- public function getCvvResult(): ?string
+ public function getCvvResult()
{
return $this->cvvResult;
}
@@ -144,7 +144,7 @@ public function getCvvResult(): ?string
/**
* @return string|null
*/
- public function getExpiryMonth(): ?string
+ public function getExpiryMonth()
{
return $this->expiryMonth;
}
@@ -152,7 +152,7 @@ public function getExpiryMonth(): ?string
/**
* @return string|null
*/
- public function getExpiryYear(): ?string
+ public function getExpiryYear()
{
return $this->expiryYear;
}
@@ -160,7 +160,7 @@ public function getExpiryYear(): ?string
/**
* @return string|null
*/
- public function getFirstSixDigits(): ?string
+ public function getFirstSixDigits()
{
return $this->firstSixDigits;
}
@@ -168,7 +168,7 @@ public function getFirstSixDigits(): ?string
/**
* @return string|null
*/
- public function getHolderName(): ?string
+ public function getHolderName()
{
return $this->holderName;
}
@@ -176,7 +176,7 @@ public function getHolderName(): ?string
/**
* @return string|null
*/
- public function getLastFourDigits(): ?string
+ public function getLastFourDigits()
{
return $this->lastFourDigits;
}
@@ -184,7 +184,7 @@ public function getLastFourDigits(): ?string
/**
* @return string|null
*/
- public function getRecurringAdvice(): ?string
+ public function getRecurringAdvice()
{
return $this->recurringAdvice;
}
@@ -192,7 +192,7 @@ public function getRecurringAdvice(): ?string
/**
* @return string|null
*/
- public function getThreeDResult(): ?string
+ public function getThreeDResult()
{
return $this->threeDResult;
}
diff --git a/src/Domain/Checkouts/ValueObject/Payment/ResponseHeader.php b/src/Domain/Checkouts/ValueObject/Payment/ResponseHeader.php
index 6745d34..3b71d0b 100644
--- a/src/Domain/Checkouts/ValueObject/Payment/ResponseHeader.php
+++ b/src/Domain/Checkouts/ValueObject/Payment/ResponseHeader.php
@@ -48,7 +48,7 @@ public function getRequestTimestamp(): \Payvision\SDK\DataType\DateTime
/**
* @return string|null
*/
- public function getRequestCode(): ?string
+ public function getRequestCode()
{
return $this->requestCode;
}
diff --git a/src/Domain/Checkouts/ValueObject/Payment/ResponseRedirect.php b/src/Domain/Checkouts/ValueObject/Payment/ResponseRedirect.php
index db54663..2108083 100644
--- a/src/Domain/Checkouts/ValueObject/Payment/ResponseRedirect.php
+++ b/src/Domain/Checkouts/ValueObject/Payment/ResponseRedirect.php
@@ -48,7 +48,7 @@ public function __construct(
/**
* @return array|null
*/
- public function getFields(): ?array
+ public function getFields()
{
return $this->fields;
}
@@ -56,7 +56,7 @@ public function getFields(): ?array
/**
* @return string|null
*/
- public function getMethod(): ?string
+ public function getMethod()
{
return $this->method;
}
@@ -64,7 +64,7 @@ public function getMethod(): ?string
/**
* @return string|null
*/
- public function getUrl(): ?string
+ public function getUrl()
{
return $this->url;
}
diff --git a/src/Domain/Checkouts/ValueObject/Payment/ResponseThreeDSecure.php b/src/Domain/Checkouts/ValueObject/Payment/ResponseThreeDSecure.php
index 65d7882..e057057 100644
--- a/src/Domain/Checkouts/ValueObject/Payment/ResponseThreeDSecure.php
+++ b/src/Domain/Checkouts/ValueObject/Payment/ResponseThreeDSecure.php
@@ -40,7 +40,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getEnrollmentResult(): ?string
+ public function getEnrollmentResult()
{
return $this->enrollmentResult;
}
@@ -48,7 +48,7 @@ public function getEnrollmentResult(): ?string
/**
* @return string|null
*/
- public function getValidationResult(): ?string
+ public function getValidationResult()
{
return $this->validationResult;
}
diff --git a/src/Domain/Checkouts/ValueObject/Payment/ResponseTransaction.php b/src/Domain/Checkouts/ValueObject/Payment/ResponseTransaction.php
index 425f3dc..30c2bc3 100644
--- a/src/Domain/Checkouts/ValueObject/Payment/ResponseTransaction.php
+++ b/src/Domain/Checkouts/ValueObject/Payment/ResponseTransaction.php
@@ -128,7 +128,7 @@ public function getTrackingCode(): string
/**
* @return int|null
*/
- public function getBrandId(): ?int
+ public function getBrandId()
{
return $this->brandId;
}
@@ -136,7 +136,7 @@ public function getBrandId(): ?int
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
@@ -144,7 +144,7 @@ public function getDescriptor(): ?string
/**
* @return string|null
*/
- public function getParentId(): ?string
+ public function getParentId()
{
return $this->parentId;
}
diff --git a/src/Domain/Checkouts/ValueObject/Status/Response.php b/src/Domain/Checkouts/ValueObject/Status/Response.php
index 06ad14a..d161e21 100644
--- a/src/Domain/Checkouts/ValueObject/Status/Response.php
+++ b/src/Domain/Checkouts/ValueObject/Status/Response.php
@@ -13,11 +13,11 @@
class Response
{
- public const ABANDONED = 4;
- public const PENDING = 2;
- public const COMPLETED = 0;
- public const INPUT_ERROR = -1;
- public const UNEXPECTED_ERROR = -7;
+ const ABANDONED = 4;
+ const PENDING = 2;
+ const COMPLETED = 0;
+ const INPUT_ERROR = -1;
+ const UNEXPECTED_ERROR = -7;
/**
* @var ResponseBody
diff --git a/src/Domain/Checkouts/ValueObject/Status/ResponseBody.php b/src/Domain/Checkouts/ValueObject/Status/ResponseBody.php
index 280b8a6..7657a6d 100644
--- a/src/Domain/Checkouts/ValueObject/Status/ResponseBody.php
+++ b/src/Domain/Checkouts/ValueObject/Status/ResponseBody.php
@@ -61,7 +61,7 @@ public function __construct(
/**
* @return ResponseCheckout|null
*/
- public function getCheckout(): ?ResponseCheckout
+ public function getCheckout()
{
return $this->checkout;
}
@@ -69,7 +69,7 @@ public function getCheckout(): ?ResponseCheckout
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -77,7 +77,7 @@ public function getError(): ?Error
/**
* @return Response[]|null
*/
- public function getPayments(): ?array
+ public function getPayments()
{
return $this->payments;
}
@@ -85,7 +85,7 @@ public function getPayments(): ?array
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/BasicAddress.php b/src/Domain/Paymentlinks/ValueObject/BasicAddress.php
index 3b1d546..c205ddd 100644
--- a/src/Domain/Paymentlinks/ValueObject/BasicAddress.php
+++ b/src/Domain/Paymentlinks/ValueObject/BasicAddress.php
@@ -160,7 +160,7 @@ public function getIpAddress(): string
/**
* @return \Payvision\SDK\DataType\Date|null
*/
- public function getBirthDate(): ?\Payvision\SDK\DataType\Date
+ public function getBirthDate()
{
return $this->birthDate;
}
@@ -168,7 +168,7 @@ public function getBirthDate(): ?\Payvision\SDK\DataType\Date
/**
* @return string|null
*/
- public function getCompanyName(): ?string
+ public function getCompanyName()
{
return $this->companyName;
}
@@ -176,7 +176,7 @@ public function getCompanyName(): ?string
/**
* @return string|null
*/
- public function getCustomerId(): ?string
+ public function getCustomerId()
{
return $this->customerId;
}
@@ -184,7 +184,7 @@ public function getCustomerId(): ?string
/**
* @return string|null
*/
- public function getDeviceType(): ?string
+ public function getDeviceType()
{
return $this->deviceType;
}
@@ -192,7 +192,7 @@ public function getDeviceType(): ?string
/**
* @return string|null
*/
- public function getEmail(): ?string
+ public function getEmail()
{
return $this->email;
}
@@ -200,7 +200,7 @@ public function getEmail(): ?string
/**
* @return string|null
*/
- public function getFamilyName(): ?string
+ public function getFamilyName()
{
return $this->familyName;
}
@@ -208,7 +208,7 @@ public function getFamilyName(): ?string
/**
* @return string|null
*/
- public function getGivenName(): ?string
+ public function getGivenName()
{
return $this->givenName;
}
@@ -216,7 +216,7 @@ public function getGivenName(): ?string
/**
* @return string|null
*/
- public function getHttpUserAgent(): ?string
+ public function getHttpUserAgent()
{
return $this->httpUserAgent;
}
@@ -224,7 +224,7 @@ public function getHttpUserAgent(): ?string
/**
* @return string|null
*/
- public function getIdentificationNumber(): ?string
+ public function getIdentificationNumber()
{
return $this->identificationNumber;
}
@@ -232,7 +232,7 @@ public function getIdentificationNumber(): ?string
/**
* @return int|null
*/
- public function getIdentificationTypeId(): ?int
+ public function getIdentificationTypeId()
{
return $this->identificationTypeId;
}
@@ -240,7 +240,7 @@ public function getIdentificationTypeId(): ?int
/**
* @return string|null
*/
- public function getMobileNumber(): ?string
+ public function getMobileNumber()
{
return $this->mobileNumber;
}
@@ -248,7 +248,7 @@ public function getMobileNumber(): ?string
/**
* @return string|null
*/
- public function getPhoneNumber(): ?string
+ public function getPhoneNumber()
{
return $this->phoneNumber;
}
@@ -256,7 +256,7 @@ public function getPhoneNumber(): ?string
/**
* @return string|null
*/
- public function getSex(): ?string
+ public function getSex()
{
return $this->sex;
}
@@ -264,7 +264,7 @@ public function getSex(): ?string
/**
* @return string|null
*/
- public function getTaxNumber(): ?string
+ public function getTaxNumber()
{
return $this->taxNumber;
}
@@ -272,7 +272,7 @@ public function getTaxNumber(): ?string
/**
* @return int|null
*/
- public function getType(): ?int
+ public function getType()
{
return $this->type;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/BasicCustomer.php b/src/Domain/Paymentlinks/ValueObject/BasicCustomer.php
index 83d2abe..4cb9d20 100644
--- a/src/Domain/Paymentlinks/ValueObject/BasicCustomer.php
+++ b/src/Domain/Paymentlinks/ValueObject/BasicCustomer.php
@@ -160,7 +160,7 @@ public function getIpAddress(): string
/**
* @return \Payvision\SDK\DataType\Date|null
*/
- public function getBirthDate(): ?\Payvision\SDK\DataType\Date
+ public function getBirthDate()
{
return $this->birthDate;
}
@@ -168,7 +168,7 @@ public function getBirthDate(): ?\Payvision\SDK\DataType\Date
/**
* @return string|null
*/
- public function getCompanyName(): ?string
+ public function getCompanyName()
{
return $this->companyName;
}
@@ -176,7 +176,7 @@ public function getCompanyName(): ?string
/**
* @return string|null
*/
- public function getCustomerId(): ?string
+ public function getCustomerId()
{
return $this->customerId;
}
@@ -184,7 +184,7 @@ public function getCustomerId(): ?string
/**
* @return string|null
*/
- public function getDeviceType(): ?string
+ public function getDeviceType()
{
return $this->deviceType;
}
@@ -192,7 +192,7 @@ public function getDeviceType(): ?string
/**
* @return string|null
*/
- public function getEmail(): ?string
+ public function getEmail()
{
return $this->email;
}
@@ -200,7 +200,7 @@ public function getEmail(): ?string
/**
* @return string|null
*/
- public function getFamilyName(): ?string
+ public function getFamilyName()
{
return $this->familyName;
}
@@ -208,7 +208,7 @@ public function getFamilyName(): ?string
/**
* @return string|null
*/
- public function getGivenName(): ?string
+ public function getGivenName()
{
return $this->givenName;
}
@@ -216,7 +216,7 @@ public function getGivenName(): ?string
/**
* @return string|null
*/
- public function getHttpUserAgent(): ?string
+ public function getHttpUserAgent()
{
return $this->httpUserAgent;
}
@@ -224,7 +224,7 @@ public function getHttpUserAgent(): ?string
/**
* @return string|null
*/
- public function getIdentificationNumber(): ?string
+ public function getIdentificationNumber()
{
return $this->identificationNumber;
}
@@ -232,7 +232,7 @@ public function getIdentificationNumber(): ?string
/**
* @return int|null
*/
- public function getIdentificationTypeId(): ?int
+ public function getIdentificationTypeId()
{
return $this->identificationTypeId;
}
@@ -240,7 +240,7 @@ public function getIdentificationTypeId(): ?int
/**
* @return string|null
*/
- public function getMobileNumber(): ?string
+ public function getMobileNumber()
{
return $this->mobileNumber;
}
@@ -248,7 +248,7 @@ public function getMobileNumber(): ?string
/**
* @return string|null
*/
- public function getPhoneNumber(): ?string
+ public function getPhoneNumber()
{
return $this->phoneNumber;
}
@@ -256,7 +256,7 @@ public function getPhoneNumber(): ?string
/**
* @return string|null
*/
- public function getSex(): ?string
+ public function getSex()
{
return $this->sex;
}
@@ -264,7 +264,7 @@ public function getSex(): ?string
/**
* @return string|null
*/
- public function getTaxNumber(): ?string
+ public function getTaxNumber()
{
return $this->taxNumber;
}
@@ -272,7 +272,7 @@ public function getTaxNumber(): ?string
/**
* @return int|null
*/
- public function getType(): ?int
+ public function getType()
{
return $this->type;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Cancel/Response.php b/src/Domain/Paymentlinks/ValueObject/Cancel/Response.php
index 991cdd5..69d4f5a 100644
--- a/src/Domain/Paymentlinks/ValueObject/Cancel/Response.php
+++ b/src/Domain/Paymentlinks/ValueObject/Cancel/Response.php
@@ -16,10 +16,10 @@
class Response
{
- public const SUCCESS = 0;
- public const INPUT_ERROR = -1;
- public const BAD_REQUEST = -1;
- public const UNEXPECTED_ERROR = -7;
+ const SUCCESS = 0;
+ const INPUT_ERROR = -1;
+ const BAD_REQUEST = -1;
+ const UNEXPECTED_ERROR = -7;
/**
* @var ResponseBody
diff --git a/src/Domain/Paymentlinks/ValueObject/Error.php b/src/Domain/Paymentlinks/ValueObject/Error.php
index a47fb8d..5e5e918 100644
--- a/src/Domain/Paymentlinks/ValueObject/Error.php
+++ b/src/Domain/Paymentlinks/ValueObject/Error.php
@@ -64,7 +64,7 @@ public function getMessage(): string
/**
* @return string|null
*/
- public function getDetailedMessage(): ?string
+ public function getDetailedMessage()
{
return $this->detailedMessage;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/RequestBody.php b/src/Domain/Paymentlinks/ValueObject/Link/RequestBody.php
index c409457..2548c36 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/RequestBody.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/RequestBody.php
@@ -99,7 +99,7 @@ public function getLink(): RequestLink
/**
* @return BasicAddress|null
*/
- public function getBillingAddress(): ?BasicAddress
+ public function getBillingAddress()
{
return $this->billingAddress;
}
@@ -107,7 +107,7 @@ public function getBillingAddress(): ?BasicAddress
/**
* @return BasicCustomer|null
*/
- public function getCustomer(): ?BasicCustomer
+ public function getCustomer()
{
return $this->customer;
}
@@ -115,7 +115,7 @@ public function getCustomer(): ?BasicCustomer
/**
* @return RequestDba|null
*/
- public function getDba(): ?RequestDba
+ public function getDba()
{
return $this->dba;
}
@@ -123,7 +123,7 @@ public function getDba(): ?RequestDba
/**
* @return RequestOrder|null
*/
- public function getOrder(): ?RequestOrder
+ public function getOrder()
{
return $this->order;
}
@@ -131,7 +131,7 @@ public function getOrder(): ?RequestOrder
/**
* @return BasicAddress|null
*/
- public function getShippingAddress(): ?BasicAddress
+ public function getShippingAddress()
{
return $this->shippingAddress;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/RequestDba.php b/src/Domain/Paymentlinks/ValueObject/Link/RequestDba.php
index 93530d2..a2d3e26 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/RequestDba.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/RequestDba.php
@@ -104,7 +104,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCity(): ?string
+ public function getCity()
{
return $this->city;
}
@@ -112,7 +112,7 @@ public function getCity(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -120,7 +120,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getEmail(): ?string
+ public function getEmail()
{
return $this->email;
}
@@ -128,7 +128,7 @@ public function getEmail(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
@@ -136,7 +136,7 @@ public function getName(): ?string
/**
* @return string|null
*/
- public function getPhoneNumber(): ?string
+ public function getPhoneNumber()
{
return $this->phoneNumber;
}
@@ -144,7 +144,7 @@ public function getPhoneNumber(): ?string
/**
* @return string|null
*/
- public function getShortName(): ?string
+ public function getShortName()
{
return $this->shortName;
}
@@ -152,7 +152,7 @@ public function getShortName(): ?string
/**
* @return string|null
*/
- public function getStateCode(): ?string
+ public function getStateCode()
{
return $this->stateCode;
}
@@ -160,7 +160,7 @@ public function getStateCode(): ?string
/**
* @return string|null
*/
- public function getStreet(): ?string
+ public function getStreet()
{
return $this->street;
}
@@ -168,7 +168,7 @@ public function getStreet(): ?string
/**
* @return string|null
*/
- public function getSubMerchantId(): ?string
+ public function getSubMerchantId()
{
return $this->subMerchantId;
}
@@ -176,7 +176,7 @@ public function getSubMerchantId(): ?string
/**
* @return string|null
*/
- public function getZip(): ?string
+ public function getZip()
{
return $this->zip;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/RequestLink.php b/src/Domain/Paymentlinks/ValueObject/Link/RequestLink.php
index 382f4ad..f5a6e4b 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/RequestLink.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/RequestLink.php
@@ -72,7 +72,7 @@ public function getReturnUrl(): string
/**
* @return string|null
*/
- public function getDuration(): ?string
+ public function getDuration()
{
return $this->duration;
}
@@ -80,7 +80,7 @@ public function getDuration(): ?string
/**
* @return string|null
*/
- public function getExpirationTime(): ?string
+ public function getExpirationTime()
{
return $this->expirationTime;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/RequestOrderLine.php b/src/Domain/Paymentlinks/ValueObject/Link/RequestOrderLine.php
index aca4ead..c1430a2 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/RequestOrderLine.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/RequestOrderLine.php
@@ -120,7 +120,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCurrencyCode(): ?string
+ public function getCurrencyCode()
{
return $this->currencyCode;
}
@@ -128,7 +128,7 @@ public function getCurrencyCode(): ?string
/**
* @return string|null
*/
- public function getDescription(): ?string
+ public function getDescription()
{
return $this->description;
}
@@ -136,7 +136,7 @@ public function getDescription(): ?string
/**
* @return float|null
*/
- public function getDiscountAmount(): ?float
+ public function getDiscountAmount()
{
return $this->discountAmount;
}
@@ -144,7 +144,7 @@ public function getDiscountAmount(): ?float
/**
* @return float|null
*/
- public function getItemAmount(): ?float
+ public function getItemAmount()
{
return $this->itemAmount;
}
@@ -152,7 +152,7 @@ public function getItemAmount(): ?float
/**
* @return string|null
*/
- public function getProductCode(): ?string
+ public function getProductCode()
{
return $this->productCode;
}
@@ -160,7 +160,7 @@ public function getProductCode(): ?string
/**
* @return string|null
*/
- public function getProductName(): ?string
+ public function getProductName()
{
return $this->productName;
}
@@ -168,7 +168,7 @@ public function getProductName(): ?string
/**
* @return string|null
*/
- public function getPurchaseType(): ?string
+ public function getPurchaseType()
{
return $this->purchaseType;
}
@@ -176,7 +176,7 @@ public function getPurchaseType(): ?string
/**
* @return int|null
*/
- public function getQuantity(): ?int
+ public function getQuantity()
{
return $this->quantity;
}
@@ -184,7 +184,7 @@ public function getQuantity(): ?int
/**
* @return int|null
*/
- public function getSequenceNumber(): ?int
+ public function getSequenceNumber()
{
return $this->sequenceNumber;
}
@@ -192,7 +192,7 @@ public function getSequenceNumber(): ?int
/**
* @return float|null
*/
- public function getShippingAmount(): ?float
+ public function getShippingAmount()
{
return $this->shippingAmount;
}
@@ -200,7 +200,7 @@ public function getShippingAmount(): ?float
/**
* @return float|null
*/
- public function getTaxPercentage(): ?float
+ public function getTaxPercentage()
{
return $this->taxPercentage;
}
@@ -208,7 +208,7 @@ public function getTaxPercentage(): ?float
/**
* @return float|null
*/
- public function getTotalAmount(): ?float
+ public function getTotalAmount()
{
return $this->totalAmount;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/RequestTransaction.php b/src/Domain/Paymentlinks/ValueObject/Link/RequestTransaction.php
index 617b994..ba4cb95 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/RequestTransaction.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/RequestTransaction.php
@@ -13,8 +13,8 @@
class RequestTransaction
{
- public const AUTHORIZATION_MODE_AUTHORIZE = 'authorize';
- public const AUTHORIZATION_MODE_PAYMENT = 'payment';
+ const AUTHORIZATION_MODE_AUTHORIZE = 'authorize';
+ const AUTHORIZATION_MODE_PAYMENT = 'payment';
/**
* @var float
@@ -131,7 +131,7 @@ public function getTrackingCode(): string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -139,7 +139,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
@@ -147,7 +147,7 @@ public function getDescriptor(): ?string
/**
* @return string|null
*/
- public function getInvoiceId(): ?string
+ public function getInvoiceId()
{
return $this->invoiceId;
}
@@ -155,7 +155,7 @@ public function getInvoiceId(): ?string
/**
* @return int|null
*/
- public function getStoreId(): ?int
+ public function getStoreId()
{
return $this->storeId;
}
@@ -163,7 +163,7 @@ public function getStoreId(): ?int
/**
* @return string|null
*/
- public function getType(): ?string
+ public function getType()
{
return $this->type;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/Response.php b/src/Domain/Paymentlinks/ValueObject/Link/Response.php
index d2109b7..7a5fe1b 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/Response.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/Response.php
@@ -15,10 +15,10 @@
class Response
{
- public const SUCCESS = 0;
- public const INPUT_ERROR = -1;
- public const BAD_REQUEST = -1;
- public const UNEXPECTED_ERROR = -7;
+ const SUCCESS = 0;
+ const INPUT_ERROR = -1;
+ const BAD_REQUEST = -1;
+ const UNEXPECTED_ERROR = -7;
/**
* @var ResponseBody
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/ResponseBody.php b/src/Domain/Paymentlinks/ValueObject/Link/ResponseBody.php
index 1f71abd..1787ee2 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/ResponseBody.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/ResponseBody.php
@@ -58,7 +58,7 @@ public function __construct(
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -66,7 +66,7 @@ public function getError(): ?Error
/**
* @return ResponseLink|null
*/
- public function getLink(): ?ResponseLink
+ public function getLink()
{
return $this->link;
}
@@ -74,7 +74,7 @@ public function getLink(): ?ResponseLink
/**
* @return ResponsePayment[]|null
*/
- public function getPayments(): ?array
+ public function getPayments()
{
return $this->payments;
}
@@ -82,7 +82,7 @@ public function getPayments(): ?array
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/ResponseLink.php b/src/Domain/Paymentlinks/ValueObject/Link/ResponseLink.php
index a2a7ff0..b70bbd0 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/ResponseLink.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/ResponseLink.php
@@ -13,13 +13,13 @@
class ResponseLink
{
- public const READY = 'READY';
- public const PAID = 'PAID';
- public const CANCELLED = 'CANCELLED';
- public const DECLINED = 'DECLINED';
- public const DECLINEDBYCUSTOMER = 'DECLINEDBYCUSTOMER';
- public const EXPIRED = 'EXPIRED';
- public const PENDING = 'PENDING';
+ const READY = 'READY';
+ const PAID = 'PAID';
+ const CANCELLED = 'CANCELLED';
+ const DECLINED = 'DECLINED';
+ const DECLINEDBYCUSTOMER = 'DECLINEDBYCUSTOMER';
+ const EXPIRED = 'EXPIRED';
+ const PENDING = 'PENDING';
/**
* @var int[]
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBank.php b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBank.php
index 3043778..6ae2c5a 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBank.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBank.php
@@ -64,7 +64,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getAccountHolderName(): ?string
+ public function getAccountHolderName()
{
return $this->accountHolderName;
}
@@ -72,7 +72,7 @@ public function getAccountHolderName(): ?string
/**
* @return string|null
*/
- public function getBic(): ?string
+ public function getBic()
{
return $this->bic;
}
@@ -80,7 +80,7 @@ public function getBic(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -88,7 +88,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getIban(): ?string
+ public function getIban()
{
return $this->iban;
}
@@ -96,7 +96,7 @@ public function getIban(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBody.php b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBody.php
index 838461a..51bce98 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBody.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentBody.php
@@ -56,7 +56,7 @@ public function __construct(
/**
* @return ResponsePaymentBank|null
*/
- public function getBank(): ?ResponsePaymentBank
+ public function getBank()
{
return $this->bank;
}
@@ -64,7 +64,7 @@ public function getBank(): ?ResponsePaymentBank
/**
* @return ResponsePaymentCard|null
*/
- public function getCard(): ?ResponsePaymentCard
+ public function getCard()
{
return $this->card;
}
@@ -72,7 +72,7 @@ public function getCard(): ?ResponsePaymentCard
/**
* @return ResponsePaymentError|null
*/
- public function getError(): ?ResponsePaymentError
+ public function getError()
{
return $this->error;
}
@@ -80,7 +80,7 @@ public function getError(): ?ResponsePaymentError
/**
* @return ResponsePaymentTransaction|null
*/
- public function getTransaction(): ?ResponsePaymentTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentCard.php b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentCard.php
index 04aa053..964171f 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentCard.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentCard.php
@@ -112,7 +112,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getApprovalCode(): ?string
+ public function getApprovalCode()
{
return $this->approvalCode;
}
@@ -120,7 +120,7 @@ public function getApprovalCode(): ?string
/**
* @return string|null
*/
- public function getAvsAuthorizationEntity(): ?string
+ public function getAvsAuthorizationEntity()
{
return $this->avsAuthorizationEntity;
}
@@ -128,7 +128,7 @@ public function getAvsAuthorizationEntity(): ?string
/**
* @return string|null
*/
- public function getAvsResult(): ?string
+ public function getAvsResult()
{
return $this->avsResult;
}
@@ -136,7 +136,7 @@ public function getAvsResult(): ?string
/**
* @return string|null
*/
- public function getCvvResult(): ?string
+ public function getCvvResult()
{
return $this->cvvResult;
}
@@ -144,7 +144,7 @@ public function getCvvResult(): ?string
/**
* @return string|null
*/
- public function getExpiryMonth(): ?string
+ public function getExpiryMonth()
{
return $this->expiryMonth;
}
@@ -152,7 +152,7 @@ public function getExpiryMonth(): ?string
/**
* @return string|null
*/
- public function getExpiryYear(): ?string
+ public function getExpiryYear()
{
return $this->expiryYear;
}
@@ -160,7 +160,7 @@ public function getExpiryYear(): ?string
/**
* @return string|null
*/
- public function getFirstSixDigits(): ?string
+ public function getFirstSixDigits()
{
return $this->firstSixDigits;
}
@@ -168,7 +168,7 @@ public function getFirstSixDigits(): ?string
/**
* @return string|null
*/
- public function getHolderName(): ?string
+ public function getHolderName()
{
return $this->holderName;
}
@@ -176,7 +176,7 @@ public function getHolderName(): ?string
/**
* @return string|null
*/
- public function getLastFourDigits(): ?string
+ public function getLastFourDigits()
{
return $this->lastFourDigits;
}
@@ -184,7 +184,7 @@ public function getLastFourDigits(): ?string
/**
* @return string|null
*/
- public function getRecurringAdvice(): ?string
+ public function getRecurringAdvice()
{
return $this->recurringAdvice;
}
@@ -192,7 +192,7 @@ public function getRecurringAdvice(): ?string
/**
* @return string|null
*/
- public function getThreeDResult(): ?string
+ public function getThreeDResult()
{
return $this->threeDResult;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentError.php b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentError.php
index 988a9d8..0934ef0 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentError.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/ResponsePaymentError.php
@@ -64,7 +64,7 @@ public function getMessage(): string
/**
* @return string|null
*/
- public function getDetailedMessage(): ?string
+ public function getDetailedMessage()
{
return $this->detailedMessage;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Link/ResponseRedirect.php b/src/Domain/Paymentlinks/ValueObject/Link/ResponseRedirect.php
index c6f2178..1ace67e 100644
--- a/src/Domain/Paymentlinks/ValueObject/Link/ResponseRedirect.php
+++ b/src/Domain/Paymentlinks/ValueObject/Link/ResponseRedirect.php
@@ -40,7 +40,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getMethod(): ?string
+ public function getMethod()
{
return $this->method;
}
@@ -48,7 +48,7 @@ public function getMethod(): ?string
/**
* @return string|null
*/
- public function getUrl(): ?string
+ public function getUrl()
{
return $this->url;
}
diff --git a/src/Domain/Paymentlinks/ValueObject/Status/Response.php b/src/Domain/Paymentlinks/ValueObject/Status/Response.php
index 0b17d15..ab3a332 100644
--- a/src/Domain/Paymentlinks/ValueObject/Status/Response.php
+++ b/src/Domain/Paymentlinks/ValueObject/Status/Response.php
@@ -16,10 +16,10 @@
class Response
{
- public const SUCCESS = 0;
- public const INPUT_ERROR = -1;
- public const BAD_REQUEST = -1;
- public const UNEXPECTED_ERROR = -7;
+ const SUCCESS = 0;
+ const INPUT_ERROR = -1;
+ const BAD_REQUEST = -1;
+ const UNEXPECTED_ERROR = -7;
/**
* @var ResponseBody
diff --git a/src/Domain/Payments/ValueObject/Cancel/Response.php b/src/Domain/Payments/ValueObject/Cancel/Response.php
index 1d05ddd..b3a0be2 100644
--- a/src/Domain/Payments/ValueObject/Cancel/Response.php
+++ b/src/Domain/Payments/ValueObject/Cancel/Response.php
@@ -13,22 +13,22 @@
class Response
{
- public const TIMEOUT = 4;
- public const PENDING_MERCHANT = 3;
- public const PENDING = 2;
- public const WAITING = 1;
- public const OK = 0;
- public const INPUT_ERROR = -1;
- public const FAILED = -2;
- public const FAILED_RETRY = -3;
- public const DECLINED = -4;
- public const DECLINED_RETRY = -5;
- public const SECURITY_ERROR = -6;
- public const INTERNAL_SERVER_ERROR = -7;
- public const BUSINESS_RULE_ERROR = -8;
- public const FRAUD = -9;
- public const CUSTOMER_PROCESSING_ERROR = -10;
- public const REFERRALS = -11;
+ const TIMEOUT = 4;
+ const PENDING_MERCHANT = 3;
+ const PENDING = 2;
+ const WAITING = 1;
+ const OK = 0;
+ const INPUT_ERROR = -1;
+ const FAILED = -2;
+ const FAILED_RETRY = -3;
+ const DECLINED = -4;
+ const DECLINED_RETRY = -5;
+ const SECURITY_ERROR = -6;
+ const INTERNAL_SERVER_ERROR = -7;
+ const BUSINESS_RULE_ERROR = -8;
+ const FRAUD = -9;
+ const CUSTOMER_PROCESSING_ERROR = -10;
+ const REFERRALS = -11;
/**
* @var ResponseBody
diff --git a/src/Domain/Payments/ValueObject/Cancel/ResponseBody.php b/src/Domain/Payments/ValueObject/Cancel/ResponseBody.php
index 70be855..cf97c00 100644
--- a/src/Domain/Payments/ValueObject/Cancel/ResponseBody.php
+++ b/src/Domain/Payments/ValueObject/Cancel/ResponseBody.php
@@ -42,7 +42,7 @@ public function __construct(
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -50,7 +50,7 @@ public function getError(): ?Error
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Payments/ValueObject/Cancel/ResponseHeader.php b/src/Domain/Payments/ValueObject/Cancel/ResponseHeader.php
index a4410ad..f2545e1 100644
--- a/src/Domain/Payments/ValueObject/Cancel/ResponseHeader.php
+++ b/src/Domain/Payments/ValueObject/Cancel/ResponseHeader.php
@@ -48,7 +48,7 @@ public function getRequestTimestamp(): \Payvision\SDK\DataType\DateTime
/**
* @return string|null
*/
- public function getRequestCode(): ?string
+ public function getRequestCode()
{
return $this->requestCode;
}
diff --git a/src/Domain/Payments/ValueObject/Cancel/ResponseTransaction.php b/src/Domain/Payments/ValueObject/Cancel/ResponseTransaction.php
index b48d60d..2c907e4 100644
--- a/src/Domain/Payments/ValueObject/Cancel/ResponseTransaction.php
+++ b/src/Domain/Payments/ValueObject/Cancel/ResponseTransaction.php
@@ -104,7 +104,7 @@ public function getTrackingCode(): string
/**
* @return int|null
*/
- public function getBrandId(): ?int
+ public function getBrandId()
{
return $this->brandId;
}
@@ -112,7 +112,7 @@ public function getBrandId(): ?int
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
diff --git a/src/Domain/Payments/ValueObject/Capture/RequestTransaction.php b/src/Domain/Payments/ValueObject/Capture/RequestTransaction.php
index 321386b..39db41a 100644
--- a/src/Domain/Payments/ValueObject/Capture/RequestTransaction.php
+++ b/src/Domain/Payments/ValueObject/Capture/RequestTransaction.php
@@ -80,7 +80,7 @@ public function getTrackingCode(): string
/**
* @return string|null
*/
- public function getInvoiceId(): ?string
+ public function getInvoiceId()
{
return $this->invoiceId;
}
diff --git a/src/Domain/Payments/ValueObject/Capture/Response.php b/src/Domain/Payments/ValueObject/Capture/Response.php
index ac04134..7b97397 100644
--- a/src/Domain/Payments/ValueObject/Capture/Response.php
+++ b/src/Domain/Payments/ValueObject/Capture/Response.php
@@ -13,22 +13,22 @@
class Response
{
- public const TIMEOUT = 4;
- public const PENDING_MERCHANT = 3;
- public const PENDING = 2;
- public const WAITING = 1;
- public const OK = 0;
- public const INPUT_ERROR = -1;
- public const FAILED = -2;
- public const FAILED_RETRY = -3;
- public const DECLINED = -4;
- public const DECLINED_RETRY = -5;
- public const SECURITY_ERROR = -6;
- public const INTERNAL_SERVER_ERROR = -7;
- public const BUSINESS_RULE_ERROR = -8;
- public const FRAUD = -9;
- public const CUSTOMER_PROCESSING_ERROR = -10;
- public const REFERRALS = -11;
+ const TIMEOUT = 4;
+ const PENDING_MERCHANT = 3;
+ const PENDING = 2;
+ const WAITING = 1;
+ const OK = 0;
+ const INPUT_ERROR = -1;
+ const FAILED = -2;
+ const FAILED_RETRY = -3;
+ const DECLINED = -4;
+ const DECLINED_RETRY = -5;
+ const SECURITY_ERROR = -6;
+ const INTERNAL_SERVER_ERROR = -7;
+ const BUSINESS_RULE_ERROR = -8;
+ const FRAUD = -9;
+ const CUSTOMER_PROCESSING_ERROR = -10;
+ const REFERRALS = -11;
/**
* @var ResponseBody
diff --git a/src/Domain/Payments/ValueObject/Capture/ResponseBank.php b/src/Domain/Payments/ValueObject/Capture/ResponseBank.php
index 32c52b8..b0fb8c2 100644
--- a/src/Domain/Payments/ValueObject/Capture/ResponseBank.php
+++ b/src/Domain/Payments/ValueObject/Capture/ResponseBank.php
@@ -64,7 +64,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getAccountHolderName(): ?string
+ public function getAccountHolderName()
{
return $this->accountHolderName;
}
@@ -72,7 +72,7 @@ public function getAccountHolderName(): ?string
/**
* @return string|null
*/
- public function getBic(): ?string
+ public function getBic()
{
return $this->bic;
}
@@ -80,7 +80,7 @@ public function getBic(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -88,7 +88,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getIban(): ?string
+ public function getIban()
{
return $this->iban;
}
@@ -96,7 +96,7 @@ public function getIban(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
diff --git a/src/Domain/Payments/ValueObject/Capture/ResponseBody.php b/src/Domain/Payments/ValueObject/Capture/ResponseBody.php
index 75e4722..90ce2ce 100644
--- a/src/Domain/Payments/ValueObject/Capture/ResponseBody.php
+++ b/src/Domain/Payments/ValueObject/Capture/ResponseBody.php
@@ -59,7 +59,7 @@ public function __construct(
/**
* @return ResponseBank|null
*/
- public function getBank(): ?ResponseBank
+ public function getBank()
{
return $this->bank;
}
@@ -67,7 +67,7 @@ public function getBank(): ?ResponseBank
/**
* @return ResponseCard|null
*/
- public function getCard(): ?ResponseCard
+ public function getCard()
{
return $this->card;
}
@@ -75,7 +75,7 @@ public function getCard(): ?ResponseCard
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -83,7 +83,7 @@ public function getError(): ?Error
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Payments/ValueObject/Capture/ResponseHeader.php b/src/Domain/Payments/ValueObject/Capture/ResponseHeader.php
index 9326f37..c1a0fde 100644
--- a/src/Domain/Payments/ValueObject/Capture/ResponseHeader.php
+++ b/src/Domain/Payments/ValueObject/Capture/ResponseHeader.php
@@ -48,7 +48,7 @@ public function getRequestTimestamp(): \Payvision\SDK\DataType\DateTime
/**
* @return string|null
*/
- public function getRequestCode(): ?string
+ public function getRequestCode()
{
return $this->requestCode;
}
diff --git a/src/Domain/Payments/ValueObject/Capture/ResponseTransaction.php b/src/Domain/Payments/ValueObject/Capture/ResponseTransaction.php
index 69f474e..a6f43e6 100644
--- a/src/Domain/Payments/ValueObject/Capture/ResponseTransaction.php
+++ b/src/Domain/Payments/ValueObject/Capture/ResponseTransaction.php
@@ -136,7 +136,7 @@ public function getTrackingCode(): string
/**
* @return int|null
*/
- public function getBrandId(): ?int
+ public function getBrandId()
{
return $this->brandId;
}
@@ -144,7 +144,7 @@ public function getBrandId(): ?int
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
diff --git a/src/Domain/Payments/ValueObject/Customer.php b/src/Domain/Payments/ValueObject/Customer.php
index 99d36fe..3494e94 100644
--- a/src/Domain/Payments/ValueObject/Customer.php
+++ b/src/Domain/Payments/ValueObject/Customer.php
@@ -13,23 +13,23 @@
class Customer
{
- public const SEX_MALE = 'M';
- public const SEX_FEMALE = 'F';
+ const SEX_MALE = 'M';
+ const SEX_FEMALE = 'F';
- public const IDENTIFICATION_TYPE_PASSPORT = 1;
- public const IDENTIFICATION_TYPE_DRIVERS_LICENCE = 2;
- public const IDENTIFICATION_TYPE_ID_CARD = 3;
- public const IDENTIFICATION_TYPE_TAX_STATEMENT = 4;
+ const IDENTIFICATION_TYPE_PASSPORT = 1;
+ const IDENTIFICATION_TYPE_DRIVERS_LICENCE = 2;
+ const IDENTIFICATION_TYPE_ID_CARD = 3;
+ const IDENTIFICATION_TYPE_TAX_STATEMENT = 4;
- public const CUSTOMER_TYPE_PERSONAL = 1;
- public const CUSTOMER_TYPE_COMPANY = 2;
+ const CUSTOMER_TYPE_PERSONAL = 1;
+ const CUSTOMER_TYPE_COMPANY = 2;
- public const DEVICE_TYPE_DESKTOP_WEB = 1;
- public const DEVICE_TYPE_DESKTOP_APP = 2;
- public const DEVICE_TYPE_MOBILE_WEB = 3;
- public const DEVICE_TYPE_MOBILE_APP = 4;
- public const DEVICE_TYPE_TABLET_WEB = 5;
- public const DEVICE_TYPE_TABLET_APP = 6;
+ const DEVICE_TYPE_DESKTOP_WEB = 1;
+ const DEVICE_TYPE_DESKTOP_APP = 2;
+ const DEVICE_TYPE_MOBILE_WEB = 3;
+ const DEVICE_TYPE_MOBILE_APP = 4;
+ const DEVICE_TYPE_TABLET_WEB = 5;
+ const DEVICE_TYPE_TABLET_APP = 6;
/**
* @var string
@@ -178,7 +178,7 @@ public function getIpAddress(): string
/**
* @return \Payvision\SDK\DataType\Date|null
*/
- public function getBirthDate(): ?\Payvision\SDK\DataType\Date
+ public function getBirthDate()
{
return $this->birthDate;
}
@@ -186,7 +186,7 @@ public function getBirthDate(): ?\Payvision\SDK\DataType\Date
/**
* @return string|null
*/
- public function getCompanyName(): ?string
+ public function getCompanyName()
{
return $this->companyName;
}
@@ -194,7 +194,7 @@ public function getCompanyName(): ?string
/**
* @return string|null
*/
- public function getCustomerId(): ?string
+ public function getCustomerId()
{
return $this->customerId;
}
@@ -202,7 +202,7 @@ public function getCustomerId(): ?string
/**
* @return string|null
*/
- public function getDeviceType(): ?string
+ public function getDeviceType()
{
return $this->deviceType;
}
@@ -210,7 +210,7 @@ public function getDeviceType(): ?string
/**
* @return string|null
*/
- public function getEmail(): ?string
+ public function getEmail()
{
return $this->email;
}
@@ -218,7 +218,7 @@ public function getEmail(): ?string
/**
* @return string|null
*/
- public function getFamilyName(): ?string
+ public function getFamilyName()
{
return $this->familyName;
}
@@ -226,7 +226,7 @@ public function getFamilyName(): ?string
/**
* @return string|null
*/
- public function getGivenName(): ?string
+ public function getGivenName()
{
return $this->givenName;
}
@@ -234,7 +234,7 @@ public function getGivenName(): ?string
/**
* @return string|null
*/
- public function getHttpUserAgent(): ?string
+ public function getHttpUserAgent()
{
return $this->httpUserAgent;
}
@@ -242,7 +242,7 @@ public function getHttpUserAgent(): ?string
/**
* @return string|null
*/
- public function getIdentificationNumber(): ?string
+ public function getIdentificationNumber()
{
return $this->identificationNumber;
}
@@ -250,7 +250,7 @@ public function getIdentificationNumber(): ?string
/**
* @return int|null
*/
- public function getIdentificationTypeId(): ?int
+ public function getIdentificationTypeId()
{
return $this->identificationTypeId;
}
@@ -258,7 +258,7 @@ public function getIdentificationTypeId(): ?int
/**
* @return string|null
*/
- public function getMobileNumber(): ?string
+ public function getMobileNumber()
{
return $this->mobileNumber;
}
@@ -266,7 +266,7 @@ public function getMobileNumber(): ?string
/**
* @return string|null
*/
- public function getPhoneNumber(): ?string
+ public function getPhoneNumber()
{
return $this->phoneNumber;
}
@@ -274,7 +274,7 @@ public function getPhoneNumber(): ?string
/**
* @return string|null
*/
- public function getSex(): ?string
+ public function getSex()
{
return $this->sex;
}
@@ -282,7 +282,7 @@ public function getSex(): ?string
/**
* @return string|null
*/
- public function getTaxNumber(): ?string
+ public function getTaxNumber()
{
return $this->taxNumber;
}
@@ -290,7 +290,7 @@ public function getTaxNumber(): ?string
/**
* @return int|null
*/
- public function getType(): ?int
+ public function getType()
{
return $this->type;
}
diff --git a/src/Domain/Payments/ValueObject/Error.php b/src/Domain/Payments/ValueObject/Error.php
index bd7d297..7d8501e 100644
--- a/src/Domain/Payments/ValueObject/Error.php
+++ b/src/Domain/Payments/ValueObject/Error.php
@@ -64,7 +64,7 @@ public function getMessage(): string
/**
* @return string|null
*/
- public function getDetailedMessage(): ?string
+ public function getDetailedMessage()
{
return $this->detailedMessage;
}
diff --git a/src/Domain/Payments/ValueObject/OrderLine.php b/src/Domain/Payments/ValueObject/OrderLine.php
index 246bf37..18711f6 100644
--- a/src/Domain/Payments/ValueObject/OrderLine.php
+++ b/src/Domain/Payments/ValueObject/OrderLine.php
@@ -128,7 +128,7 @@ public function getTaxPercentage(): float
/**
* @return float|null
*/
- public function getTotalAmount(): ?float
+ public function getTotalAmount()
{
return $this->totalAmount;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/Request.php b/src/Domain/Payments/ValueObject/Payment/Request.php
index a7e33c8..924cea8 100644
--- a/src/Domain/Payments/ValueObject/Payment/Request.php
+++ b/src/Domain/Payments/ValueObject/Payment/Request.php
@@ -15,8 +15,8 @@
class Request
{
- public const ACTION_PAYMENT = 'payment';
- public const ACTION_AUTHORIZE = 'authorize';
+ const ACTION_PAYMENT = 'payment';
+ const ACTION_AUTHORIZE = 'authorize';
/**
* @var string
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestBank.php b/src/Domain/Payments/ValueObject/Payment/RequestBank.php
index 1da5e18..d5fdfec 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestBank.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestBank.php
@@ -112,7 +112,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getAccountHolderName(): ?string
+ public function getAccountHolderName()
{
return $this->accountHolderName;
}
@@ -120,7 +120,7 @@ public function getAccountHolderName(): ?string
/**
* @return string|null
*/
- public function getAccountNumber(): ?string
+ public function getAccountNumber()
{
return $this->accountNumber;
}
@@ -128,7 +128,7 @@ public function getAccountNumber(): ?string
/**
* @return string|null
*/
- public function getBankCode(): ?string
+ public function getBankCode()
{
return $this->bankCode;
}
@@ -136,7 +136,7 @@ public function getBankCode(): ?string
/**
* @return string|null
*/
- public function getBic(): ?string
+ public function getBic()
{
return $this->bic;
}
@@ -144,7 +144,7 @@ public function getBic(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -152,7 +152,7 @@ public function getCountryCode(): ?string
/**
* @return \Payvision\SDK\DataType\Date|null
*/
- public function getDateCollection(): ?\Payvision\SDK\DataType\Date
+ public function getDateCollection()
{
return $this->dateCollection;
}
@@ -160,7 +160,7 @@ public function getDateCollection(): ?\Payvision\SDK\DataType\Date
/**
* @return \Payvision\SDK\DataType\Date|null
*/
- public function getDateMandateSigned(): ?\Payvision\SDK\DataType\Date
+ public function getDateMandateSigned()
{
return $this->dateMandateSigned;
}
@@ -168,7 +168,7 @@ public function getDateMandateSigned(): ?\Payvision\SDK\DataType\Date
/**
* @return string|null
*/
- public function getIban(): ?string
+ public function getIban()
{
return $this->iban;
}
@@ -176,7 +176,7 @@ public function getIban(): ?string
/**
* @return int|null
*/
- public function getIssuerId(): ?int
+ public function getIssuerId()
{
return $this->issuerId;
}
@@ -184,7 +184,7 @@ public function getIssuerId(): ?int
/**
* @return string|null
*/
- public function getMandateId(): ?string
+ public function getMandateId()
{
return $this->mandateId;
}
@@ -192,7 +192,7 @@ public function getMandateId(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestBillingAddress.php b/src/Domain/Payments/ValueObject/Payment/RequestBillingAddress.php
index 42b6d62..7e4409d 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestBillingAddress.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestBillingAddress.php
@@ -88,7 +88,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCity(): ?string
+ public function getCity()
{
return $this->city;
}
@@ -96,7 +96,7 @@ public function getCity(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -104,7 +104,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getHouseNumber(): ?string
+ public function getHouseNumber()
{
return $this->houseNumber;
}
@@ -112,7 +112,7 @@ public function getHouseNumber(): ?string
/**
* @return string|null
*/
- public function getHouseNumberSuffix(): ?string
+ public function getHouseNumberSuffix()
{
return $this->houseNumberSuffix;
}
@@ -120,7 +120,7 @@ public function getHouseNumberSuffix(): ?string
/**
* @return string|null
*/
- public function getStateCode(): ?string
+ public function getStateCode()
{
return $this->stateCode;
}
@@ -128,7 +128,7 @@ public function getStateCode(): ?string
/**
* @return string|null
*/
- public function getStreet(): ?string
+ public function getStreet()
{
return $this->street;
}
@@ -136,7 +136,7 @@ public function getStreet(): ?string
/**
* @return string|null
*/
- public function getStreetInfo(): ?string
+ public function getStreetInfo()
{
return $this->streetInfo;
}
@@ -144,7 +144,7 @@ public function getStreetInfo(): ?string
/**
* @return string|null
*/
- public function getZip(): ?string
+ public function getZip()
{
return $this->zip;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestBody.php b/src/Domain/Payments/ValueObject/Payment/RequestBody.php
index cd11728..ee3d985 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestBody.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestBody.php
@@ -131,7 +131,7 @@ public function getTransaction(): RequestTransaction
/**
* @return RequestBank|null
*/
- public function getBank(): ?RequestBank
+ public function getBank()
{
return $this->bank;
}
@@ -139,7 +139,7 @@ public function getBank(): ?RequestBank
/**
* @return RequestBillingAddress|null
*/
- public function getBillingAddress(): ?RequestBillingAddress
+ public function getBillingAddress()
{
return $this->billingAddress;
}
@@ -147,7 +147,7 @@ public function getBillingAddress(): ?RequestBillingAddress
/**
* @return RequestCard|null
*/
- public function getCard(): ?RequestCard
+ public function getCard()
{
return $this->card;
}
@@ -155,7 +155,7 @@ public function getCard(): ?RequestCard
/**
* @return Customer|null
*/
- public function getCustomer(): ?Customer
+ public function getCustomer()
{
return $this->customer;
}
@@ -163,7 +163,7 @@ public function getCustomer(): ?Customer
/**
* @return RequestDba|null
*/
- public function getDba(): ?RequestDba
+ public function getDba()
{
return $this->dba;
}
@@ -171,7 +171,7 @@ public function getDba(): ?RequestDba
/**
* @return RequestOption|null
*/
- public function getOption(): ?RequestOption
+ public function getOption()
{
return $this->option;
}
@@ -179,7 +179,7 @@ public function getOption(): ?RequestOption
/**
* @return Order|null
*/
- public function getOrder(): ?Order
+ public function getOrder()
{
return $this->order;
}
@@ -187,7 +187,7 @@ public function getOrder(): ?Order
/**
* @return RequestQr|null
*/
- public function getQr(): ?RequestQr
+ public function getQr()
{
return $this->qr;
}
@@ -195,7 +195,7 @@ public function getQr(): ?RequestQr
/**
* @return RequestShippingAddress|null
*/
- public function getShippingAddress(): ?RequestShippingAddress
+ public function getShippingAddress()
{
return $this->shippingAddress;
}
@@ -203,7 +203,7 @@ public function getShippingAddress(): ?RequestShippingAddress
/**
* @return RequestThreeDSecure|null
*/
- public function getThreeDSecure(): ?RequestThreeDSecure
+ public function getThreeDSecure()
{
return $this->threeDSecure;
}
@@ -211,7 +211,7 @@ public function getThreeDSecure(): ?RequestThreeDSecure
/**
* @return RequestWallet|null
*/
- public function getWallet(): ?RequestWallet
+ public function getWallet()
{
return $this->wallet;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestCard.php b/src/Domain/Payments/ValueObject/Payment/RequestCard.php
index eea3e08..3d64c78 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestCard.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestCard.php
@@ -72,7 +72,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCvv(): ?string
+ public function getCvv()
{
return $this->cvv;
}
@@ -80,7 +80,7 @@ public function getCvv(): ?string
/**
* @return int|null
*/
- public function getExpiryMonth(): ?int
+ public function getExpiryMonth()
{
return $this->expiryMonth;
}
@@ -88,7 +88,7 @@ public function getExpiryMonth(): ?int
/**
* @return int|null
*/
- public function getExpiryYear(): ?int
+ public function getExpiryYear()
{
return $this->expiryYear;
}
@@ -96,7 +96,7 @@ public function getExpiryYear(): ?int
/**
* @return string|null
*/
- public function getHolderName(): ?string
+ public function getHolderName()
{
return $this->holderName;
}
@@ -104,7 +104,7 @@ public function getHolderName(): ?string
/**
* @return string|null
*/
- public function getIssueNumber(): ?string
+ public function getIssueNumber()
{
return $this->issueNumber;
}
@@ -112,7 +112,7 @@ public function getIssueNumber(): ?string
/**
* @return string|null
*/
- public function getNumber(): ?string
+ public function getNumber()
{
return $this->number;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestDba.php b/src/Domain/Payments/ValueObject/Payment/RequestDba.php
index 41ab19a..e61a9e6 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestDba.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestDba.php
@@ -104,7 +104,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCity(): ?string
+ public function getCity()
{
return $this->city;
}
@@ -112,7 +112,7 @@ public function getCity(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -120,7 +120,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getEmail(): ?string
+ public function getEmail()
{
return $this->email;
}
@@ -128,7 +128,7 @@ public function getEmail(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
@@ -136,7 +136,7 @@ public function getName(): ?string
/**
* @return string|null
*/
- public function getPhoneNumber(): ?string
+ public function getPhoneNumber()
{
return $this->phoneNumber;
}
@@ -144,7 +144,7 @@ public function getPhoneNumber(): ?string
/**
* @return string|null
*/
- public function getShortName(): ?string
+ public function getShortName()
{
return $this->shortName;
}
@@ -152,7 +152,7 @@ public function getShortName(): ?string
/**
* @return string|null
*/
- public function getStateCode(): ?string
+ public function getStateCode()
{
return $this->stateCode;
}
@@ -160,7 +160,7 @@ public function getStateCode(): ?string
/**
* @return string|null
*/
- public function getStreet(): ?string
+ public function getStreet()
{
return $this->street;
}
@@ -168,7 +168,7 @@ public function getStreet(): ?string
/**
* @return string|null
*/
- public function getSubMerchantId(): ?string
+ public function getSubMerchantId()
{
return $this->subMerchantId;
}
@@ -176,7 +176,7 @@ public function getSubMerchantId(): ?string
/**
* @return string|null
*/
- public function getZip(): ?string
+ public function getZip()
{
return $this->zip;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestOption.php b/src/Domain/Payments/ValueObject/Payment/RequestOption.php
index 5ee1fac..e56a6c7 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestOption.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestOption.php
@@ -96,7 +96,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getBrandName(): ?string
+ public function getBrandName()
{
return $this->brandName;
}
@@ -104,7 +104,7 @@ public function getBrandName(): ?string
/**
* @return string|null
*/
- public function getCartBorderColor(): ?string
+ public function getCartBorderColor()
{
return $this->cartBorderColor;
}
@@ -112,7 +112,7 @@ public function getCartBorderColor(): ?string
/**
* @return string|null
*/
- public function getCountryRestriction(): ?string
+ public function getCountryRestriction()
{
return $this->countryRestriction;
}
@@ -120,7 +120,7 @@ public function getCountryRestriction(): ?string
/**
* @return string|null
*/
- public function getHeaderImage(): ?string
+ public function getHeaderImage()
{
return $this->headerImage;
}
@@ -128,7 +128,7 @@ public function getHeaderImage(): ?string
/**
* @return string|null
*/
- public function getLocale(): ?string
+ public function getLocale()
{
return $this->locale;
}
@@ -136,7 +136,7 @@ public function getLocale(): ?string
/**
* @return int|null
*/
- public function getMinAgeRestriction(): ?int
+ public function getMinAgeRestriction()
{
return $this->minAgeRestriction;
}
@@ -144,7 +144,7 @@ public function getMinAgeRestriction(): ?int
/**
* @return int|null
*/
- public function getNoShipping(): ?int
+ public function getNoShipping()
{
return $this->noShipping;
}
@@ -152,7 +152,7 @@ public function getNoShipping(): ?int
/**
* @return int|null
*/
- public function getProcessingType(): ?int
+ public function getProcessingType()
{
return $this->processingType;
}
@@ -160,7 +160,7 @@ public function getProcessingType(): ?int
/**
* @return int|null
*/
- public function getQuantity(): ?int
+ public function getQuantity()
{
return $this->quantity;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestQr.php b/src/Domain/Payments/ValueObject/Payment/RequestQr.php
index d549dcc..dae4c90 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestQr.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestQr.php
@@ -48,7 +48,7 @@ public function getGenerate(): bool
/**
* @return int|null
*/
- public function getSize(): ?int
+ public function getSize()
{
return $this->size;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestShippingAddress.php b/src/Domain/Payments/ValueObject/Payment/RequestShippingAddress.php
index 0d2b05f..a78a23a 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestShippingAddress.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestShippingAddress.php
@@ -98,7 +98,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getCity(): ?string
+ public function getCity()
{
return $this->city;
}
@@ -106,7 +106,7 @@ public function getCity(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -114,7 +114,7 @@ public function getCountryCode(): ?string
/**
* @return Customer|null
*/
- public function getCustomer(): ?Customer
+ public function getCustomer()
{
return $this->customer;
}
@@ -122,7 +122,7 @@ public function getCustomer(): ?Customer
/**
* @return string|null
*/
- public function getHouseNumber(): ?string
+ public function getHouseNumber()
{
return $this->houseNumber;
}
@@ -130,7 +130,7 @@ public function getHouseNumber(): ?string
/**
* @return string|null
*/
- public function getHouseNumberSuffix(): ?string
+ public function getHouseNumberSuffix()
{
return $this->houseNumberSuffix;
}
@@ -138,7 +138,7 @@ public function getHouseNumberSuffix(): ?string
/**
* @return string|null
*/
- public function getStateCode(): ?string
+ public function getStateCode()
{
return $this->stateCode;
}
@@ -146,7 +146,7 @@ public function getStateCode(): ?string
/**
* @return string|null
*/
- public function getStreet(): ?string
+ public function getStreet()
{
return $this->street;
}
@@ -154,7 +154,7 @@ public function getStreet(): ?string
/**
* @return string|null
*/
- public function getStreetInfo(): ?string
+ public function getStreetInfo()
{
return $this->streetInfo;
}
@@ -162,7 +162,7 @@ public function getStreetInfo(): ?string
/**
* @return string|null
*/
- public function getZip(): ?string
+ public function getZip()
{
return $this->zip;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestThreeDSecure.php b/src/Domain/Payments/ValueObject/Payment/RequestThreeDSecure.php
index 4942ccb..f7b72bc 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestThreeDSecure.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestThreeDSecure.php
@@ -56,7 +56,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getAvv(): ?string
+ public function getAvv()
{
return $this->avv;
}
@@ -64,7 +64,7 @@ public function getAvv(): ?string
/**
* @return bool|null
*/
- public function getCheckEnrollment(): ?bool
+ public function getCheckEnrollment()
{
return $this->checkEnrollment;
}
@@ -72,7 +72,7 @@ public function getCheckEnrollment(): ?bool
/**
* @return int|null
*/
- public function getEci(): ?int
+ public function getEci()
{
return $this->eci;
}
@@ -80,7 +80,7 @@ public function getEci(): ?int
/**
* @return string|null
*/
- public function getXid(): ?string
+ public function getXid()
{
return $this->xid;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestTransaction.php b/src/Domain/Payments/ValueObject/Payment/RequestTransaction.php
index f090c09..df4c651 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestTransaction.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestTransaction.php
@@ -184,7 +184,7 @@ public function getCurrencyCode(): string
/**
* @return string|null
*/
- public function getReturnUrl(): ?string
+ public function getReturnUrl()
{
return $this->returnUrl;
}
@@ -192,7 +192,7 @@ public function getReturnUrl(): ?string
/**
* @return bool|null
*/
- public function getTokenize(): ?bool
+ public function getTokenize()
{
return $this->tokenize;
}
@@ -200,7 +200,7 @@ public function getTokenize(): ?bool
/**
* @return string|null
*/
- public function getToken(): ?string
+ public function getToken()
{
return $this->token;
}
@@ -208,7 +208,7 @@ public function getToken(): ?string
/**
* @return int|null
*/
- public function getStoreId(): ?int
+ public function getStoreId()
{
return $this->storeId;
}
@@ -216,7 +216,7 @@ public function getStoreId(): ?int
/**
* @return string|null
*/
- public function getSource(): ?string
+ public function getSource()
{
return $this->source;
}
@@ -224,7 +224,7 @@ public function getSource(): ?string
/**
* @return int|null
*/
- public function getPayTimeout(): ?int
+ public function getPayTimeout()
{
return $this->payTimeout;
}
@@ -232,7 +232,7 @@ public function getPayTimeout(): ?int
/**
* @return string|null
*/
- public function getPurchaseId(): ?string
+ public function getPurchaseId()
{
return $this->purchaseId;
}
@@ -240,7 +240,7 @@ public function getPurchaseId(): ?string
/**
* @return int|null
*/
- public function getBrandId(): ?int
+ public function getBrandId()
{
return $this->brandId;
}
@@ -248,7 +248,7 @@ public function getBrandId(): ?int
/**
* @return string|null
*/
- public function getNotifyUrl(): ?string
+ public function getNotifyUrl()
{
return $this->notifyUrl;
}
@@ -256,7 +256,7 @@ public function getNotifyUrl(): ?string
/**
* @return string|null
*/
- public function getLanguageCode(): ?string
+ public function getLanguageCode()
{
return $this->languageCode;
}
@@ -264,7 +264,7 @@ public function getLanguageCode(): ?string
/**
* @return string|null
*/
- public function getInvoiceId(): ?string
+ public function getInvoiceId()
{
return $this->invoiceId;
}
@@ -272,7 +272,7 @@ public function getInvoiceId(): ?string
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
@@ -280,7 +280,7 @@ public function getDescriptor(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -288,7 +288,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getType(): ?string
+ public function getType()
{
return $this->type;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/RequestWallet.php b/src/Domain/Payments/ValueObject/Payment/RequestWallet.php
index f5af719..c4dfe52 100644
--- a/src/Domain/Payments/ValueObject/Payment/RequestWallet.php
+++ b/src/Domain/Payments/ValueObject/Payment/RequestWallet.php
@@ -40,7 +40,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getAccountIdentifier(): ?string
+ public function getAccountIdentifier()
{
return $this->accountIdentifier;
}
@@ -48,7 +48,7 @@ public function getAccountIdentifier(): ?string
/**
* @return string|null
*/
- public function getAccountKey(): ?string
+ public function getAccountKey()
{
return $this->accountKey;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/Response.php b/src/Domain/Payments/ValueObject/Payment/Response.php
index cc89986..fc83098 100644
--- a/src/Domain/Payments/ValueObject/Payment/Response.php
+++ b/src/Domain/Payments/ValueObject/Payment/Response.php
@@ -13,22 +13,22 @@
class Response
{
- public const TIMEOUT = 4;
- public const PENDING_MERCHANT = 3;
- public const PENDING = 2;
- public const WAITING = 1;
- public const OK = 0;
- public const INPUT_ERROR = -1;
- public const FAILED = -2;
- public const FAILED_RETRY = -3;
- public const DECLINED = -4;
- public const DECLINED_RETRY = -5;
- public const SECURITY_ERROR = -6;
- public const INTERNAL_SERVER_ERROR = -7;
- public const BUSINESS_RULE_ERROR = -8;
- public const FRAUD = -9;
- public const CUSTOMER_PROCESSING_ERROR = -10;
- public const REFERRALS = -11;
+ const TIMEOUT = 4;
+ const PENDING_MERCHANT = 3;
+ const PENDING = 2;
+ const WAITING = 1;
+ const OK = 0;
+ const INPUT_ERROR = -1;
+ const FAILED = -2;
+ const FAILED_RETRY = -3;
+ const DECLINED = -4;
+ const DECLINED_RETRY = -5;
+ const SECURITY_ERROR = -6;
+ const INTERNAL_SERVER_ERROR = -7;
+ const BUSINESS_RULE_ERROR = -8;
+ const FRAUD = -9;
+ const CUSTOMER_PROCESSING_ERROR = -10;
+ const REFERRALS = -11;
/**
* @var ResponseBody
diff --git a/src/Domain/Payments/ValueObject/Payment/ResponseBank.php b/src/Domain/Payments/ValueObject/Payment/ResponseBank.php
index b7c3fe6..9056709 100644
--- a/src/Domain/Payments/ValueObject/Payment/ResponseBank.php
+++ b/src/Domain/Payments/ValueObject/Payment/ResponseBank.php
@@ -72,7 +72,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getAccountHolderName(): ?string
+ public function getAccountHolderName()
{
return $this->accountHolderName;
}
@@ -80,7 +80,7 @@ public function getAccountHolderName(): ?string
/**
* @return string|null
*/
- public function getAccountNumber(): ?string
+ public function getAccountNumber()
{
return $this->accountNumber;
}
@@ -88,7 +88,7 @@ public function getAccountNumber(): ?string
/**
* @return string|null
*/
- public function getBic(): ?string
+ public function getBic()
{
return $this->bic;
}
@@ -96,7 +96,7 @@ public function getBic(): ?string
/**
* @return string|null
*/
- public function getCountryCode(): ?string
+ public function getCountryCode()
{
return $this->countryCode;
}
@@ -104,7 +104,7 @@ public function getCountryCode(): ?string
/**
* @return string|null
*/
- public function getIban(): ?string
+ public function getIban()
{
return $this->iban;
}
@@ -112,7 +112,7 @@ public function getIban(): ?string
/**
* @return string|null
*/
- public function getName(): ?string
+ public function getName()
{
return $this->name;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/ResponseBody.php b/src/Domain/Payments/ValueObject/Payment/ResponseBody.php
index 26a4d26..b64f3c7 100644
--- a/src/Domain/Payments/ValueObject/Payment/ResponseBody.php
+++ b/src/Domain/Payments/ValueObject/Payment/ResponseBody.php
@@ -90,7 +90,7 @@ public function __construct(
/**
* @return ResponseBank|null
*/
- public function getBank(): ?ResponseBank
+ public function getBank()
{
return $this->bank;
}
@@ -98,7 +98,7 @@ public function getBank(): ?ResponseBank
/**
* @return ResponseCard|null
*/
- public function getCard(): ?ResponseCard
+ public function getCard()
{
return $this->card;
}
@@ -106,7 +106,7 @@ public function getCard(): ?ResponseCard
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -114,7 +114,7 @@ public function getError(): ?Error
/**
* @return ResponseQr|null
*/
- public function getQr(): ?ResponseQr
+ public function getQr()
{
return $this->qr;
}
@@ -122,7 +122,7 @@ public function getQr(): ?ResponseQr
/**
* @return ResponseRedirect|null
*/
- public function getRedirect(): ?ResponseRedirect
+ public function getRedirect()
{
return $this->redirect;
}
@@ -130,7 +130,7 @@ public function getRedirect(): ?ResponseRedirect
/**
* @return ResponseThreeDSecure|null
*/
- public function getThreeDSecure(): ?ResponseThreeDSecure
+ public function getThreeDSecure()
{
return $this->threeDSecure;
}
@@ -138,7 +138,7 @@ public function getThreeDSecure(): ?ResponseThreeDSecure
/**
* @return ResponseToken|null
*/
- public function getToken(): ?ResponseToken
+ public function getToken()
{
return $this->token;
}
@@ -146,7 +146,7 @@ public function getToken(): ?ResponseToken
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/ResponseCard.php b/src/Domain/Payments/ValueObject/Payment/ResponseCard.php
index 9bbb11c..f144856 100644
--- a/src/Domain/Payments/ValueObject/Payment/ResponseCard.php
+++ b/src/Domain/Payments/ValueObject/Payment/ResponseCard.php
@@ -112,7 +112,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getApprovalCode(): ?string
+ public function getApprovalCode()
{
return $this->approvalCode;
}
@@ -120,7 +120,7 @@ public function getApprovalCode(): ?string
/**
* @return string|null
*/
- public function getAvsAuthorizationEntity(): ?string
+ public function getAvsAuthorizationEntity()
{
return $this->avsAuthorizationEntity;
}
@@ -128,7 +128,7 @@ public function getAvsAuthorizationEntity(): ?string
/**
* @return string|null
*/
- public function getAvsResult(): ?string
+ public function getAvsResult()
{
return $this->avsResult;
}
@@ -136,7 +136,7 @@ public function getAvsResult(): ?string
/**
* @return string|null
*/
- public function getCvvResult(): ?string
+ public function getCvvResult()
{
return $this->cvvResult;
}
@@ -144,7 +144,7 @@ public function getCvvResult(): ?string
/**
* @return string|null
*/
- public function getExpiryMonth(): ?string
+ public function getExpiryMonth()
{
return $this->expiryMonth;
}
@@ -152,7 +152,7 @@ public function getExpiryMonth(): ?string
/**
* @return string|null
*/
- public function getExpiryYear(): ?string
+ public function getExpiryYear()
{
return $this->expiryYear;
}
@@ -160,7 +160,7 @@ public function getExpiryYear(): ?string
/**
* @return string|null
*/
- public function getFirstSixDigits(): ?string
+ public function getFirstSixDigits()
{
return $this->firstSixDigits;
}
@@ -168,7 +168,7 @@ public function getFirstSixDigits(): ?string
/**
* @return string|null
*/
- public function getHolderName(): ?string
+ public function getHolderName()
{
return $this->holderName;
}
@@ -176,7 +176,7 @@ public function getHolderName(): ?string
/**
* @return string|null
*/
- public function getLastFourDigits(): ?string
+ public function getLastFourDigits()
{
return $this->lastFourDigits;
}
@@ -184,7 +184,7 @@ public function getLastFourDigits(): ?string
/**
* @return string|null
*/
- public function getRecurringAdvice(): ?string
+ public function getRecurringAdvice()
{
return $this->recurringAdvice;
}
@@ -192,7 +192,7 @@ public function getRecurringAdvice(): ?string
/**
* @return string|null
*/
- public function getThreeDResult(): ?string
+ public function getThreeDResult()
{
return $this->threeDResult;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/ResponseHeader.php b/src/Domain/Payments/ValueObject/Payment/ResponseHeader.php
index fd91318..43b41f5 100644
--- a/src/Domain/Payments/ValueObject/Payment/ResponseHeader.php
+++ b/src/Domain/Payments/ValueObject/Payment/ResponseHeader.php
@@ -48,7 +48,7 @@ public function getRequestTimestamp(): \Payvision\SDK\DataType\DateTime
/**
* @return string|null
*/
- public function getRequestCode(): ?string
+ public function getRequestCode()
{
return $this->requestCode;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/ResponseRedirect.php b/src/Domain/Payments/ValueObject/Payment/ResponseRedirect.php
index 6a9d1c2..e47e21a 100644
--- a/src/Domain/Payments/ValueObject/Payment/ResponseRedirect.php
+++ b/src/Domain/Payments/ValueObject/Payment/ResponseRedirect.php
@@ -48,7 +48,7 @@ public function __construct(
/**
* @return array|null
*/
- public function getFields(): ?array
+ public function getFields()
{
return $this->fields;
}
@@ -56,7 +56,7 @@ public function getFields(): ?array
/**
* @return string|null
*/
- public function getMethod(): ?string
+ public function getMethod()
{
return $this->method;
}
@@ -64,7 +64,7 @@ public function getMethod(): ?string
/**
* @return string|null
*/
- public function getUrl(): ?string
+ public function getUrl()
{
return $this->url;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/ResponseThreeDSecure.php b/src/Domain/Payments/ValueObject/Payment/ResponseThreeDSecure.php
index a1d12c7..a41c8aa 100644
--- a/src/Domain/Payments/ValueObject/Payment/ResponseThreeDSecure.php
+++ b/src/Domain/Payments/ValueObject/Payment/ResponseThreeDSecure.php
@@ -40,7 +40,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getEnrollmentResult(): ?string
+ public function getEnrollmentResult()
{
return $this->enrollmentResult;
}
@@ -48,7 +48,7 @@ public function getEnrollmentResult(): ?string
/**
* @return string|null
*/
- public function getValidationResult(): ?string
+ public function getValidationResult()
{
return $this->validationResult;
}
diff --git a/src/Domain/Payments/ValueObject/Payment/ResponseTransaction.php b/src/Domain/Payments/ValueObject/Payment/ResponseTransaction.php
index 7a9089f..ec2f022 100644
--- a/src/Domain/Payments/ValueObject/Payment/ResponseTransaction.php
+++ b/src/Domain/Payments/ValueObject/Payment/ResponseTransaction.php
@@ -120,7 +120,7 @@ public function getTrackingCode(): string
/**
* @return int|null
*/
- public function getBrandId(): ?int
+ public function getBrandId()
{
return $this->brandId;
}
@@ -128,7 +128,7 @@ public function getBrandId(): ?int
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
diff --git a/src/Domain/Payments/ValueObject/Refund/RequestBody.php b/src/Domain/Payments/ValueObject/Refund/RequestBody.php
index 2e0cad6..9b47c40 100644
--- a/src/Domain/Payments/ValueObject/Refund/RequestBody.php
+++ b/src/Domain/Payments/ValueObject/Refund/RequestBody.php
@@ -50,7 +50,7 @@ public function getTransaction(): RequestTransaction
/**
* @return Order|null
*/
- public function getOrder(): ?Order
+ public function getOrder()
{
return $this->order;
}
diff --git a/src/Domain/Payments/ValueObject/Refund/Response.php b/src/Domain/Payments/ValueObject/Refund/Response.php
index c7335cb..b3cd268 100644
--- a/src/Domain/Payments/ValueObject/Refund/Response.php
+++ b/src/Domain/Payments/ValueObject/Refund/Response.php
@@ -13,22 +13,22 @@
class Response
{
- public const TIMEOUT = 4;
- public const PENDING_MERCHANT = 3;
- public const PENDING = 2;
- public const WAITING = 1;
- public const OK = 0;
- public const INPUT_ERROR = -1;
- public const FAILED = -2;
- public const FAILED_RETRY = -3;
- public const DECLINED = -4;
- public const DECLINED_RETRY = -5;
- public const SECURITY_ERROR = -6;
- public const INTERNAL_SERVER_ERROR = -7;
- public const BUSINESS_RULE_ERROR = -8;
- public const FRAUD = -9;
- public const CUSTOMER_PROCESSING_ERROR = -10;
- public const REFERRALS = -11;
+ const TIMEOUT = 4;
+ const PENDING_MERCHANT = 3;
+ const PENDING = 2;
+ const WAITING = 1;
+ const OK = 0;
+ const INPUT_ERROR = -1;
+ const FAILED = -2;
+ const FAILED_RETRY = -3;
+ const DECLINED = -4;
+ const DECLINED_RETRY = -5;
+ const SECURITY_ERROR = -6;
+ const INTERNAL_SERVER_ERROR = -7;
+ const BUSINESS_RULE_ERROR = -8;
+ const FRAUD = -9;
+ const CUSTOMER_PROCESSING_ERROR = -10;
+ const REFERRALS = -11;
/**
* @var ResponseBody
diff --git a/src/Domain/Payments/ValueObject/Refund/ResponseBody.php b/src/Domain/Payments/ValueObject/Refund/ResponseBody.php
index 91e0721..2fdbe91 100644
--- a/src/Domain/Payments/ValueObject/Refund/ResponseBody.php
+++ b/src/Domain/Payments/ValueObject/Refund/ResponseBody.php
@@ -50,7 +50,7 @@ public function __construct(
/**
* @return ResponseCard|null
*/
- public function getCard(): ?ResponseCard
+ public function getCard()
{
return $this->card;
}
@@ -58,7 +58,7 @@ public function getCard(): ?ResponseCard
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -66,7 +66,7 @@ public function getError(): ?Error
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Payments/ValueObject/Refund/ResponseCard.php b/src/Domain/Payments/ValueObject/Refund/ResponseCard.php
index 9aac162..f374d18 100644
--- a/src/Domain/Payments/ValueObject/Refund/ResponseCard.php
+++ b/src/Domain/Payments/ValueObject/Refund/ResponseCard.php
@@ -72,7 +72,7 @@ public function __construct(
/**
* @return string|null
*/
- public function getApprovalCode(): ?string
+ public function getApprovalCode()
{
return $this->approvalCode;
}
@@ -80,7 +80,7 @@ public function getApprovalCode(): ?string
/**
* @return string|null
*/
- public function getExpiryMonth(): ?string
+ public function getExpiryMonth()
{
return $this->expiryMonth;
}
@@ -88,7 +88,7 @@ public function getExpiryMonth(): ?string
/**
* @return string|null
*/
- public function getExpiryYear(): ?string
+ public function getExpiryYear()
{
return $this->expiryYear;
}
@@ -96,7 +96,7 @@ public function getExpiryYear(): ?string
/**
* @return string|null
*/
- public function getFirstSixDigits(): ?string
+ public function getFirstSixDigits()
{
return $this->firstSixDigits;
}
@@ -104,7 +104,7 @@ public function getFirstSixDigits(): ?string
/**
* @return string|null
*/
- public function getHolderName(): ?string
+ public function getHolderName()
{
return $this->holderName;
}
@@ -112,7 +112,7 @@ public function getHolderName(): ?string
/**
* @return string|null
*/
- public function getLastFourDigits(): ?string
+ public function getLastFourDigits()
{
return $this->lastFourDigits;
}
diff --git a/src/Domain/Payments/ValueObject/Refund/ResponseHeader.php b/src/Domain/Payments/ValueObject/Refund/ResponseHeader.php
index ec19b87..46e33fa 100644
--- a/src/Domain/Payments/ValueObject/Refund/ResponseHeader.php
+++ b/src/Domain/Payments/ValueObject/Refund/ResponseHeader.php
@@ -48,7 +48,7 @@ public function getRequestTimestamp(): \Payvision\SDK\DataType\DateTime
/**
* @return string|null
*/
- public function getRequestCode(): ?string
+ public function getRequestCode()
{
return $this->requestCode;
}
diff --git a/src/Domain/Payments/ValueObject/Refund/ResponseTransaction.php b/src/Domain/Payments/ValueObject/Refund/ResponseTransaction.php
index bb68e1e..1f46d62 100644
--- a/src/Domain/Payments/ValueObject/Refund/ResponseTransaction.php
+++ b/src/Domain/Payments/ValueObject/Refund/ResponseTransaction.php
@@ -136,7 +136,7 @@ public function getTrackingCode(): string
/**
* @return int|null
*/
- public function getBrandId(): ?int
+ public function getBrandId()
{
return $this->brandId;
}
@@ -144,7 +144,7 @@ public function getBrandId(): ?int
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
diff --git a/src/Domain/Payments/ValueObject/Status/ResponseBody.php b/src/Domain/Payments/ValueObject/Status/ResponseBody.php
index b722ee2..cbe8686 100644
--- a/src/Domain/Payments/ValueObject/Status/ResponseBody.php
+++ b/src/Domain/Payments/ValueObject/Status/ResponseBody.php
@@ -87,7 +87,7 @@ public function __construct(
/**
* @return ResponseBank|null
*/
- public function getBank(): ?ResponseBank
+ public function getBank()
{
return $this->bank;
}
@@ -95,7 +95,7 @@ public function getBank(): ?ResponseBank
/**
* @return ResponseCard|null
*/
- public function getCard(): ?ResponseCard
+ public function getCard()
{
return $this->card;
}
@@ -103,7 +103,7 @@ public function getCard(): ?ResponseCard
/**
* @return Error|null
*/
- public function getError(): ?Error
+ public function getError()
{
return $this->error;
}
@@ -111,7 +111,7 @@ public function getError(): ?Error
/**
* @return ResponseRedirect|null
*/
- public function getRedirect(): ?ResponseRedirect
+ public function getRedirect()
{
return $this->redirect;
}
@@ -119,7 +119,7 @@ public function getRedirect(): ?ResponseRedirect
/**
* @return ResponseThreeDSecure|null
*/
- public function getThreeDSecure(): ?ResponseThreeDSecure
+ public function getThreeDSecure()
{
return $this->threeDSecure;
}
@@ -127,7 +127,7 @@ public function getThreeDSecure(): ?ResponseThreeDSecure
/**
* @return ResponseToken|null
*/
- public function getToken(): ?ResponseToken
+ public function getToken()
{
return $this->token;
}
@@ -135,7 +135,7 @@ public function getToken(): ?ResponseToken
/**
* @return ResponseTransaction|null
*/
- public function getTransaction(): ?ResponseTransaction
+ public function getTransaction()
{
return $this->transaction;
}
diff --git a/src/Domain/Payments/ValueObject/Status/ResponseHeader.php b/src/Domain/Payments/ValueObject/Status/ResponseHeader.php
index ba37b07..4d45f3b 100644
--- a/src/Domain/Payments/ValueObject/Status/ResponseHeader.php
+++ b/src/Domain/Payments/ValueObject/Status/ResponseHeader.php
@@ -48,7 +48,7 @@ public function getRequestTimestamp(): \Payvision\SDK\DataType\DateTime
/**
* @return string|null
*/
- public function getRequestCode(): ?string
+ public function getRequestCode()
{
return $this->requestCode;
}
diff --git a/src/Domain/Payments/ValueObject/Status/ResponseTransaction.php b/src/Domain/Payments/ValueObject/Status/ResponseTransaction.php
index b864c7f..96ac393 100644
--- a/src/Domain/Payments/ValueObject/Status/ResponseTransaction.php
+++ b/src/Domain/Payments/ValueObject/Status/ResponseTransaction.php
@@ -128,7 +128,7 @@ public function getTrackingCode(): string
/**
* @return int|null
*/
- public function getBrandId(): ?int
+ public function getBrandId()
{
return $this->brandId;
}
@@ -136,7 +136,7 @@ public function getBrandId(): ?int
/**
* @return string|null
*/
- public function getDescriptor(): ?string
+ public function getDescriptor()
{
return $this->descriptor;
}
@@ -144,7 +144,7 @@ public function getDescriptor(): ?string
/**
* @return string|null
*/
- public function getParentid(): ?string
+ public function getParentid()
{
return $this->parentid;
}
diff --git a/src/Domain/Service/Builder/Basic.php b/src/Domain/Service/Builder/Basic.php
index 18a3570..b90e868 100644
--- a/src/Domain/Service/Builder/Basic.php
+++ b/src/Domain/Service/Builder/Basic.php
@@ -35,7 +35,7 @@ final protected function buildAndReset()
return $object;
}
- protected function reset(): void
+ protected function reset()
{
$this->properties = [];
}
@@ -68,7 +68,7 @@ protected function get(string $key)
* @param array $properties
* @throws BuilderException
*/
- protected function validateRequiredProperties(array $properties): void
+ protected function validateRequiredProperties(array $properties)
{
foreach ($properties as $property) {
if ($this->get($property) === null) {
diff --git a/src/Domain/Service/Helper/AfterpayErrorMessageHelper.php b/src/Domain/Service/Helper/AfterpayErrorMessageHelper.php
index 388a448..2c535b8 100644
--- a/src/Domain/Service/Helper/AfterpayErrorMessageHelper.php
+++ b/src/Domain/Service/Helper/AfterpayErrorMessageHelper.php
@@ -14,62 +14,62 @@
class AfterpayErrorMessageHelper
{
// Error code: 300400800
- public const AGE_IS_UNDER_18 = 'age.under.18';
- public const INCORRECT_ADDRESS = 'incorrect.address';
- public const MAXIMUM_OPEN_ORDERS_REACHED = 'maximum.open.orders.reached';
- public const NO_RESPONSE_FROM_AQUIRER = 'no.response.from.aquirer';
- public const ORDER_IS_NOT_ACCEPTED_BY_AFTERPAY = 'order.is.not.accepted';
- public const TRANSACTION_DECLINED_BY_AUTHORIZATION_SYSTEM = 'transaction.declined';
+ const AGE_IS_UNDER_18 = 'age.under.18';
+ const INCORRECT_ADDRESS = 'incorrect.address';
+ const MAXIMUM_OPEN_ORDERS_REACHED = 'maximum.open.orders.reached';
+ const NO_RESPONSE_FROM_AQUIRER = 'no.response.from.aquirer';
+ const ORDER_IS_NOT_ACCEPTED_BY_AFTERPAY = 'order.is.not.accepted';
+ const TRANSACTION_DECLINED_BY_AUTHORIZATION_SYSTEM = 'transaction.declined';
// Error code: 300102000
- public const INVALID_EMAIL_ADDRESS = 'invalid.email.address';
+ const INVALID_EMAIL_ADDRESS = 'invalid.email.address';
// Error code: 100400030
- public const BILLTO_CITY_MISSING = 'billto.city.missing';
- public const BILLTO_HOUSENUMBER_INVALID = 'billto.housenumber.invalid';
- public const BILLTO_HOUSENUMBER_MISSING = 'billto.housenumber.missing';
- public const BILLTO_HOUSENUMBERADDITION_INVALID = 'billto.housenumberaddition.invalid';
- public const BILLTO_HOUSENUMBERADDITION_MISSING = 'billto.housenumberaddition.missing';
- public const BILLTO_ISOCOUNTRYCODE_INVALID = 'billto.isocountrycode.invalid';
- public const BILLTO_ISOCOUNTRYCODE_MISSING = 'billto.isocountrycode.missing';
- public const BILLTO_ISOLANGUAGE_MISSING = 'billto.isolanguage.missing';
- public const BILLTO_PERSON_DATEOFBIRTH_INVALID = 'billto.person.dateofbirth.invalid';
- public const BILLTO_PERSON_EMAILADDRESS_INVALID = 'billto.person.emailaddress.invalid';
- public const BILLTO_PERSON_EMAILADDRESS_MISSING = 'billto.person.emailaddress.missing';
- public const BILLTO_PERSON_GENDER_INVALID = 'billto.person.gender.invalid';
- public const BILLTO_PERSON_GENDER_MISSING = 'billto.person.gender.missing';
- public const BILLTO_PERSON_INITIALS_INVALID = 'billto.person.initials.invalid';
- public const BILLTO_PERSON_INITIALS_MISSING = 'billto.person.initials.missing';
- public const BILLTO_PERSON_LASTNAME_INVALID = 'billto.person.lastname.invalid';
- public const BILLTO_PERSON_LASTNAME_MISSING = 'billto.person.lastname.missing';
- public const BILLTO_PERSON_PREFIX_INVALID = 'billto.person.prefix.invalid';
- public const BILLTO_PERSON_PREFIX_MISSING = 'billto.person.prefix.missing';
- public const BILLTO_PHONENUMBER1_INVALID = 'billto.phonenumber1.invalid';
- public const BILLTO_PHONENUMBER1_MISSING = 'billto.phonenumber1.missing';
- public const BILLTO_PHONENUMBER2_INVALID = 'billto.phonenumber2.invalid';
- public const BILLTO_PHONENUMBER2_MISSING = 'billto.phonenumber2.missing';
- public const BILLTO_POSTALCODE_INVALID = 'billto.postalcode.invalid';
- public const BILLTO_POSTALCODE_MISSING = 'billto.postalcode.missing';
- public const BILLTO_STREETNAME_MISSING = 'billto.streetname.missing';
- public const SHIPTO_HOUSENUMBER_INVALID = 'shipto.housenumber.invalid';
- public const SHIPTO_HOUSENUMBER_MISSING = 'shipto.housenumber.missing';
- public const SHIPTO_HOUSENUMBERADDITION_INVALID = 'shipto.housenumberaddition.invalid';
- public const SHIPTO_HOUSENUMBERADDITION_MISSING = 'shipto.housenumberaddition.missing';
- public const SHIPTO_ISOCOUNTRYCODE_INVALID = 'shipto.isocountrycode.invalid';
- public const SHIPTO_ISOCOUNTRYCODE_MISSING = 'shipto.isocountrycode.missing';
- public const SHIPTO_ISOLANGUAGE_MISSING = 'shipto.isolanguage.missing';
- public const SHIPTO_PERSON_GENDER_INVALID = 'shipto.person.gender.invalid';
- public const SHIPTO_PERSON_GENDER_MISSING = 'shipto.person.gender.missing';
- public const SHIPTO_PERSON_INITIALS_INVALID = 'shipto.person.initials.invalid';
- public const SHIPTO_PERSON_INITIALS_MISSING = 'shipto.person.initials.missing';
- public const SHIPTO_PERSON_LASTNAME_MISSING = 'shipto.person.lastname.missing';
- public const SHIPTO_PERSON_PREFIX_INVALID = 'shipto.person.prefix.invalid';
- public const SHIPTO_PERSON_PREFIX_MISSING = 'shipto.person.prefix.missing';
- public const SHIPTO_POSTALCODE_INVALID = 'shipto.postalcode.invalid';
- public const SHIPTO_POSTALCODE_MISSING = 'shipto.postalcode.missing';
- public const SHIPTO_STREETNAME_MISSING = 'shipto.streetname.missing';
+ const BILLTO_CITY_MISSING = 'billto.city.missing';
+ const BILLTO_HOUSENUMBER_INVALID = 'billto.housenumber.invalid';
+ const BILLTO_HOUSENUMBER_MISSING = 'billto.housenumber.missing';
+ const BILLTO_HOUSENUMBERADDITION_INVALID = 'billto.housenumberaddition.invalid';
+ const BILLTO_HOUSENUMBERADDITION_MISSING = 'billto.housenumberaddition.missing';
+ const BILLTO_ISOCOUNTRYCODE_INVALID = 'billto.isocountrycode.invalid';
+ const BILLTO_ISOCOUNTRYCODE_MISSING = 'billto.isocountrycode.missing';
+ const BILLTO_ISOLANGUAGE_MISSING = 'billto.isolanguage.missing';
+ const BILLTO_PERSON_DATEOFBIRTH_INVALID = 'billto.person.dateofbirth.invalid';
+ const BILLTO_PERSON_EMAILADDRESS_INVALID = 'billto.person.emailaddress.invalid';
+ const BILLTO_PERSON_EMAILADDRESS_MISSING = 'billto.person.emailaddress.missing';
+ const BILLTO_PERSON_GENDER_INVALID = 'billto.person.gender.invalid';
+ const BILLTO_PERSON_GENDER_MISSING = 'billto.person.gender.missing';
+ const BILLTO_PERSON_INITIALS_INVALID = 'billto.person.initials.invalid';
+ const BILLTO_PERSON_INITIALS_MISSING = 'billto.person.initials.missing';
+ const BILLTO_PERSON_LASTNAME_INVALID = 'billto.person.lastname.invalid';
+ const BILLTO_PERSON_LASTNAME_MISSING = 'billto.person.lastname.missing';
+ const BILLTO_PERSON_PREFIX_INVALID = 'billto.person.prefix.invalid';
+ const BILLTO_PERSON_PREFIX_MISSING = 'billto.person.prefix.missing';
+ const BILLTO_PHONENUMBER1_INVALID = 'billto.phonenumber1.invalid';
+ const BILLTO_PHONENUMBER1_MISSING = 'billto.phonenumber1.missing';
+ const BILLTO_PHONENUMBER2_INVALID = 'billto.phonenumber2.invalid';
+ const BILLTO_PHONENUMBER2_MISSING = 'billto.phonenumber2.missing';
+ const BILLTO_POSTALCODE_INVALID = 'billto.postalcode.invalid';
+ const BILLTO_POSTALCODE_MISSING = 'billto.postalcode.missing';
+ const BILLTO_STREETNAME_MISSING = 'billto.streetname.missing';
+ const SHIPTO_HOUSENUMBER_INVALID = 'shipto.housenumber.invalid';
+ const SHIPTO_HOUSENUMBER_MISSING = 'shipto.housenumber.missing';
+ const SHIPTO_HOUSENUMBERADDITION_INVALID = 'shipto.housenumberaddition.invalid';
+ const SHIPTO_HOUSENUMBERADDITION_MISSING = 'shipto.housenumberaddition.missing';
+ const SHIPTO_ISOCOUNTRYCODE_INVALID = 'shipto.isocountrycode.invalid';
+ const SHIPTO_ISOCOUNTRYCODE_MISSING = 'shipto.isocountrycode.missing';
+ const SHIPTO_ISOLANGUAGE_MISSING = 'shipto.isolanguage.missing';
+ const SHIPTO_PERSON_GENDER_INVALID = 'shipto.person.gender.invalid';
+ const SHIPTO_PERSON_GENDER_MISSING = 'shipto.person.gender.missing';
+ const SHIPTO_PERSON_INITIALS_INVALID = 'shipto.person.initials.invalid';
+ const SHIPTO_PERSON_INITIALS_MISSING = 'shipto.person.initials.missing';
+ const SHIPTO_PERSON_LASTNAME_MISSING = 'shipto.person.lastname.missing';
+ const SHIPTO_PERSON_PREFIX_INVALID = 'shipto.person.prefix.invalid';
+ const SHIPTO_PERSON_PREFIX_MISSING = 'shipto.person.prefix.missing';
+ const SHIPTO_POSTALCODE_INVALID = 'shipto.postalcode.invalid';
+ const SHIPTO_POSTALCODE_MISSING = 'shipto.postalcode.missing';
+ const SHIPTO_STREETNAME_MISSING = 'shipto.streetname.missing';
- protected const FIXED_STRING_MESSAGES = [
+ const FIXED_STRING_MESSAGES = [
// Error code: 300400800.
'age is under 18' => self::AGE_IS_UNDER_18,
'incorrect address' => self::INCORRECT_ADDRESS,
diff --git a/src/Exception/ApiException.php b/src/Exception/ApiException.php
index 064e388..e85af95 100644
--- a/src/Exception/ApiException.php
+++ b/src/Exception/ApiException.php
@@ -13,9 +13,9 @@
class ApiException extends Exception
{
- public const RESPONSE_CLASS_NOT_FOUND = 1100;
- public const CANNOT_BUILD_RESPONSE = 1101;
- public const INVALID_REQUEST_METHOD = 1102;
- public const RESPONSE_CLASS_NOT_SET = 1103;
- public const INVALID_RESPONSE = 1104;
+ const RESPONSE_CLASS_NOT_FOUND = 1100;
+ const CANNOT_BUILD_RESPONSE = 1101;
+ const INVALID_REQUEST_METHOD = 1102;
+ const RESPONSE_CLASS_NOT_SET = 1103;
+ const INVALID_RESPONSE = 1104;
}
diff --git a/src/Exception/BuilderException.php b/src/Exception/BuilderException.php
index 9d92a74..28d972c 100644
--- a/src/Exception/BuilderException.php
+++ b/src/Exception/BuilderException.php
@@ -13,9 +13,9 @@
class BuilderException extends Exception
{
- public const MISSING_PROPERTY = 2100;
- public const MISSING_RESPONSE_PROPERTY = 2101;
- public const MISSING_PARAM_IN_DOCBLOCK = 2102;
- public const ARRAY_NOT_DEFINED_IN_DOCBLOCK = 2103;
- public const CLASS_DOES_NOT_EXIST = 2104;
+ const MISSING_PROPERTY = 2100;
+ const MISSING_RESPONSE_PROPERTY = 2101;
+ const MISSING_PARAM_IN_DOCBLOCK = 2102;
+ const ARRAY_NOT_DEFINED_IN_DOCBLOCK = 2103;
+ const CLASS_DOES_NOT_EXIST = 2104;
}
diff --git a/src/Exception/DataTypeException.php b/src/Exception/DataTypeException.php
index b198d2a..2be1704 100644
--- a/src/Exception/DataTypeException.php
+++ b/src/Exception/DataTypeException.php
@@ -13,11 +13,11 @@
class DataTypeException extends Exception
{
- public const UNKNOWN_COUNTRY = 3100;
- public const UNKNOWN_CURRENCY = 3101;
- public const UNKNOWN_LANGUAGE = 3102;
- public const AMOUNT_CANNOT_BE_NEGATIVE = 3103;
- public const STRING_TOO_LONG = 3104;
- public const VALUE_NOT_ALLOWED = 3105;
- public const INVALID_URL = 3106;
+ const UNKNOWN_COUNTRY = 3100;
+ const UNKNOWN_CURRENCY = 3101;
+ const UNKNOWN_LANGUAGE = 3102;
+ const AMOUNT_CANNOT_BE_NEGATIVE = 3103;
+ const STRING_TOO_LONG = 3104;
+ const VALUE_NOT_ALLOWED = 3105;
+ const INVALID_URL = 3106;
}
diff --git a/src/Exception/RepositoryException.php b/src/Exception/RepositoryException.php
index 5bf9ae3..ddf81cf 100644
--- a/src/Exception/RepositoryException.php
+++ b/src/Exception/RepositoryException.php
@@ -13,5 +13,5 @@
class RepositoryException extends Exception
{
- public const FILE_NOT_FOUND = 4100;
+ const FILE_NOT_FOUND = 4100;
}
diff --git a/src/Exception/WebhookException.php b/src/Exception/WebhookException.php
index 20e0a8d..97ef16c 100644
--- a/src/Exception/WebhookException.php
+++ b/src/Exception/WebhookException.php
@@ -13,9 +13,9 @@
class WebhookException extends Exception
{
- public const UNKNOWN_PAYLOAD = 5100;
- public const UNEXPECTED_PAYLOAD = 5101;
- public const JWT_NOT_VALIDATED = 5102;
- public const VALIDATION_FAILED = 5103;
- public const MISSING_CHECKSUM = 5104;
+ const UNKNOWN_PAYLOAD = 5100;
+ const UNEXPECTED_PAYLOAD = 5101;
+ const JWT_NOT_VALIDATED = 5102;
+ const VALIDATION_FAILED = 5103;
+ const MISSING_CHECKSUM = 5104;
}
diff --git a/src/Infrastructure/ApiConnection.php b/src/Infrastructure/ApiConnection.php
index e041ce1..9476b10 100644
--- a/src/Infrastructure/ApiConnection.php
+++ b/src/Infrastructure/ApiConnection.php
@@ -171,7 +171,7 @@ private function logDebugData(
array $jsonRequest,
array $jsonResponse,
RequestHeaderCollection $requestHeaderCollection
- ): void {
+ ) {
$debugData = \sprintf(
'%1$s%2$sRequest:%1$s%3$s%1$sResponse:%1$s%4$s%1$s',
\PHP_EOL,
@@ -198,7 +198,7 @@ private function logDebugData(
* @param Request $request
* @throws ApiException
*/
- private function validateResponseClasses(Request $request): void
+ private function validateResponseClasses(Request $request)
{
if ($request->getResponseObjectTypes() === []) {
throw new ApiException(
diff --git a/tests/Test/Api/AbstractPaymentTest.php b/tests/Test/Api/AbstractPaymentTest.php
index 9ea1a8a..29cde80 100644
--- a/tests/Test/Api/AbstractPaymentTest.php
+++ b/tests/Test/Api/AbstractPaymentTest.php
@@ -17,7 +17,7 @@
abstract class AbstractPaymentTest extends AbstractTestCase
{
- public const BRAND_ID = 0;
+ const BRAND_ID = 0;
/**
* @var PaymentRequestBuilder
@@ -29,7 +29,7 @@ abstract class AbstractPaymentTest extends AbstractTestCase
*/
protected $refundRequestBuilder;
- protected function setUp(): void
+ protected function setUp()
{
parent::setUp();
@@ -43,7 +43,7 @@ protected function createFakePaymentRequest(): PaymentRequest
return $this->paymentRequestBuilder->build();
}
- protected function prepareFakePaymentRequest(): void
+ protected function prepareFakePaymentRequest()
{
$this->paymentRequestBuilder->header()
->setBusinessId($this->credentials['businessId']);
@@ -66,7 +66,7 @@ protected function prepareFakePaymentRequest(): void
* @throws ReflectionException
* @throws Exception
*/
- public function testPaymentCreationSuccessful(): void
+ public function testPaymentCreationSuccessful()
{
$requestObject = $this->createFakePaymentRequest();
$request = RequestBuilder::newPayment($requestObject);
@@ -84,7 +84,7 @@ public function testPaymentCreationSuccessful(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testPaymentCreationFailed(): void
+ public function testPaymentCreationFailed()
{
$this->prepareFakePaymentRequest();
$this->paymentRequestBuilder->body()->transaction()
diff --git a/tests/Test/Api/AbstractTestCase.php b/tests/Test/Api/AbstractTestCase.php
index 8a64224..924fee4 100644
--- a/tests/Test/Api/AbstractTestCase.php
+++ b/tests/Test/Api/AbstractTestCase.php
@@ -29,7 +29,7 @@ abstract class AbstractTestCase extends TestCase
*/
protected $debug = false;
- protected function setUp(): void
+ protected function setUp()
{
$envFile = __DIR__ . '/../../../.env.php';
if (!\file_exists($envFile)) {
diff --git a/tests/Test/Api/AfterpayTest.php b/tests/Test/Api/AfterpayTest.php
index 51e2c9d..5ab6068 100644
--- a/tests/Test/Api/AfterpayTest.php
+++ b/tests/Test/Api/AfterpayTest.php
@@ -34,7 +34,7 @@ class AfterpayTest extends AbstractTestCase
*/
private $orderLineBuilder;
- protected function setUp(): void
+ protected function setUp()
{
parent::setUp();
@@ -48,7 +48,7 @@ protected function setUp(): void
* @throws ErrorResponse
* @throws ReflectionException
*/
- public function testMakePaymentRequest(): void
+ public function testMakePaymentRequest()
{
$this->paymentRequestBuilder->setAction('payment');
$this->paymentRequestBuilder->header()->setBusinessId($this->credentials['businessId']);
diff --git a/tests/Test/Api/CheckoutTest.php b/tests/Test/Api/CheckoutTest.php
index bb7da46..ae22aed 100644
--- a/tests/Test/Api/CheckoutTest.php
+++ b/tests/Test/Api/CheckoutTest.php
@@ -53,7 +53,7 @@ public function testCallToCheckoutEndpointReturnsCheckoutResponseObject(): array
* @throws ReflectionException
* @depends testCallToCheckoutEndpointReturnsCheckoutResponseObject
*/
- public function testCheckoutStatusIsPending(array $input): void
+ public function testCheckoutStatusIsPending(array $input)
{
$apiRequest = RequestBuilder::getCheckoutStatus($input['checkoutId'], $this->credentials['businessId']);
/** @var StatusResponse $response */
diff --git a/tests/Test/Api/EPSTest.php b/tests/Test/Api/EPSTest.php
index de050da..709c241 100644
--- a/tests/Test/Api/EPSTest.php
+++ b/tests/Test/Api/EPSTest.php
@@ -11,9 +11,9 @@
class EPSTest extends AbstractPaymentTest
{
- public const BRAND_ID = 3030;
+ const BRAND_ID = 3030;
- protected function prepareFakePaymentRequest(): void
+ protected function prepareFakePaymentRequest()
{
parent::prepareFakePaymentRequest();
diff --git a/tests/Test/Api/GiropayTest.php b/tests/Test/Api/GiropayTest.php
index 99a8a17..072b04a 100644
--- a/tests/Test/Api/GiropayTest.php
+++ b/tests/Test/Api/GiropayTest.php
@@ -11,9 +11,9 @@
class GiropayTest extends AbstractPaymentTest
{
- public const BRAND_ID = 3025;
+ const BRAND_ID = 3025;
- protected function prepareFakePaymentRequest(): void
+ protected function prepareFakePaymentRequest()
{
parent::prepareFakePaymentRequest();
diff --git a/tests/Test/Api/IDealTest.php b/tests/Test/Api/IDealTest.php
index cfffac8..11bb1e3 100644
--- a/tests/Test/Api/IDealTest.php
+++ b/tests/Test/Api/IDealTest.php
@@ -11,9 +11,9 @@
class IDealTest extends AbstractPaymentTest
{
- public const BRAND_ID = 3010;
+ const BRAND_ID = 3010;
- protected function prepareFakePaymentRequest(): void
+ protected function prepareFakePaymentRequest()
{
parent::prepareFakePaymentRequest();
diff --git a/tests/Test/Api/PayPalTest.php b/tests/Test/Api/PayPalTest.php
index 0029961..cf00bf4 100644
--- a/tests/Test/Api/PayPalTest.php
+++ b/tests/Test/Api/PayPalTest.php
@@ -25,7 +25,7 @@ class PayPalTest extends AbstractTestCase
*/
private $paymentRequestBuilder;
- protected function setUp(): void
+ protected function setUp()
{
parent::setUp();
@@ -38,7 +38,7 @@ protected function setUp(): void
* @throws ErrorResponse
* @throws ReflectionException
*/
- public function testMakePaymentRequest(): void
+ public function testMakePaymentRequest()
{
$this->paymentRequestBuilder->setAction('payment');
$this->paymentRequestBuilder->header()->setBusinessId($this->credentials['businessId']);
diff --git a/tests/Test/Api/PaymentLinksTest.php b/tests/Test/Api/PaymentLinksTest.php
index ac713bb..9ce1538 100644
--- a/tests/Test/Api/PaymentLinksTest.php
+++ b/tests/Test/Api/PaymentLinksTest.php
@@ -33,7 +33,7 @@ class PaymentLinksTest extends AbstractTestCase
*/
private $cancelRequestBuilder;
- protected function setUp(): void
+ protected function setUp()
{
parent::setUp();
@@ -82,7 +82,7 @@ public function testMakePaymentLinkRequest(): LinkResponse
* @throws ReflectionException
* @depends testMakePaymentLinkRequest
*/
- public function testGetPaymentLinkStatus(LinkResponse $response): void
+ public function testGetPaymentLinkStatus(LinkResponse $response)
{
$apiRequest = RequestBuilder::getLinkStatus(
$response->getBody()->getLink()->getLinkId(),
@@ -104,7 +104,7 @@ public function testGetPaymentLinkStatus(LinkResponse $response): void
* @throws ReflectionException
* @depends testMakePaymentLinkRequest
*/
- public function testCancelPaymentLink(LinkResponse $response): void
+ public function testCancelPaymentLink(LinkResponse $response)
{
$this->cancelRequestBuilder->header()->setBusinessId($this->credentials['businessId']);
$cancelRequest = $this->cancelRequestBuilder->build();
diff --git a/tests/Test/Api/SofortTest.php b/tests/Test/Api/SofortTest.php
index 756a7ef..a8072ed 100644
--- a/tests/Test/Api/SofortTest.php
+++ b/tests/Test/Api/SofortTest.php
@@ -11,9 +11,9 @@
class SofortTest extends AbstractPaymentTest
{
- public const BRAND_ID = 3020;
+ const BRAND_ID = 3020;
- protected function prepareFakePaymentRequest(): void
+ protected function prepareFakePaymentRequest()
{
parent::prepareFakePaymentRequest();
diff --git a/tests/Test/Unit/Application/Reflection/JsonToObjectTest.php b/tests/Test/Unit/Application/Reflection/JsonToObjectTest.php
index 8e6ee00..4ecb878 100644
--- a/tests/Test/Unit/Application/Reflection/JsonToObjectTest.php
+++ b/tests/Test/Unit/Application/Reflection/JsonToObjectTest.php
@@ -36,7 +36,7 @@ class JsonToObjectTest extends TestCase
* @throws BuilderException
* @throws ReflectionException
*/
- public function testBuildPaymentResponse(): void
+ public function testBuildPaymentResponse()
{
$targetObject = PaymentResponse::class;
$jsonData = [
@@ -106,7 +106,7 @@ public function testBuildPaymentResponse(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testArrayInTargetClass(): void
+ public function testArrayInTargetClass()
{
/** @var ObjectWithArray $result */
$result = JsonToObject::build(
@@ -124,7 +124,7 @@ public function testArrayInTargetClass(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testTypedArrayInTargetClass(): void
+ public function testTypedArrayInTargetClass()
{
/** @var ObjectWithTypedArray $result */
$result = JsonToObject::build(
@@ -142,7 +142,7 @@ public function testTypedArrayInTargetClass(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testArrayWithObjectsInTargetClass(): void
+ public function testArrayWithObjectsInTargetClass()
{
$data = [
0 => ["name" => "Bar"],
@@ -167,7 +167,7 @@ public function testArrayWithObjectsInTargetClass(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testArrayWithObjectsFromDifferentNamespaceInTargetClass(): void
+ public function testArrayWithObjectsFromDifferentNamespaceInTargetClass()
{
$barData = [
0 => ["name" => "Bar 1"],
@@ -192,7 +192,7 @@ public function testArrayWithObjectsFromDifferentNamespaceInTargetClass(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testArrayWithObjectsFromDifferentNamespacesInTargetClass(): void
+ public function testArrayWithObjectsFromDifferentNamespacesInTargetClass()
{
$barData = [
0 => ["name" => "Bar 1"],
@@ -225,7 +225,7 @@ public function testArrayWithObjectsFromDifferentNamespacesInTargetClass(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testAdvancedUseCase(): void
+ public function testAdvancedUseCase()
{
// This is a use case from a real situation:
$json = \json_decode('{
diff --git a/tests/Test/Unit/Application/Request/BuilderTest.php b/tests/Test/Unit/Application/Request/BuilderTest.php
index 66d51ee..14c92ca 100644
--- a/tests/Test/Unit/Application/Request/BuilderTest.php
+++ b/tests/Test/Unit/Application/Request/BuilderTest.php
@@ -39,7 +39,7 @@ class BuilderTest extends TestCase
*/
private $orderLineBuilder;
- protected function setUp(): void
+ protected function setUp()
{
$this->paymentRequestBuilder = new PaymentRequestBuilder();
$this->orderLineBuilder = new OrderLineBuilder();
@@ -48,7 +48,7 @@ protected function setUp(): void
/**
* @throws ReflectionException
*/
- public function testBasicReflection(): void
+ public function testBasicReflection()
{
$card = new PaymentRequestCard('001', 10, 2020, 'Foo', '123', '456');
$result = Builder::toArray($card);
@@ -65,7 +65,7 @@ public function testBasicReflection(): void
/**
* @throws ReflectionException
*/
- public function testNestedReflection(): void
+ public function testNestedReflection()
{
$requestObject = new PaymentRequest(
PaymentRequest::ACTION_PAYMENT,
@@ -95,7 +95,7 @@ public function testNestedReflection(): void
/**
* @throws ReflectionException
*/
- public function testPaymentRequest(): void
+ public function testPaymentRequest()
{
self::assertEquals([
'header' =>
@@ -148,7 +148,7 @@ public function testPaymentRequest(): void
/**
* @throws ReflectionException
*/
- public function testCheckoutRequest(): void
+ public function testCheckoutRequest()
{
self::assertEquals([
'header' =>
diff --git a/tests/Test/Unit/Application/Webhook/Service/EventBuilderTest.php b/tests/Test/Unit/Application/Webhook/Service/EventBuilderTest.php
index feca809..18914b1 100644
--- a/tests/Test/Unit/Application/Webhook/Service/EventBuilderTest.php
+++ b/tests/Test/Unit/Application/Webhook/Service/EventBuilderTest.php
@@ -32,7 +32,7 @@ class EventBuilderTest extends TestCase
*/
protected $subject;
- protected function setUp(): void
+ protected function setUp()
{
$this->mockedValidator = $this->getMockBuilder(Validator::class)->disableOriginalConstructor()->getMock();
$this->mockedValidator->method('validateWebhook')->willReturn(true);
@@ -46,7 +46,7 @@ protected function setUp(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testMissingTransactionShouldThrowException(): void
+ public function testMissingTransactionShouldThrowException()
{
$this->expectException(WebhookException::class);
$this->expectExceptionCode(WebhookException::UNKNOWN_PAYLOAD);
@@ -80,7 +80,7 @@ public function testMissingTransactionShouldThrowException(): void
* @throws BuilderException
* @throws ReflectionException
*/
- public function testBuildResponse(): void
+ public function testBuildResponse()
{
$responseObject = $this->subject->generateEvent(
'{
diff --git a/tests/Test/Unit/DataType/AmountTest.php b/tests/Test/Unit/DataType/AmountTest.php
index e906235..d814371 100644
--- a/tests/Test/Unit/DataType/AmountTest.php
+++ b/tests/Test/Unit/DataType/AmountTest.php
@@ -18,7 +18,7 @@ class AmountTest extends TestCase
/**
* @throws DataTypeException
*/
- public function testNullValue(): void
+ public function testNullValue()
{
self::assertNull((new NonNegativeAmount(null))->get());
}
@@ -26,7 +26,7 @@ public function testNullValue(): void
/**
* @throws DataTypeException
*/
- public function testPositiveAmount(): void
+ public function testPositiveAmount()
{
$amount = new NonNegativeAmount(10.50);
self::assertEquals(10.50, $amount->get());
@@ -36,7 +36,7 @@ public function testPositiveAmount(): void
/**
* @throws DataTypeException
*/
- public function testNegativeAmount(): void
+ public function testNegativeAmount()
{
$this->expectException(DataTypeException::class);
$this->expectExceptionCode(DataTypeException::AMOUNT_CANNOT_BE_NEGATIVE);
diff --git a/tests/Test/Unit/DataType/CountryCodeTest.php b/tests/Test/Unit/DataType/CountryCodeTest.php
index 78be398..54a33e2 100644
--- a/tests/Test/Unit/DataType/CountryCodeTest.php
+++ b/tests/Test/Unit/DataType/CountryCodeTest.php
@@ -18,7 +18,7 @@ class CountryCodeTest extends TestCase
/**
* @throws DataTypeException
*/
- public function testNullValue(): void
+ public function testNullValue()
{
self::assertNull((new CountryCode(null))->get());
}
@@ -26,7 +26,7 @@ public function testNullValue(): void
/**
* @throws DataTypeException
*/
- public function testKnownCountry(): void
+ public function testKnownCountry()
{
$country = new CountryCode('NL');
self::assertSame('NL', $country->get());
@@ -35,7 +35,7 @@ public function testKnownCountry(): void
/**
* @throws DataTypeException
*/
- public function testUnknownCountry(): void
+ public function testUnknownCountry()
{
$this->expectException(DataTypeException::class);
$this->expectExceptionCode(DataTypeException::UNKNOWN_COUNTRY);
diff --git a/tests/Test/Unit/DataType/CurrencyCodeTest.php b/tests/Test/Unit/DataType/CurrencyCodeTest.php
index f85844e..3b53eb0 100644
--- a/tests/Test/Unit/DataType/CurrencyCodeTest.php
+++ b/tests/Test/Unit/DataType/CurrencyCodeTest.php
@@ -18,7 +18,7 @@ class CurrencyCodeTest extends TestCase
/**
* @throws DataTypeException
*/
- public function testNullValue(): void
+ public function testNullValue()
{
self::assertNull((new CurrencyCode(null))->get());
}
@@ -26,7 +26,7 @@ public function testNullValue(): void
/**
* @throws DataTypeException
*/
- public function testKnownCurrency(): void
+ public function testKnownCurrency()
{
$currency = new CurrencyCode('EUR');
self::assertSame('EUR', $currency->get());
@@ -35,7 +35,7 @@ public function testKnownCurrency(): void
/**
* @throws DataTypeException
*/
- public function testUnknownCurrency(): void
+ public function testUnknownCurrency()
{
$this->expectException(DataTypeException::class);
$this->expectExceptionCode(DataTypeException::UNKNOWN_CURRENCY);
diff --git a/tests/Test/Unit/DataType/EnumeratedTest.php b/tests/Test/Unit/DataType/EnumeratedTest.php
index c738429..fb4eae5 100644
--- a/tests/Test/Unit/DataType/EnumeratedTest.php
+++ b/tests/Test/Unit/DataType/EnumeratedTest.php
@@ -18,7 +18,7 @@ class EnumeratedTest extends TestCase
/**
* @throws DataTypeException
*/
- public function testNullValue(): void
+ public function testNullValue()
{
self::assertNull((new Enumerated(null, []))->get());
}
@@ -26,7 +26,7 @@ public function testNullValue(): void
/**
* @throws DataTypeException
*/
- public function testValidValue(): void
+ public function testValidValue()
{
$enum = (new Enumerated('Foo', ['Foo', 'Bar']))->get();
self::assertSame('Foo', $enum);
@@ -35,7 +35,7 @@ public function testValidValue(): void
/**
* @throws DataTypeException
*/
- public function testInvalidValue(): void
+ public function testInvalidValue()
{
$this->expectException(DataTypeException::class);
$this->expectExceptionCode(DataTypeException::VALUE_NOT_ALLOWED);
diff --git a/tests/Test/Unit/DataType/LanguageCodeTest.php b/tests/Test/Unit/DataType/LanguageCodeTest.php
index 6a27642..be2b768 100644
--- a/tests/Test/Unit/DataType/LanguageCodeTest.php
+++ b/tests/Test/Unit/DataType/LanguageCodeTest.php
@@ -18,7 +18,7 @@ class LanguageCodeTest extends TestCase
/**
* @throws DataTypeException
*/
- public function testNullValue(): void
+ public function testNullValue()
{
self::assertNull((new LanguageCode(null))->get());
}
@@ -26,7 +26,7 @@ public function testNullValue(): void
/**
* @throws DataTypeException
*/
- public function testKnownCountry(): void
+ public function testKnownCountry()
{
$languageCode = new LanguageCode('nl');
self::assertSame('nl', $languageCode->get());
@@ -35,7 +35,7 @@ public function testKnownCountry(): void
/**
* @throws DataTypeException
*/
- public function testUnknownCountry(): void
+ public function testUnknownCountry()
{
$this->expectException(DataTypeException::class);
$this->expectExceptionCode(DataTypeException::UNKNOWN_LANGUAGE);
diff --git a/tests/Test/Unit/DataType/LimitedStringTest.php b/tests/Test/Unit/DataType/LimitedStringTest.php
index 94f7d96..1987287 100644
--- a/tests/Test/Unit/DataType/LimitedStringTest.php
+++ b/tests/Test/Unit/DataType/LimitedStringTest.php
@@ -18,7 +18,7 @@ class LimitedStringTest extends TestCase
/**
* @throws DataTypeException
*/
- public function testNullValue(): void
+ public function testNullValue()
{
self::assertNull((new LimitedString(null, 255))->get());
}
@@ -30,7 +30,7 @@ public function testNullValue(): void
* @throws DataTypeException
* @dataProvider stringDataProvider50()
*/
- public function testInput(string $input, string $expectedResult, bool $expectException = false): void
+ public function testInput(string $input, string $expectedResult, bool $expectException = false)
{
if ($expectException) {
$this->expectException(DataTypeException::class);
diff --git a/tests/Test/Unit/DataType/UrlTest.php b/tests/Test/Unit/DataType/UrlTest.php
index 922b408..1540018 100644
--- a/tests/Test/Unit/DataType/UrlTest.php
+++ b/tests/Test/Unit/DataType/UrlTest.php
@@ -18,7 +18,7 @@ class UrlTest extends TestCase
/**
* @throws DataTypeException
*/
- public function testNullValue(): void
+ public function testNullValue()
{
self::assertNull((new Url(null))->get());
}
@@ -28,7 +28,7 @@ public function testNullValue(): void
* @throws DataTypeException
* @dataProvider validUrlDataProvider()
*/
- public function testValidUrl(string $input): void
+ public function testValidUrl(string $input)
{
$url = new Url($input);
self::assertSame($input, $url->get());
@@ -39,7 +39,7 @@ public function testValidUrl(string $input): void
* @throws DataTypeException
* @dataProvider invalidUrlDataProvider()
*/
- public function testInvalidUrl(string $input): void
+ public function testInvalidUrl(string $input)
{
$this->expectException(DataTypeException::class);
$this->expectExceptionCode(DataTypeException::INVALID_URL);
diff --git a/tests/Test/Unit/Domain/Service/Builder/BankTest.php b/tests/Test/Unit/Domain/Service/Builder/BankTest.php
index 67fee41..e240690 100644
--- a/tests/Test/Unit/Domain/Service/Builder/BankTest.php
+++ b/tests/Test/Unit/Domain/Service/Builder/BankTest.php
@@ -19,12 +19,12 @@ class BankTest extends TestCase
*/
private $builder;
- protected function setUp(): void
+ protected function setUp()
{
$this->builder = new BankBuilder();
}
- public function testValidBank(): void
+ public function testValidBank()
{
$bankObject = $this->builder
->setCountryCode('NL')
diff --git a/tests/Test/Unit/Domain/Service/Builder/PaymentTest.php b/tests/Test/Unit/Domain/Service/Builder/PaymentTest.php
index ec72219..2d76f9e 100644
--- a/tests/Test/Unit/Domain/Service/Builder/PaymentTest.php
+++ b/tests/Test/Unit/Domain/Service/Builder/PaymentTest.php
@@ -25,12 +25,12 @@ class PaymentTest extends TestCase
*/
private $builder;
- protected function setUp(): void
+ protected function setUp()
{
$this->builder = new PaymentRequestBuilder();
}
- public function testValidPaymentObject(): void
+ public function testValidPaymentObject()
{
$paymentObject = $this->builder
->setHeader(new PaymentRequestHeader('abc123'))
@@ -45,7 +45,7 @@ public function testValidPaymentObject(): void
self::assertSame(PaymentRequest::ACTION_PAYMENT, $paymentObject->getAction());
}
- public function testInvalidPaymentObject(): void
+ public function testInvalidPaymentObject()
{
$this->markTestSkipped('Data validation is not yet implemented in generated builders');
$this->expectException(DataTypeException::class);
@@ -54,7 +54,7 @@ public function testInvalidPaymentObject(): void
->build();
}
- public function testMissingParameters(): void
+ public function testMissingParameters()
{
$this->markTestSkipped('Data validation is not yet implemented in generated builders');
$this->expectException(BuilderException::class);
diff --git a/tests/Test/Unit/Domain/Service/Builder/TransactionTest.php b/tests/Test/Unit/Domain/Service/Builder/TransactionTest.php
index 88a3746..355082a 100644
--- a/tests/Test/Unit/Domain/Service/Builder/TransactionTest.php
+++ b/tests/Test/Unit/Domain/Service/Builder/TransactionTest.php
@@ -20,12 +20,12 @@ class TransactionTest extends TestCase
*/
protected $builder;
- protected function setUp(): void
+ protected function setUp()
{
$this->builder = new PaymentRequestTransactionBuilder();
}
- public function testSimpleTransaction(): void
+ public function testSimpleTransaction()
{
$transaction = $this->builder
->setTrackingCode('ABC 123')
@@ -42,7 +42,7 @@ public function testSimpleTransaction(): void
self::assertSame('http://www.example.com', $transaction->getReturnUrl());
}
- public function testReset(): void
+ public function testReset()
{
// First build a transaction with brand ID and return URL:
$this->builder
@@ -64,21 +64,21 @@ public function testReset(): void
self::assertNull($transaction->getReturnUrl());
}
- public function testNegativeAmount(): void
+ public function testNegativeAmount()
{
$this->markTestSkipped('Data validation is not yet implemented in generated builders');
$this->expectException(DataTypeException::class);
$this->builder->setAmount(-1.00);
}
- public function testUnknownSource(): void
+ public function testUnknownSource()
{
$this->markTestSkipped('Data validation is not yet implemented in generated builders');
$this->expectException(DataTypeException::class);
$this->builder->setSource('XX');
}
- public function testUnknownType(): void
+ public function testUnknownType()
{
$this->markTestSkipped('Data validation is not yet implemented in generated builders');
$this->expectException(DataTypeException::class);
diff --git a/tests/Test/Unit/Domain/Service/Helper/AfterpayErrorMessageHelperTest.php b/tests/Test/Unit/Domain/Service/Helper/AfterpayErrorMessageHelperTest.php
index b5858e5..53e3d31 100644
--- a/tests/Test/Unit/Domain/Service/Helper/AfterpayErrorMessageHelperTest.php
+++ b/tests/Test/Unit/Domain/Service/Helper/AfterpayErrorMessageHelperTest.php
@@ -22,7 +22,7 @@ class AfterpayErrorMessageHelperTest extends TestCase
* @throws AfterpayErrorException
* @dataProvider afterpayExtractMessageCodeProvider
*/
- public function testExtractMessageCodes(string $errorCode, array $expected): void
+ public function testExtractMessageCodes(string $errorCode, array $expected)
{
self::assertSame($expected, AfterpayErrorMessageHelper::extractMessageCodes($errorCode));
}
@@ -82,7 +82,7 @@ public function afterpayExtractMessageCodeProvider(): array
* @throws AfterpayErrorException
* @dataProvider afterpayExtractMessageCodeExceptionProvider
*/
- public function testExtractMessageCodesException(string $message, string $expected): void
+ public function testExtractMessageCodesException(string $message, string $expected)
{
$this->expectException(AfterpayErrorException::class);
try {
diff --git a/tests/Test/Unit/Domain/Webhook/Service/EventDecoratorTest.php b/tests/Test/Unit/Domain/Webhook/Service/EventDecoratorTest.php
index d2127ad..d853e07 100644
--- a/tests/Test/Unit/Domain/Webhook/Service/EventDecoratorTest.php
+++ b/tests/Test/Unit/Domain/Webhook/Service/EventDecoratorTest.php
@@ -31,7 +31,7 @@ class EventDecoratorTest extends TestCase
*/
private $mockedEvent;
- protected function setUp(): void
+ protected function setUp()
{
$this->mockedEvent = $this->getMockBuilder(Event::class)
->disableOriginalConstructor()
@@ -46,7 +46,7 @@ protected function setUp(): void
* @throws WebhookException
* @dataProvider payloadDataProvider
*/
- public function testEventTypeShouldBeCorrect(string $payloadClassName, string $expectedType): void
+ public function testEventTypeShouldBeCorrect(string $payloadClassName, string $expectedType)
{
$this->mockedEvent->method('getPayload')
->willReturn(
@@ -61,7 +61,7 @@ public function testEventTypeShouldBeCorrect(string $payloadClassName, string $e
/**
* @throws WebhookException
*/
- public function testUnkownPayloadShouldThrowException(): void
+ public function testUnkownPayloadShouldThrowException()
{
$this->mockedEvent->method('getPayload')
->willReturn(
@@ -83,7 +83,7 @@ public function testUnkownPayloadShouldThrowException(): void
* @throws WebhookException
* @dataProvider payloadDataProvider
*/
- public function testExceptionShouldBeThrownForIncorrectPayload(string $payloadClassName, string $validType): void
+ public function testExceptionShouldBeThrownForIncorrectPayload(string $payloadClassName, string $validType)
{
$this->mockedEvent->method('getPayload')
->willReturn(
diff --git a/tests/Test/Unit/Domain/Webhook/Service/ValidatorTest.php b/tests/Test/Unit/Domain/Webhook/Service/ValidatorTest.php
index d07a808..aac63dd 100644
--- a/tests/Test/Unit/Domain/Webhook/Service/ValidatorTest.php
+++ b/tests/Test/Unit/Domain/Webhook/Service/ValidatorTest.php
@@ -20,7 +20,7 @@ class ValidatorTest extends TestCase
*/
private $subject;
- protected function setUp(): void
+ protected function setUp()
{
$this->subject = new Validator();
}
@@ -32,7 +32,7 @@ protected function setUp(): void
* @throws WebhookException
* @dataProvider validateWebhookDataProvider
*/
- public function testValidateWebhook(string $eventSignature, string $secret, string $body): void
+ public function testValidateWebhook(string $eventSignature, string $secret, string $body)
{
self::assertTrue($this->subject->validateWebhook($eventSignature, $secret, $body));
}
diff --git a/tests/Test/Unit/Infrastructure/ApiConnectionTest.php b/tests/Test/Unit/Infrastructure/ApiConnectionTest.php
index 34e1080..aa4c107 100644
--- a/tests/Test/Unit/Infrastructure/ApiConnectionTest.php
+++ b/tests/Test/Unit/Infrastructure/ApiConnectionTest.php
@@ -56,7 +56,7 @@ class ApiConnectionTest extends TestCase
/**
* @throws ReflectionException
*/
- protected function setUp(): void
+ protected function setUp()
{
$this->subject = new ApiConnection(
'username',
@@ -87,7 +87,7 @@ protected function setUp(): void
* @throws BuilderException
* @throws ErrorResponse
*/
- public function testPostRequest(): void
+ public function testPostRequest()
{
// Setup:
$request = $this->createApiRequestObject(Request::METHOD_POST);
@@ -139,7 +139,7 @@ public function testPostRequest(): void
* @throws BuilderException
* @throws ErrorResponse
*/
- public function testGetRequest(): void
+ public function testGetRequest()
{
// Setup:
$request = $this->createApiRequestObject(Request::METHOD_GET);
@@ -182,7 +182,7 @@ public function testGetRequest(): void
* @throws BuilderException
* @throws ErrorResponse
*/
- public function testMissingResponseObject(): void
+ public function testMissingResponseObject()
{
// Setup:
$request = $this->createApiRequestObject(Request::METHOD_GET, []);
@@ -205,7 +205,7 @@ public function testMissingResponseObject(): void
* @throws BuilderException
* @throws ErrorResponse
*/
- public function testInvalidResponseShouldThrowError(): void
+ public function testInvalidResponseShouldThrowError()
{
// Setup:
$request = $this->createApiRequestObject(Request::METHOD_GET, [400 => FakeResponse::class]);
@@ -236,7 +236,7 @@ public function testInvalidResponseShouldThrowError(): void
* @throws BuilderException
* @throws ErrorResponse
*/
- public function testNonJsonResponseShouldThrowException(): void
+ public function testNonJsonResponseShouldThrowException()
{
// Setup:
$request = $this->createApiRequestObject(Request::METHOD_GET, [400 => FakeResponse::class]);
@@ -255,7 +255,7 @@ public function testNonJsonResponseShouldThrowException(): void
* @throws BuilderException
* @throws ErrorResponse
*/
- public function testTolerantReader(): void
+ public function testTolerantReader()
{
// Setup:
$request = $this->createApiRequestObject();
@@ -312,7 +312,7 @@ public function testTolerantReader(): void
* @throws BuilderException
* @throws ErrorResponse
*/
- public function testExceptionOnMissingRequiredField(): void
+ public function testExceptionOnMissingRequiredField()
{
// Setup:
$request = $this->createApiRequestObject();
diff --git a/tests/Test/Unit/Infrastructure/RequestHeaderCollectionTest.php b/tests/Test/Unit/Infrastructure/RequestHeaderCollectionTest.php
index 3fb7dac..6794eec 100644
--- a/tests/Test/Unit/Infrastructure/RequestHeaderCollectionTest.php
+++ b/tests/Test/Unit/Infrastructure/RequestHeaderCollectionTest.php
@@ -14,7 +14,7 @@
class RequestHeaderCollectionTest extends TestCase
{
- public function testAddRequestHeaderCollectionSuccessfully(): void
+ public function testAddRequestHeaderCollectionSuccessfully()
{
$requestHeaders = new RequestHeaderCollection();
self::assertEquals(0, $requestHeaders->count());
diff --git a/tests/Test/Unit/Infrastructure/XMLBrandRepositoryTest.php b/tests/Test/Unit/Infrastructure/XMLBrandRepositoryTest.php
index 6ab25fa..7ecf1e6 100644
--- a/tests/Test/Unit/Infrastructure/XMLBrandRepositoryTest.php
+++ b/tests/Test/Unit/Infrastructure/XMLBrandRepositoryTest.php
@@ -18,7 +18,7 @@ class XMLBrandRepositoryTest extends TestCase
/**
* @throws RepositoryException
*/
- public function testGetAllWithNonExistingFile(): void
+ public function testGetAllWithNonExistingFile()
{
$repository = new XMLBrandRepository('/path/to/non/existing/file.xml');
$this->expectException(RepositoryException::class);
@@ -29,7 +29,7 @@ public function testGetAllWithNonExistingFile(): void
/**
* @throws RepositoryException
*/
- public function testGetAllWithExistingFile(): void
+ public function testGetAllWithExistingFile()
{
$repository = $this->getRepository();
$results = $repository->getAll();
@@ -49,7 +49,7 @@ public function testGetAllWithExistingFile(): void
/**
* @throws RepositoryException
*/
- public function testGetAllForSpecificCategory(): void
+ public function testGetAllForSpecificCategory()
{
$repository = $this->getRepository();
$results = $repository->getAllForCategory(1);
diff --git a/tests/Test/Unit/Infrastructure/XMLIssuerRepositoryTest.php b/tests/Test/Unit/Infrastructure/XMLIssuerRepositoryTest.php
index 8f40df8..37b5090 100644
--- a/tests/Test/Unit/Infrastructure/XMLIssuerRepositoryTest.php
+++ b/tests/Test/Unit/Infrastructure/XMLIssuerRepositoryTest.php
@@ -18,7 +18,7 @@ class XMLIssuerRepositoryTest extends TestCase
/**
* @throws RepositoryException
*/
- public function testGetAllWithNonExistingFile(): void
+ public function testGetAllWithNonExistingFile()
{
$repository = new XMLIssuerRepository('/path/to/non/existing/file.xml');
$this->expectException(RepositoryException::class);
@@ -29,7 +29,7 @@ public function testGetAllWithNonExistingFile(): void
/**
* @throws RepositoryException
*/
- public function testGetAllWithExistingFile(): void
+ public function testGetAllWithExistingFile()
{
$repository = new XMLIssuerRepository(__DIR__ . '/../../../etc/brands.xml');
$results = $repository->getAll();