diff --git a/.gitignore b/.gitignore index 7ecb7b45..dc0c342e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,11 @@ .DS_Store .idea desktop.ini +php.ini /build/coverage /build/clover /build/logs /composer.lock /composer.phar /vendor -/*.zip +/*.zip \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index bc317469..03d8a91f 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ # Changelog # +#### Changes in release 9.1.0 + + Fixed double form post in confirmation template + + Fixed bug for rounding differences more than 0.01 + + Added OAuth support for: + + Activate payment methods through module (instead of Mollie dashboard) + + See payment status on order info page + + Request refund through order info page + #### Changes in release 9.0.6 + Added Przelewy24 support. + Added additional check on order_id in webhook. diff --git a/admin/controller/extension/payment/mollie_applepay.php b/admin/controller/extension/payment/mollie_applepay.php new file mode 100644 index 00000000..fa6250ed --- /dev/null +++ b/admin/controller/extension/payment/mollie_applepay.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/admin/controller/payment/mollie/base.php b/admin/controller/payment/mollie/base.php index 0daf3dc4..b2736506 100644 --- a/admin/controller/payment/mollie/base.php +++ b/admin/controller/payment/mollie/base.php @@ -70,6 +70,7 @@ class ControllerPaymentMollieBase extends Controller { // Current module name - should be overwritten by subclass using one of the MollieHelper::MODULE_NAME_* values. const MODULE_NAME = NULL; + const OUTH_URL = 'https://api.mollie.com/oauth2'; // Initialize var(s) protected $error = array(); @@ -86,6 +87,176 @@ protected function getAPIClient ($store = 0) return MollieHelper::getAPIClientAdmin($this->data); } + public function mollieConnect() { + + $this->session->data['mollie_connect_store_id'] = $this->request->get['store_id']; + if(VERSION >= '2.3') { + $redirect_uri = HTTPS_SERVER . 'index.php?route=extension/payment/mollie_bancontact/mollieConnectCallback'; + } else { + $redirect_uri = HTTPS_SERVER . 'index.php?route=payment/mollie_bancontact/mollieConnectCallback'; + } + + $data = array( + 'client_id' => $this->request->get['client_id'], + 'state' => isset($this->session->data['user_token']) ? $this->session->data['user_token'] : $this->session->data['token'], + 'redirect_uri' => $redirect_uri, + 'scope' => 'payments.read payments.write customers.read customers.write profiles.read profiles.write orders.read orders.write organizations.read organizations.write', + 'response_type' => 'code', + 'approval_prompt' => 'auto' + ); + + $queryString = http_build_query($data) . "\n"; + + $this->response->redirect("https://www.mollie.com/oauth2/authorize?".$queryString, 302); + } + + public function mollieConnectCallback() { + + Util::load()->language("payment/mollie"); + $settingModel = Util::load()->model("setting/setting"); + $code = MollieHelper::getModuleCode(); + + if(isset($this->request->get['error'])) { + Util::session()->warning = $this->request->get['error_description']; + Util::response()->redirectToUrl(Util::url()->link(Util::route()->extension("mollie_" . static::MODULE_NAME, 'payment'))); + } + + if(isset($this->session->data['user_token'])) { + $token = $this->session->data['user_token']; + } else { + $token = $this->session->data['token']; + } + + if(!isset($this->request->get['state']) || ($this->request->get['state'] != $token)) { + return new Action('common/login'); + } + + if(VERSION >= '2.3') { + $redirect_uri = HTTPS_SERVER . 'index.php?route=extension/payment/mollie_bancontact/mollieConnectCallback'; + } else { + $redirect_uri = HTTPS_SERVER . 'index.php?route=payment/mollie_bancontact/mollieConnectCallback'; + } + + $settingData = $settingModel->getSetting($code, $this->session->data['mollie_connect_store_id']); + + $data = array( + 'client_id' => $settingData[$code . '_client_id'], + 'client_secret' => $settingData[$code . '_client_secret'], + 'grant_type' => 'authorization_code', + 'code' => $this->request->get['code'], + 'redirect_uri' => $redirect_uri + ); + + $result = $this->curlRequest('tokens', $data); + + // Save refresh token + $this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `key` = '" . $code . "_refresh_token' AND `store_id` = '" . $this->session->data['mollie_connect_store_id'] . "'"); + + if(VERSION < '2.0') { + $this->db->query("INSERT INTO " . DB_PREFIX . "setting SET store_id = '" . $this->session->data['mollie_connect_store_id'] . "', `group` = '" . $code . "', `key` = '" . $code . "_refresh_token', `value` = '" . $result->refresh_token . "'"); + } else { + $this->db->query("INSERT INTO " . DB_PREFIX . "setting SET store_id = '" . $this->session->data['mollie_connect_store_id'] . "', `code` = '" . $code . "', `key` = '" . $code . "_refresh_token', `value` = '" . $result->refresh_token . "'"); + } + + $this->session->data['mollie_access_token'][$this->session->data['mollie_connect_store_id']] = $result->access_token; + unset($this->session->data['mollie_connect_store_id']); + + Util::session()->success = $this->language->get('text_connection_success'); + Util::response()->redirectToUrl(Util::url()->link(Util::route()->extension("mollie_" . static::MODULE_NAME, 'payment'))); + + } + + public function enablePaymentMethod() { + Util::load()->language("payment/mollie"); + $code = MollieHelper::getModuleCode(); + + $method = $this->request->get['method']; + $api_key = $this->getSettingValue($code . '_api_key', $this->request->get['store_id']); + try + { + $api = MollieHelper::getAPIClientForKey($api_key); + + $profile = $api->profiles->getCurrent(); + + $mollie = MollieHelper::getAPIClientForAccessToken($this->session->data['mollie_access_token'][$this->request->get['store_id']]); + $profile = $mollie->profiles->get($profile->id); + $profile->enableMethod($method); + + Util::session()->success = $this->language->get('text_success'); + Util::response()->redirectToUrl(Util::url()->link(Util::route()->extension("mollie_" . static::MODULE_NAME, 'payment'))); + + } + catch (Mollie\Api\Exceptions\ApiException $e) + { + Util::session()->warning = $this->language->get('text_error'); + Util::response()->redirectToUrl(Util::url()->link(Util::route()->extension("mollie_" . static::MODULE_NAME, 'payment'))); + } + } + + public function disablePaymentMethod() { + Util::load()->language("payment/mollie"); + $code = MollieHelper::getModuleCode(); + + $method = $this->request->get['method']; + $api_key = $this->getSettingValue($code . '_api_key', $this->request->get['store_id']); + try + { + $api = MollieHelper::getAPIClientForKey($api_key); + + $profile = $api->profiles->getCurrent(); + + $mollie = MollieHelper::getAPIClientForAccessToken($this->session->data['mollie_access_token'][$this->request->get['store_id']]); + $profile = $mollie->profiles->get($profile->id); + $profile->disableMethod($method); + + Util::session()->success = $this->language->get('text_success'); + Util::response()->redirectToUrl(Util::url()->link(Util::route()->extension("mollie_" . static::MODULE_NAME, 'payment'))); + + } + catch (Mollie\Api\Exceptions\ApiException $e) + { + Util::session()->warning = $this->language->get('text_error'); + Util::response()->redirectToUrl(Util::url()->link(Util::route()->extension("mollie_" . static::MODULE_NAME, 'payment'))); + } + } + + public function refreshToken($store_id) { + $code = MollieHelper::getModuleCode(); + + $client_id = $this->getSettingValue($code . '_client_id', $store_id); + $client_secret = $this->getSettingValue($code . '_client_secret', $store_id); + $refresh_token = $this->getSettingValue($code . '_refresh_token', $store_id); + if(VERSION >= '2.3') { + $redirect_uri = HTTPS_SERVER . 'index.php?route=extension/payment/mollie_bancontact/mollieConnectCallback'; + } else { + $redirect_uri = HTTPS_SERVER . 'index.php?route=payment/mollie_bancontact/mollieConnectCallback'; + } + + if(!empty($client_id) && !empty($client_secret) && !empty($refresh_token)) { + $data = array( + 'client_id' => $client_id, + 'client_secret' => $client_secret, + 'refresh_token' => $refresh_token, + 'grant_type' => 'refresh_token', + 'redirect_uri' => $redirect_uri + ); + + $result = $this->curlRequest('tokens', $data); + + $this->session->data['mollie_access_token'][$store_id] = $result->access_token; + } + } + + public function getSettingValue($key, $store_id = 0) { + $query = $this->db->query("SELECT value FROM " . DB_PREFIX . "setting WHERE store_id = '" . (int)$store_id . "' AND `key` = '" . $this->db->escape($key) . "'"); + + if ($query->num_rows) { + return $query->row['value']; + } else { + return null; + } + } + /** * This method is executed by OpenCart when the Payment module is installed from the admin. It will create the * required tables. @@ -111,6 +282,18 @@ public function install () $this->db->query("ALTER TABLE `" . DB_PREFIX . "order` MODIFY `payment_method` VARCHAR(255) NOT NULL;"); + // Add 'mollie_order_id' column if not exists(from old extension) + $query = $this->db->query("SHOW COLUMNS FROM `" . DB_PREFIX . "mollie_payments` WHERE Field = 'mollie_order_id'"); + if($query->num_rows == 0) { + $this->db->query("ALTER TABLE `" . DB_PREFIX . "mollie_payments` ADD `mollie_order_id` VARCHAR(32) NOT NULL AFTER `bank_status`, ADD UNIQUE `mollie_order_id` (`mollie_order_id`)"); + } + + // Add 'refund_id' column if not exists + $query = $this->db->query("SHOW COLUMNS FROM `" . DB_PREFIX . "mollie_payments` WHERE Field = 'refund_id'"); + if($query->num_rows == 0) { + $this->db->query("ALTER TABLE `" . DB_PREFIX . "mollie_payments` ADD `refund_id` VARCHAR(32) AFTER `bank_status`"); + } + // Just install all modules while we're at it. $this->installAllModules(); $this->cleanUp(); @@ -246,6 +429,18 @@ public function cleanUp() $this->delTree($catalogControllerDir . 'extension/payment/mollie-api-client'); } + // Add 'mollie_order_id' column if not exists(from old extension) + $query = $this->db->query("SHOW COLUMNS FROM `" . DB_PREFIX . "mollie_payments` WHERE Field = 'mollie_order_id'"); + if($query->num_rows == 0) { + $this->db->query("ALTER TABLE `" . DB_PREFIX . "mollie_payments` ADD `mollie_order_id` VARCHAR(32) NOT NULL AFTER `bank_status`, ADD UNIQUE `mollie_order_id` (`mollie_order_id`)"); + } + + // Add 'refund_id' column if not exists + $query = $this->db->query("SHOW COLUMNS FROM `" . DB_PREFIX . "mollie_payments` WHERE Field = 'refund_id'"); + if($query->num_rows == 0) { + $this->db->query("ALTER TABLE `" . DB_PREFIX . "mollie_payments` ADD `refund_id` VARCHAR(32) AFTER `bank_status`"); + } + } public function delTree($dir) { @@ -362,6 +557,7 @@ public function index () $modelStore = Util::load()->model("setting/store"); $modelOrderStatus = Util::load()->model("localisation/order_status"); $modelGeoZone = Util::load()->model("localisation/geo_zone"); + $modelLanguage = Util::load()->model("localisation/language"); Util::load()->library("mollieHttpClient"); $code = MollieHelper::getModuleCode(); @@ -416,7 +612,8 @@ public function index () $paymentGeoZone[] = $code . '_' . $module_name . '_geo_zone'; } - $fields = array("show_icons", "show_order_canceled_page", "ideal_description", "api_key", "ideal_processing_status_id", "ideal_expired_status_id", "ideal_canceled_status_id", "ideal_failed_status_id", "ideal_pending_status_id", "ideal_shipping_status_id", "create_shipment_status_id", "create_shipment"); + $fields = array("show_icons", "show_order_canceled_page", "ideal_description", "api_key", "client_id", "client_secret", "refresh_token", "ideal_processing_status_id", "ideal_expired_status_id", "ideal_canceled_status_id", "ideal_failed_status_id", "ideal_pending_status_id", "ideal_shipping_status_id", "create_shipment_status_id", "ideal_refund_status_id", "create_shipment", "payment_screen_language"); + $settingFields = Util::arrayHelper()->prefixAllValues($code . '_', $fields); $storeFormFields = array_merge($settingFields, $paymentStatus, $paymentSortOrder, $paymentGeoZone); @@ -429,6 +626,11 @@ public function index () ->fillFromConfig($storeFormFields); } + // Generate access token + foreach ($data['shops'] as &$store) { + $this->refreshToken($store["store_id"]); + } + //API key not required for multistores $data['api_required'] = true; @@ -453,6 +655,28 @@ public function index () $data['geo_zones'] = $modelGeoZone->getGeoZones(); $data['order_statuses'] = $modelOrderStatus->getOrderStatuses(); + $data['languages'] = $modelLanguage->getLanguages(); + + $imageModel = Util::load()->model('tool/image'); + if (is_file(DIR_IMAGE . 'mollie_connect.png')) { + $data['image'] = $imageModel->resize('mollie_connect.png', 400, 90); + } else { + $data['image'] = ''; + } + + if(isset($this->session->data['success'])) { + $data['success'] = $this->session->data['success']; + $this->session->data['success'] = ''; + } else { + $data['success'] = ''; + } + + if(isset($this->session->data['warning'])) { + $data['warning'] = $this->session->data['warning']; + $this->session->data['warning'] = ''; + } else { + $data['warning'] = ''; + } // Form action url $data['action'] = Util::url()->link("payment/mollie_" . static::MODULE_NAME); @@ -461,6 +685,8 @@ public function index () // Load global settings. Some are prefixed with mollie_ideal_ for legacy reasons. $settings = array( $code . "_api_key" => NULL, + $code . "_client_id" => NULL, + $code . "_client_secret" => NULL, $code . "_ideal_description" => "Order %", $code . "_show_icons" => FALSE, $code . "_show_order_canceled_page" => FALSE, @@ -471,7 +697,10 @@ public function index () $code . "_ideal_expired_status_id" => 14, $code . "_ideal_shipping_status_id" => 3, $code . "_create_shipment_status_id" => 3, + $code . "_ideal_refund_status_id" => 11, $code . "_create_shipment" => 1, + $code . "_refresh_token" => '', + $code . "_payment_screen_language" => 'en-gb', ); // Check if order complete status is defined in store setting @@ -509,13 +738,30 @@ public function index () } } + // Check mollie connection + $data['shops'][$store['store_id']]['mollie_connection'] = false; + $data['shops'][$store['store_id']]['show_mollie_connect_button'] = true; + if(null != $this->data[MollieHelper::getModuleCode() . '_refresh_token']) { + $data['shops'][$store['store_id']]['mollie_connection'] = true; + } + + if(isset($this->session->data['mollie_access_token'][$store['store_id']]) && !empty($this->session->data['mollie_access_token'][$store['store_id']])) { + $data['shops'][$store['store_id']]['show_mollie_connect_button'] = false; + } + + $data['shops'][$store['store_id']]['mollie_connect'] = Util::url()->link("payment/mollie_" . static::MODULE_NAME . "/mollieConnect", "client_id=" . $this->data[MollieHelper::getModuleCode() . '_client_id'] . "&store_id=" . $store['store_id']); + + if(VERSION >= '2.3') { + $data['shops'][$store['store_id']]['redirect_uri'] = HTTPS_SERVER . 'index.php?route=extension/payment/mollie_bancontact/mollieConnectCallback'; + } else { + $data['shops'][$store['store_id']]['redirect_uri'] = HTTPS_SERVER . 'index.php?route=payment/mollie_bancontact/mollieConnectCallback'; + } // Check which payment methods we can use with the current API key. $allowed_methods = array(); try { - $api_methods = $this->getAPIClient()->methods->all(array('resource' => 'orders')); - + $api_methods = $this->getAPIClient()->methods->allActive(array('resource' => 'orders', 'includeWallets' => 'applepay')); foreach ($api_methods as $api_method) { $allowed_methods[] = $api_method->id; @@ -531,15 +777,22 @@ public function index () } $data['store'][$store['store_id'] . '_' . $code . '_payment_methods'] = array(); + $data['store']['creditCardEnabled'] = false; foreach (MollieHelper::$MODULE_NAMES as $module_name) { $payment_method = array(); $payment_method['name'] = $this->language->get("name_mollie_" . $module_name); - $payment_method['icon'] = "https://www.mollie.com/images/payscreen/methods/" . $module_name . ".png"; + $payment_method['disable'] = Util::url()->link("payment/mollie_" . static::MODULE_NAME . "/disablePaymentMethod", "method=" . $module_name . "&store_id=" . $store['store_id']); + $payment_method['enable'] = Util::url()->link("payment/mollie_" . static::MODULE_NAME . "/enablePaymentMethod", "method=" . $module_name . "&store_id=" . $store['store_id']); + $payment_method['icon'] = "https://www.mollie.com/external/icons/payment-methods/" . $module_name . "@2x.png"; $payment_method['allowed'] = in_array($module_name, $allowed_methods); + if(($module_name == 'creditcard') && $payment_method['allowed']) { + $data['store']['creditCardEnabled'] = true; + } + // Load module specific settings. if (isset($store[$store['store_id'] . '_' . $code . '_' . $module_name . '_status'])) { @@ -578,6 +831,44 @@ public function index () ->notIsset('error_description', 'description'); } + + //Error log + $data['download'] = Util::url()->link("payment/mollie_" . static::MODULE_NAME . '/download'); + $data['clear'] = Util::url()->link("payment/mollie_" . static::MODULE_NAME . '/clear'); + + $data['log'] = ''; + + $file = DIR_LOGS . 'Mollie.log'; + + if (file_exists($file)) { + $size = filesize($file); + + if ($size >= 5242880) { + $suffix = array( + 'B', + 'KB', + 'MB', + 'GB', + 'TB', + 'PB', + 'EB', + 'ZB', + 'YB' + ); + + $i = 0; + + while (($size / 1024) > 1) { + $size = $size / 1024; + $i++; + } + + $data['error_warning'] = sprintf($this->language->get('error_warning'), basename($file), round(substr($size, 0, strpos($size, '.') + 4), 2) . $suffix[$i]); + } else { + $data['log'] = file_get_contents($file, FILE_USE_INCLUDE_PATH, null); + } + } + Util::response()->view("payment/mollie", $data); } @@ -731,11 +1022,11 @@ public function saveAPIKey() { return true; } - private function getUpdateUrl() + private function getUpdateUrl() { $client = new mollieHttpClient(); $info = $client->get(MOLLIE_VERSION_URL); - if ($info["tag_name"] && $info["tag_name"] != MOLLIE_RELEASE && version_compare(MOLLIE_RELEASE, $info["tag_name"], "<")) { + if ($info["tag_name"] && $info["tag_name"] != MOLLIE_VERSION && version_compare(MOLLIE_VERSION, $info["tag_name"], "<")) { return Util::url()->link("payment/mollie_" . static::MODULE_NAME . '/update'); } return false; @@ -834,4 +1125,70 @@ function cpy($source, $dest) copy($source, $dest); } } + + public function curlRequest($resource, $data) { + // clean up the url + $url = rtrim(self::OUTH_URL, '/ '); + + if ( !function_exists('curl_init') ) die('CURL not supported. (introduced in PHP 4.0.2)'); + + // define a final API request + $api = $url . '/' . $resource; + + $ch = curl_init(); + + curl_setopt($ch, CURLOPT_URL, $api); + curl_setopt($ch, CURLOPT_POST, TRUE); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + $response = curl_exec($ch); + + curl_close ($ch); + + if ( !$response ) { + die('Nothing was returned.'); + } + + // This line takes the response and breaks it into an array using: + // JSON decoder + $result = json_decode($response); + + return $result; + } + + public function download() { + Util::load()->language("payment/mollie"); + + $file = DIR_LOGS . 'Mollie.log'; + + if (file_exists($file) && filesize($file) > 0) { + Util::response()->addheader('Pragma', 'public'); + Util::response()->addheader('Expires', '0'); + Util::response()->addheader('Content-Description', 'File Transfer'); + Util::response()->addheader('Content-Type', 'application/octet-stream'); + Util::response()->addheader('Content-Disposition', 'attachment; filename="' . $this->config->get('config_name') . '_' . date('Y-m-d_H-i-s', time()) . '_mollie_error.log"'); + Util::response()->addheader('Content-Transfer-Encoding', 'binary'); + + $this->response->setOutput(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); + } else { + Util::session()->warning = sprintf($this->language->get('error_log_warning'), basename($file), '0B'); + + Util::response()->redirectBack(); + } + } + + public function clear() { + Util::load()->language("payment/mollie"); + + $file = DIR_LOGS . 'Mollie.log'; + + $handle = fopen($file, 'w+'); + + fclose($handle); + + Util::session()->success = $this->language->get('text_log_success'); + + Util::response()->redirectBack(); + } } diff --git a/admin/controller/payment/mollie_applepay.php b/admin/controller/payment/mollie_applepay.php new file mode 100644 index 00000000..41a389d6 --- /dev/null +++ b/admin/controller/payment/mollie_applepay.php @@ -0,0 +1,7 @@ +Einstellungen aus."; -$_['text_activate_payment_method'] = 'Aktivieren Sie diese Zahlungsart über das Mollie Dashboard.'; +$_['text_enable_payment_method'] = 'Aktivieren Sie diese Zahlungsart über das Mollie Dashboard.'; +$_['text_activate_payment_method'] = 'Im Mollie Dashboard oder die App unter “Einstellungen” konfigurieren, um es auf dieser Seite zu aktivieren.'; $_['text_no_status_id'] = "- Status nicht ändern (nicht empfohlen) -"; +$_['text_enable'] = "Aktivieren"; +$_['text_disable'] = "Deaktivieren"; +$_['text_connection_success'] = "Erfolg: Verbindung zu Mollie erfolgreich!"; +$_['text_error'] = "Warnung: Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später noch einmal!"; +$_['text_creditcard_required'] = "Kreditkarte erforderlich"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "Allgemeines"; // Entry $_['entry_payment_method'] = "Zahlungsart"; @@ -94,14 +104,21 @@ $_['entry_show_icons'] = "Icons anzeigen"; $_['entry_show_order_canceled_page'] = "Meldung bei annullierten Bezahlungen anzeigen"; $_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Standardsprache des Zahlungsbildschirms"; // Help -$_['help_view_profile'] = 'Sie können Ihren API Key auf Ihren Mollie-Webseiten-Profilen finden.'; +$_['help_view_profile'] = 'Sie können Ihren API Key auf Ihren Mollie-Webseiten-Profilen finden.'; $_['help_status'] = "Das Modul aktivieren"; $_['help_api_key'] = "Geben Sie hier den api_key des Webseiten-Profils ein, das Sie verwenden wollen. Der API Key beginnt mit test_ oder live_."; $_['help_description'] = "Die Beschreibung soll auf der Banküberweisung Ihres Kunden erscheinen und Sie können sie in der Mollie Verwaltung sehen. Sie können maximal 29 Zeichen verwenden. TIPP: Verwenden Sie %, dies wird durch die Auftragsnummer ersetzt werden. Die Auftragsnummer selbst kann auch mehrere Zeichen lang sein!"; $_['help_show_icons'] = "Icons neben den Zahlungsarten von Mollie auf der Zahlungsseite anzeigen."; $_['help_show_order_canceled_page'] = "Eine Meldung für den Kunden anzeigen, wenn eine Zahlung annulliert wurde, bevor der Kunde zurück zum Warenkorb verwiesen wird."; +$_['help_redirect_uri'] = 'Der Redirect-URI in Ihrem Mollie-Dashboard muss mit diesem URI übereinstimmen.'; +$_['help_mollie_app'] = 'Wenn Sie Ihr Modul als App im Mollie-Dashboard registrieren, werden zusätzliche Funktionen freigeschaltet. Dies ist nicht erforderlich, um Mollie-Zahlungen zu verwenden.'; +$_['help_apple_pay'] = 'Apple Pay benötigt die Aktivierung der Kreditkartenzahlung in Ihrem Webprofil. Bitte schalten Sie zunächst die Kreditkarten Methode frei.'; // Info $_['entry_module'] = "Module"; @@ -124,6 +141,7 @@ $_['entry_canceled_status'] = "Status Zahlung annulliert"; $_['entry_expired_status'] = "Status Zahlung verstrichen"; $_['entry_processing_status']= "Status Zahlung erfolgreich"; +$_['entry_refund_status'] = "Status Zahlung rückerstattung"; $_['entry_shipping_status'] = "Versandstatus der Bestellung"; $_['entry_shipment'] = "Sendung erstellen"; @@ -137,3 +155,10 @@ //Button $_['button_update'] = "Aktualisieren"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Erfolg: Sie haben Ihr Fehlerprotokoll erfolgreich gelöscht!'; +$_['text_log_list'] = 'Fehlerliste'; +$_['error_log_warning'] = 'Warnung: Ihre Fehlerprotokolldatei %s ist %s!'; +$_['button_download'] = 'Herunterladen'; diff --git a/admin/language/de-de/payment/mollie_applepay.php b/admin/language/de-de/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/de-de/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Instellingen."; -$_['text_activate_payment_method'] = 'Activeer deze betaalmethode via het Mollie-dashboard.'; +$_['text_enable_payment_method'] = 'Activeer deze betaalmethode via het Mollie-dashboard.'; +$_['text_activate_payment_method'] = 'Activeer via het Mollie dashboard, of stel de App in via de instellingen van deze module om deze pagina te activeren.'; $_['text_no_status_id'] = "- Status niet wijzigen (niet aanbevolen) -"; +$_['text_enable'] = "Activeren"; +$_['text_disable'] = "Deactiveren"; +$_['text_connection_success'] = "Succes: verbinding met Mollie gelukt!"; +$_['text_error'] = "Waarschuwing: er is iets misgegaan. Probeer het later opnieuw!"; +$_['text_creditcard_required'] = "Credit Card verplicht"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "Algemeen"; // Entry $_['entry_payment_method'] = "Betaalmethode"; @@ -94,14 +105,21 @@ $_['entry_show_icons'] = "Toon icoontjes"; $_['entry_show_order_canceled_page'] = "Toon melding bij geannuleerde betalingen"; $_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Standaardtaal betaalscherm"; // Help -$_['help_view_profile'] = 'U kunt uw API-sleutel vinden bij uw Mollie-websiteprofielen.'; +$_['help_view_profile'] = 'U kunt uw API-sleutel vinden bij uw Mollie-websiteprofielen.'; $_['help_status'] = "Activeer de module"; $_['help_api_key'] = "Voer hier de api_key van het websiteprofiel in dat u wilt gebruiken. De API-sleutel begint met test_ of live_."; $_['help_description'] = "De omschrijving zal op het bankafschrift van uw klant verschijnen en kunt u terugvinden in het Mollie beheer. U kunt maximaal 29 tekens gebruiken. TIP: Gebruik %, dit zal vervangen worden door het ordernummer. Het ordernummer kan zelf ook meerdere tekens lang zijn!"; $_['help_show_icons'] = "Toon icoontjes naast de betaalmethodes van Mollie op de betaalpagina."; $_['help_show_order_canceled_page'] = "Toon een melding aan de klant als een betaling geannuleerd wordt, alvorens de klant terug naar het winkelmandje te verwijzen."; +$_['help_redirect_uri'] = 'URI omleiden in uw mollie-dashboard moet overeenkomen met deze URI.'; +$_['help_mollie_app'] = 'Door uw module te registreren als een app op het Mollie-dashboard, ontgrendeld u extra functionaliteiten. Dit is niet vereist om Mollie-betalingen te gebruiken.'; +$_['help_apple_pay'] = 'Voor Apple Pay dient credit card betaling geactiveerd te zijn op uw Mollie profiel. Activeer Credit Cards eerst.'; // Info $_['entry_module'] = "Module"; @@ -124,6 +142,7 @@ $_['entry_canceled_status'] = "Status betaling geannuleerd"; $_['entry_expired_status'] = "Status betaling verlopen"; $_['entry_processing_status']= "Status betaling succesvol"; +$_['entry_refund_status'] = "Status betaling terugbetaling"; $_['entry_shipping_status'] = "Status bestelling verzonden"; $_['entry_shipment'] = "Maak verzending"; @@ -137,3 +156,10 @@ //Button $_['button_update'] = "Bijwerken"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Succes: u hebt met succes uw foutenlogboek gewist!'; +$_['text_log_list'] = 'Foutenlijst'; +$_['error_log_warning'] = 'Waarschuwing: uw foutenlogbestand %s is %s!'; +$_['button_download'] = 'Download'; diff --git a/admin/language/dutch/payment/mollie_applepay.php b/admin/language/dutch/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/dutch/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Settings tab."; -$_['text_activate_payment_method'] = 'Enable this payment method in your Mollie dashboard.'; +$_['text_enable_payment_method'] = 'Enable this payment method in your Mollie dashboard.'; +$_['text_activate_payment_method'] = 'Enable in Mollie dashboard, or configure the App in the Settings tab to enable on this page.'; $_['text_no_status_id'] = "- Do not update the order status (not recommended) -"; +$_['text_enable'] = "Enable"; +$_['text_disable'] = "Disable"; +$_['text_connection_success'] = "Success: Connection to Mollie successful!"; +$_['text_error'] = "Warning: Something went wrong. Please try again later!"; +$_['text_creditcard_required'] = "Requires Credit Card"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "General"; // Entry $_['entry_payment_method'] = "Payment method"; @@ -94,14 +105,21 @@ $_['entry_show_icons'] = "Show icons"; $_['entry_show_order_canceled_page'] = "Show message if payment is cancelled"; $_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Payment screen default language"; // Help -$_['help_view_profile'] = 'You can find your API key in your Mollie website profiles.'; +$_['help_view_profile'] = 'You can find your API key in your Mollie website profiles.'; $_['help_status'] = "Activate the module"; $_['help_api_key'] = 'Enter the api_key of the website profile you want to use. The API key starts with test_ or live_.'; $_['help_description'] = 'This description will appear on the bank / card statement of your customer. You may use a maximum of 29 characters. TIP: Use %, this will be replaced by the order id of the payment. Don\'t forget % can be multiple characters long!'; $_['help_show_icons'] = 'Show icons next to the Mollie payment methods on the checkout page.'; $_['help_show_order_canceled_page'] = 'Show a message to the customer if a payment is cancelled, before redirecting the customer back to their shopping cart.'; +$_['help_redirect_uri'] = 'Redirect URI in your mollie dashboard must match with this URI.'; +$_['help_mollie_app'] = 'By registering your module as an App on the Mollie dashboard, you will unlock added functionalities. This is not required to use Mollie payments.'; +$_['help_apple_pay'] = 'Apple Pay requires credit card to be enabled on your website profile. Please enable credit card method first.'; // Info $_['entry_module'] = "Module"; @@ -124,6 +142,7 @@ $_['entry_canceled_status'] = "Payment canceled status"; $_['entry_expired_status'] = "Payment expired status"; $_['entry_processing_status'] = "Payment successful status"; +$_['entry_refund_status'] = "Payment refund status"; $_['entry_shipping_status'] = "Order shipped status"; $_['entry_shipment'] = "Create shipment"; @@ -137,3 +156,10 @@ //Button $_['button_update'] = "Update"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Success: You have successfully cleared your mollie log!'; +$_['text_log_list'] = 'Log'; +$_['error_log_warning'] = 'Warning: Your mollie log file %s is %s!'; +$_['button_download'] = 'Download'; diff --git a/admin/language/en-gb/payment/mollie_applepay.php b/admin/language/en-gb/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/en-gb/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Settings tab."; -$_['text_activate_payment_method'] = 'Enable this payment method in your Mollie dashboard.'; +$_['text_enable_payment_method'] = 'Enable this payment method in your Mollie dashboard.'; +$_['text_activate_payment_method'] = 'Enable in Mollie dashboard, or configure the App in the Settings tab to enable on this page.'; $_['text_no_status_id'] = "- Do not update the order status (not recommended) -"; +$_['text_enable'] = "Enable"; +$_['text_disable'] = "Disable"; +$_['text_connection_success'] = "Success: Connection to Mollie successful!"; +$_['text_error'] = "Warning: Something went wrong. Please try again later!"; +$_['text_creditcard_required'] = "Requires Credit Card"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "General"; // Entry $_['entry_payment_method'] = "Payment method"; @@ -94,14 +105,21 @@ $_['entry_show_icons'] = "Show icons"; $_['entry_show_order_canceled_page'] = "Show message if payment is cancelled"; $_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Payment screen default language"; // Help -$_['help_view_profile'] = 'You can find your API key in your Mollie website profiles.'; +$_['help_view_profile'] = 'You can find your API key in your Mollie website profiles.'; $_['help_status'] = "Activate the module"; $_['help_api_key'] = 'Enter the api_key of the website profile you want to use. The API key starts with test_ or live_.'; $_['help_description'] = 'This description will appear on the bank / card statement of your customer. You may use a maximum of 29 characters. TIP: Use %, this will be replaced by the order id of the payment. Don\'t forget % can be multiple characters long!'; $_['help_show_icons'] = 'Show icons next to the Mollie payment methods on the checkout page.'; $_['help_show_order_canceled_page'] = 'Show a message to the customer if a payment is cancelled, before redirecting the customer back to their shopping cart.'; +$_['help_redirect_uri'] = 'Redirect URI in your mollie dashboard must match with this URI.'; +$_['help_mollie_app'] = 'By registering your module as an App on the Mollie dashboard, you will unlock added functionalities. This is not required to use Mollie payments.'; +$_['help_apple_pay'] = 'Apple Pay requires credit card to be enabled on your website profile. Please enable credit card method first.'; // Info $_['entry_module'] = "Module"; @@ -124,6 +142,7 @@ $_['entry_canceled_status'] = "Payment canceled status"; $_['entry_expired_status'] = "Payment expired status"; $_['entry_processing_status'] = "Payment successful status"; +$_['entry_refund_status'] = "Payment refund status"; $_['entry_shipping_status'] = "Order shipped status"; $_['entry_shipment'] = "Create shipment"; @@ -137,3 +156,10 @@ //Button $_['button_update'] = "Update"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Success: You have successfully cleared your mollie log!'; +$_['text_log_list'] = 'Log'; +$_['error_log_warning'] = 'Warning: Your mollie log file %s is %s!'; +$_['button_download'] = 'Download'; diff --git a/admin/language/english/payment/mollie_applepay.php b/admin/language/english/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/english/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Configuración."; -$_['text_activate_payment_method'] = 'Active esta forma de pago a través del panel de control de Mollie.'; +$_['text_enable_payment_method'] = 'Active esta forma de pago a través del panel de control de Mollie.'; +$_['text_activate_payment_method'] = 'Habilite en el Dashboard de Mollie, o configure la App en la pestaña de configuración para habilitar en esta página.'; $_['text_no_status_id'] = "- No cambiar de estado (no recomendado) -"; +$_['text_enable'] = "Activar"; +$_['text_disable'] = "Desactivar"; +$_['text_connection_success'] = "Éxito: ¡La conexión con Mollie tiene éxito!"; +$_['text_error'] = "Advertencia: algo salió mal. ¡Por favor, inténtelo de nuevo más tarde!"; +$_['text_creditcard_required'] = "Requiere tarjeta de crédito"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "General"; // Entry $_['entry_payment_method'] = "Método de pago"; @@ -94,16 +105,23 @@ $_['entry_show_icons'] = "Mostrar iconos"; $_['entry_show_order_canceled_page'] = "Mostrar notificación en caso de cancelación de pagos"; $_['entry_geo_zone'] = "Zona Geo"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Idioma predeterminado de la pantalla de pago"; // Help -$_['help_view_profile'] = 'Puede encontrar su clave API en sus +$_['help_view_profile'] = 'Puede encontrar su clave API en sus perfiles de la web de Mollie.'; $_['help_status'] = "Activar módulo"; $_['help_api_key'] = "Introduzca aquí la clave_api del perfil de la web que desea utilizar. La clave API comienza con test_ o live_."; $_['help_description'] = "La descripción aparecerá en el estado de cuenta de su cliente y se puede encontrar en la administración de Mollie. Puede utilizar hasta 29 caracteres. CONSEJO: Use%, que será reemplazado por el número de pedido. ¡El número de pedido puede tener algunos caracteres más!"; $_['help_show_icons'] = "Mostrar iconos junto a los métodos de pago de Mollie en la página de pago."; $_['help_show_order_canceled_page'] = "Mostrar una notificación al cliente si un pago es cancelado, antes de redirigir al cliente de nuevo a la cesta de la compra."; +$_['help_redirect_uri'] = 'La redirección de URI en su panel de control de mollie debe coincidir con esta URI.'; +$_['help_mollie_app'] = 'Al registrar su módulo como una aplicación en el panel de Mollie, desbloqueará funcionalidades adicionales. Esto no es necesario para utilizar los pagos de Mollie.'; +$_['help_apple_pay'] = 'Apple Pay requiere que la tarjeta de crédito esté habilitada en el perfil de su sitio web. Por favor, active primero el método de tarjeta de crédito.'; // Info $_['entry_module'] = "Module"; @@ -126,6 +144,7 @@ $_['entry_canceled_status'] = "Estado del pago fallido"; $_['entry_expired_status'] = "Estado del pago cancelado"; $_['entry_processing_status']= "Estado del pago vencido"; +$_['entry_refund_status'] = "Estado del pago reembolso"; $_['entry_shipping_status'] = "Estado del pedido enviado"; $_['entry_shipment'] = "Crear envío"; @@ -139,3 +158,10 @@ //Button $_['button_update'] = "Actualizar"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Éxito: ¡Ha borrado con éxito su registro de errores!'; +$_['text_log_list'] = 'Lista de errores'; +$_['error_log_warning'] = 'Advertencia: ¡Su archivo de registro de errores %s es %s!'; +$_['button_download'] = 'Descargar'; diff --git a/admin/language/es-es/payment/mollie_applepay.php b/admin/language/es-es/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/es-es/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Paramètres."; -$_['text_activate_payment_method'] = 'Activer ce mode de paiement via le Mollie dashboard.'; +$_['text_enable_payment_method'] = 'Activer ce mode de paiement via le Mollie dashboard.'; +$_['text_activate_payment_method'] = 'Activer dans le tableau de bord Mollie ou configurer l\'application dans l\'onglet "reglages" pour l\'activer sur cette page.'; $_['text_no_status_id'] = '- Ne pas mettre à jour le statut (non recommandé) -'; +$_['text_enable'] = "Activer"; +$_['text_disable'] = "Désactiver"; +$_['text_connection_success'] = "Succès: Connexion à Mollie réussie!"; +$_['text_error'] = "Avertissement: quelque chose s'est mal passé. Veuillez réessayer plus tard!"; +$_['text_creditcard_required'] = "Nécessite une carte de crédit"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "Général"; // Entry $_['entry_payment_method'] = "Procédé de paiement"; @@ -93,14 +104,22 @@ $_['entry_description'] = "Description"; $_['entry_show_icons'] = "Afficher des icônes"; $_['entry_show_order_canceled_page'] = "Afficher un message si le paiement est annulé"; +$_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Langue par défaut de l'écran de paiement"; // Help -$_['help_view_profile'] = 'Vous pouvez trouver votre clé API dans vos profils de site à Mollie.'; +$_['help_view_profile'] = 'Vous pouvez trouver votre clé API dans vos profils de site à Mollie.'; $_['help_status'] = "Activer le module"; $_['help_api_key'] = 'Entrer ici le api_key du profil que vous souhaitez utiliser. Le clé API commence par test_ ou live_.'; $_['help_description'] = 'Cette description apparaîtra sur le relevé bancaire de votre client. Vous pouvez utiliser un maximum de 29 caractères. ASTUCE: Utilisez le %, il sera remplacé par l\'id de la commande du paiement. N\'oubliez pas que %/code> peut devenir plusieurs caractères!'; $_['help_show_icons'] = 'Afficher les icônes à côté des méthodes de paiement Mollie sur la page de paiement.'; $_['help_show_order_canceled_page'] = 'Afficher un message au client si un paiement est annulé, avant de rediriger le client vers leur panier.'; +$_['help_redirect_uri'] = 'L\'URI de redirection dans votre tableau de bord mollie doit correspondre à cet URI.'; +$_['help_mollie_app'] = 'En enregistrant votre module en tant qu\'application sur le tableau de bord Mollie, vous débloquerez des fonctionnalités ajoutées. Ce n\'est pas nécessaire pour utiliser les paiements Mollie.'; +$_['help_apple_pay'] = 'Apple Pay nécessite que la carte de crédit soit activée sur le profil de votre site Web. Veuillez activer la méthode de paiement carte de crédit en premier.'; // Info $_['entry_module'] = "Module"; @@ -123,6 +142,7 @@ $_['entry_canceled_status'] = "État de paiement annulé"; $_['entry_expired_status'] = "État de paiement expiré"; $_['entry_processing_status'] = "État de paiement traitement"; +$_['entry_refund_status'] = "État de paiement rembourser"; $_['entry_shipping_status'] = "Statut de la commande expédiée"; $_['entry_shipment'] = "Créer un envoi"; @@ -136,3 +156,10 @@ //Button $_['button_update'] = "Mettre à jour"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Succès: vous avez effacé avec succès votre journal des erreurs!'; +$_['text_log_list'] = 'Liste des erreurs'; +$_['error_log_warning'] = 'Avertissement: votre fichier journal d\'erreur %s est %s!'; +$_['button_download'] = 'Télécharger'; diff --git a/admin/language/fr-fr/payment/mollie_applepay.php b/admin/language/fr-fr/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/fr-fr/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Paramètres."; -$_['text_activate_payment_method'] = 'Activer ce mode de paiement via le Mollie dashboard.'; +$_['text_enable_payment_method'] = 'Activer ce mode de paiement via le Mollie dashboard.'; +$_['text_activate_payment_method'] = 'Activer dans le tableau de bord Mollie ou configurer l\'application dans l\'onglet "reglages" pour l\'activer sur cette page.'; $_['text_no_status_id'] = '- Ne pas mettre à jour le statut (non recommandé) -'; +$_['text_enable'] = "Activer"; +$_['text_disable'] = "Désactiver"; +$_['text_connection_success'] = "Succès: Connexion à Mollie réussie!"; +$_['text_error'] = "Avertissement: quelque chose s'est mal passé. Veuillez réessayer plus tard!"; +$_['text_creditcard_required'] = "Nécessite une carte de crédit"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "Général"; // Entry $_['entry_payment_method'] = "Procédé de paiement"; @@ -93,14 +104,22 @@ $_['entry_description'] = "Description"; $_['entry_show_icons'] = "Afficher des icônes"; $_['entry_show_order_canceled_page'] = "Afficher un message si le paiement est annulé"; +$_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Langue par défaut de l'écran de paiement"; // Help -$_['help_view_profile'] = 'Vous pouvez trouver votre clé API dans vos profils de site à Mollie.'; +$_['help_view_profile'] = 'Vous pouvez trouver votre clé API dans vos profils de site à Mollie.'; $_['help_status'] = "Activer le module"; $_['help_api_key'] = 'Entrer ici le api_key du profil que vous souhaitez utiliser. Le clé API commence par test_ ou live_.'; $_['help_description'] = 'Cette description apparaîtra sur le relevé bancaire de votre client. Vous pouvez utiliser un maximum de 29 caractères. ASTUCE: Utilisez le %, il sera remplacé par l\'id de la commande du paiement. N\'oubliez pas que %/code> peut devenir plusieurs caractères!'; $_['help_show_icons'] = 'Afficher les icônes à côté des méthodes de paiement Mollie sur la page de paiement.'; $_['help_show_order_canceled_page'] = 'Afficher un message au client si un paiement est annulé, avant de rediriger le client vers leur panier.'; +$_['help_redirect_uri'] = 'L\'URI de redirection dans votre tableau de bord mollie doit correspondre à cet URI.'; +$_['help_mollie_app'] = 'En enregistrant votre module en tant qu\'application sur le tableau de bord Mollie, vous débloquerez des fonctionnalités ajoutées. Ce n\'est pas nécessaire pour utiliser les paiements Mollie.'; +$_['help_apple_pay'] = 'Apple Pay nécessite que la carte de crédit soit activée sur le profil de votre site Web. Veuillez activer la méthode de paiement carte de crédit en premier.'; // Info $_['entry_module'] = "Module"; @@ -123,6 +142,7 @@ $_['entry_canceled_status'] = "État de paiement annulé"; $_['entry_expired_status'] = "État de paiement expiré"; $_['entry_processing_status'] = "État de paiement traitement"; +$_['entry_refund_status'] = "État de paiement rembourser"; $_['entry_shipping_status'] = "Statut de la commande expédiée"; $_['entry_shipment'] = "Créer un envoi"; @@ -136,3 +156,10 @@ //Button $_['button_update'] = "Mettre à jour"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Succès: vous avez effacé avec succès votre journal des erreurs!'; +$_['text_log_list'] = 'Liste des erreurs'; +$_['error_log_warning'] = 'Avertissement: votre fichier journal d\'erreur %s est %s!'; +$_['button_download'] = 'Télécharger'; diff --git a/admin/language/french/payment/mollie_applepay.php b/admin/language/french/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/french/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Einstellungen aus."; -$_['text_activate_payment_method'] = 'Aktivieren Sie diese Zahlungsart über das Mollie Dashboard.'; +$_['text_enable_payment_method'] = 'Aktivieren Sie diese Zahlungsart über das Mollie Dashboard.'; +$_['text_activate_payment_method'] = 'Im Mollie Dashboard oder die App unter “Einstellungen” konfigurieren, um es auf dieser Seite zu aktivieren.'; $_['text_no_status_id'] = "- Status nicht ändern (nicht empfohlen) -"; +$_['text_enable'] = "Aktivieren"; +$_['text_disable'] = "Deaktivieren"; +$_['text_connection_success'] = "Erfolg: Verbindung zu Mollie erfolgreich!"; +$_['text_error'] = "Warnung: Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später noch einmal!"; +$_['text_creditcard_required'] = "Kreditkarte erforderlich"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "Allgemeines"; // Entry $_['entry_payment_method'] = "Zahlungsart"; @@ -94,14 +105,21 @@ $_['entry_show_icons'] = "Icons anzeigen"; $_['entry_show_order_canceled_page'] = "Meldung bei annullierten Bezahlungen anzeigen"; $_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Standardsprache des Zahlungsbildschirms"; // Help -$_['help_view_profile'] = 'Sie können Ihren API Key auf Ihren Mollie-Webseiten-Profilen finden.'; +$_['help_view_profile'] = 'Sie können Ihren API Key auf Ihren Mollie-Webseiten-Profilen finden.'; $_['help_status'] = "Das Modul aktivieren"; $_['help_api_key'] = "Geben Sie hier den api_key des Webseiten-Profils ein, das Sie verwenden wollen. Der API Key beginnt mit test_ oder live_."; $_['help_description'] = "Die Beschreibung soll auf der Banküberweisung Ihres Kunden erscheinen und Sie können sie in der Mollie Verwaltung sehen. Sie können maximal 29 Zeichen verwenden. TIPP: Verwenden Sie %, dies wird durch die Auftragsnummer ersetzt werden. Die Auftragsnummer selbst kann auch mehrere Zeichen lang sein!"; $_['help_show_icons'] = "Icons neben den Zahlungsarten von Mollie auf der Zahlungsseite anzeigen."; $_['help_show_order_canceled_page'] = "Eine Meldung für den Kunden anzeigen, wenn eine Zahlung annulliert wurde, bevor der Kunde zurück zum Warenkorb verwiesen wird."; +$_['help_redirect_uri'] = 'Der Redirect-URI in Ihrem Mollie-Dashboard muss mit diesem URI übereinstimmen.'; +$_['help_mollie_app'] = 'Wenn Sie Ihr Modul als App im Mollie-Dashboard registrieren, werden zusätzliche Funktionen freigeschaltet. Dies ist nicht erforderlich, um Mollie-Zahlungen zu verwenden.'; +$_['help_apple_pay'] = 'Apple Pay benötigt die Aktivierung der Kreditkartenzahlung in Ihrem Webprofil. Bitte schalten Sie zunächst die Kreditkarten Methode frei.'; // Info $_['entry_module'] = "Module"; @@ -124,6 +142,7 @@ $_['entry_canceled_status'] = "Status Zahlung annulliert"; $_['entry_expired_status'] = "Status Zahlung verstrichen"; $_['entry_processing_status']= "Status Zahlung erfolgreich"; +$_['entry_refund_status'] = "Status Zahlung rückerstattung"; $_['entry_shipping_status'] = "Versandstatus der Bestellung"; $_['entry_shipment'] = "Sendung erstellen"; @@ -137,3 +156,10 @@ //Button $_['button_update'] = "Aktualisieren"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Erfolg: Sie haben Ihr Fehlerprotokoll erfolgreich gelöscht!'; +$_['text_log_list'] = 'Fehlerliste'; +$_['error_log_warning'] = 'Warnung: Ihre Fehlerprotokolldatei %s ist %s!'; +$_['button_download'] = 'Herunterladen'; diff --git a/admin/language/german/payment/mollie_applepay.php b/admin/language/german/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/german/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Instellingen."; -$_['text_activate_payment_method'] = 'Activeer deze betaalmethode via het Mollie-dashboard.'; +$_['text_enable_payment_method'] = 'Activeer deze betaalmethode via het Mollie-dashboard.'; +$_['text_activate_payment_method'] = 'Activeer via het Mollie dashboard, of stel de App in via de instellingen van deze module om deze pagina te activeren.'; $_['text_no_status_id'] = "- Status niet wijzigen (niet aanbevolen) -"; +$_['text_enable'] = "Activeren"; +$_['text_disable'] = "Deactiveren"; +$_['text_connection_success'] = "Succes: verbinding met Mollie gelukt!"; +$_['text_error'] = "Waarschuwing: er is iets misgegaan. Probeer het later opnieuw!"; +$_['text_creditcard_required'] = "Credit Card verplicht"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "Algemeen"; // Entry $_['entry_payment_method'] = "Betaalmethode"; @@ -94,14 +105,21 @@ $_['entry_show_icons'] = "Toon icoontjes"; $_['entry_show_order_canceled_page'] = "Toon melding bij geannuleerde betalingen"; $_['entry_geo_zone'] = "Geo Zone"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Standaardtaal betaalscherm"; // Help -$_['help_view_profile'] = 'U kunt uw API-sleutel vinden bij uw Mollie-websiteprofielen.'; +$_['help_view_profile'] = 'U kunt uw API-sleutel vinden bij uw Mollie-websiteprofielen.'; $_['help_status'] = "Activeer de module"; $_['help_api_key'] = "Voer hier de api_key van het websiteprofiel in dat u wilt gebruiken. De API-sleutel begint met test_ of live_."; $_['help_description'] = "De omschrijving zal op het bankafschrift van uw klant verschijnen en kunt u terugvinden in het Mollie beheer. U kunt maximaal 29 tekens gebruiken. TIP: Gebruik %, dit zal vervangen worden door het ordernummer. Het ordernummer kan zelf ook meerdere tekens lang zijn!"; $_['help_show_icons'] = "Toon icoontjes naast de betaalmethodes van Mollie op de betaalpagina."; $_['help_show_order_canceled_page'] = "Toon een melding aan de klant als een betaling geannuleerd wordt, alvorens de klant terug naar het winkelmandje te verwijzen."; +$_['help_redirect_uri'] = 'URI omleiden in uw mollie-dashboard moet overeenkomen met deze URI.'; +$_['help_mollie_app'] = 'Door uw module te registreren als een app op het Mollie-dashboard, ontgrendeld u extra functionaliteiten. Dit is niet vereist om Mollie-betalingen te gebruiken.'; +$_['help_apple_pay'] = 'Voor Apple Pay dient credit card betaling geactiveerd te zijn op uw Mollie profiel. Activeer Credit Cards eerst.'; // Info $_['entry_module'] = "Module"; @@ -124,6 +142,7 @@ $_['entry_canceled_status'] = "Status betaling geannuleerd"; $_['entry_expired_status'] = "Status betaling verlopen"; $_['entry_processing_status']= "Status betaling succesvol"; +$_['entry_refund_status'] = "Status betaling terugbetaling"; $_['entry_shipping_status'] = "Status bestelling verzonden"; $_['entry_shipment'] = "Maak verzending"; @@ -137,3 +156,10 @@ //Button $_['button_update'] = "Bijwerken"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Succes: u hebt met succes uw foutenlogboek gewist!'; +$_['text_log_list'] = 'Foutenlijst'; +$_['error_log_warning'] = 'Waarschuwing: uw foutenlogbestand %s is %s!'; +$_['button_download'] = 'Download'; diff --git a/admin/language/nl-nl/payment/mollie_applepay.php b/admin/language/nl-nl/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/nl-nl/payment/mollie_applepay.php @@ -0,0 +1,4 @@ +Configuración."; -$_['text_activate_payment_method'] = 'Active esta forma de pago a través del panel de control de Mollie.'; +$_['text_enable_payment_method'] = 'Active esta forma de pago a través del panel de control de Mollie.'; +$_['text_activate_payment_method'] = 'Habilite en el Dashboard de Mollie, o configure la App en la pestaña de configuración para habilitar en esta página.'; $_['text_no_status_id'] = "- No cambiar de estado (no recomendado) -"; +$_['text_enable'] = "Activar"; +$_['text_disable'] = "Desactivar"; +$_['text_connection_success'] = "Éxito: ¡La conexión con Mollie tiene éxito!"; +$_['text_error'] = "Advertencia: algo salió mal. ¡Por favor, inténtelo de nuevo más tarde!"; +$_['text_creditcard_required'] = "Requiere tarjeta de crédito"; +$_['text_mollie_api'] = "Mollie API"; +$_['text_mollie_app'] = "Mollie App"; +$_['text_general'] = "General"; // Entry $_['entry_payment_method'] = "Método de pago"; @@ -94,16 +105,23 @@ $_['entry_show_icons'] = "Mostrar iconos"; $_['entry_show_order_canceled_page'] = "Mostrar notificación en caso de cancelación de pagos"; $_['entry_geo_zone'] = "Zona Geo"; +$_['entry_client_id'] = "Client ID"; +$_['entry_client_secret'] = "Client Secret"; +$_['entry_redirect_uri'] = "Redirect URI"; +$_['entry_payment_screen_language'] = "Idioma predeterminado de la pantalla de pago"; // Help -$_['help_view_profile'] = 'Puede encontrar su clave API en sus +$_['help_view_profile'] = 'Puede encontrar su clave API en sus perfiles de la web de Mollie.'; $_['help_status'] = "Activar módulo"; $_['help_api_key'] = "Introduzca aquí la clave_api del perfil de la web que desea utilizar. La clave API comienza con test_ o live_."; $_['help_description'] = "La descripción aparecerá en el estado de cuenta de su cliente y se puede encontrar en la administración de Mollie. Puede utilizar hasta 29 caracteres. CONSEJO: Use%, que será reemplazado por el número de pedido. ¡El número de pedido puede tener algunos caracteres más!"; $_['help_show_icons'] = "Mostrar iconos junto a los métodos de pago de Mollie en la página de pago."; $_['help_show_order_canceled_page'] = "Mostrar una notificación al cliente si un pago es cancelado, antes de redirigir al cliente de nuevo a la cesta de la compra."; +$_['help_redirect_uri'] = 'La redirección de URI en su panel de control de mollie debe coincidir con esta URI.'; +$_['help_mollie_app'] = 'Al registrar su módulo como una aplicación en el panel de Mollie, desbloqueará funcionalidades adicionales. Esto no es necesario para utilizar los pagos de Mollie.'; +$_['help_apple_pay'] = 'Apple Pay requiere que la tarjeta de crédito esté habilitada en el perfil de su sitio web. Por favor, active primero el método de tarjeta de crédito.'; // Info $_['entry_module'] = "Module"; @@ -126,6 +144,7 @@ $_['entry_canceled_status'] = "Estado del pago fallido"; $_['entry_expired_status'] = "Estado del pago cancelado"; $_['entry_processing_status']= "Estado del pago vencido"; +$_['entry_refund_status'] = "Estado del pago reembolso"; $_['entry_shipping_status'] = "Estado del pedido enviado"; $_['entry_shipment'] = "Crear envío"; @@ -139,3 +158,10 @@ //Button $_['button_update'] = "Actualizar"; +$_['button_mollie_connect'] = "Connect via Mollie"; + +//Error log +$_['text_log_success'] = 'Éxito: ¡Ha borrado con éxito su registro de errores!'; +$_['text_log_list'] = 'Lista de errores'; +$_['error_log_warning'] = 'Advertencia: ¡Su archivo de registro de errores %s es %s!'; +$_['button_download'] = 'Descargar'; diff --git a/admin/language/spanish/payment/mollie_applepay.php b/admin/language/spanish/payment/mollie_applepay.php new file mode 100644 index 00000000..021719fc --- /dev/null +++ b/admin/language/spanish/payment/mollie_applepay.php @@ -0,0 +1,4 @@ + + +
+ +
+ + +
+ +
+ +

@@ -48,6 +59,10 @@ Support
+ + <?php echo $button_mollie_connect; ?> + +
@@ -60,17 +75,30 @@
+ + +
- - - - - - - - style="cursor:pointer;" /> + + + + + + + + style="cursor:pointer;" /> + + + + + + + + + +
- - - - - - - - -
-
-
- -
-
- +
-
- -data-payment-mollie-api-key/> -
- -
- -
-
-
- -
- - -
- -
-
-
- -
- + + + + + +
+
- +
- + + + + + +
-
- -
- +
+ +
+
+ +
+ +
+
+ -data-payment-mollie-api-key/>
+ +
+
-
- -
- -data-payment-mollie-client-id/> +
+
+ +
+ +
+ -data-payment-mollie-client-secret/> +
+
+ +
+ +
+ +
+
+ + +
+
+ +
+ +
+ + +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
-
+
+ +
+ +
+
+
@@ -322,6 +410,15 @@
+
+
+

+
+
+
+ +
+
diff --git a/admin/view/template/payment/mollie.tpl b/admin/view/template/payment/mollie.tpl index ba326882..42dfe93b 100644 --- a/admin/view/template/payment/mollie.tpl +++ b/admin/view/template/payment/mollie.tpl @@ -35,6 +35,16 @@ + +
+ +
+ + +
+ +
+

@@ -55,6 +65,9 @@
  • Support
  • + + <?php echo $button_mollie_connect; ?> +
    @@ -68,8 +81,11 @@ $payment_method) { ?>
    - + + + +
    @@ -78,9 +94,19 @@ - + + + style="cursor:pointer;" /> + + + + + + + + - style="cursor:pointer;" /> +
    -
    -
    -
    - -
    -
    - ' : '' ;?> - -data-payment-mollie-api-key/> -
    - -
    - -
    -
    -
    - -
    - - -
    - -
    -
    - +
    - + + + + + +
    -
    - -
    - -data-payment-mollie-api-key/> +
    + +
    - +
    -
    -
    - -
    - -data-payment-mollie-client-id/> +
    +
    + +
    + +
    + -data-payment-mollie-client-secret/> +
    +
    + +
    + +
    + +
    +
    + + + +
    + +
    + +
    + + +
    - +
    -
    -
    - -
    - + + + - + + - - + +
    - +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    @@ -333,6 +419,19 @@
    +
    +
    +

    + +
    + + +
    +
    +
    + +
    +
    diff --git a/catalog/controller/extension/payment/mollie_applepay.php b/catalog/controller/extension/payment/mollie_applepay.php new file mode 100644 index 00000000..5a0d2691 --- /dev/null +++ b/catalog/controller/extension/payment/mollie_applepay.php @@ -0,0 +1,5 @@ +client); + } + /** + * Get the collection object that is used by this API endpoint. Every API endpoint uses one type of collection object. + * + * @param int $count + * @param object[] $_links + * + * @return ChargebackCollection + */ + protected function getResourceCollectionObject($count, $_links) + { + return new \Mollie\Api\Resources\ChargebackCollection($this->client, $count, $_links); + } + /** + * Retrieves a collection of Chargebacks from Mollie. + * + * @param string $from The first chargeback ID you want to include in your list. + * @param int $limit + * @param array $parameters + * + * @return ChargebackCollection + * @throws ApiException + */ + public function page($from = null, $limit = null, array $parameters = []) + { + return $this->rest_list($from, $limit, $parameters); + } +} diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/CollectionEndpointAbstract.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/CollectionEndpointAbstract.php new file mode 100644 index 00000000..d1b33bd9 --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/CollectionEndpointAbstract.php @@ -0,0 +1,17 @@ +parentId = $customer->id; + return $this->createForId($customer->id, $options, $filters); + } + /** + * Create a subscription for a Customer ID + * + * @param string $customerId + * @param array $options + * @param array $filters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Payment + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createForId($customerId, array $options = [], array $filters = []) + { + $this->parentId = $customerId; return parent::rest_create($options, $filters); } /** @@ -51,10 +65,24 @@ public function createFor(\Mollie\Api\Resources\Customer $customer, array $optio * @param array $parameters * * @return PaymentCollection + * @throws \Mollie\Api\Exceptions\ApiException */ public function listFor(\Mollie\Api\Resources\Customer $customer, $from = null, $limit = null, array $parameters = []) { - $this->parentId = $customer->id; + return $this->listForId($customer->id, $from, $limit, $parameters); + } + /** + * @param string $customerId + * @param string $from The first resource ID you want to include in your list. + * @param int $limit + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseCollection|\Mollie\Api\Resources\PaymentCollection + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function listForId($customerId, $from = null, $limit = null, array $parameters = []) + { + $this->parentId = $customerId; return parent::rest_list($from, $limit, $parameters); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/EndpointAbstract.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/EndpointAbstract.php index cc484dc2..e09523a4 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/EndpointAbstract.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/EndpointAbstract.php @@ -37,7 +37,7 @@ public function __construct(\Mollie\Api\MollieApiClient $api) * @param array $filters * @return string */ - private function buildQueryString(array $filters) + protected function buildQueryString(array $filters) { if (empty($filters)) { return ""; @@ -129,15 +129,6 @@ protected function rest_list($from = null, $limit = null, array $filters) * @return BaseResource */ protected abstract function getResourceObject(); - /** - * Get the collection object that is used by this API endpoint. Every API endpoint uses one type of collection object. - * - * @param int $count - * @param object[] $_links - * - * @return BaseCollection - */ - protected abstract function getResourceCollectionObject($count, $_links); /** * @param string $resourcePath */ @@ -171,7 +162,7 @@ protected function parseRequestBody(array $body) return null; } try { - $encoded = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\json_encode($body); + $encoded = \_PhpScoper5ce26f1fe2920\GuzzleHttp\json_encode($body); } catch (\InvalidArgumentException $e) { throw new \Mollie\Api\Exceptions\ApiException("Error encoding parameters into JSON: '" . $e->getMessage() . "'."); } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/InvoiceEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/InvoiceEndpoint.php index 14798e4e..f177ca14 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/InvoiceEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/InvoiceEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Invoice; use Mollie\Api\Resources\InvoiceCollection; -class InvoiceEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class InvoiceEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "invoices"; /** diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/MandateEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/MandateEndpoint.php index 840cdc5b..28f8aa77 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/MandateEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/MandateEndpoint.php @@ -6,7 +6,7 @@ use Mollie\Api\Resources\Customer; use Mollie\Api\Resources\Mandate; use Mollie\Api\Resources\MandateCollection; -class MandateEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class MandateEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "customers_mandates"; /** @@ -35,11 +35,24 @@ protected function getResourceCollectionObject($count, $_links) * @param array $options * @param array $filters * - * @return Mandate + * @return \Mollie\Api\Resources\Mandate + * @throws \Mollie\Api\Exceptions\ApiException */ public function createFor(\Mollie\Api\Resources\Customer $customer, array $options = [], array $filters = []) { - $this->parentId = $customer->id; + return $this->createForId($customer->id, $options, $filters); + } + /** + * @param string $customerId + * @param array $options + * @param array $filters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Mandate + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createForId($customerId, array $options = [], array $filters = []) + { + $this->parentId = $customerId; return parent::rest_create($options, $filters); } /** @@ -47,11 +60,24 @@ public function createFor(\Mollie\Api\Resources\Customer $customer, array $optio * @param string $mandateId * @param array $parameters * - * @return Mandate + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Mandate + * @throws \Mollie\Api\Exceptions\ApiException */ public function getFor(\Mollie\Api\Resources\Customer $customer, $mandateId, array $parameters = []) { - $this->parentId = $customer->id; + return $this->getForId($customer->id, $mandateId, $parameters); + } + /** + * @param string $customerId + * @param string $mandateId + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseResource + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function getForId($customerId, $mandateId, array $parameters = []) + { + $this->parentId = $customerId; return parent::rest_read($mandateId, $parameters); } /** @@ -60,24 +86,50 @@ public function getFor(\Mollie\Api\Resources\Customer $customer, $mandateId, arr * @param int $limit * @param array $parameters * - * @return MandateCollection + * @return \Mollie\Api\Resources\BaseCollection|\Mollie\Api\Resources\MandateCollection + * @throws \Mollie\Api\Exceptions\ApiException */ public function listFor(\Mollie\Api\Resources\Customer $customer, $from = null, $limit = null, array $parameters = []) { - $this->parentId = $customer->id; + return $this->listForId($customer->id, $from, $limit, $parameters); + } + /** + * @param string $customerId + * @param null $from + * @param null $limit + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseCollection + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function listForId($customerId, $from = null, $limit = null, array $parameters = []) + { + $this->parentId = $customerId; return parent::rest_list($from, $limit, $parameters); } /** * @param Customer $customer * @param string $mandateId - * * @param array $data + * * @return null * @throws \Mollie\Api\Exceptions\ApiException */ public function revokeFor(\Mollie\Api\Resources\Customer $customer, $mandateId, $data = []) { - $this->parentId = $customer->id; + return $this->revokeForId($customer->id, $mandateId, $data); + } + /** + * @param string $customerId + * @param string $mandateId + * @param array $data + * + * @return null + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function revokeForId($customerId, $mandateId, $data = []) + { + $this->parentId = $customerId; return parent::rest_delete($mandateId, $data); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/MethodEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/MethodEndpoint.php index ec6af81a..f1734ae1 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/MethodEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/MethodEndpoint.php @@ -5,7 +5,8 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Method; use Mollie\Api\Resources\MethodCollection; -class MethodEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +use Mollie\Api\Resources\ResourceFactory; +class MethodEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "methods"; /** @@ -15,6 +16,46 @@ protected function getResourceObject() { return new \Mollie\Api\Resources\Method($this->client); } + /** + * Retrieve all active methods. In test mode, this includes pending methods. The results are not paginated. + * + * @deprecated Use allActive() instead + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseCollection|\Mollie\Api\Resources\MethodCollection + * @throws ApiException + */ + public function all(array $parameters = []) + { + return $this->allActive($parameters); + } + /** + * Retrieve all active methods for the organization. In test mode, this includes pending methods. + * The results are not paginated. + * + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseCollection|\Mollie\Api\Resources\MethodCollection + * @throws ApiException + */ + public function allActive(array $parameters = []) + { + return parent::rest_list(null, null, $parameters); + } + /** + * Retrieve all available methods for the organization, including activated and not yet activated methods. The + * results are not paginated. Make sure to include the profileId parameter if using an OAuth Access Token. + * + * @param array $parameters Query string parameters. + * @return \Mollie\Api\Resources\BaseCollection|\Mollie\Api\Resources\MethodCollection + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function allAvailable(array $parameters = []) + { + $url = 'methods/all' . $this->buildQueryString($parameters); + $result = $this->client->performHttpCall('GET', $url); + return \Mollie\Api\Resources\ResourceFactory::createBaseResourceCollection($this->client, $result->_embedded->methods, \Mollie\Api\Resources\Method::class, $result->_links); + } /** * Get the collection object that is used by this API endpoint. Every API endpoint uses one type of collection object. * @@ -34,7 +75,7 @@ protected function getResourceCollectionObject($count, $_links) * * @param string $methodId * @param array $parameters - * @return Method + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Method * @throws ApiException */ public function get($methodId, array $parameters = []) @@ -44,16 +85,4 @@ public function get($methodId, array $parameters = []) } return parent::rest_read($methodId, $parameters); } - /** - * Retrieve all methods. - * - * @param array $parameters - * - * @return MethodCollection - * @throws ApiException - */ - public function all(array $parameters = []) - { - return parent::rest_list(null, null, $parameters); - } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/OnboardingEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/OnboardingEndpoint.php new file mode 100644 index 00000000..b540a49c --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/OnboardingEndpoint.php @@ -0,0 +1,57 @@ +client); + } + /** + * Retrieve the organization's onboarding status from Mollie. + * + * Will throw a ApiException if the resource cannot be found. + * + * @return Onboarding + * @throws ApiException + */ + public function get() + { + return $this->rest_read('', []); + } + /** + * Submit data that will be prefilled in the merchant’s onboarding. + * Please note that the data you submit will only be processed when the onboarding status is needs-data. + * + * Information that the merchant has entered in their dashboard will not be overwritten. + * + * Will throw a ApiException if the resource cannot be found. + * + * @return void + * @throws ApiException + */ + public function submit(array $parameters = []) + { + return $this->rest_create($parameters, []); + } + protected function rest_read($id, array $filters) + { + $result = $this->client->performHttpCall(self::REST_READ, $this->getResourcePath() . $this->buildQueryString($filters)); + return \Mollie\Api\Resources\ResourceFactory::createFromApiResult($result, $this->getResourceObject()); + } + protected function rest_create(array $body, array $filters) + { + $this->client->performHttpCall(self::REST_CREATE, $this->getResourcePath() . $this->buildQueryString($filters), $this->parseRequestBody($body)); + } +} diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderEndpoint.php index 99e72d46..4176ecfd 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Order; use Mollie\Api\Resources\OrderCollection; -class OrderEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class OrderEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "orders"; /** diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderLineEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderLineEndpoint.php index 29f97d36..6248ebd6 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderLineEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderLineEndpoint.php @@ -7,7 +7,7 @@ use Mollie\Api\Resources\OrderLine; use Mollie\Api\Resources\OrderLineCollection; use Mollie\Api\Resources\ResourceFactory; -class OrderLineEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class OrderLineEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "orders_lines"; /** @@ -50,11 +50,27 @@ protected function getResourceCollectionObject($count, $_links) * @throws ApiException */ public function cancelFor(\Mollie\Api\Resources\Order $order, array $data) + { + return $this->cancelForId($order->id, $data); + } + /** + * Cancel lines for the provided order id. + * The data array must contain a lines array. + * You can pass an empty lines array if you want to cancel all eligible lines. + * Returns null if successful. + * + * @param string $orderId + * @param array $data + * + * @return null + * @throws ApiException + */ + public function cancelForId($orderId, array $data) { if (!isset($data, $data['lines']) || !\is_array($data['lines'])) { throw new \Mollie\Api\Exceptions\ApiException("A lines array is required."); } - $this->parentId = $order->id; + $this->parentId = $orderId; $this->client->performHttpCall(self::REST_DELETE, "{$this->getResourcePath()}", $this->parseRequestBody($data)); return null; } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderPaymentEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderPaymentEndpoint.php new file mode 100644 index 00000000..ac4da845 --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderPaymentEndpoint.php @@ -0,0 +1,67 @@ +client); + } + /** + * Get the collection object that is used by this API endpoint. Every API + * endpoint uses one type of collection object. + * + * @param int $count + * @param object[] $_links + * + * @return \Mollie\Api\Resources\PaymentCollection + */ + protected function getResourceCollectionObject($count, $_links) + { + return new \Mollie\Api\Resources\PaymentCollection($this->client, $count, $_links); + } + /** + * Creates a payment in Mollie for a specific order. + * + * @param \Mollie\Api\Resources\Order $order + * @param array $data An array containing details on the order payment. + * @param array $filters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Payment + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createFor(\Mollie\Api\Resources\Order $order, array $data, array $filters = []) + { + return $this->createForId($order->id, $data, $filters); + } + /** + * Creates a payment in Mollie for a specific order ID. + * + * @param string $orderId + * @param array $data An array containing details on the order payment. + * @param array $filters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Payment + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createForId($orderId, array $data, array $filters = []) + { + $this->parentId = $orderId; + return $this->rest_create($data, $filters); + } +} diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderRefundEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderRefundEndpoint.php index 249016a0..b2ac0c0f 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderRefundEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrderRefundEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Resources\Order; use Mollie\Api\Resources\Refund; use Mollie\Api\Resources\RefundCollection; -class OrderRefundEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class OrderRefundEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "orders_refunds"; /** @@ -31,17 +31,33 @@ protected function getResourceCollectionObject($count, $_links) } /** * Refund some order lines. You can provide an empty array for the - * "lines" data to refund all eligable lines for this order. + * "lines" data to refund all eligible lines for this order. * * @param Order $order * @param array $data * @param array $filters * * @return Refund + * @throws \Mollie\Api\Exceptions\ApiException */ public function createFor(\Mollie\Api\Resources\Order $order, array $data, array $filters = []) { - $this->parentId = $order->id; + return $this->createForId($order->id, $data, $filters); + } + /** + * Refund some order lines. You can provide an empty array for the + * "lines" data to refund all eligible lines for this order. + * + * @param string $orderId + * @param array $data + * @param array $filters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Refund + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createForId($orderId, array $data, array $filters = []) + { + $this->parentId = $orderId; return parent::rest_create($data, $filters); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrganizationEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrganizationEndpoint.php index 42c7fbfb..0326f606 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/OrganizationEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/OrganizationEndpoint.php @@ -6,7 +6,7 @@ use Mollie\Api\Resources\Method; use Mollie\Api\Resources\Organization; use Mollie\Api\Resources\OrganizationCollection; -class OrganizationEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class OrganizationEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "organizations"; /** @@ -56,18 +56,4 @@ public function current(array $parameters = []) { return parent::rest_read('me', $parameters); } - /** - * Retrieves a collection of Organizations from Mollie. - * - * @param string $from The first organization ID you want to include in your list. - * @param int $limit - * @param array $parameters - * - * @return OrganizationCollection - * @throws ApiException - */ - public function page($from = null, $limit = null, array $parameters = []) - { - return $this->rest_list($from, $limit, $parameters); - } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentCaptureEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentCaptureEndpoint.php index 718c3cdd..cf1e55f6 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentCaptureEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentCaptureEndpoint.php @@ -3,8 +3,9 @@ namespace Mollie\Api\Endpoints; use Mollie\Api\Resources\Capture; +use Mollie\Api\Resources\CaptureCollection; use Mollie\Api\Resources\Payment; -class PaymentCaptureEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class PaymentCaptureEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "payments_captures"; /** @@ -22,11 +23,11 @@ protected function getResourceObject() * @param int $count * @param object[] $_links * - * @return CaptureCollection + * @return \Mollie\Api\Resources\CaptureCollection */ protected function getResourceCollectionObject($count, $_links) { - return new \Mollie\Api\Endpoints\CaptureCollection($this->client, $count, $_links); + return new \Mollie\Api\Resources\CaptureCollection($this->client, $count, $_links); } /** * @param Payment $payment @@ -34,10 +35,23 @@ protected function getResourceCollectionObject($count, $_links) * @param array $parameters * * @return Capture + * @throws \Mollie\Api\Exceptions\ApiException */ public function getFor(\Mollie\Api\Resources\Payment $payment, $captureId, array $parameters = []) { - $this->parentId = $payment->id; + return $this->getForId($payment->id, $captureId, $parameters); + } + /** + * @param string $paymentId + * @param string $captureId + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Capture + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function getForId($paymentId, $captureId, array $parameters = []) + { + $this->parentId = $paymentId; return parent::rest_read($captureId, $parameters); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentChargebackEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentChargebackEndpoint.php index b1be234c..326e54e5 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentChargebackEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentChargebackEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Resources\Chargeback; use Mollie\Api\Resources\ChargebackCollection; use Mollie\Api\Resources\Payment; -class PaymentChargebackEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class PaymentChargebackEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "payments_chargebacks"; /** @@ -35,10 +35,23 @@ protected function getResourceCollectionObject($count, $_links) * @param array $parameters * * @return Chargeback + * @throws \Mollie\Api\Exceptions\ApiException */ public function getFor(\Mollie\Api\Resources\Payment $payment, $chargebackId, array $parameters = []) { - $this->parentId = $payment->id; + return $this->getForId($payment->id, $chargebackId, $parameters); + } + /** + * @param string $paymentId + * @param string $chargebackId + * @param array $parameters + * + * @return Chargeback + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function getForId($paymentId, $chargebackId, array $parameters = []) + { + $this->parentId = $paymentId; return parent::rest_read($chargebackId, $parameters); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentEndpoint.php index 69f1e793..fffee94a 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentEndpoint.php @@ -7,7 +7,7 @@ use Mollie\Api\Resources\PaymentCollection; use Mollie\Api\Resources\Refund; use Mollie\Api\Resources\ResourceFactory; -class PaymentEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class PaymentEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "payments"; /** diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentRefundEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentRefundEndpoint.php index d4080a7d..0d996149 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentRefundEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/PaymentRefundEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Resources\Payment; use Mollie\Api\Resources\Refund; use Mollie\Api\Resources\RefundCollection; -class PaymentRefundEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class PaymentRefundEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "payments_refunds"; /** @@ -35,10 +35,23 @@ protected function getResourceCollectionObject($count, $_links) * @param array $parameters * * @return Refund + * @throws \Mollie\Api\Exceptions\ApiException */ public function getFor(\Mollie\Api\Resources\Payment $payment, $refundId, array $parameters = []) { - $this->parentId = $payment->id; + return $this->getForId($payment->id, $refundId, $parameters); + } + /** + * @param string $paymentId + * @param string $refundId + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Refund + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function getForId($paymentId, $refundId, array $parameters = []) + { + $this->parentId = $paymentId; return parent::rest_read($refundId, $parameters); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/PermissionEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/PermissionEndpoint.php index b30eaa9c..c88a4c41 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/PermissionEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/PermissionEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Permission; use Mollie\Api\Resources\PermissionCollection; -class PermissionEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class PermissionEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "permissions"; /** diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/ProfileEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/ProfileEndpoint.php index 63515c91..d89d955d 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/ProfileEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/ProfileEndpoint.php @@ -3,11 +3,13 @@ namespace Mollie\Api\Endpoints; use Mollie\Api\Exceptions\ApiException; +use Mollie\Api\Resources\CurrentProfile; use Mollie\Api\Resources\Profile; use Mollie\Api\Resources\ProfileCollection; -class ProfileEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class ProfileEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "profiles"; + protected $resourceClass = \Mollie\Api\Resources\Profile::class; /** * Get the object that is used by this API endpoint. Every API endpoint uses one type of object. * @@ -15,7 +17,7 @@ class ProfileEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract */ protected function getResourceObject() { - return new \Mollie\Api\Resources\Profile($this->client); + return new $this->resourceClass($this->client); } /** * Get the collection object that is used by this API endpoint. Every API endpoint uses one type of collection object. @@ -35,7 +37,7 @@ protected function getResourceCollectionObject($count, $_links) * @param array $data An array containing details on the profile. * @param array $filters * - * @return Profile + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Profile * @throws ApiException */ public function create(array $data = [], array $filters = []) @@ -45,18 +47,34 @@ public function create(array $data = [], array $filters = []) /** * Retrieve a Profile from Mollie. * - * Will throw a ApiException if the profile id is invalid or the resource cannot be found. + * Will throw an ApiException if the profile id is invalid or the resource cannot be found. * * @param string $profileId * @param array $parameters * - * @return Profile + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Profile * @throws ApiException */ public function get($profileId, array $parameters = []) { + if ($profileId === 'me') { + return $this->getCurrent($parameters); + } return $this->rest_read($profileId, $parameters); } + /** + * Retrieve the current Profile from Mollie. + * + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\CurrentProfile + * @throws ApiException + */ + public function getCurrent(array $parameters = []) + { + $this->resourceClass = \Mollie\Api\Resources\CurrentProfile::class; + return $this->rest_read('me', $parameters); + } /** * Delete a Profile from Mollie. * @@ -66,7 +84,7 @@ public function get($profileId, array $parameters = []) * @param string $profileId * * @param array $data - * @return Profile + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Profile * @throws ApiException */ public function delete($profileId, array $data = []) @@ -80,7 +98,7 @@ public function delete($profileId, array $data = []) * @param int $limit * @param array $parameters * - * @return ProfileCollection + * @return \Mollie\Api\Resources\BaseCollection|\Mollie\Api\Resources\ProfileCollection * @throws ApiException */ public function page($from = null, $limit = null, array $parameters = []) diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/ProfileMethodEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/ProfileMethodEndpoint.php new file mode 100644 index 00000000..2174098d --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/ProfileMethodEndpoint.php @@ -0,0 +1,117 @@ +client); + } + /** + * Get the collection object that is used by this API endpoint. Every API endpoint uses one type of collection object. + * + * @param int $count + * @param object[] $_links + * + * @return MethodCollection() + */ + protected function getResourceCollectionObject($count, $_links) + { + return new \Mollie\Api\Resources\MethodCollection($count, $_links); + } + /** + * Enable a method for the provided Profile ID. + * + * @param $profileId + * @param $methodId + * @param array $data + * @return \Mollie\Api\Resources\BaseResource + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createForId($profileId, $methodId, array $data = []) + { + $this->parentId = $profileId; + $resource = $this->getResourcePath() . '/' . \urlencode($methodId); + $body = null; + if (\count($data) > 0) { + $body = \json_encode($data); + } + $result = $this->client->performHttpCall(self::REST_CREATE, $resource, $body); + return \Mollie\Api\Resources\ResourceFactory::createFromApiResult($result, new \Mollie\Api\Resources\Method($this->client)); + } + /** + * Enable a method for the provided Profile object. + * + * @param Profile $profile + * @param string $methodId + * @param array $data + * @return Method + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createFor($profile, $methodId, array $data = []) + { + return $this->createForId($profile->id, $methodId, $data); + } + /** + * Enable a method for the current profile. + * + * @param $methodId + * @param array $data + * @return \Mollie\Api\Resources\BaseResource + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createForCurrentProfile($methodId, array $data = []) + { + return $this->createForId('me', $methodId, $data); + } + /** + * Disable a method for the provided Profile ID. + * + * @param $profileId + * @param $methodId + * @param array $data + * @return \Mollie\Api\Resources\BaseResource + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function deleteForId($profileId, $methodId, array $data = []) + { + $this->parentId = $profileId; + return $this->rest_delete($methodId, $data); + } + /** + * Disable a method for the provided Profile object. + * + * @param $profile + * @param $methodId + * @param array $data + * @return \Mollie\Api\Resources\BaseResource + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function deleteFor($profile, $methodId, array $data = []) + { + return $this->deleteForId($profile->id, $methodId, $data); + } + /** + * Disable a method for the current profile. + * + * @param $methodId + * @param array $data + * @return \Mollie\Api\Resources\BaseResource + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function deleteForCurrentProfile($methodId, array $data) + { + return $this->deleteForId('me', $methodId, $data); + } +} diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/RefundEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/RefundEndpoint.php index 318c8b8a..e56c09b0 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/RefundEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/RefundEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Refund; use Mollie\Api\Resources\RefundCollection; -class RefundEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class RefundEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "refunds"; /** diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/SettlementsEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/SettlementsEndpoint.php index d17600ab..1d56144d 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/SettlementsEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/SettlementsEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Settlement; use Mollie\Api\Resources\SettlementCollection; -class SettlementsEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class SettlementsEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "settlements"; /** diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/ShipmentEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/ShipmentEndpoint.php index 64b95c19..7d82771f 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/ShipmentEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/ShipmentEndpoint.php @@ -5,7 +5,7 @@ use Mollie\Api\Resources\Order; use Mollie\Api\Resources\Shipment; use Mollie\Api\Resources\ShipmentCollection; -class ShipmentEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class ShipmentEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "orders_shipments"; /** @@ -43,10 +43,26 @@ protected function getResourceCollectionObject($count, $_links) * @param array $filters * * @return Shipment + * @throws \Mollie\Api\Exceptions\ApiException */ public function createFor(\Mollie\Api\Resources\Order $order, array $options = [], array $filters = []) { - $this->parentId = $order->id; + return $this->createForId($order->id, $options, $filters); + } + /** + * Create a shipment for some order lines. You can provide an empty array for the + * "lines" option to include all unshipped lines for this order. + * + * @param string $orderId + * @param array $options + * @param array $filters + * + * @return Shipment + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createForId($orderId, array $options = [], array $filters = []) + { + $this->parentId = $orderId; return parent::rest_create($options, $filters); } /** @@ -57,10 +73,25 @@ public function createFor(\Mollie\Api\Resources\Order $order, array $options = [ * @param array $parameters * * @return Shipment + * @throws \Mollie\Api\Exceptions\ApiException */ public function getFor(\Mollie\Api\Resources\Order $order, $shipmentId, array $parameters = []) { - $this->parentId = $order->id; + return $this->getForId($order->id, $shipmentId, $parameters); + } + /** + * Retrieve a single shipment and the order lines shipped by a shipment’s ID. + * + * @param string $orderId + * @param string $shipmentId + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Shipment + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function getForId($orderId, $shipmentId, array $parameters = []) + { + $this->parentId = $orderId; return parent::rest_read($shipmentId, $parameters); } /** @@ -70,10 +101,24 @@ public function getFor(\Mollie\Api\Resources\Order $order, $shipmentId, array $p * @param array $parameters * * @return ShipmentCollection + * @throws \Mollie\Api\Exceptions\ApiException */ public function listFor(\Mollie\Api\Resources\Order $order, array $parameters = []) { - $this->parentId = $order->id; + return $this->listForId($order->id, $parameters); + } + /** + * Return all shipments for the provided Order id. + * + * @param string $orderId + * @param array $parameters + * + * @return \Mollie\Api\Resources\BaseCollection|\Mollie\Api\Resources\ShipmentCollection + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function listForId($orderId, array $parameters = []) + { + $this->parentId = $orderId; return parent::rest_list(null, null, $parameters); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Endpoints/SubscriptionEndpoint.php b/catalog/controller/payment/mollie-api-client/src/Endpoints/SubscriptionEndpoint.php index ebb9c8ec..bde5d5d7 100644 --- a/catalog/controller/payment/mollie-api-client/src/Endpoints/SubscriptionEndpoint.php +++ b/catalog/controller/payment/mollie-api-client/src/Endpoints/SubscriptionEndpoint.php @@ -7,7 +7,7 @@ use Mollie\Api\Resources\Customer; use Mollie\Api\Resources\Subscription; use Mollie\Api\Resources\SubscriptionCollection; -class SubscriptionEndpoint extends \Mollie\Api\Endpoints\EndpointAbstract +class SubscriptionEndpoint extends \Mollie\Api\Endpoints\CollectionEndpointAbstract { protected $resourcePath = "customers_subscriptions"; /** diff --git a/catalog/controller/payment/mollie-api-client/src/Exceptions/ApiException.php b/catalog/controller/payment/mollie-api-client/src/Exceptions/ApiException.php index 9eccf3cb..b61cb33f 100644 --- a/catalog/controller/payment/mollie-api-client/src/Exceptions/ApiException.php +++ b/catalog/controller/payment/mollie-api-client/src/Exceptions/ApiException.php @@ -2,6 +2,8 @@ namespace Mollie\Api\Exceptions; +use _PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Response; +use Throwable; class ApiException extends \Exception { /** @@ -9,40 +11,149 @@ class ApiException extends \Exception */ protected $field; /** - * @var string + * @var Response + */ + protected $response; + /** + * @var array */ - protected $documentationUrl; + protected $links = []; /** - * @param string $message - * @param int $code - * @param string|null $field - * @param string|null $documentationUrl + * @param string $message + * @param int $code + * @param string|null $field + * @param \GuzzleHttp\Psr7\Response|null $response * @param \Throwable|null $previous + * @throws \Mollie\Api\Exceptions\ApiException */ - public function __construct($message = "", $code = 0, $field = null, $documentationUrl = null, \Throwable $previous = null) + public function __construct($message = "", $code = 0, $field = null, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Response $response = null, \Throwable $previous = null) { if (!empty($field)) { $this->field = (string) $field; $message .= ". Field: {$this->field}"; } - if (!empty($documentationUrl)) { - $this->documentationUrl = (string) $documentationUrl; - $message .= ". Documentation: {$this->documentationUrl}"; + if (!empty($response)) { + $this->response = $response; + $object = static::parseResponseBody($this->response); + if (isset($object->_links)) { + foreach ($object->_links as $key => $value) { + $this->links[$key] = $value; + } + } + } + if ($this->hasLink('documentation')) { + $message .= ". Documentation: {$this->getDocumentationUrl()}"; } parent::__construct($message, $code, $previous); } /** - * @return string + * @param \GuzzleHttp\Exception\RequestException $guzzleException + * @param \Throwable $previous + * @return \Mollie\Api\Exceptions\ApiException + * @throws \Mollie\Api\Exceptions\ApiException + */ + public static function createFromGuzzleException($guzzleException, \Throwable $previous = null) + { + // Not all Guzzle Exceptions implement hasResponse() / getResponse() + if (\method_exists($guzzleException, 'hasResponse') && \method_exists($guzzleException, 'getResponse')) { + if ($guzzleException->hasResponse()) { + return static::createFromResponse($guzzleException->getResponse()); + } + } + return new static($guzzleException->getMessage(), $guzzleException->getCode(), null, $previous); + } + /** + * @param \Psr\Http\Message\ResponseInterface $response + * @param \Throwable|null $previous + * @return \Mollie\Api\Exceptions\ApiException + * @throws \Mollie\Api\Exceptions\ApiException + */ + public static function createFromResponse($response, \Throwable $previous = null) + { + $object = static::parseResponseBody($response); + $field = null; + if (!empty($object->field)) { + $field = $object->field; + } + return new static("Error executing API call ({$object->status}: {$object->title}): {$object->detail}", $response->getStatusCode(), $field, $response, $previous); + } + /** + * @return string|null */ public function getField() { return $this->field; } /** - * @return string + * @return string|null */ public function getDocumentationUrl() { - return $this->documentationUrl; + return $this->getUrl('documentation'); + } + /** + * @return string|null + */ + public function getDashboardUrl() + { + return $this->getUrl('dashboard'); + } + /** + * @return Response|null + */ + public function getResponse() + { + return $this->response; + } + /** + * @return bool + */ + public function hasResponse() + { + return $this->response !== null; + } + /** + * @param $key + * @return bool + */ + public function hasLink($key) + { + return \array_key_exists($key, $this->links); + } + /** + * @param $key + * @return mixed|null + */ + public function getLink($key) + { + if ($this->hasLink($key)) { + return $this->links[$key]; + } + return null; + } + /** + * @param $key + * @return null + */ + public function getUrl($key) + { + if ($this->hasLink($key)) { + return $this->getLink($key)->href; + } + return null; + } + /** + * @param $response + * @return mixed + * @throws \Mollie\Api\Exceptions\ApiException + */ + protected static function parseResponseBody($response) + { + $body = (string) $response->getBody(); + $object = @\json_decode($body); + if (\json_last_error() !== \JSON_ERROR_NONE) { + throw new static("Unable to decode Mollie response: '{$body}'."); + } + return $object; } } diff --git a/catalog/controller/payment/mollie-api-client/src/MollieApiClient.php b/catalog/controller/payment/mollie-api-client/src/MollieApiClient.php index aaf17ab5..665f6b22 100644 --- a/catalog/controller/payment/mollie-api-client/src/MollieApiClient.php +++ b/catalog/controller/payment/mollie-api-client/src/MollieApiClient.php @@ -2,17 +2,20 @@ namespace Mollie\Api; -use _PhpScoper5bbb1f4b001f3\GuzzleHttp\Client; -use _PhpScoper5bbb1f4b001f3\GuzzleHttp\ClientInterface; -use _PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\GuzzleException; -use _PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Request; +use _PhpScoper5ce26f1fe2920\GuzzleHttp\Client; +use _PhpScoper5ce26f1fe2920\GuzzleHttp\ClientInterface; +use _PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\GuzzleException; +use _PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Request; +use Mollie\Api\Endpoints\ChargebackEndpoint; use Mollie\Api\Endpoints\CustomerEndpoint; use Mollie\Api\Endpoints\CustomerPaymentsEndpoint; use Mollie\Api\Endpoints\InvoiceEndpoint; use Mollie\Api\Endpoints\MandateEndpoint; use Mollie\Api\Endpoints\MethodEndpoint; +use Mollie\Api\Endpoints\OnboardingEndpoint; use Mollie\Api\Endpoints\OrderEndpoint; use Mollie\Api\Endpoints\OrderLineEndpoint; +use Mollie\Api\Endpoints\OrderPaymentEndpoint; use Mollie\Api\Endpoints\OrderRefundEndpoint; use Mollie\Api\Endpoints\PaymentCaptureEndpoint; use Mollie\Api\Endpoints\OrganizationEndpoint; @@ -21,20 +24,21 @@ use Mollie\Api\Endpoints\PaymentRefundEndpoint; use Mollie\Api\Endpoints\PermissionEndpoint; use Mollie\Api\Endpoints\ProfileEndpoint; +use Mollie\Api\Endpoints\ProfileMethodEndpoint; use Mollie\Api\Endpoints\RefundEndpoint; use Mollie\Api\Endpoints\SettlementsEndpoint; use Mollie\Api\Endpoints\ShipmentEndpoint; use Mollie\Api\Endpoints\SubscriptionEndpoint; use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Exceptions\IncompatiblePlatform; -use _PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface; -use _PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface; +use _PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface; +use _PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface; class MollieApiClient { /** * Version of our client. */ - const CLIENT_VERSION = '2.1.2'; + const CLIENT_VERSION = '2.10.0'; /** * Endpoint of the remote API. */ @@ -78,6 +82,10 @@ class MollieApiClient * @var MethodEndpoint */ public $methods; + /** + * @var ProfileMethodEndpoint + */ + public $profileMethods; /** * RESTful Customers resource. * @@ -128,6 +136,12 @@ class MollieApiClient * @var InvoiceEndpoint */ public $invoices; + /** + * RESTful Onboarding resource. + * + * @var OnboardingEndpoint + */ + public $onboarding; /** * RESTful Order resource. * @@ -140,6 +154,12 @@ class MollieApiClient * @var OrderLineEndpoint */ public $orderLines; + /** + * RESTful OrderPayment resource. + * + * @var OrderPaymentEndpoint + */ + public $orderPayments; /** * RESTful Shipment resource. * @@ -164,10 +184,16 @@ class MollieApiClient * @var PaymentCaptureEndpoint */ public $paymentCaptures; + /** + * RESTful Chargebacks resource. + * + * @var ChargebackEndpoint + */ + public $chargebacks; /** * RESTful Payment Chargebacks resource. * - * @var PaymentChargebacksEndpoint + * @var PaymentChargebackEndpoint */ public $paymentChargebacks; /** @@ -199,20 +225,21 @@ class MollieApiClient * * @throws IncompatiblePlatform */ - public function __construct(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\ClientInterface $httpClient = null) + public function __construct(\_PhpScoper5ce26f1fe2920\GuzzleHttp\ClientInterface $httpClient = null) { - $this->httpClient = $httpClient ? $httpClient : new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Client([\_PhpScoper5bbb1f4b001f3\GuzzleHttp\RequestOptions::VERIFY => \_PhpScoper5bbb1f4b001f3\Composer\CaBundle\CaBundle::getBundledCaBundlePath(), \_PhpScoper5bbb1f4b001f3\GuzzleHttp\RequestOptions::TIMEOUT => self::TIMEOUT]); + $this->httpClient = $httpClient ? $httpClient : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Client([\_PhpScoper5ce26f1fe2920\GuzzleHttp\RequestOptions::VERIFY => \_PhpScoper5ce26f1fe2920\Composer\CaBundle\CaBundle::getBundledCaBundlePath(), \_PhpScoper5ce26f1fe2920\GuzzleHttp\RequestOptions::TIMEOUT => self::TIMEOUT]); $compatibilityChecker = new \Mollie\Api\CompatibilityChecker(); $compatibilityChecker->checkCompatibility(); $this->initializeEndpoints(); $this->addVersionString("Mollie/" . self::CLIENT_VERSION); $this->addVersionString("PHP/" . \phpversion()); - $this->addVersionString("Guzzle/" . \_PhpScoper5bbb1f4b001f3\GuzzleHttp\ClientInterface::VERSION); + $this->addVersionString("Guzzle/" . \_PhpScoper5ce26f1fe2920\GuzzleHttp\ClientInterface::VERSION); } public function initializeEndpoints() { $this->payments = new \Mollie\Api\Endpoints\PaymentEndpoint($this); $this->methods = new \Mollie\Api\Endpoints\MethodEndpoint($this); + $this->profileMethods = new \Mollie\Api\Endpoints\ProfileMethodEndpoint($this); $this->customers = new \Mollie\Api\Endpoints\CustomerEndpoint($this); $this->settlements = new \Mollie\Api\Endpoints\SettlementsEndpoint($this); $this->subscriptions = new \Mollie\Api\Endpoints\SubscriptionEndpoint($this); @@ -221,14 +248,17 @@ public function initializeEndpoints() $this->invoices = new \Mollie\Api\Endpoints\InvoiceEndpoint($this); $this->permissions = new \Mollie\Api\Endpoints\PermissionEndpoint($this); $this->profiles = new \Mollie\Api\Endpoints\ProfileEndpoint($this); + $this->onboarding = new \Mollie\Api\Endpoints\OnboardingEndpoint($this); $this->organizations = new \Mollie\Api\Endpoints\OrganizationEndpoint($this); $this->orders = new \Mollie\Api\Endpoints\OrderEndpoint($this); $this->orderLines = new \Mollie\Api\Endpoints\OrderLineEndpoint($this); + $this->orderPayments = new \Mollie\Api\Endpoints\OrderPaymentEndpoint($this); $this->orderRefunds = new \Mollie\Api\Endpoints\OrderRefundEndpoint($this); $this->shipments = new \Mollie\Api\Endpoints\ShipmentEndpoint($this); $this->refunds = new \Mollie\Api\Endpoints\RefundEndpoint($this); $this->paymentRefunds = new \Mollie\Api\Endpoints\PaymentRefundEndpoint($this); $this->paymentCaptures = new \Mollie\Api\Endpoints\PaymentCaptureEndpoint($this); + $this->chargebacks = new \Mollie\Api\Endpoints\ChargebackEndpoint($this); $this->paymentChargebacks = new \Mollie\Api\Endpoints\PaymentChargebackEndpoint($this); } /** @@ -303,9 +333,6 @@ public function addVersionString($versionString) * Perform an http call. This method is used by the resource specific classes. Please use the $payments property to * perform operations on payments. * - * @see $payments - * @see $isuers - * * @param string $httpMethod * @param string $apiMethod * @param string|null|resource|StreamInterface $httpBody @@ -348,11 +375,11 @@ public function performHttpCallToFullUrl($httpMethod, $url, $httpBody = null) if (\function_exists("php_uname")) { $headers['X-Mollie-Client-Info'] = \php_uname(); } - $request = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Request($httpMethod, $url, $headers, $httpBody); + $request = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Request($httpMethod, $url, $headers, $httpBody); try { $response = $this->httpClient->send($request, ['http_errors' => \false]); - } catch (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\GuzzleException $e) { - throw new \Mollie\Api\Exceptions\ApiException($e->getMessage(), $e->getCode(), $e); + } catch (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\GuzzleException $e) { + throw \Mollie\Api\Exceptions\ApiException::createFromGuzzleException($e); } if (!$response) { throw new \Mollie\Api\Exceptions\ApiException("Did not receive API response."); @@ -366,7 +393,7 @@ public function performHttpCallToFullUrl($httpMethod, $url, $httpBody = null) * @return object|null * @throws ApiException */ - private function parseResponseBody(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) + private function parseResponseBody(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) { $body = (string) $response->getBody(); if (empty($body)) { @@ -380,15 +407,7 @@ private function parseResponseBody(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\Res throw new \Mollie\Api\Exceptions\ApiException("Unable to decode Mollie response: '{$body}'."); } if ($response->getStatusCode() >= 400) { - $field = null; - if (!empty($object->field)) { - $field = $object->field; - } - $documentationUrl = null; - if (!empty($object->_links) && !empty($object->_links->documentation)) { - $documentationUrl = $object->_links->documentation->href; - } - throw new \Mollie\Api\Exceptions\ApiException("Error executing API call ({$object->status}: {$object->title}): {$object->detail}", $response->getStatusCode(), $field, $documentationUrl); + throw \Mollie\Api\Exceptions\ApiException::createFromResponse($response); } return $object; } diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/CurrentProfile.php b/catalog/controller/payment/mollie-api-client/src/Resources/CurrentProfile.php new file mode 100644 index 00000000..2e01dcac --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/src/Resources/CurrentProfile.php @@ -0,0 +1,32 @@ +client->profileMethods->createForCurrentProfile($methodId, $data); + } + /** + * Disable a payment method for this profile. + * + * @param string $methodId + * @param array $data + * @return Method + * @throws ApiException + */ + public function disableMethod($methodId, array $data = []) + { + return $this->client->profileMethods->deleteForCurrentProfile($methodId, $data); + } +} diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/CursorCollection.php b/catalog/controller/payment/mollie-api-client/src/Resources/CursorCollection.php index 5b7c4b25..b665da01 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/CursorCollection.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/CursorCollection.php @@ -27,10 +27,11 @@ protected abstract function createResourceObject(); * Return the next set of resources when available * * @return CursorCollection|null + * @throws \Mollie\Api\Exceptions\ApiException */ public final function next() { - if (!isset($this->_links->next->href)) { + if (!$this->hasNext()) { return null; } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->next->href); @@ -44,10 +45,11 @@ public final function next() * Return the previous set of resources when available * * @return CursorCollection|null + * @throws \Mollie\Api\Exceptions\ApiException */ public final function previous() { - if (!isset($this->_links->previous->href)) { + if (!$this->hasPrevious()) { return null; } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->previous->href); @@ -57,4 +59,22 @@ public final function previous() } return $collection; } + /** + * Determine whether the collection has a next page available. + * + * @return bool + */ + public function hasNext() + { + return isset($this->_links->next->href); + } + /** + * Determine whether the collection has a previous page available. + * + * @return bool + */ + public function hasPrevious() + { + return isset($this->_links->previous->href); + } } diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Customer.php b/catalog/controller/payment/mollie-api-client/src/Resources/Customer.php index d70829f9..3287ee9e 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Customer.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Customer.php @@ -163,7 +163,7 @@ public function mandates() */ public function hasValidMandate() { - $mandates = $this->client->mandates->listFor($this, null, null, $this->getPresetOptions()); + $mandates = $this->mandates(); foreach ($mandates as $mandate) { if ($mandate->isValid()) { return \true; @@ -171,6 +171,21 @@ public function hasValidMandate() } return \false; } + /** + * Helper function to check for specific payment method mandate with status valid + * + * @return bool + */ + public function hasValidMandateForMethod($method) + { + $mandates = $this->mandates(); + foreach ($mandates as $mandate) { + if ($mandate->method === $method && $mandate->isValid()) { + return \true; + } + } + return \false; + } /** * When accessed by oAuth we want to pass the testmode by default * diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Method.php b/catalog/controller/payment/mollie-api-client/src/Resources/Method.php index 5d8fbf80..3432bfef 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Method.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Method.php @@ -16,6 +16,20 @@ class Method extends \Mollie\Api\Resources\BaseResource * @var string */ public $description; + /** + * An object containing value and currency. It represents the minimum payment amount required to use this + * payment method. + * + * @var object + */ + public $minimumAmount; + /** + * An object containing value and currency. It represents the maximum payment amount allowed when using this + * payment method. + * + * @var object + */ + public $maximumAmount; /** * The $image->size1x and $image->size2x to display the payment method logo. * @@ -29,6 +43,13 @@ class Method extends \Mollie\Api\Resources\BaseResource * @var array|object[] */ public $issuers; + /** + * The pricing for this payment method. Will only be filled when explicitly requested using the query string + * `include` parameter. + * + * @var array|object[] + */ + public $pricing; /** * @var object[] */ @@ -40,10 +61,15 @@ class Method extends \Mollie\Api\Resources\BaseResource */ public function issuers() { - $issuers = new \Mollie\Api\Resources\IssuerCollection(\count($this->issuers), null); - foreach ($this->issuers as $issuer) { - $issuers->append(\Mollie\Api\Resources\ResourceFactory::createFromApiResult($issuer, new \Mollie\Api\Resources\Issuer($this->client))); - } - return $issuers; + return \Mollie\Api\Resources\ResourceFactory::createBaseResourceCollection($this->client, $this->issuers, \Mollie\Api\Resources\Issuer::class); + } + /** + * Get the method price value objects. + * + * @return MethodPriceCollection + */ + public function pricing() + { + return \Mollie\Api\Resources\ResourceFactory::createBaseResourceCollection($this->client, $this->pricing, \Mollie\Api\Resources\MethodPrice::class); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/MethodPrice.php b/catalog/controller/payment/mollie-api-client/src/Resources/MethodPrice.php new file mode 100644 index 00000000..3341a4b9 --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/src/Resources/MethodPrice.php @@ -0,0 +1,26 @@ +status === \Mollie\Api\Types\OnboardingStatus::NEEDS_DATA; + } + /** + * @return bool + */ + public function isInReview() + { + return $this->status === \Mollie\Api\Types\OnboardingStatus::IN_REVIEW; + } + /** + * @return bool + */ + public function isCompleted() + { + return $this->status === \Mollie\Api\Types\OnboardingStatus::COMPLETED; + } +} diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Order.php b/catalog/controller/payment/mollie-api-client/src/Resources/Order.php index 7a2fa5d3..eac4189d 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Order.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Order.php @@ -125,11 +125,13 @@ class Order extends \Mollie\Api\Resources\BaseResource public $createdAt; /** * The order lines contain the actual things the customer bought. + * * @var array|object[] */ public $lines; /** * An object with several URL objects relevant to the customer. Every URL object will contain an href and a type field. + * * @var object[] */ public $_links; @@ -170,7 +172,8 @@ public function isCanceled() return $this->status === \Mollie\Api\Types\OrderStatus::STATUS_CANCELED; } /** - * Is this order refunded? + * (Deprecated) Is this order refunded? + * @deprecated 2018-11-27 * * @return bool */ @@ -205,6 +208,15 @@ public function isExpired() { return $this->status === \Mollie\Api\Types\OrderStatus::STATUS_EXPIRED; } + /** + * Is this order completed? + * + * @return bool + */ + public function isPending() + { + return $this->status === \Mollie\Api\Types\OrderStatus::STATUS_PENDING; + } /** * Cancels this order. * If the order was partially shipped, the status will be "completed" instead of @@ -213,7 +225,7 @@ public function isExpired() * be found. * * @return Order - * @throws ApiException + * @throws \Mollie\Api\Exceptions\ApiException */ public function cancel() { @@ -227,6 +239,7 @@ public function cancel() * * @param array|null $data * @return null + * @throws \Mollie\Api\Exceptions\ApiException */ public function cancelLines(array $data) { @@ -238,6 +251,7 @@ public function cancelLines(array $data) * * @param array|null $data * @return null + * @throws \Mollie\Api\Exceptions\ApiException */ public function cancelAllLines($data = []) { @@ -251,11 +265,7 @@ public function cancelAllLines($data = []) */ public function lines() { - $lines = new \Mollie\Api\Resources\OrderLineCollection(\count($this->lines), null); - foreach ($this->lines as $line) { - $lines->append(\Mollie\Api\Resources\ResourceFactory::createFromApiResult($line, new \Mollie\Api\Resources\OrderLine($this->client))); - } - return $lines; + return \Mollie\Api\Resources\ResourceFactory::createBaseResourceCollection($this->client, $this->lines, \Mollie\Api\Resources\OrderLine::class); } /** * Create a shipment for some order lines. You can provide an empty array for the @@ -341,7 +351,7 @@ public function refundAll(array $data = []) * Retrieves all refunds associated with this order * * @return RefundCollection - * @throws ApiException + * @throws \Mollie\Api\Exceptions\ApiException */ public function refunds() { @@ -349,10 +359,46 @@ public function refunds() return new \Mollie\Api\Resources\RefundCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->refunds->href); - $resourceCollection = new \Mollie\Api\Resources\RefundCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->refunds as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Refund($this->client)); + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->refunds, \Mollie\Api\Resources\Refund::class, $result->_links); + } + /** + * Saves the order's updated billingAddress and/or shippingAddress. + * + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Order + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function update() + { + if (!isset($this->_links->self->href)) { + return $this; + } + $body = \json_encode(array("billingAddress" => $this->billingAddress, "shippingAddress" => $this->shippingAddress)); + $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_PATCH, $this->_links->self->href, $body); + return \Mollie\Api\Resources\ResourceFactory::createFromApiResult($result, new \Mollie\Api\Resources\Order($this->client)); + } + /** + * Create a new payment for this Order. + * + * @param $data + * @param array $filters + * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Payment + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function createPayment($data, $filters = []) + { + return $this->client->orderPayments->createFor($this, $data, $filters); + } + /** + * Retrieve the payments for this order. + * Requires the order to be retrieved using the embed payments parameter. + * + * @return null|\Mollie\Api\Resources\PaymentCollection + */ + public function payments() + { + if (!isset($this->_embedded, $this->_embedded->payments)) { + return null; } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $this->_embedded->payments, \Mollie\Api\Resources\Payment::class); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/OrderLine.php b/catalog/controller/payment/mollie-api-client/src/Resources/OrderLine.php index 3d4db891..4f03860c 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/OrderLine.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/OrderLine.php @@ -153,7 +153,8 @@ public function isCanceled() return $this->status === \Mollie\Api\Types\OrderLineStatus::STATUS_CANCELED; } /** - * Is this order line refunded? + * (Deprecated) Is this order line refunded? + * @deprecated 2018-11-27 * * @return bool */ diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Organization.php b/catalog/controller/payment/mollie-api-client/src/Resources/Organization.php index 588661c4..c63e1ecc 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Organization.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Organization.php @@ -16,6 +16,18 @@ class Organization extends \Mollie\Api\Resources\BaseResource * @var string */ public $name; + /** + * The email address of the organization. + * + * @var string + */ + public $email; + /** + * The preferred locale of the merchant which has been set in Mollie Dashboard. + * + * @var string + */ + public $locale; /** * The address of the organization. * diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Payment.php b/catalog/controller/payment/mollie-api-client/src/Resources/Payment.php index 5fe1ced2..ff43656e 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Payment.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Payment.php @@ -186,6 +186,10 @@ class Payment extends \Mollie\Api\Resources\BaseResource * @var object[] */ public $_links; + /** + * @var object[] + */ + public $_embedded; /** * Whether or not this payment can be canceled. * @@ -359,11 +363,7 @@ public function refunds() return new \Mollie\Api\Resources\RefundCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->refunds->href); - $resourceCollection = new \Mollie\Api\Resources\RefundCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->refunds as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Refund($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->refunds, \Mollie\Api\Resources\Refund::class, $result->_links); } /** * @param string $refundId @@ -387,11 +387,7 @@ public function captures() return new \Mollie\Api\Resources\CaptureCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->captures->href); - $resourceCollection = new \Mollie\Api\Resources\CaptureCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->captures as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Capture($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->captures, \Mollie\Api\Resources\Capture::class, $result->_links); } /** * @param string $captureId @@ -415,11 +411,7 @@ public function chargebacks() return new \Mollie\Api\Resources\ChargebackCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->chargebacks->href); - $resourceCollection = new \Mollie\Api\Resources\ChargebackCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->chargebacks as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Chargeback($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->chargebacks, \Mollie\Api\Resources\Chargeback::class, $result->_links); } /** * Retrieves a specific chargeback for this payment. diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Profile.php b/catalog/controller/payment/mollie-api-client/src/Resources/Profile.php index a1c8c696..2446d923 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Profile.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Profile.php @@ -85,6 +85,7 @@ public function isBlocked() } /** * @return Profile + * @throws ApiException */ public function update() { @@ -107,11 +108,7 @@ public function chargebacks() return new \Mollie\Api\Resources\ChargebackCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->chargebacks->href); - $resourceCollection = new \Mollie\Api\Resources\ChargebackCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->chargebacks as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Chargeback($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->chargebacks, \Mollie\Api\Resources\Chargeback::class, $result->_links); } /** * Retrieves all methods activated on this profile @@ -125,11 +122,31 @@ public function methods() return new \Mollie\Api\Resources\MethodCollection(0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->methods->href); - $resourceCollection = new \Mollie\Api\Resources\MethodCollection($result->count, $result->_links); - foreach ($result->_embedded->methods as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Method($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->methods, \Mollie\Api\Resources\Method::class, $result->_links); + } + /** + * Enable a payment method for this profile. + * + * @param string $methodId + * @param array $data + * @return Method + * @throws ApiException + */ + public function enableMethod($methodId, array $data = []) + { + return $this->client->profileMethods->createFor($this, $methodId, $data); + } + /** + * Disable a payment method for this profile. + * + * @param string $methodId + * @param array $data + * @return Method + * @throws ApiException + */ + public function disableMethod($methodId, array $data = []) + { + return $this->client->profileMethods->deleteFor($this, $methodId, $data); } /** * Retrieves all payments associated with this profile @@ -143,11 +160,7 @@ public function payments() return new \Mollie\Api\Resources\PaymentCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->payments->href); - $resourceCollection = new \Mollie\Api\Resources\PaymentCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->payments as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Payment($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->methods, \Mollie\Api\Resources\Method::class, $result->_links); } /** * Retrieves all refunds associated with this profile @@ -161,10 +174,6 @@ public function refunds() return new \Mollie\Api\Resources\RefundCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->refunds->href); - $resourceCollection = new \Mollie\Api\Resources\RefundCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->refunds as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Refund($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->refunds, \Mollie\Api\Resources\Refund::class, $result->_links); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Refund.php b/catalog/controller/payment/mollie-api-client/src/Resources/Refund.php index c86f35ba..5d913b1c 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Refund.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Refund.php @@ -112,7 +112,7 @@ public function isTransferred() * Returns null if successful. * * @return null - * @throws ApiException + * @throws \Mollie\Api\Exceptions\ApiException */ public function cancel() { diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/ResourceFactory.php b/catalog/controller/payment/mollie-api-client/src/Resources/ResourceFactory.php index f722c52a..6a94a000 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/ResourceFactory.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/ResourceFactory.php @@ -2,6 +2,7 @@ namespace Mollie\Api\Resources; +use Mollie\Api\MollieApiClient; class ResourceFactory { /** @@ -19,4 +20,42 @@ public static function createFromApiResult($apiResult, \Mollie\Api\Resources\Bas } return $resource; } + /** + * @param MollieApiClient $client + * @param array $input + * @param string $resourceClass + * @param null $_links + * @param null $resourceCollectionClass + * @return mixed + */ + public static function createBaseResourceCollection(\Mollie\Api\MollieApiClient $client, array $input, $resourceClass, $_links = null, $resourceCollectionClass = null) + { + if (null === $resourceCollectionClass) { + $resourceCollectionClass = $resourceClass . 'Collection'; + } + $data = new $resourceCollectionClass(\count($input), $_links); + foreach ($input as $item) { + $data[] = static::createFromApiResult($item, new $resourceClass($client)); + } + return $data; + } + /** + * @param MollieApiClient $client + * @param array $input + * @param string $resourceClass + * @param null $_links + * @param null $resourceCollectionClass + * @return mixed + */ + public static function createCursorResourceCollection($client, array $input, $resourceClass, $_links = null, $resourceCollectionClass = null) + { + if (null === $resourceCollectionClass) { + $resourceCollectionClass = $resourceClass . 'Collection'; + } + $data = new $resourceCollectionClass($client, \count($input), $_links); + foreach ($input as $item) { + $data[] = static::createFromApiResult($item, new $resourceClass($client)); + } + return $data; + } } diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Settlement.php b/catalog/controller/payment/mollie-api-client/src/Resources/Settlement.php index b38fe912..e6849825 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Settlement.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Settlement.php @@ -30,6 +30,13 @@ class Settlement extends \Mollie\Api\Resources\BaseResource * @var string */ public $createdAt; + /** + * The date on which the settlement was settled, in ISO 8601 format. When requesting the open settlement or next settlement the return value is null. + * + * @example "2013-12-25T10:30:54+00:00" + * @var string|null + */ + public $settledAt; /** * Status of the settlement. * @@ -106,11 +113,7 @@ public function payments() return new \Mollie\Api\Resources\PaymentCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->payments->href); - $resourceCollection = new \Mollie\Api\Resources\PaymentCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->payments as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Payment($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->payments, \Mollie\Api\Resources\Payment::class, $result->_links); } /** * Retrieves all refunds associated with this settlement @@ -124,11 +127,7 @@ public function refunds() return new \Mollie\Api\Resources\RefundCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->refunds->href); - $resourceCollection = new \Mollie\Api\Resources\RefundCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->refunds as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Refund($this->client)); - } - return $resourceCollection; + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->refunds, \Mollie\Api\Resources\Refund::class, $result->_links); } /** * Retrieves all chargebacks associated with this settlement @@ -142,10 +141,20 @@ public function chargebacks() return new \Mollie\Api\Resources\ChargebackCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->chargebacks->href); - $resourceCollection = new \Mollie\Api\Resources\ChargebackCollection($this->client, $result->count, $result->_links); - foreach ($result->_embedded->chargebacks as $dataResult) { - $resourceCollection[] = \Mollie\Api\Resources\ResourceFactory::createFromApiResult($dataResult, new \Mollie\Api\Resources\Chargeback($this->client)); + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->chargebacks, \Mollie\Api\Resources\Chargeback::class, $result->_links); + } + /** + * Retrieves all captures associated with this settlement + * + * @return CaptureCollection + * @throws ApiException + */ + public function captures() + { + if (!isset($this->_links->captures->href)) { + return new \Mollie\Api\Resources\CaptureCollection($this->client, 0, null); } - return $resourceCollection; + $result = $this->client->performHttpCallToFullUrl(\Mollie\Api\MollieApiClient::HTTP_GET, $this->_links->captures->href); + return \Mollie\Api\Resources\ResourceFactory::createCursorResourceCollection($this->client, $result->_embedded->captures, \Mollie\Api\Resources\Capture::class, $result->_links); } } diff --git a/catalog/controller/payment/mollie-api-client/src/Resources/Shipment.php b/catalog/controller/payment/mollie-api-client/src/Resources/Shipment.php index f877c78e..07078b79 100644 --- a/catalog/controller/payment/mollie-api-client/src/Resources/Shipment.php +++ b/catalog/controller/payment/mollie-api-client/src/Resources/Shipment.php @@ -82,16 +82,13 @@ public function getTrackingUrl() */ public function lines() { - $lines = new \Mollie\Api\Resources\OrderLineCollection(\count($this->lines), null); - foreach ($this->lines as $line) { - $lines->append(\Mollie\Api\Resources\ResourceFactory::createFromApiResult($line, new \Mollie\Api\Resources\OrderLine($this->client))); - } - return $lines; + return \Mollie\Api\Resources\ResourceFactory::createBaseResourceCollection($this->client, $this->lines, \Mollie\Api\Resources\OrderLine::class); } /** * Get the Order object for this shipment * * @return Order + * @throws \Mollie\Api\Exceptions\ApiException */ public function order() { diff --git a/catalog/controller/payment/mollie-api-client/src/Types/MandateMethod.php b/catalog/controller/payment/mollie-api-client/src/Types/MandateMethod.php index 55f57055..dee569e5 100644 --- a/catalog/controller/payment/mollie-api-client/src/Types/MandateMethod.php +++ b/catalog/controller/payment/mollie-api-client/src/Types/MandateMethod.php @@ -5,4 +5,12 @@ class MandateMethod { const DIRECTDEBIT = "directdebit"; + const CREDITCARD = "creditcard"; + public static function getForFirstPaymentMethod($firstPaymentMethod) + { + if (\in_array($firstPaymentMethod, [\Mollie\Api\Types\PaymentMethod::APPLEPAY, \Mollie\Api\Types\PaymentMethod::CREDITCARD])) { + return static::CREDITCARD; + } + return static::DIRECTDEBIT; + } } diff --git a/catalog/controller/payment/mollie-api-client/src/Types/OnboardingStatus.php b/catalog/controller/payment/mollie-api-client/src/Types/OnboardingStatus.php new file mode 100644 index 00000000..19b5f03b --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/src/Types/OnboardingStatus.php @@ -0,0 +1,19 @@ +apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; } /** diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_classmap.php b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_classmap.php index 35090058..c12c1427 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_classmap.php +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_classmap.php @@ -7,14 +7,18 @@ return array( 'Mollie\\Api\\CompatibilityChecker' => $baseDir . '/src/CompatibilityChecker.php', + 'Mollie\\Api\\Endpoints\\ChargebackEndpoint' => $baseDir . '/src/Endpoints/ChargebackEndpoint.php', + 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' => $baseDir . '/src/Endpoints/CollectionEndpointAbstract.php', 'Mollie\\Api\\Endpoints\\CustomerEndpoint' => $baseDir . '/src/Endpoints/CustomerEndpoint.php', 'Mollie\\Api\\Endpoints\\CustomerPaymentsEndpoint' => $baseDir . '/src/Endpoints/CustomerPaymentsEndpoint.php', 'Mollie\\Api\\Endpoints\\EndpointAbstract' => $baseDir . '/src/Endpoints/EndpointAbstract.php', 'Mollie\\Api\\Endpoints\\InvoiceEndpoint' => $baseDir . '/src/Endpoints/InvoiceEndpoint.php', 'Mollie\\Api\\Endpoints\\MandateEndpoint' => $baseDir . '/src/Endpoints/MandateEndpoint.php', 'Mollie\\Api\\Endpoints\\MethodEndpoint' => $baseDir . '/src/Endpoints/MethodEndpoint.php', + 'Mollie\\Api\\Endpoints\\OnboardingEndpoint' => $baseDir . '/src/Endpoints/OnboardingEndpoint.php', 'Mollie\\Api\\Endpoints\\OrderEndpoint' => $baseDir . '/src/Endpoints/OrderEndpoint.php', 'Mollie\\Api\\Endpoints\\OrderLineEndpoint' => $baseDir . '/src/Endpoints/OrderLineEndpoint.php', + 'Mollie\\Api\\Endpoints\\OrderPaymentEndpoint' => $baseDir . '/src/Endpoints/OrderPaymentEndpoint.php', 'Mollie\\Api\\Endpoints\\OrderRefundEndpoint' => $baseDir . '/src/Endpoints/OrderRefundEndpoint.php', 'Mollie\\Api\\Endpoints\\OrganizationEndpoint' => $baseDir . '/src/Endpoints/OrganizationEndpoint.php', 'Mollie\\Api\\Endpoints\\PaymentCaptureEndpoint' => $baseDir . '/src/Endpoints/PaymentCaptureEndpoint.php', @@ -23,6 +27,7 @@ 'Mollie\\Api\\Endpoints\\PaymentRefundEndpoint' => $baseDir . '/src/Endpoints/PaymentRefundEndpoint.php', 'Mollie\\Api\\Endpoints\\PermissionEndpoint' => $baseDir . '/src/Endpoints/PermissionEndpoint.php', 'Mollie\\Api\\Endpoints\\ProfileEndpoint' => $baseDir . '/src/Endpoints/ProfileEndpoint.php', + 'Mollie\\Api\\Endpoints\\ProfileMethodEndpoint' => $baseDir . '/src/Endpoints/ProfileMethodEndpoint.php', 'Mollie\\Api\\Endpoints\\RefundEndpoint' => $baseDir . '/src/Endpoints/RefundEndpoint.php', 'Mollie\\Api\\Endpoints\\SettlementsEndpoint' => $baseDir . '/src/Endpoints/SettlementsEndpoint.php', 'Mollie\\Api\\Endpoints\\ShipmentEndpoint' => $baseDir . '/src/Endpoints/ShipmentEndpoint.php', @@ -36,6 +41,7 @@ 'Mollie\\Api\\Resources\\CaptureCollection' => $baseDir . '/src/Resources/CaptureCollection.php', 'Mollie\\Api\\Resources\\Chargeback' => $baseDir . '/src/Resources/Chargeback.php', 'Mollie\\Api\\Resources\\ChargebackCollection' => $baseDir . '/src/Resources/ChargebackCollection.php', + 'Mollie\\Api\\Resources\\CurrentProfile' => $baseDir . '/src/Resources/CurrentProfile.php', 'Mollie\\Api\\Resources\\CursorCollection' => $baseDir . '/src/Resources/CursorCollection.php', 'Mollie\\Api\\Resources\\Customer' => $baseDir . '/src/Resources/Customer.php', 'Mollie\\Api\\Resources\\CustomerCollection' => $baseDir . '/src/Resources/CustomerCollection.php', @@ -47,6 +53,9 @@ 'Mollie\\Api\\Resources\\MandateCollection' => $baseDir . '/src/Resources/MandateCollection.php', 'Mollie\\Api\\Resources\\Method' => $baseDir . '/src/Resources/Method.php', 'Mollie\\Api\\Resources\\MethodCollection' => $baseDir . '/src/Resources/MethodCollection.php', + 'Mollie\\Api\\Resources\\MethodPrice' => $baseDir . '/src/Resources/MethodPrice.php', + 'Mollie\\Api\\Resources\\MethodPriceCollection' => $baseDir . '/src/Resources/MethodPriceCollection.php', + 'Mollie\\Api\\Resources\\Onboarding' => $baseDir . '/src/Resources/Onboarding.php', 'Mollie\\Api\\Resources\\Order' => $baseDir . '/src/Resources/Order.php', 'Mollie\\Api\\Resources\\OrderCollection' => $baseDir . '/src/Resources/OrderCollection.php', 'Mollie\\Api\\Resources\\OrderLine' => $baseDir . '/src/Resources/OrderLine.php', @@ -71,6 +80,7 @@ 'Mollie\\Api\\Types\\InvoiceStatus' => $baseDir . '/src/Types/InvoiceStatus.php', 'Mollie\\Api\\Types\\MandateMethod' => $baseDir . '/src/Types/MandateMethod.php', 'Mollie\\Api\\Types\\MandateStatus' => $baseDir . '/src/Types/MandateStatus.php', + 'Mollie\\Api\\Types\\OnboardingStatus' => $baseDir . '/src/Types/OnboardingStatus.php', 'Mollie\\Api\\Types\\OrderLineStatus' => $baseDir . '/src/Types/OrderLineStatus.php', 'Mollie\\Api\\Types\\OrderLineType' => $baseDir . '/src/Types/OrderLineType.php', 'Mollie\\Api\\Types\\OrderStatus' => $baseDir . '/src/Types/OrderStatus.php', @@ -81,115 +91,123 @@ 'Mollie\\Api\\Types\\SequenceType' => $baseDir . '/src/Types/SequenceType.php', 'Mollie\\Api\\Types\\SettlementStatus' => $baseDir . '/src/Types/SettlementStatus.php', 'Mollie\\Api\\Types\\SubscriptionStatus' => $baseDir . '/src/Types/SubscriptionStatus.php', - '_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\CaBundle' => $vendorDir . '/composer/ca-bundle/src/CaBundle.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Client' => $vendorDir . '/guzzlehttp/guzzle/src/Client.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\ClientInterface' => $vendorDir . '/guzzlehttp/guzzle/src/ClientInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\CookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/CookieJar.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\CookieJarInterface' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\FileCookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\SessionCookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\SetCookie' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/SetCookie.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\BadResponseException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/BadResponseException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\ClientException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ClientException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\ConnectException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ConnectException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\GuzzleException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/GuzzleException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\RequestException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/RequestException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\SeekException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/SeekException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\ServerException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ServerException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\TooManyRedirectsException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\TransferException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/TransferException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\HandlerStack' => $vendorDir . '/guzzlehttp/guzzle/src/HandlerStack.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlFactory' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlFactory.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlFactoryInterface' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlMultiHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\EasyHandle' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\MockHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/MockHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\Proxy' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/Proxy.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\StreamHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\MessageFormatter' => $vendorDir . '/guzzlehttp/guzzle/src/MessageFormatter.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Middleware' => $vendorDir . '/guzzlehttp/guzzle/src/Middleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Pool' => $vendorDir . '/guzzlehttp/guzzle/src/Pool.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\PrepareBodyMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\AggregateException' => $vendorDir . '/guzzlehttp/promises/src/AggregateException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\CancellationException' => $vendorDir . '/guzzlehttp/promises/src/CancellationException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\Coroutine' => $vendorDir . '/guzzlehttp/promises/src/Coroutine.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\EachPromise' => $vendorDir . '/guzzlehttp/promises/src/EachPromise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\FulfilledPromise' => $vendorDir . '/guzzlehttp/promises/src/FulfilledPromise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\Promise' => $vendorDir . '/guzzlehttp/promises/src/Promise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\PromiseInterface' => $vendorDir . '/guzzlehttp/promises/src/PromiseInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\PromisorInterface' => $vendorDir . '/guzzlehttp/promises/src/PromisorInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\RejectedPromise' => $vendorDir . '/guzzlehttp/promises/src/RejectedPromise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\RejectionException' => $vendorDir . '/guzzlehttp/promises/src/RejectionException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\TaskQueue' => $vendorDir . '/guzzlehttp/promises/src/TaskQueue.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\TaskQueueInterface' => $vendorDir . '/guzzlehttp/promises/src/TaskQueueInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\AppendStream' => $vendorDir . '/guzzlehttp/psr7/src/AppendStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\BufferStream' => $vendorDir . '/guzzlehttp/psr7/src/BufferStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\CachingStream' => $vendorDir . '/guzzlehttp/psr7/src/CachingStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\DroppingStream' => $vendorDir . '/guzzlehttp/psr7/src/DroppingStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\FnStream' => $vendorDir . '/guzzlehttp/psr7/src/FnStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\InflateStream' => $vendorDir . '/guzzlehttp/psr7/src/InflateStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\LazyOpenStream' => $vendorDir . '/guzzlehttp/psr7/src/LazyOpenStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\LimitStream' => $vendorDir . '/guzzlehttp/psr7/src/LimitStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\MessageTrait' => $vendorDir . '/guzzlehttp/psr7/src/MessageTrait.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\MultipartStream' => $vendorDir . '/guzzlehttp/psr7/src/MultipartStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\NoSeekStream' => $vendorDir . '/guzzlehttp/psr7/src/NoSeekStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\PumpStream' => $vendorDir . '/guzzlehttp/psr7/src/PumpStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Request' => $vendorDir . '/guzzlehttp/psr7/src/Request.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Response' => $vendorDir . '/guzzlehttp/psr7/src/Response.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\ServerRequest' => $vendorDir . '/guzzlehttp/psr7/src/ServerRequest.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Stream' => $vendorDir . '/guzzlehttp/psr7/src/Stream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => $vendorDir . '/guzzlehttp/psr7/src/StreamDecoratorTrait.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\StreamWrapper' => $vendorDir . '/guzzlehttp/psr7/src/StreamWrapper.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\UploadedFile' => $vendorDir . '/guzzlehttp/psr7/src/UploadedFile.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Uri' => $vendorDir . '/guzzlehttp/psr7/src/Uri.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\UriNormalizer' => $vendorDir . '/guzzlehttp/psr7/src/UriNormalizer.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\UriResolver' => $vendorDir . '/guzzlehttp/psr7/src/UriResolver.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\RedirectMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\RequestOptions' => $vendorDir . '/guzzlehttp/guzzle/src/RequestOptions.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\RetryMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/RetryMiddleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\TransferStats' => $vendorDir . '/guzzlehttp/guzzle/src/TransferStats.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\UriTemplate' => $vendorDir . '/guzzlehttp/guzzle/src/UriTemplate.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\MessageInterface' => $vendorDir . '/psr/http-message/src/MessageInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\RequestInterface' => $vendorDir . '/psr/http-message/src/RequestInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\ResponseInterface' => $vendorDir . '/psr/http-message/src/ResponseInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\ServerRequestInterface' => $vendorDir . '/psr/http-message/src/ServerRequestInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\StreamInterface' => $vendorDir . '/psr/http-message/src/StreamInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\UploadedFileInterface' => $vendorDir . '/psr/http-message/src/UploadedFileInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\UriInterface' => $vendorDir . '/psr/http-message/src/UriInterface.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\CompatibilityCheckerTest' => $baseDir . '/tests/Mollie/API/CompatibilityCheckerTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\BaseEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/BaseEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\ChargebackEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentChargebackEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\CustomerEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/CustomerEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\CustomerPaymentEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/CustomerPaymentEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\InvoiceEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/InvoiceEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\MandateEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/MandateEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\MethodEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/MethodEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrderEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrderEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrderLineEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrderLineEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrderRefundEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrderRefundEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrganizationEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrganizationEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PaymentCaptureEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentCaptureEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PaymentEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PaymentRefundEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentRefundEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PermissionEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PermissionEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\ProfileEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/ProfileEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\RefundEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/RefundEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\SettlementEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/SettlementEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\ShipmentEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/ShipmentEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\SubscriptionEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/SubscriptionEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\MollieApiClientTest' => $baseDir . '/tests/Mollie/API/MollieApiClientTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\InvoiceTest' => $baseDir . '/tests/Mollie/API/Resources/InvoiceTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\OrderLineCollectionTest' => $baseDir . '/tests/Mollie/API/Resources/OrderLineCollectionTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\OrderLineTest' => $baseDir . '/tests/Mollie/API/Resources/OrderLineTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\OrderTest' => $baseDir . '/tests/Mollie/API/Resources/OrderTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\PaymentTest' => $baseDir . '/tests/Mollie/API/Resources/PaymentTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\ProfileTest' => $baseDir . '/tests/Mollie/API/Resources/ProfileTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\RefundTest' => $baseDir . '/tests/Mollie/API/Resources/RefundTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\ResourceFactoryTest' => $baseDir . '/tests/Mollie/API/Resources/ResourceFactoryTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\SettlementTest' => $baseDir . '/tests/Mollie/API/Resources/SettlementTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\ShipmentTest' => $baseDir . '/tests/Mollie/API/Resources/ShipmentTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\SubscriptionTest' => $baseDir . '/tests/Mollie/API/Resources/SubscriptionTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\TestHelpers\\AmountObjectTestHelpers' => $baseDir . '/tests/Mollie/TestHelpers/AmountObjectTestHelpers.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\TestHelpers\\LinkObjectTestHelpers' => $baseDir . '/tests/Mollie/TestHelpers/LinkObjectTestHelpers.php', + '_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\CaBundle' => $vendorDir . '/composer/ca-bundle/src/CaBundle.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Client' => $vendorDir . '/guzzlehttp/guzzle/src/Client.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\ClientInterface' => $vendorDir . '/guzzlehttp/guzzle/src/ClientInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\CookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/CookieJar.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\CookieJarInterface' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\FileCookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\SessionCookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\SetCookie' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/SetCookie.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\BadResponseException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/BadResponseException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\ClientException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ClientException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\ConnectException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ConnectException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\GuzzleException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/GuzzleException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\RequestException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/RequestException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\SeekException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/SeekException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\ServerException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ServerException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\TooManyRedirectsException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\TransferException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/TransferException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\HandlerStack' => $vendorDir . '/guzzlehttp/guzzle/src/HandlerStack.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlFactory' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlFactory.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlFactoryInterface' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlMultiHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\EasyHandle' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\MockHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/MockHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\Proxy' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/Proxy.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\StreamHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\MessageFormatter' => $vendorDir . '/guzzlehttp/guzzle/src/MessageFormatter.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Middleware' => $vendorDir . '/guzzlehttp/guzzle/src/Middleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Pool' => $vendorDir . '/guzzlehttp/guzzle/src/Pool.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\PrepareBodyMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\AggregateException' => $vendorDir . '/guzzlehttp/promises/src/AggregateException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\CancellationException' => $vendorDir . '/guzzlehttp/promises/src/CancellationException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\Coroutine' => $vendorDir . '/guzzlehttp/promises/src/Coroutine.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\EachPromise' => $vendorDir . '/guzzlehttp/promises/src/EachPromise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\FulfilledPromise' => $vendorDir . '/guzzlehttp/promises/src/FulfilledPromise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\Promise' => $vendorDir . '/guzzlehttp/promises/src/Promise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\PromiseInterface' => $vendorDir . '/guzzlehttp/promises/src/PromiseInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\PromisorInterface' => $vendorDir . '/guzzlehttp/promises/src/PromisorInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\RejectedPromise' => $vendorDir . '/guzzlehttp/promises/src/RejectedPromise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\RejectionException' => $vendorDir . '/guzzlehttp/promises/src/RejectionException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\TaskQueue' => $vendorDir . '/guzzlehttp/promises/src/TaskQueue.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\TaskQueueInterface' => $vendorDir . '/guzzlehttp/promises/src/TaskQueueInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\AppendStream' => $vendorDir . '/guzzlehttp/psr7/src/AppendStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\BufferStream' => $vendorDir . '/guzzlehttp/psr7/src/BufferStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\CachingStream' => $vendorDir . '/guzzlehttp/psr7/src/CachingStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\DroppingStream' => $vendorDir . '/guzzlehttp/psr7/src/DroppingStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\FnStream' => $vendorDir . '/guzzlehttp/psr7/src/FnStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\InflateStream' => $vendorDir . '/guzzlehttp/psr7/src/InflateStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\LazyOpenStream' => $vendorDir . '/guzzlehttp/psr7/src/LazyOpenStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\LimitStream' => $vendorDir . '/guzzlehttp/psr7/src/LimitStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\MessageTrait' => $vendorDir . '/guzzlehttp/psr7/src/MessageTrait.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\MultipartStream' => $vendorDir . '/guzzlehttp/psr7/src/MultipartStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\NoSeekStream' => $vendorDir . '/guzzlehttp/psr7/src/NoSeekStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\PumpStream' => $vendorDir . '/guzzlehttp/psr7/src/PumpStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Request' => $vendorDir . '/guzzlehttp/psr7/src/Request.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Response' => $vendorDir . '/guzzlehttp/psr7/src/Response.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Rfc7230' => $vendorDir . '/guzzlehttp/psr7/src/Rfc7230.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\ServerRequest' => $vendorDir . '/guzzlehttp/psr7/src/ServerRequest.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Stream' => $vendorDir . '/guzzlehttp/psr7/src/Stream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => $vendorDir . '/guzzlehttp/psr7/src/StreamDecoratorTrait.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\StreamWrapper' => $vendorDir . '/guzzlehttp/psr7/src/StreamWrapper.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\UploadedFile' => $vendorDir . '/guzzlehttp/psr7/src/UploadedFile.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Uri' => $vendorDir . '/guzzlehttp/psr7/src/Uri.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\UriNormalizer' => $vendorDir . '/guzzlehttp/psr7/src/UriNormalizer.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\UriResolver' => $vendorDir . '/guzzlehttp/psr7/src/UriResolver.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\RedirectMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\RequestOptions' => $vendorDir . '/guzzlehttp/guzzle/src/RequestOptions.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\RetryMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/RetryMiddleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\TransferStats' => $vendorDir . '/guzzlehttp/guzzle/src/TransferStats.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\UriTemplate' => $vendorDir . '/guzzlehttp/guzzle/src/UriTemplate.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\MessageInterface' => $vendorDir . '/psr/http-message/src/MessageInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\RequestInterface' => $vendorDir . '/psr/http-message/src/RequestInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\ResponseInterface' => $vendorDir . '/psr/http-message/src/ResponseInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\ServerRequestInterface' => $vendorDir . '/psr/http-message/src/ServerRequestInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\StreamInterface' => $vendorDir . '/psr/http-message/src/StreamInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\UploadedFileInterface' => $vendorDir . '/psr/http-message/src/UploadedFileInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\UriInterface' => $vendorDir . '/psr/http-message/src/UriInterface.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Endpoints\\OnboardingEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OnboardingEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Exceptions\\ApiExceptionTest' => $baseDir . '/tests/Mollie/API/Exceptions/ApiExceptionTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Resources\\OnboardingTest' => $baseDir . '/tests/Mollie/API/Resources/OnboardingTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Types\\MandateMethodTest' => $baseDir . '/tests/Mollie/API/Types/MandateMethodTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\CompatibilityCheckerTest' => $baseDir . '/tests/Mollie/API/CompatibilityCheckerTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\BaseEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/BaseEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ChargebackEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/ChargebackEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\CustomerEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/CustomerEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\CustomerPaymentEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/CustomerPaymentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\InvoiceEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/InvoiceEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\MandateEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/MandateEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\MethodEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/MethodEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrderEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderLineEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrderLineEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderPaymentEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrderPaymentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderRefundEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrderRefundEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrganizationEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/OrganizationEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentCaptureEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentCaptureEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentChargebackEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentChargebackEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentRefundEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PaymentRefundEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PermissionEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/PermissionEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ProfileEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/ProfileEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ProfileMethodEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/ProfileMethodEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\RefundEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/RefundEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\SettlementEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/SettlementEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ShipmentEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/ShipmentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\SubscriptionEndpointTest' => $baseDir . '/tests/Mollie/API/Endpoints/SubscriptionEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\MollieApiClientTest' => $baseDir . '/tests/Mollie/API/MollieApiClientTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\InvoiceTest' => $baseDir . '/tests/Mollie/API/Resources/InvoiceTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\OrderLineCollectionTest' => $baseDir . '/tests/Mollie/API/Resources/OrderLineCollectionTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\OrderLineTest' => $baseDir . '/tests/Mollie/API/Resources/OrderLineTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\OrderTest' => $baseDir . '/tests/Mollie/API/Resources/OrderTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\PaymentTest' => $baseDir . '/tests/Mollie/API/Resources/PaymentTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\ProfileTest' => $baseDir . '/tests/Mollie/API/Resources/ProfileTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\RefundTest' => $baseDir . '/tests/Mollie/API/Resources/RefundTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\ResourceFactoryTest' => $baseDir . '/tests/Mollie/API/Resources/ResourceFactoryTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\SettlementTest' => $baseDir . '/tests/Mollie/API/Resources/SettlementTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\ShipmentTest' => $baseDir . '/tests/Mollie/API/Resources/ShipmentTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\SubscriptionTest' => $baseDir . '/tests/Mollie/API/Resources/SubscriptionTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\TestHelpers\\AmountObjectTestHelpers' => $baseDir . '/tests/Mollie/TestHelpers/AmountObjectTestHelpers.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\TestHelpers\\LinkObjectTestHelpers' => $baseDir . '/tests/Mollie/TestHelpers/LinkObjectTestHelpers.php', ); diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_files.php b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_files.php index dd37d858..0e9caa23 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_files.php +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_files.php @@ -6,6 +6,7 @@ $baseDir = dirname($vendorDir); return array( + '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_psr4.php b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_psr4.php index a0c85e17..1e47bbbc 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_psr4.php +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_psr4.php @@ -6,11 +6,11 @@ $baseDir = dirname($vendorDir); return array( - '_PhpScoper5bbb1f4b001f3\\Tests\\' => array($baseDir . '/tests'), - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), - '_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\' => array($vendorDir . '/composer/ca-bundle/src'), + '_PhpScoper5ce26f1fe2920\\Tests\\' => array($baseDir . '/tests'), + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), + '_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\' => array($vendorDir . '/composer/ca-bundle/src'), 'Mollie\\Api\\' => array($baseDir . '/src'), ); diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_real.php b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_real.php index a251e523..37e6f49d 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_real.php +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInita3126e82b6f8a8825a16880fe8b70058 +class ComposerAutoloaderInitb8e93f093dda8bae9cb1be42d9b20dd3 { private static $loader; @@ -19,15 +19,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInita3126e82b6f8a8825a16880fe8b70058', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitb8e93f093dda8bae9cb1be42d9b20dd3', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInita3126e82b6f8a8825a16880fe8b70058', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitb8e93f093dda8bae9cb1be42d9b20dd3', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInita3126e82b6f8a8825a16880fe8b70058::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitb8e93f093dda8bae9cb1be42d9b20dd3::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { @@ -39,19 +39,19 @@ public static function getLoader() $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInita3126e82b6f8a8825a16880fe8b70058::$files; + $includeFiles = Composer\Autoload\ComposerStaticInitb8e93f093dda8bae9cb1be42d9b20dd3::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequirea3126e82b6f8a8825a16880fe8b70058($fileIdentifier, $file); + composerRequireb8e93f093dda8bae9cb1be42d9b20dd3($fileIdentifier, $file); } return $loader; } } -function composerRequirea3126e82b6f8a8825a16880fe8b70058($fileIdentifier, $file) +function composerRequireb8e93f093dda8bae9cb1be42d9b20dd3($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_static.php b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_static.php index c540e713..9530cfb7 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_static.php +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/autoload_static.php @@ -4,9 +4,10 @@ namespace Composer\Autoload; -class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 +class ComposerStaticInitb8e93f093dda8bae9cb1be42d9b20dd3 { public static $files = array ( + '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', @@ -15,12 +16,12 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 public static $prefixLengthsPsr4 = array ( '_' => array ( - '_PhpScoper5bbb1f4b001f3\\Tests\\' => 30, - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\' => 41, - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\' => 40, - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\' => 43, - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\' => 35, - '_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\' => 42, + '_PhpScoper5ce26f1fe2920\\Tests\\' => 30, + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\' => 41, + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\' => 40, + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\' => 43, + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\' => 35, + '_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\' => 42, ), 'M' => array ( @@ -29,27 +30,27 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 ); public static $prefixDirsPsr4 = array ( - '_PhpScoper5bbb1f4b001f3\\Tests\\' => + '_PhpScoper5ce26f1fe2920\\Tests\\' => array ( 0 => __DIR__ . '/../..' . '/tests', ), - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\' => + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\' => array ( 0 => __DIR__ . '/..' . '/psr/http-message/src', ), - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\' => + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\' => array ( 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', ), - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\' => + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\' => array ( 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src', ), - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\' => + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\' => array ( 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src', ), - '_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\' => + '_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\' => array ( 0 => __DIR__ . '/..' . '/composer/ca-bundle/src', ), @@ -61,14 +62,18 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 public static $classMap = array ( 'Mollie\\Api\\CompatibilityChecker' => __DIR__ . '/../..' . '/src/CompatibilityChecker.php', + 'Mollie\\Api\\Endpoints\\ChargebackEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/ChargebackEndpoint.php', + 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' => __DIR__ . '/../..' . '/src/Endpoints/CollectionEndpointAbstract.php', 'Mollie\\Api\\Endpoints\\CustomerEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/CustomerEndpoint.php', 'Mollie\\Api\\Endpoints\\CustomerPaymentsEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/CustomerPaymentsEndpoint.php', 'Mollie\\Api\\Endpoints\\EndpointAbstract' => __DIR__ . '/../..' . '/src/Endpoints/EndpointAbstract.php', 'Mollie\\Api\\Endpoints\\InvoiceEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/InvoiceEndpoint.php', 'Mollie\\Api\\Endpoints\\MandateEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/MandateEndpoint.php', 'Mollie\\Api\\Endpoints\\MethodEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/MethodEndpoint.php', + 'Mollie\\Api\\Endpoints\\OnboardingEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/OnboardingEndpoint.php', 'Mollie\\Api\\Endpoints\\OrderEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/OrderEndpoint.php', 'Mollie\\Api\\Endpoints\\OrderLineEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/OrderLineEndpoint.php', + 'Mollie\\Api\\Endpoints\\OrderPaymentEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/OrderPaymentEndpoint.php', 'Mollie\\Api\\Endpoints\\OrderRefundEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/OrderRefundEndpoint.php', 'Mollie\\Api\\Endpoints\\OrganizationEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/OrganizationEndpoint.php', 'Mollie\\Api\\Endpoints\\PaymentCaptureEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/PaymentCaptureEndpoint.php', @@ -77,6 +82,7 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 'Mollie\\Api\\Endpoints\\PaymentRefundEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/PaymentRefundEndpoint.php', 'Mollie\\Api\\Endpoints\\PermissionEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/PermissionEndpoint.php', 'Mollie\\Api\\Endpoints\\ProfileEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/ProfileEndpoint.php', + 'Mollie\\Api\\Endpoints\\ProfileMethodEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/ProfileMethodEndpoint.php', 'Mollie\\Api\\Endpoints\\RefundEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/RefundEndpoint.php', 'Mollie\\Api\\Endpoints\\SettlementsEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/SettlementsEndpoint.php', 'Mollie\\Api\\Endpoints\\ShipmentEndpoint' => __DIR__ . '/../..' . '/src/Endpoints/ShipmentEndpoint.php', @@ -90,6 +96,7 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 'Mollie\\Api\\Resources\\CaptureCollection' => __DIR__ . '/../..' . '/src/Resources/CaptureCollection.php', 'Mollie\\Api\\Resources\\Chargeback' => __DIR__ . '/../..' . '/src/Resources/Chargeback.php', 'Mollie\\Api\\Resources\\ChargebackCollection' => __DIR__ . '/../..' . '/src/Resources/ChargebackCollection.php', + 'Mollie\\Api\\Resources\\CurrentProfile' => __DIR__ . '/../..' . '/src/Resources/CurrentProfile.php', 'Mollie\\Api\\Resources\\CursorCollection' => __DIR__ . '/../..' . '/src/Resources/CursorCollection.php', 'Mollie\\Api\\Resources\\Customer' => __DIR__ . '/../..' . '/src/Resources/Customer.php', 'Mollie\\Api\\Resources\\CustomerCollection' => __DIR__ . '/../..' . '/src/Resources/CustomerCollection.php', @@ -101,6 +108,9 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 'Mollie\\Api\\Resources\\MandateCollection' => __DIR__ . '/../..' . '/src/Resources/MandateCollection.php', 'Mollie\\Api\\Resources\\Method' => __DIR__ . '/../..' . '/src/Resources/Method.php', 'Mollie\\Api\\Resources\\MethodCollection' => __DIR__ . '/../..' . '/src/Resources/MethodCollection.php', + 'Mollie\\Api\\Resources\\MethodPrice' => __DIR__ . '/../..' . '/src/Resources/MethodPrice.php', + 'Mollie\\Api\\Resources\\MethodPriceCollection' => __DIR__ . '/../..' . '/src/Resources/MethodPriceCollection.php', + 'Mollie\\Api\\Resources\\Onboarding' => __DIR__ . '/../..' . '/src/Resources/Onboarding.php', 'Mollie\\Api\\Resources\\Order' => __DIR__ . '/../..' . '/src/Resources/Order.php', 'Mollie\\Api\\Resources\\OrderCollection' => __DIR__ . '/../..' . '/src/Resources/OrderCollection.php', 'Mollie\\Api\\Resources\\OrderLine' => __DIR__ . '/../..' . '/src/Resources/OrderLine.php', @@ -125,6 +135,7 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 'Mollie\\Api\\Types\\InvoiceStatus' => __DIR__ . '/../..' . '/src/Types/InvoiceStatus.php', 'Mollie\\Api\\Types\\MandateMethod' => __DIR__ . '/../..' . '/src/Types/MandateMethod.php', 'Mollie\\Api\\Types\\MandateStatus' => __DIR__ . '/../..' . '/src/Types/MandateStatus.php', + 'Mollie\\Api\\Types\\OnboardingStatus' => __DIR__ . '/../..' . '/src/Types/OnboardingStatus.php', 'Mollie\\Api\\Types\\OrderLineStatus' => __DIR__ . '/../..' . '/src/Types/OrderLineStatus.php', 'Mollie\\Api\\Types\\OrderLineType' => __DIR__ . '/../..' . '/src/Types/OrderLineType.php', 'Mollie\\Api\\Types\\OrderStatus' => __DIR__ . '/../..' . '/src/Types/OrderStatus.php', @@ -135,125 +146,133 @@ class ComposerStaticInita3126e82b6f8a8825a16880fe8b70058 'Mollie\\Api\\Types\\SequenceType' => __DIR__ . '/../..' . '/src/Types/SequenceType.php', 'Mollie\\Api\\Types\\SettlementStatus' => __DIR__ . '/../..' . '/src/Types/SettlementStatus.php', 'Mollie\\Api\\Types\\SubscriptionStatus' => __DIR__ . '/../..' . '/src/Types/SubscriptionStatus.php', - '_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\CaBundle' => __DIR__ . '/..' . '/composer/ca-bundle/src/CaBundle.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Client' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Client.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\ClientInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/ClientInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\CookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/CookieJar.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\CookieJarInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\FileCookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\SessionCookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Cookie\\SetCookie' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/SetCookie.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\BadResponseException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/BadResponseException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\ClientException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ClientException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\ConnectException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ConnectException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\GuzzleException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/GuzzleException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\RequestException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/RequestException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\SeekException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/SeekException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\ServerException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ServerException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\TooManyRedirectsException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Exception\\TransferException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/TransferException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\HandlerStack' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/HandlerStack.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlFactory' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlFactory.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlFactoryInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\CurlMultiHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\EasyHandle' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\MockHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/MockHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\Proxy' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/Proxy.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Handler\\StreamHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\MessageFormatter' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/MessageFormatter.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Middleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Middleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Pool' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Pool.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\PrepareBodyMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\AggregateException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/AggregateException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\CancellationException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/CancellationException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\Coroutine' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Coroutine.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\EachPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/EachPromise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\FulfilledPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/FulfilledPromise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\Promise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Promise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\PromiseInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/PromiseInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\PromisorInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/PromisorInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\RejectedPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/RejectedPromise.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\RejectionException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/RejectionException.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\TaskQueue' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueue.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\TaskQueueInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueueInterface.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\AppendStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/AppendStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\BufferStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/BufferStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\CachingStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/CachingStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\DroppingStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/DroppingStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\FnStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/FnStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\InflateStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/InflateStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\LazyOpenStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LazyOpenStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\LimitStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LimitStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\MessageTrait' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MessageTrait.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\MultipartStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MultipartStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\NoSeekStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/NoSeekStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\PumpStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/PumpStream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Request' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Request.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Response' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Response.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\ServerRequest' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/ServerRequest.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Stream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Stream.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/StreamDecoratorTrait.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\StreamWrapper' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/StreamWrapper.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\UploadedFile' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UploadedFile.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\Uri' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Uri.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\UriNormalizer' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriNormalizer.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\UriResolver' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriResolver.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\RedirectMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\RequestOptions' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RequestOptions.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\RetryMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RetryMiddleware.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\TransferStats' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/TransferStats.php', - '_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\UriTemplate' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/UriTemplate.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\MessageInterface' => __DIR__ . '/..' . '/psr/http-message/src/MessageInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\RequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/RequestInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\ResponseInterface' => __DIR__ . '/..' . '/psr/http-message/src/ResponseInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\ServerRequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/ServerRequestInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\StreamInterface' => __DIR__ . '/..' . '/psr/http-message/src/StreamInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\UploadedFileInterface' => __DIR__ . '/..' . '/psr/http-message/src/UploadedFileInterface.php', - '_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\UriInterface' => __DIR__ . '/..' . '/psr/http-message/src/UriInterface.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\CompatibilityCheckerTest' => __DIR__ . '/../..' . '/tests/Mollie/API/CompatibilityCheckerTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\BaseEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/BaseEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\ChargebackEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentChargebackEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\CustomerEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/CustomerEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\CustomerPaymentEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/CustomerPaymentEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\InvoiceEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/InvoiceEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\MandateEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/MandateEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\MethodEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/MethodEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrderEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrderEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrderLineEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrderLineEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrderRefundEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrderRefundEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\OrganizationEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrganizationEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PaymentCaptureEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentCaptureEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PaymentEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PaymentRefundEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentRefundEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\PermissionEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PermissionEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\ProfileEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/ProfileEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\RefundEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/RefundEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\SettlementEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/SettlementEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\ShipmentEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/ShipmentEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Endpoints\\SubscriptionEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/SubscriptionEndpointTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\MollieApiClientTest' => __DIR__ . '/../..' . '/tests/Mollie/API/MollieApiClientTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\InvoiceTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/InvoiceTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\OrderLineCollectionTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/OrderLineCollectionTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\OrderLineTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/OrderLineTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\OrderTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/OrderTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\PaymentTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/PaymentTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\ProfileTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/ProfileTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\RefundTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/RefundTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\ResourceFactoryTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/ResourceFactoryTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\SettlementTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/SettlementTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\ShipmentTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/ShipmentTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\Api\\Resources\\SubscriptionTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/SubscriptionTest.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\TestHelpers\\AmountObjectTestHelpers' => __DIR__ . '/../..' . '/tests/Mollie/TestHelpers/AmountObjectTestHelpers.php', - '_PhpScoper5bbb1f4b001f3\\Tests\\Mollie\\TestHelpers\\LinkObjectTestHelpers' => __DIR__ . '/../..' . '/tests/Mollie/TestHelpers/LinkObjectTestHelpers.php', + '_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\CaBundle' => __DIR__ . '/..' . '/composer/ca-bundle/src/CaBundle.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Client' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Client.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\ClientInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/ClientInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\CookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/CookieJar.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\CookieJarInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\FileCookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\SessionCookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Cookie\\SetCookie' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/SetCookie.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\BadResponseException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/BadResponseException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\ClientException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ClientException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\ConnectException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ConnectException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\GuzzleException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/GuzzleException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\RequestException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/RequestException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\SeekException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/SeekException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\ServerException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ServerException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\TooManyRedirectsException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Exception\\TransferException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/TransferException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\HandlerStack' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/HandlerStack.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlFactory' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlFactory.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlFactoryInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\CurlMultiHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\EasyHandle' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\MockHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/MockHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\Proxy' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/Proxy.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Handler\\StreamHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\MessageFormatter' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/MessageFormatter.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Middleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Middleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Pool' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Pool.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\PrepareBodyMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\AggregateException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/AggregateException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\CancellationException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/CancellationException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\Coroutine' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Coroutine.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\EachPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/EachPromise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\FulfilledPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/FulfilledPromise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\Promise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Promise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\PromiseInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/PromiseInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\PromisorInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/PromisorInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\RejectedPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/RejectedPromise.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\RejectionException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/RejectionException.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\TaskQueue' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueue.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\TaskQueueInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueueInterface.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\AppendStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/AppendStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\BufferStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/BufferStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\CachingStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/CachingStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\DroppingStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/DroppingStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\FnStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/FnStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\InflateStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/InflateStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\LazyOpenStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LazyOpenStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\LimitStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LimitStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\MessageTrait' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MessageTrait.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\MultipartStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MultipartStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\NoSeekStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/NoSeekStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\PumpStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/PumpStream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Request' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Request.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Response' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Response.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Rfc7230' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Rfc7230.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\ServerRequest' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/ServerRequest.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Stream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Stream.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/StreamDecoratorTrait.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\StreamWrapper' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/StreamWrapper.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\UploadedFile' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UploadedFile.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\Uri' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Uri.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\UriNormalizer' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriNormalizer.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\UriResolver' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriResolver.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\RedirectMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\RequestOptions' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RequestOptions.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\RetryMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RetryMiddleware.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\TransferStats' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/TransferStats.php', + '_PhpScoper5ce26f1fe2920\\GuzzleHttp\\UriTemplate' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/UriTemplate.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\MessageInterface' => __DIR__ . '/..' . '/psr/http-message/src/MessageInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\RequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/RequestInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\ResponseInterface' => __DIR__ . '/..' . '/psr/http-message/src/ResponseInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\ServerRequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/ServerRequestInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\StreamInterface' => __DIR__ . '/..' . '/psr/http-message/src/StreamInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\UploadedFileInterface' => __DIR__ . '/..' . '/psr/http-message/src/UploadedFileInterface.php', + '_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\UriInterface' => __DIR__ . '/..' . '/psr/http-message/src/UriInterface.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Endpoints\\OnboardingEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OnboardingEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Exceptions\\ApiExceptionTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Exceptions/ApiExceptionTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Resources\\OnboardingTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/OnboardingTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\API\\Types\\MandateMethodTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Types/MandateMethodTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\CompatibilityCheckerTest' => __DIR__ . '/../..' . '/tests/Mollie/API/CompatibilityCheckerTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\BaseEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/BaseEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ChargebackEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/ChargebackEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\CustomerEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/CustomerEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\CustomerPaymentEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/CustomerPaymentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\InvoiceEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/InvoiceEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\MandateEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/MandateEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\MethodEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/MethodEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrderEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderLineEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrderLineEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderPaymentEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrderPaymentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrderRefundEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrderRefundEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\OrganizationEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/OrganizationEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentCaptureEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentCaptureEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentChargebackEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentChargebackEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PaymentRefundEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PaymentRefundEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\PermissionEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/PermissionEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ProfileEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/ProfileEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ProfileMethodEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/ProfileMethodEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\RefundEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/RefundEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\SettlementEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/SettlementEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\ShipmentEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/ShipmentEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Endpoints\\SubscriptionEndpointTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Endpoints/SubscriptionEndpointTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\MollieApiClientTest' => __DIR__ . '/../..' . '/tests/Mollie/API/MollieApiClientTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\InvoiceTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/InvoiceTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\OrderLineCollectionTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/OrderLineCollectionTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\OrderLineTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/OrderLineTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\OrderTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/OrderTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\PaymentTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/PaymentTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\ProfileTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/ProfileTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\RefundTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/RefundTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\ResourceFactoryTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/ResourceFactoryTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\SettlementTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/SettlementTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\ShipmentTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/ShipmentTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\Api\\Resources\\SubscriptionTest' => __DIR__ . '/../..' . '/tests/Mollie/API/Resources/SubscriptionTest.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\TestHelpers\\AmountObjectTestHelpers' => __DIR__ . '/../..' . '/tests/Mollie/TestHelpers/AmountObjectTestHelpers.php', + '_PhpScoper5ce26f1fe2920\\Tests\\Mollie\\TestHelpers\\LinkObjectTestHelpers' => __DIR__ . '/../..' . '/tests/Mollie/TestHelpers/LinkObjectTestHelpers.php', ); public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInita3126e82b6f8a8825a16880fe8b70058::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInita3126e82b6f8a8825a16880fe8b70058::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInita3126e82b6f8a8825a16880fe8b70058::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitb8e93f093dda8bae9cb1be42d9b20dd3::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitb8e93f093dda8bae9cb1be42d9b20dd3::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitb8e93f093dda8bae9cb1be42d9b20dd3::$classMap; }, null, ClassLoader::class); } diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/composer.json b/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/composer.json index 2771ecf6..b1fc0c90 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/composer.json +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/composer.json @@ -33,12 +33,12 @@ }, "autoload": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\": "src" + "_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\": "src" } }, "autoload-dev": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\": "tests" + "_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\": "tests" } }, "extra": { diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/res/cacert.pem b/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/res/cacert.pem index ee25bee1..09b4ce16 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/res/cacert.pem +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/res/cacert.pem @@ -1,7 +1,7 @@ ## ## Bundle of CA Root Certificates ## -## Certificate data from Mozilla as of: Wed Jun 20 03:12:06 2018 GMT +## Certificate data from Mozilla as of: Wed Jan 23 04:12:09 2019 GMT ## ## This is a bundle of X.509 certificates of public Certificate Authorities ## (CA). These were automatically extracted from Mozilla's root certificates @@ -14,7 +14,7 @@ ## Just configure this file as the SSLCACertificateFile. ## ## Conversion done with mk-ca-bundle.pl version 1.27. -## SHA256: c80f571d9f4ebca4a91e0ad3a546f263153d71afffc845c6f8f52ce9d1a2e8ec +## SHA256: 18372117493b5b7ec006c31d966143fc95a9464a2b5f8d5188e23c5557b2292d ## @@ -261,28 +261,6 @@ gn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwXQMAJKOSLakhT2+zNVVXxxvjpoixMptEm X36vWkzaH6byHCx+rgIW0lbQL1dTR+iS -----END CERTIFICATE----- -Visa eCommerce Root -=================== ------BEGIN CERTIFICATE----- -MIIDojCCAoqgAwIBAgIQE4Y1TR0/BvLB+WUF1ZAcYjANBgkqhkiG9w0BAQUFADBrMQswCQYDVQQG -EwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMmVmlzYSBJbnRlcm5hdGlvbmFsIFNlcnZpY2Ug -QXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNvbW1lcmNlIFJvb3QwHhcNMDIwNjI2MDIxODM2 -WhcNMjIwNjI0MDAxNjEyWjBrMQswCQYDVQQGEwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMm -VmlzYSBJbnRlcm5hdGlvbmFsIFNlcnZpY2UgQXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNv -bW1lcmNlIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvV95WHm6h2mCxlCfL -F9sHP4CFT8icttD0b0/Pmdjh28JIXDqsOTPHH2qLJj0rNfVIsZHBAk4ElpF7sDPwsRROEW+1QK8b -RaVK7362rPKgH1g/EkZgPI2h4H3PVz4zHvtH8aoVlwdVZqW1LS7YgFmypw23RuwhY/81q6UCzyr0 -TP579ZRdhE2o8mCP2w4lPJ9zcc+U30rq299yOIzzlr3xF7zSujtFWsan9sYXiwGd/BmoKoMWuDpI -/k4+oKsGGelT84ATB+0tvz8KPFUgOSwsAGl0lUq8ILKpeeUYiZGo3BxN77t+Nwtd/jmliFKMAGzs -GHxBvfaLdXe6YJ2E5/4tAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEG -MB0GA1UdDgQWBBQVOIMPPyw/cDMezUb+B4wg4NfDtzANBgkqhkiG9w0BAQUFAAOCAQEAX/FBfXxc -CLkr4NWSR/pnXKUTwwMhmytMiUbPWU3J/qVAtmPN3XEolWcRzCSs00Rsca4BIGsDoo8Ytyk6feUW -YFN4PMCvFYP3j1IzJL1kk5fui/fbGKhtcbP3LBfQdCVp9/5rPJS+TUtBjE7ic9DjkCJzQ83z7+pz -zkWKsKZJ/0x9nXGIxHYdkFsd7v3M9+79YKWxehZx0RbQfBI8bGmX265fOZpwLwU8GUYEmSA20GBu -YQa7FkKMcPcw++DbZqMAAb3mLNqRX6BGi01qnD093QVG/na/oAo85ADmJ7f/hC3euiInlhBx6yLt -398znM/jra6O1I7mT1GvFpLgXPYHDw== ------END CERTIFICATE----- - Comodo AAA Services root ======================== -----BEGIN CERTIFICATE----- @@ -2792,126 +2770,6 @@ GiecMjvAwNW6qef4BENThe5SId6d9SWDPp5YSy/XZxMOIQIwBeF1Ad5o7SofTUwJCA3sS61kFyjn dc5FZXIhF8siQQ6ME5g4mlRtm8rifOoCWCKR -----END CERTIFICATE----- -Certplus Root CA G1 -=================== ------BEGIN CERTIFICATE----- -MIIFazCCA1OgAwIBAgISESBVg+QtPlRWhS2DN7cs3EYRMA0GCSqGSIb3DQEBDQUAMD4xCzAJBgNV -BAYTAkZSMREwDwYDVQQKDAhDZXJ0cGx1czEcMBoGA1UEAwwTQ2VydHBsdXMgUm9vdCBDQSBHMTAe -Fw0xNDA1MjYwMDAwMDBaFw0zODAxMTUwMDAwMDBaMD4xCzAJBgNVBAYTAkZSMREwDwYDVQQKDAhD -ZXJ0cGx1czEcMBoGA1UEAwwTQ2VydHBsdXMgUm9vdCBDQSBHMTCCAiIwDQYJKoZIhvcNAQEBBQAD -ggIPADCCAgoCggIBANpQh7bauKk+nWT6VjOaVj0W5QOVsjQcmm1iBdTYj+eJZJ+622SLZOZ5KmHN -r49aiZFluVj8tANfkT8tEBXgfs+8/H9DZ6itXjYj2JizTfNDnjl8KvzsiNWI7nC9hRYt6kuJPKNx -Qv4c/dMcLRC4hlTqQ7jbxofaqK6AJc96Jh2qkbBIb6613p7Y1/oA/caP0FG7Yn2ksYyy/yARujVj -BYZHYEMzkPZHogNPlk2dT8Hq6pyi/jQu3rfKG3akt62f6ajUeD94/vI4CTYd0hYCyOwqaK/1jpTv -LRN6HkJKHRUxrgwEV/xhc/MxVoYxgKDEEW4wduOU8F8ExKyHcomYxZ3MVwia9Az8fXoFOvpHgDm2 -z4QTd28n6v+WZxcIbekN1iNQMLAVdBM+5S//Ds3EC0pd8NgAM0lm66EYfFkuPSi5YXHLtaW6uOrc -4nBvCGrch2c0798wct3zyT8j/zXhviEpIDCB5BmlIOklynMxdCm+4kLV87ImZsdo/Rmz5yCTmehd -4F6H50boJZwKKSTUzViGUkAksnsPmBIgJPaQbEfIDbsYIC7Z/fyL8inqh3SV4EJQeIQEQWGw9CEj -jy3LKCHyamz0GqbFFLQ3ZU+V/YDI+HLlJWvEYLF7bY5KinPOWftwenMGE9nTdDckQQoRb5fc5+R+ -ob0V8rqHDz1oihYHAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0G -A1UdDgQWBBSowcCbkahDFXxdBie0KlHYlwuBsTAfBgNVHSMEGDAWgBSowcCbkahDFXxdBie0KlHY -lwuBsTANBgkqhkiG9w0BAQ0FAAOCAgEAnFZvAX7RvUz1isbwJh/k4DgYzDLDKTudQSk0YcbX8ACh -66Ryj5QXvBMsdbRX7gp8CXrc1cqh0DQT+Hern+X+2B50ioUHj3/MeXrKls3N/U/7/SMNkPX0XtPG -YX2eEeAC7gkE2Qfdpoq3DIMku4NQkv5gdRE+2J2winq14J2by5BSS7CTKtQ+FjPlnsZlFT5kOwQ/ -2wyPX1wdaR+v8+khjPPvl/aatxm2hHSco1S1cE5j2FddUyGbQJJD+tZ3VTNPZNX70Cxqjm0lpu+F -6ALEUz65noe8zDUa3qHpimOHZR4RKttjd5cUvpoUmRGywO6wT/gUITJDT5+rosuoD6o7BlXGEilX -CNQ314cnrUlZp5GrRHpejXDbl85IULFzk/bwg2D5zfHhMf1bfHEhYxQUqq/F3pN+aLHsIqKqkHWe -tUNy6mSjhEv9DKgma3GX7lZjZuhCVPnHHd/Qj1vfyDBviP4NxDMcU6ij/UgQ8uQKTuEVV/xuZDDC -VRHc6qnNSlSsKWNEz0pAoNZoWRsz+e86i9sgktxChL8Bq4fA1SCC28a5g4VCXA9DO2pJNdWY9BW/ -+mGBDAkgGNLQFwzLSABQ6XaCjGTXOqAHVcweMcDvOrRl++O/QmueD6i9a5jc2NvLi6Td11n0bt3+ -qsOR0C5CB8AMTVPNJLFMWx5R9N/pkvo= ------END CERTIFICATE----- - -Certplus Root CA G2 -=================== ------BEGIN CERTIFICATE----- -MIICHDCCAaKgAwIBAgISESDZkc6uo+jF5//pAq/Pc7xVMAoGCCqGSM49BAMDMD4xCzAJBgNVBAYT -AkZSMREwDwYDVQQKDAhDZXJ0cGx1czEcMBoGA1UEAwwTQ2VydHBsdXMgUm9vdCBDQSBHMjAeFw0x -NDA1MjYwMDAwMDBaFw0zODAxMTUwMDAwMDBaMD4xCzAJBgNVBAYTAkZSMREwDwYDVQQKDAhDZXJ0 -cGx1czEcMBoGA1UEAwwTQ2VydHBsdXMgUm9vdCBDQSBHMjB2MBAGByqGSM49AgEGBSuBBAAiA2IA -BM0PW1aC3/BFGtat93nwHcmsltaeTpwftEIRyoa/bfuFo8XlGVzX7qY/aWfYeOKmycTbLXku54uN -Am8xIk0G42ByRZ0OQneezs/lf4WbGOT8zC5y0xaTTsqZY1yhBSpsBqNjMGEwDgYDVR0PAQH/BAQD -AgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNqDYwJ5jtpMxjwjFNiPwyCrKGBZMB8GA1Ud -IwQYMBaAFNqDYwJ5jtpMxjwjFNiPwyCrKGBZMAoGCCqGSM49BAMDA2gAMGUCMHD+sAvZ94OX7PNV -HdTcswYO/jOYnYs5kGuUIe22113WTNchp+e/IQ8rzfcq3IUHnQIxAIYUFuXcsGXCwI4Un78kFmjl -vPl5adytRSv3tjFzzAalU5ORGpOucGpnutee5WEaXw== ------END CERTIFICATE----- - -OpenTrust Root CA G1 -==================== ------BEGIN CERTIFICATE----- -MIIFbzCCA1egAwIBAgISESCzkFU5fX82bWTCp59rY45nMA0GCSqGSIb3DQEBCwUAMEAxCzAJBgNV -BAYTAkZSMRIwEAYDVQQKDAlPcGVuVHJ1c3QxHTAbBgNVBAMMFE9wZW5UcnVzdCBSb290IENBIEcx -MB4XDTE0MDUyNjA4NDU1MFoXDTM4MDExNTAwMDAwMFowQDELMAkGA1UEBhMCRlIxEjAQBgNVBAoM -CU9wZW5UcnVzdDEdMBsGA1UEAwwUT3BlblRydXN0IFJvb3QgQ0EgRzEwggIiMA0GCSqGSIb3DQEB -AQUAA4ICDwAwggIKAoICAQD4eUbalsUwXopxAy1wpLuwxQjczeY1wICkES3d5oeuXT2R0odsN7fa -Yp6bwiTXj/HbpqbfRm9RpnHLPhsxZ2L3EVs0J9V5ToybWL0iEA1cJwzdMOWo010hOHQX/uMftk87 -ay3bfWAfjH1MBcLrARYVmBSO0ZB3Ij/swjm4eTrwSSTilZHcYTSSjFR077F9jAHiOH3BX2pfJLKO -YheteSCtqx234LSWSE9mQxAGFiQD4eCcjsZGT44ameGPuY4zbGneWK2gDqdkVBFpRGZPTBKnjix9 -xNRbxQA0MMHZmf4yzgeEtE7NCv82TWLxp2NX5Ntqp66/K7nJ5rInieV+mhxNaMbBGN4zK1FGSxyO -9z0M+Yo0FMT7MzUj8czxKselu7Cizv5Ta01BG2Yospb6p64KTrk5M0ScdMGTHPjgniQlQ/GbI4Kq -3ywgsNw2TgOzfALU5nsaqocTvz6hdLubDuHAk5/XpGbKuxs74zD0M1mKB3IDVedzagMxbm+WG+Oi -n6+Sx+31QrclTDsTBM8clq8cIqPQqwWyTBIjUtz9GVsnnB47ev1CI9sjgBPwvFEVVJSmdz7QdFG9 -URQIOTfLHzSpMJ1ShC5VkLG631UAC9hWLbFJSXKAqWLXwPYYEQRVzXR7z2FwefR7LFxckvzluFqr -TJOVoSfupb7PcSNCupt2LQIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB -/zAdBgNVHQ4EFgQUl0YhVyE12jZVx/PxN3DlCPaTKbYwHwYDVR0jBBgwFoAUl0YhVyE12jZVx/Px -N3DlCPaTKbYwDQYJKoZIhvcNAQELBQADggIBAB3dAmB84DWn5ph76kTOZ0BP8pNuZtQ5iSas000E -PLuHIT839HEl2ku6q5aCgZG27dmxpGWX4m9kWaSW7mDKHyP7Rbr/jyTwyqkxf3kfgLMtMrpkZ2Cv -uVnN35pJ06iCsfmYlIrM4LvgBBuZYLFGZdwIorJGnkSI6pN+VxbSFXJfLkur1J1juONI5f6ELlgK -n0Md/rcYkoZDSw6cMoYsYPXpSOqV7XAp8dUv/TW0V8/bhUiZucJvbI/NeJWsZCj9VrDDb8O+WVLh -X4SPgPL0DTatdrOjteFkdjpY3H1PXlZs5VVZV6Xf8YpmMIzUUmI4d7S+KNfKNsSbBfD4Fdvb8e80 -nR14SohWZ25g/4/Ii+GOvUKpMwpZQhISKvqxnUOOBZuZ2mKtVzazHbYNeS2WuOvyDEsMpZTGMKcm -GS3tTAZQMPH9WD25SxdfGbRqhFS0OE85og2WaMMolP3tLR9Ka0OWLpABEPs4poEL0L9109S5zvE/ -bw4cHjdx5RiHdRk/ULlepEU0rbDK5uUTdg8xFKmOLZTW1YVNcxVPS/KyPu1svf0OnWZzsD2097+o -4BGkxK51CUpjAEggpsadCwmKtODmzj7HPiY46SvepghJAwSQiumPv+i2tCqjI40cHLI5kqiPAlxA -OXXUc0ECd97N4EOH1uS6SsNsEn/+KuYj1oxx ------END CERTIFICATE----- - -OpenTrust Root CA G2 -==================== ------BEGIN CERTIFICATE----- -MIIFbzCCA1egAwIBAgISESChaRu/vbm9UpaPI+hIvyYRMA0GCSqGSIb3DQEBDQUAMEAxCzAJBgNV -BAYTAkZSMRIwEAYDVQQKDAlPcGVuVHJ1c3QxHTAbBgNVBAMMFE9wZW5UcnVzdCBSb290IENBIEcy -MB4XDTE0MDUyNjAwMDAwMFoXDTM4MDExNTAwMDAwMFowQDELMAkGA1UEBhMCRlIxEjAQBgNVBAoM -CU9wZW5UcnVzdDEdMBsGA1UEAwwUT3BlblRydXN0IFJvb3QgQ0EgRzIwggIiMA0GCSqGSIb3DQEB -AQUAA4ICDwAwggIKAoICAQDMtlelM5QQgTJT32F+D3Y5z1zCU3UdSXqWON2ic2rxb95eolq5cSG+ -Ntmh/LzubKh8NBpxGuga2F8ORAbtp+Dz0mEL4DKiltE48MLaARf85KxP6O6JHnSrT78eCbY2albz -4e6WiWYkBuTNQjpK3eCasMSCRbP+yatcfD7J6xcvDH1urqWPyKwlCm/61UWY0jUJ9gNDlP7ZvyCV -eYCYitmJNbtRG6Q3ffyZO6v/v6wNj0OxmXsWEH4db0fEFY8ElggGQgT4hNYdvJGmQr5J1WqIP7wt -UdGejeBSzFfdNTVY27SPJIjki9/ca1TSgSuyzpJLHB9G+h3Ykst2Z7UJmQnlrBcUVXDGPKBWCgOz -3GIZ38i1MH/1PCZ1Eb3XG7OHngevZXHloM8apwkQHZOJZlvoPGIytbU6bumFAYueQ4xncyhZW+vj -3CzMpSZyYhK05pyDRPZRpOLAeiRXyg6lPzq1O4vldu5w5pLeFlwoW5cZJ5L+epJUzpM5ChaHvGOz -9bGTXOBut9Dq+WIyiET7vycotjCVXRIouZW+j1MY5aIYFuJWpLIsEPUdN6b4t/bQWVyJ98LVtZR0 -0dX+G7bw5tYee9I8y6jj9RjzIR9u701oBnstXW5DiabA+aC/gh7PU3+06yzbXfZqfUAkBXKJOAGT -y3HCOV0GEfZvePg3DTmEJwIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB -/zAdBgNVHQ4EFgQUajn6QiL35okATV59M4PLuG53hq8wHwYDVR0jBBgwFoAUajn6QiL35okATV59 -M4PLuG53hq8wDQYJKoZIhvcNAQENBQADggIBAJjLq0A85TMCl38th6aP1F5Kr7ge57tx+4BkJamz -Gj5oXScmp7oq4fBXgwpkTx4idBvpkF/wrM//T2h6OKQQbA2xx6R3gBi2oihEdqc0nXGEL8pZ0keI -mUEiyTCYYW49qKgFbdEfwFFEVn8nNQLdXpgKQuswv42hm1GqO+qTRmTFAHneIWv2V6CG1wZy7HBG -S4tz3aAhdT7cHcCP009zHIXZ/n9iyJVvttN7jLpTwm+bREx50B1ws9efAvSyB7DH5fitIw6mVskp -EndI2S9G/Tvw/HRwkqWOOAgfZDC2t0v7NqwQjqBSM2OdAzVWxWm9xiNaJ5T2pBL4LTM8oValX9YZ -6e18CL13zSdkzJTaTkZQh+D5wVOAHrut+0dSixv9ovneDiK3PTNZbNTe9ZUGMg1RGUFcPk8G97kr -gCf2o6p6fAbhQ8MTOWIaNr3gKC6UAuQpLmBVrkA9sHSSXvAgZJY/X0VdiLWK2gKgW0VU3jg9CcCo -SmVGFvyqv1ROTVu+OEO3KMqLM6oaJbolXCkvW0pujOotnCr2BXbgd5eAiN1nE28daCSLT7d0geX0 -YJ96Vdc+N9oWaz53rK4YcJUIeSkDiv7BO7M/Gg+kO14fWKGVyasvc0rQLW6aWQ9VGHgtPFGml4vm -u7JwqkwR3v98KzfUetF3NI/n+UL3PIEMS1IK ------END CERTIFICATE----- - -OpenTrust Root CA G3 -==================== ------BEGIN CERTIFICATE----- -MIICITCCAaagAwIBAgISESDm+Ez8JLC+BUCs2oMbNGA/MAoGCCqGSM49BAMDMEAxCzAJBgNVBAYT -AkZSMRIwEAYDVQQKDAlPcGVuVHJ1c3QxHTAbBgNVBAMMFE9wZW5UcnVzdCBSb290IENBIEczMB4X -DTE0MDUyNjAwMDAwMFoXDTM4MDExNTAwMDAwMFowQDELMAkGA1UEBhMCRlIxEjAQBgNVBAoMCU9w -ZW5UcnVzdDEdMBsGA1UEAwwUT3BlblRydXN0IFJvb3QgQ0EgRzMwdjAQBgcqhkjOPQIBBgUrgQQA -IgNiAARK7liuTcpm3gY6oxH84Bjwbhy6LTAMidnW7ptzg6kjFYwvWYpa3RTqnVkrQ7cG7DK2uu5B -ta1doYXM6h0UZqNnfkbilPPntlahFVmhTzeXuSIevRHr9LIfXsMUmuXZl5mjYzBhMA4GA1UdDwEB -/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRHd8MUi2I5DMlv4VBN0BBY3JWIbTAf -BgNVHSMEGDAWgBRHd8MUi2I5DMlv4VBN0BBY3JWIbTAKBggqhkjOPQQDAwNpADBmAjEAj6jcnboM -BBf6Fek9LykBl7+BFjNAk2z8+e2AcG+qj9uEwov1NcoG3GRvaBbhj5G5AjEA2Euly8LQCGzpGPta -3U1fJAuwACEl74+nBCZx4nxp5V2a+EEfOzmTk51V6s2N8fvB ------END CERTIFICATE----- - ISRG Root X1 ============ -----BEGIN CERTIFICATE----- @@ -3312,3 +3170,232 @@ BBYEFFvKXuXe0oGqzagtZFG22XKbl+ZPMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUW8pe N+vp1RPZytRrJPOwPYdGWBrssd9v+1a6cGvHOMzosYxPD/fxZ3YOg9AeUY8CMD32IygmTMZgh5Mm m7I1HrrW9zzRHM76JTymGoEVW/MSD2zuZYrJh6j5B+BimoxcSg== -----END CERTIFICATE----- + +GlobalSign Root CA - R6 +======================= +-----BEGIN CERTIFICATE----- +MIIFgzCCA2ugAwIBAgIORea7A4Mzw4VlSOb/RVEwDQYJKoZIhvcNAQEMBQAwTDEgMB4GA1UECxMX +R2xvYmFsU2lnbiBSb290IENBIC0gUjYxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds +b2JhbFNpZ24wHhcNMTQxMjEwMDAwMDAwWhcNMzQxMjEwMDAwMDAwWjBMMSAwHgYDVQQLExdHbG9i +YWxTaWduIFJvb3QgQ0EgLSBSNjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFs +U2lnbjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJUH6HPKZvnsFMp7PPcNCPG0RQss +grRIxutbPK6DuEGSMxSkb3/pKszGsIhrxbaJ0cay/xTOURQh7ErdG1rG1ofuTToVBu1kZguSgMpE +3nOUTvOniX9PeGMIyBJQbUJmL025eShNUhqKGoC3GYEOfsSKvGRMIRxDaNc9PIrFsmbVkJq3MQbF +vuJtMgamHvm566qjuL++gmNQ0PAYid/kD3n16qIfKtJwLnvnvJO7bVPiSHyMEAc4/2ayd2F+4OqM +PKq0pPbzlUoSB239jLKJz9CgYXfIWHSw1CM69106yqLbnQneXUQtkPGBzVeS+n68UARjNN9rkxi+ +azayOeSsJDa38O+2HBNXk7besvjihbdzorg1qkXy4J02oW9UivFyVm4uiMVRQkQVlO6jxTiWm05O +WgtH8wY2SXcwvHE35absIQh1/OZhFj931dmRl4QKbNQCTXTAFO39OfuD8l4UoQSwC+n+7o/hbguy +CLNhZglqsQY6ZZZZwPA1/cnaKI0aEYdwgQqomnUdnjqGBQCe24DWJfncBZ4nWUx2OVvq+aWh2IMP +0f/fMBH5hc8zSPXKbWQULHpYT9NLCEnFlWQaYw55PfWzjMpYrZxCRXluDocZXFSxZba/jJvcE+kN +b7gu3GduyYsRtYQUigAZcIN5kZeR1BonvzceMgfYFGM8KEyvAgMBAAGjYzBhMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSubAWjkxPioufi1xzWx/B/yGdToDAfBgNV +HSMEGDAWgBSubAWjkxPioufi1xzWx/B/yGdToDANBgkqhkiG9w0BAQwFAAOCAgEAgyXt6NH9lVLN +nsAEoJFp5lzQhN7craJP6Ed41mWYqVuoPId8AorRbrcWc+ZfwFSY1XS+wc3iEZGtIxg93eFyRJa0 +lV7Ae46ZeBZDE1ZXs6KzO7V33EByrKPrmzU+sQghoefEQzd5Mr6155wsTLxDKZmOMNOsIeDjHfrY +BzN2VAAiKrlNIC5waNrlU/yDXNOd8v9EDERm8tLjvUYAGm0CuiVdjaExUd1URhxN25mW7xocBFym +Fe944Hn+Xds+qkxV/ZoVqW/hpvvfcDDpw+5CRu3CkwWJ+n1jez/QcYF8AOiYrg54NMMl+68KnyBr +3TsTjxKM4kEaSHpzoHdpx7Zcf4LIHv5YGygrqGytXm3ABdJ7t+uA/iU3/gKbaKxCXcPu9czc8FB1 +0jZpnOZ7BN9uBmm23goJSFmH63sUYHpkqmlD75HHTOwY3WzvUy2MmeFe8nI+z1TIvWfspA9MRf/T +uTAjB0yPEL+GltmZWrSZVxykzLsViVO6LAUP5MSeGbEYNNVMnbrt9x+vJJUEeKgDu+6B5dpffItK +oZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+t +JDfLRVpOoERIyNiwmcUVhAn21klJwGW45hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA= +-----END CERTIFICATE----- + +OISTE WISeKey Global Root GC CA +=============================== +-----BEGIN CERTIFICATE----- +MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQswCQYDVQQGEwJD +SDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEo +MCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRa +Fw00MjA1MDkwOTU4MzNaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQL +ExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh +bCBSb290IEdDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4nieUqjFqdr +VCTbUf/q9Akkwwsin8tqJ4KBDdLArzHkdIJuyiXZjHWd8dvQmqJLIX4Wp2OQ0jnUsYd4XxiWD1Ab +NTcPasbc2RNNpI6QN+a9WzGRo1QwUjAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd +BgNVHQ4EFgQUSIcUrOPDnpBgOtfKie7TrYy0UGYwEAYJKwYBBAGCNxUBBAMCAQAwCgYIKoZIzj0E +AwMDaAAwZQIwJsdpW9zV57LnyAyMjMPdeYwbY9XJUpROTYJKcx6ygISpJcBMWm1JKWB4E+J+SOtk +AjEA2zQgMgj/mkkCtojeFK9dbJlxjRo/i9fgojaGHAeCOnZT/cKi7e97sIBPWA9LUzm9 +-----END CERTIFICATE----- + +GTS Root R1 +=========== +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgIQbkepxUtHDA3sM9CJuRz04TANBgkqhkiG9w0BAQwFADBHMQswCQYDVQQG +EwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJv +b3QgUjEwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAG +A1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjEwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2EQKLHuOhd5s73L+UPreVp0A8of2C+X0yBoJx +9vaMf/vo27xqLpeXo4xL+Sv2sfnOhB2x+cWX3u+58qPpvBKJXqeqUqv4IyfLpLGcY9vXmX7wCl7r +aKb0xlpHDU0QM+NOsROjyBhsS+z8CZDfnWQpJSMHobTSPS5g4M/SCYe7zUjwTcLCeoiKu7rPWRnW +r4+wB7CeMfGCwcDfLqZtbBkOtdh+JhpFAz2weaSUKK0PfyblqAj+lug8aJRT7oM6iCsVlgmy4HqM +LnXWnOunVmSPlk9orj2XwoSPwLxAwAtcvfaHszVsrBhQf4TgTM2S0yDpM7xSma8ytSmzJSq0SPly +4cpk9+aCEI3oncKKiPo4Zor8Y/kB+Xj9e1x3+naH+uzfsQ55lVe0vSbv1gHR6xYKu44LtcXFilWr +06zqkUspzBmkMiVOKvFlRNACzqrOSbTqn3yDsEB750Orp2yjj32JgfpMpf/VjsPOS+C12LOORc92 +wO1AK/1TD7Cn1TsNsYqiA94xrcx36m97PtbfkSIS5r762DL8EGMUUXLeXdYWk70paDPvOmbsB4om +3xPXV2V4J95eSRQAogB/mqghtqmxlbCluQ0WEdrHbEg8QOB+DVrNVjzRlwW5y0vtOUucxD/SVRNu +JLDWcfr0wbrM7Rv1/oFB2ACYPTrIrnqYNxgFlQIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYD +VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU5K8rJnEaK0gnhS9SZizv8IkTcT4wDQYJKoZIhvcNAQEM +BQADggIBADiWCu49tJYeX++dnAsznyvgyv3SjgofQXSlfKqE1OXyHuY3UjKcC9FhHb8owbZEKTV1 +d5iyfNm9dKyKaOOpMQkpAWBz40d8U6iQSifvS9efk+eCNs6aaAyC58/UEBZvXw6ZXPYfcX3v73sv +fuo21pdwCxXu11xWajOl40k4DLh9+42FpLFZXvRq4d2h9mREruZRgyFmxhE+885H7pwoHyXa/6xm +ld01D1zvICxi/ZG6qcz8WpyTgYMpl0p8WnK0OdC3d8t5/Wk6kjftbjhlRn7pYL15iJdfOBL07q9b +gsiG1eGZbYwE8na6SfZu6W0eX6DvJ4J2QPim01hcDyxC2kLGe4g0x8HYRZvBPsVhHdljUEn2NIVq +4BjFbkerQUIpm/ZgDdIx02OYI5NaAIFItO/Nis3Jz5nu2Z6qNuFoS3FJFDYoOj0dzpqPJeaAcWEr +tXvM+SUWgeExX6GjfhaknBZqlxi9dnKlC54dNuYvoS++cJEPqOba+MSSQGwlfnuzCdyyF62ARPBo +pY+Udf90WuioAnwMCeKpSwughQtiue+hMZL77/ZRBIls6Kl0obsXs7X9SQ98POyDGCBDTtWTurQ0 +sR8WNh8M5mQ5Fkzc4P4dyKliPUDqysU0ArSuiYgzNdwsE3PYJ/HQcu51OyLemGhmW/HGY0dVHLql +CFF1pkgl +-----END CERTIFICATE----- + +GTS Root R2 +=========== +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgIQbkepxlqz5yDFMJo/aFLybzANBgkqhkiG9w0BAQwFADBHMQswCQYDVQQG +EwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJv +b3QgUjIwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAG +A1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjIwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDO3v2m++zsFDQ8BwZabFn3GTXd98GdVarTzTuk +k3LvCvptnfbwhYBboUhSnznFt+4orO/LdmgUud+tAWyZH8QiHZ/+cnfgLFuv5AS/T3KgGjSY6Dlo +7JUle3ah5mm5hRm9iYz+re026nO8/4Piy33B0s5Ks40FnotJk9/BW9BuXvAuMC6C/Pq8tBcKSOWI +m8Wba96wyrQD8Nr0kLhlZPdcTK3ofmZemde4wj7I0BOdre7kRXuJVfeKH2JShBKzwkCX44ofR5Gm +dFrS+LFjKBC4swm4VndAoiaYecb+3yXuPuWgf9RhD1FLPD+M2uFwdNjCaKH5wQzpoeJ/u1U8dgbu +ak7MkogwTZq9TwtImoS1mKPV+3PBV2HdKFZ1E66HjucMUQkQdYhMvI35ezzUIkgfKtzra7tEscsz +cTJGr61K8YzodDqs5xoic4DSMPclQsciOzsSrZYuxsN2B6ogtzVJV+mSSeh2FnIxZyuWfoqjx5RW +Ir9qS34BIbIjMt/kmkRtWVtd9QCgHJvGeJeNkP+byKq0rxFROV7Z+2et1VsRnTKaG73Vululycsl +aVNVJ1zgyjbLiGH7HrfQy+4W+9OmTN6SpdTi3/UGVN4unUu0kzCqgc7dGtxRcw1PcOnlthYhGXmy +5okLdWTK1au8CcEYof/UVKGFPP0UJAOyh9OktwIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYD +VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUu//KjiOfT5nK2+JopqUVJxce2Q4wDQYJKoZIhvcNAQEM +BQADggIBALZp8KZ3/p7uC4Gt4cCpx/k1HUCCq+YEtN/L9x0Pg/B+E02NjO7jMyLDOfxA325BS0JT +vhaI8dI4XsRomRyYUpOM52jtG2pzegVATX9lO9ZY8c6DR2Dj/5epnGB3GFW1fgiTz9D2PGcDFWEJ ++YF59exTpJ/JjwGLc8R3dtyDovUMSRqodt6Sm2T4syzFJ9MHwAiApJiS4wGWAqoC7o87xdFtCjMw +c3i5T1QWvwsHoaRc5svJXISPD+AVdyx+Jn7axEvbpxZ3B7DNdehyQtaVhJ2Gg/LkkM0JR9SLA3Da +WsYDQvTtN6LwG1BUSw7YhN4ZKJmBR64JGz9I0cNv4rBgF/XuIwKl2gBbbZCr7qLpGzvpx0QnRY5r +n/WkhLx3+WuXrD5RRaIRpsyF7gpo8j5QOHokYh4XIDdtak23CZvJ/KRY9bb7nE4Yu5UC56Gtmwfu +Nmsk0jmGwZODUNKBRqhfYlcsu2xkiAhu7xNUX90txGdj08+JN7+dIPT7eoOboB6BAFDC5AwiWVIQ +7UNWhwD4FFKnHYuTjKJNRn8nxnGbJN7k2oaLDX5rIMHAnuFl2GqjpuiFizoHCBy69Y9Vmhh1fuXs +gWbRIXOhNUQLgD1bnF5vKheW0YMjiGZt5obicDIvUiLnyOd/xCxgXS/Dr55FBcOEArf9LAhST4Ld +o/DUhgkC +-----END CERTIFICATE----- + +GTS Root R3 +=========== +-----BEGIN CERTIFICATE----- +MIICDDCCAZGgAwIBAgIQbkepx2ypcyRAiQ8DVd2NHTAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJV +UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg +UjMwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE +ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjMwdjAQBgcq +hkjOPQIBBgUrgQQAIgNiAAQfTzOHMymKoYTey8chWEGJ6ladK0uFxh1MJ7x/JlFyb+Kf1qPKzEUU +Rout736GjOyxfi//qXGdGIRFBEFVbivqJn+7kAHjSxm65FSWRQmx1WyRRK2EE46ajA2ADDL24Cej +QjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTB8Sa6oC2uhYHP +0/EqEr24Cmf9vDAKBggqhkjOPQQDAwNpADBmAjEAgFukfCPAlaUs3L6JbyO5o91lAFJekazInXJ0 +glMLfalAvWhgxeG4VDvBNhcl2MG9AjEAnjWSdIUlUfUk7GRSJFClH9voy8l27OyCbvWFGFPouOOa +KaqW04MjyaR7YbPMAuhd +-----END CERTIFICATE----- + +GTS Root R4 +=========== +-----BEGIN CERTIFICATE----- +MIICCjCCAZGgAwIBAgIQbkepyIuUtui7OyrYorLBmTAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJV +UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg +UjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE +ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcq +hkjOPQIBBgUrgQQAIgNiAATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa +6zzuhXyiQHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvRHYqj +QjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSATNbrdP9JNqPV +2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNnADBkAjBqUFJ0CMRw3J5QdCHojXohw0+WbhXRIjVhLfoI +N+4Zba3bssx9BzT1YBkstTTZbyACMANxsbqjYAuG7ZoIapVon+Kz4ZNkfF6Tpt95LY2F45TPI11x +zPKwTdb+mciUqXWi4w== +-----END CERTIFICATE----- + +UCA Global G2 Root +================== +-----BEGIN CERTIFICATE----- +MIIFRjCCAy6gAwIBAgIQXd+x2lqj7V2+WmUgZQOQ7zANBgkqhkiG9w0BAQsFADA9MQswCQYDVQQG +EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxGzAZBgNVBAMMElVDQSBHbG9iYWwgRzIgUm9vdDAeFw0x +NjAzMTEwMDAwMDBaFw00MDEyMzEwMDAwMDBaMD0xCzAJBgNVBAYTAkNOMREwDwYDVQQKDAhVbmlU +cnVzdDEbMBkGA1UEAwwSVUNBIEdsb2JhbCBHMiBSb290MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A +MIICCgKCAgEAxeYrb3zvJgUno4Ek2m/LAfmZmqkywiKHYUGRO8vDaBsGxUypK8FnFyIdK+35KYmT +oni9kmugow2ifsqTs6bRjDXVdfkX9s9FxeV67HeToI8jrg4aA3++1NDtLnurRiNb/yzmVHqUwCoV +8MmNsHo7JOHXaOIxPAYzRrZUEaalLyJUKlgNAQLx+hVRZ2zA+te2G3/RVogvGjqNO7uCEeBHANBS +h6v7hn4PJGtAnTRnvI3HLYZveT6OqTwXS3+wmeOwcWDcC/Vkw85DvG1xudLeJ1uK6NjGruFZfc8o +LTW4lVYa8bJYS7cSN8h8s+1LgOGN+jIjtm+3SJUIsUROhYw6AlQgL9+/V087OpAh18EmNVQg7Mc/ +R+zvWr9LesGtOxdQXGLYD0tK3Cv6brxzks3sx1DoQZbXqX5t2Okdj4q1uViSukqSKwxW/YDrCPBe +KW4bHAyvj5OJrdu9o54hyokZ7N+1wxrrFv54NkzWbtA+FxyQF2smuvt6L78RHBgOLXMDj6DlNaBa +4kx1HXHhOThTeEDMg5PXCp6dW4+K5OXgSORIskfNTip1KnvyIvbJvgmRlld6iIis7nCs+dwp4wwc +OxJORNanTrAmyPPZGpeRaOrvjUYG0lZFWJo8DA+DuAUlwznPO6Q0ibd5Ei9Hxeepl2n8pndntd97 +8XplFeRhVmUCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O +BBYEFIHEjMz15DD/pQwIX4wVZyF0Ad/fMA0GCSqGSIb3DQEBCwUAA4ICAQATZSL1jiutROTL/7lo +5sOASD0Ee/ojL3rtNtqyzm325p7lX1iPyzcyochltq44PTUbPrw7tgTQvPlJ9Zv3hcU2tsu8+Mg5 +1eRfB70VVJd0ysrtT7q6ZHafgbiERUlMjW+i67HM0cOU2kTC5uLqGOiiHycFutfl1qnN3e92mI0A +Ds0b+gO3joBYDic/UvuUospeZcnWhNq5NXHzJsBPd+aBJ9J3O5oUb3n09tDh05S60FdRvScFDcH9 +yBIw7m+NESsIndTUv4BFFJqIRNow6rSn4+7vW4LVPtateJLbXDzz2K36uGt/xDYotgIVilQsnLAX +c47QN6MUPJiVAAwpBVueSUmxX8fjy88nZY41F7dXyDDZQVu5FLbowg+UMaeUmMxq67XhJ/UQqAHo +jhJi6IjMtX9Gl8CbEGY4GjZGXyJoPd/JxhMnq1MGrKI8hgZlb7F+sSlEmqO6SWkoaY/X5V+tBIZk +bxqgDMUIYs6Ao9Dz7GjevjPHF1t/gMRMTLGmhIrDO7gJzRSBuhjjVFc2/tsvfEehOjPI+Vg7RE+x +ygKJBJYoaMVLuCaJu9YzL1DV/pqJuhgyklTGW+Cd+V7lDSKb9triyCGyYiGqhkCyLmTTX8jjfhFn +RR8F/uOi77Oos/N9j/gMHyIfLXC0uAE0djAA5SN4p1bXUB+K+wb1whnw0A== +-----END CERTIFICATE----- + +UCA Extended Validation Root +============================ +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgIQT9Irj/VkyDOeTzRYZiNwYDANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQG +EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9u +IFJvb3QwHhcNMTUwMzEzMDAwMDAwWhcNMzgxMjMxMDAwMDAwWjBHMQswCQYDVQQGEwJDTjERMA8G +A1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9uIFJvb3QwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCpCQcoEwKwmeBkqh5DFnpzsZGgdT6o+uM4AHrs +iWogD4vFsJszA1qGxliG1cGFu0/GnEBNyr7uaZa4rYEwmnySBesFK5pI0Lh2PpbIILvSsPGP2KxF +Rv+qZ2C0d35qHzwaUnoEPQc8hQ2E0B92CvdqFN9y4zR8V05WAT558aopO2z6+I9tTcg1367r3CTu +eUWnhbYFiN6IXSV8l2RnCdm/WhUFhvMJHuxYMjMR83dksHYf5BA1FxvyDrFspCqjc/wJHx4yGVMR +59mzLC52LqGj3n5qiAno8geK+LLNEOfic0CTuwjRP+H8C5SzJe98ptfRr5//lpr1kXuYC3fUfugH +0mK1lTnj8/FtDw5lhIpjVMWAtuCeS31HJqcBCF3RiJ7XwzJE+oJKCmhUfzhTA8ykADNkUVkLo4KR +el7sFsLzKuZi2irbWWIQJUoqgQtHB0MGcIfS+pMRKXpITeuUx3BNr2fVUbGAIAEBtHoIppB/TuDv +B0GHr2qlXov7z1CymlSvw4m6WC31MJixNnI5fkkE/SmnTHnkBVfblLkWU41Gsx2VYVdWf6/wFlth +WG82UBEL2KwrlRYaDh8IzTY0ZRBiZtWAXxQgXy0MoHgKaNYs1+lvK9JKBZP8nm9rZ/+I8U6laUpS +NwXqxhaN0sSZ0YIrO7o1dfdRUVjzyAfd5LQDfwIDAQABo0IwQDAdBgNVHQ4EFgQU2XQ65DA9DfcS +3H5aBZ8eNJr34RQwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZIhvcNAQEL +BQADggIBADaNl8xCFWQpN5smLNb7rhVpLGsaGvdftvkHTFnq88nIua7Mui563MD1sC3AO6+fcAUR +ap8lTwEpcOPlDOHqWnzcSbvBHiqB9RZLcpHIojG5qtr8nR/zXUACE/xOHAbKsxSQVBcZEhrxH9cM +aVr2cXj0lH2RC47skFSOvG+hTKv8dGT9cZr4QQehzZHkPJrgmzI5c6sq1WnIeJEmMX3ixzDx/BR4 +dxIOE/TdFpS/S2d7cFOFyrC78zhNLJA5wA3CXWvp4uXViI3WLL+rG761KIcSF3Ru/H38j9CHJrAb ++7lsq+KePRXBOy5nAliRn+/4Qh8st2j1da3Ptfb/EX3C8CSlrdP6oDyp+l3cpaDvRKS+1ujl5BOW +F3sGPjLtx7dCvHaj2GU4Kzg1USEODm8uNBNA4StnDG1KQTAYI1oyVZnJF+A83vbsea0rWBmirSwi +GpWOvpaQXUJXxPkUAzUrHC1RVwinOt4/5Mi0A3PCwSaAuwtCH60NryZy2sy+s6ODWA2CxR9GUeOc +GMyNm43sSet1UNWMKFnKdDTajAshqx7qG+XH/RU+wBeq+yNuJkbL+vmxcmtpzyKEC2IPrNkZAJSi +djzULZrtBJ4tBmIQN1IchXIbJ+XMxjHsN+xjWZsLHXbMfjKaiJUINlK73nZfdklJrX+9ZSCyycEr +dhh2n1ax +-----END CERTIFICATE----- + +Certigna Root CA +================ +-----BEGIN CERTIFICATE----- +MIIGWzCCBEOgAwIBAgIRAMrpG4nxVQMNo+ZBbcTjpuEwDQYJKoZIhvcNAQELBQAwWjELMAkGA1UE +BhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczEcMBoGA1UECwwTMDAwMiA0ODE0NjMwODEwMDAzNjEZ +MBcGA1UEAwwQQ2VydGlnbmEgUm9vdCBDQTAeFw0xMzEwMDEwODMyMjdaFw0zMzEwMDEwODMyMjda +MFoxCzAJBgNVBAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxHDAaBgNVBAsMEzAwMDIgNDgxNDYz +MDgxMDAwMzYxGTAXBgNVBAMMEENlcnRpZ25hIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQDNGDllGlmx6mQWDoyUJJV8g9PFOSbcDO8WV43X2KyjQn+Cyu3NW9sOty3tRQgX +stmzy9YXUnIo245Onoq2C/mehJpNdt4iKVzSs9IGPjA5qXSjklYcoW9MCiBtnyN6tMbaLOQdLNyz +KNAT8kxOAkmhVECe5uUFoC2EyP+YbNDrihqECB63aCPuI9Vwzm1RaRDuoXrC0SIxwoKF0vJVdlB8 +JXrJhFwLrN1CTivngqIkicuQstDuI7pmTLtipPlTWmR7fJj6o0ieD5Wupxj0auwuA0Wv8HT4Ks16 +XdG+RCYyKfHx9WzMfgIhC59vpD++nVPiz32pLHxYGpfhPTc3GGYo0kDFUYqMwy3OU4gkWGQwFsWq +4NYKpkDfePb1BHxpE4S80dGnBs8B92jAqFe7OmGtBIyT46388NtEbVncSVmurJqZNjBBe3YzIoej +wpKGbvlw7q6Hh5UbxHq9MfPU0uWZ/75I7HX1eBYdpnDBfzwboZL7z8g81sWTCo/1VTp2lc5ZmIoJ +lXcymoO6LAQ6l73UL77XbJuiyn1tJslV1c/DeVIICZkHJC1kJWumIWmbat10TWuXekG9qxf5kBdI +jzb5LdXF2+6qhUVB+s06RbFo5jZMm5BX7CO5hwjCxAnxl4YqKE3idMDaxIzb3+KhF1nOJFl0Mdp/ +/TBt2dzhauH8XwIDAQABo4IBGjCCARYwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYw +HQYDVR0OBBYEFBiHVuBud+4kNTxOc5of1uHieX4rMB8GA1UdIwQYMBaAFBiHVuBud+4kNTxOc5of +1uHieX4rMEQGA1UdIAQ9MDswOQYEVR0gADAxMC8GCCsGAQUFBwIBFiNodHRwczovL3d3d3cuY2Vy +dGlnbmEuZnIvYXV0b3JpdGVzLzBtBgNVHR8EZjBkMC+gLaArhilodHRwOi8vY3JsLmNlcnRpZ25h +LmZyL2NlcnRpZ25hcm9vdGNhLmNybDAxoC+gLYYraHR0cDovL2NybC5kaGlteW90aXMuY29tL2Nl +cnRpZ25hcm9vdGNhLmNybDANBgkqhkiG9w0BAQsFAAOCAgEAlLieT/DjlQgi581oQfccVdV8AOIt +OoldaDgvUSILSo3L6btdPrtcPbEo/uRTVRPPoZAbAh1fZkYJMyjhDSSXcNMQH+pkV5a7XdrnxIxP +TGRGHVyH41neQtGbqH6mid2PHMkwgu07nM3A6RngatgCdTer9zQoKJHyBApPNeNgJgH60BGM+RFq +7q89w1DTj18zeTyGqHNFkIwgtnJzFyO+B2XleJINugHA64wcZr+shncBlA2c5uk5jR+mUYyZDDl3 +4bSb+hxnV29qao6pK0xXeXpXIs/NX2NGjVxZOob4Mkdio2cNGJHc+6Zr9UhhcyNZjgKnvETq9Emd +8VRY+WCv2hikLyhF3HqgiIZd8zvn/yk1gPxkQ5Tm4xxvvq0OKmOZK8l+hfZx6AYDlf7ej0gcWtSS +6Cvu5zHbugRqh5jnxV/vfaci9wHYTfmJ0A6aBVmknpjZbyvKcL5kwlWj9Omvw5Ip3IgWJJk8jSaY +tlu3zM63Nwf9JtmYhST/WSMDmu2dnajkXjjO11INb9I/bbEFa0nOipFGc/T2L/Coc3cOZayhjWZS +aX5LaAzHHjcng6WMxwLkFM1JAbBzs/3GkDpv0mztO+7skb6iQ12LAEpmJURw3kAP+HwV96LOPNde +E4yBFxgX0b3xdxA61GU5wSesVywlVP+i2k+KYTlerj1KjL0= +-----END CERTIFICATE----- diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/src/CaBundle.php b/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/src/CaBundle.php index bddf5c9b..0fcb7a33 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/src/CaBundle.php +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/ca-bundle/src/CaBundle.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ -namespace _PhpScoper5bbb1f4b001f3\Composer\CaBundle; +namespace _PhpScoper5ce26f1fe2920\Composer\CaBundle; -use _PhpScoper5bbb1f4b001f3\Psr\Log\LoggerInterface; -use _PhpScoper5bbb1f4b001f3\Symfony\Component\Process\PhpProcess; +use _PhpScoper5ce26f1fe2920\Psr\Log\LoggerInterface; +use _PhpScoper5ce26f1fe2920\Symfony\Component\Process\PhpProcess; /** * @author Chris Smith * @author Jordi Boggiano @@ -58,7 +58,7 @@ class CaBundle * @param LoggerInterface $logger optional logger for information about which CA files were loaded * @return string path to a CA bundle file or directory */ - public static function getSystemCaRootBundlePath(\_PhpScoper5bbb1f4b001f3\Psr\Log\LoggerInterface $logger = null) + public static function getSystemCaRootBundlePath(\_PhpScoper5ce26f1fe2920\Psr\Log\LoggerInterface $logger = null) { if (self::$caPath !== null) { return self::$caPath; @@ -149,7 +149,7 @@ public static function getBundledCaBundlePath() * * @return bool */ - public static function validateCaFile($filename, \_PhpScoper5bbb1f4b001f3\Psr\Log\LoggerInterface $logger = null) + public static function validateCaFile($filename, \_PhpScoper5ce26f1fe2920\Psr\Log\LoggerInterface $logger = null) { static $warned = \false; if (isset(self::$caFileValidity[$filename])) { @@ -212,7 +212,7 @@ public static function isOpensslParseSafe() return self::$useOpensslParse = \true; } // Symfony Process component is missing so we assume it is unsafe at this point - if (!\class_exists('_PhpScoper5bbb1f4b001f3\\Symfony\\Component\\Process\\PhpProcess')) { + if (!\class_exists('_PhpScoper5ce26f1fe2920\\Symfony\\Component\\Process\\PhpProcess')) { return self::$useOpensslParse = \false; } // This is where things get crazy, because distros backport security @@ -233,7 +233,7 @@ public static function isOpensslParseSafe() EOT; $script = '<' . "?php\n" . \sprintf($script, $cert); try { - $process = new \_PhpScoper5bbb1f4b001f3\Symfony\Component\Process\PhpProcess($script); + $process = new \_PhpScoper5ce26f1fe2920\Symfony\Component\Process\PhpProcess($script); $process->mustRun(); } catch (\Exception $e) { // In the case of any exceptions just accept it is not possible to diff --git a/catalog/controller/payment/mollie-api-client/vendor/composer/installed.json b/catalog/controller/payment/mollie-api-client/vendor/composer/installed.json index 38ffd3a7..c8532425 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/composer/installed.json +++ b/catalog/controller/payment/mollie-api-client/vendor/composer/installed.json @@ -1,17 +1,17 @@ [ { "name": "composer\/ca-bundle", - "version": "1.1.2", - "version_normalized": "1.1.2.0", + "version": "1.1.4", + "version_normalized": "1.1.4.0", "source": { "type": "git", "url": "https:\/\/github.com\/composer\/ca-bundle.git", - "reference": "46afded9720f40b9dc63542af4e3e43a1177acb0" + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/composer\/ca-bundle\/zipball\/46afded9720f40b9dc63542af4e3e43a1177acb0", - "reference": "46afded9720f40b9dc63542af4e3e43a1177acb0", + "url": "https:\/\/api.github.com\/repos\/composer\/ca-bundle\/zipball\/558f321c52faeb4828c03e7dc0cfe39a09e09a2d", + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d", "shasum": "" }, "require": { @@ -24,7 +24,7 @@ "psr\/log": "^1.0", "symfony\/process": "^2.5 || ^3.0 || ^4.0" }, - "time": "2018-08-08T08:57:40+00:00", + "time": "2019-01-28T09:30:10+00:00", "type": "library", "extra": { "branch-alias": { @@ -34,7 +34,7 @@ "installation-source": "dist", "autoload": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\Composer\\CaBundle\\": "src" + "_PhpScoper5ce26f1fe2920\\Composer\\CaBundle\\": "src" } }, "notification-url": "https:\/\/packagist.org\/downloads\/", @@ -98,7 +98,7 @@ "src\/functions_include.php" ], "psr-4": { - "_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\": "src\/" + "_PhpScoper5ce26f1fe2920\\GuzzleHttp\\": "src\/" } }, "notification-url": "https:\/\/packagist.org\/downloads\/", @@ -155,7 +155,7 @@ "installation-source": "dist", "autoload": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Promise\\": "src\/" + "_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Promise\\": "src\/" }, "files": [ "src\/functions_include.php" @@ -179,40 +179,41 @@ }, { "name": "guzzlehttp\/psr7", - "version": "1.4.2", - "version_normalized": "1.4.2.0", + "version": "1.5.2", + "version_normalized": "1.5.2.0", "source": { "type": "git", "url": "https:\/\/github.com\/guzzle\/psr7.git", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" + "reference": "9f83dded91781a01c63574e387eaa769be769115" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/guzzle\/psr7\/zipball\/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "url": "https:\/\/api.github.com\/repos\/guzzle\/psr7\/zipball\/9f83dded91781a01c63574e387eaa769be769115", + "reference": "9f83dded91781a01c63574e387eaa769be769115", "shasum": "" }, "require": { "php": ">=5.4.0", - "psr\/http-message": "~1.0" + "psr\/http-message": "~1.0", + "ralouphie\/getallheaders": "^2.0.5" }, "provide": { "psr\/http-message-implementation": "1.0" }, "require-dev": { - "phpunit\/phpunit": "~4.0" + "phpunit\/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" }, - "time": "2017-03-20T17:10:46+00:00", + "time": "2018-12-04T20:46:45+00:00", "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\": "src\/" + "_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\": "src\/" }, "files": [ "src\/functions_include.php" @@ -237,6 +238,7 @@ "keywords": [ "http", "message", + "psr-7", "request", "response", "stream", @@ -272,7 +274,7 @@ "installation-source": "dist", "autoload": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\Psr\\Http\\Message\\": "src\/" + "_PhpScoper5ce26f1fe2920\\Psr\\Http\\Message\\": "src\/" } }, "notification-url": "https:\/\/packagist.org\/downloads\/", @@ -295,5 +297,47 @@ "request", "response" ] + }, + { + "name": "ralouphie\/getallheaders", + "version": "2.0.5", + "version_normalized": "2.0.5.0", + "source": { + "type": "git", + "url": "https:\/\/github.com\/ralouphie\/getallheaders.git", + "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/ralouphie\/getallheaders\/zipball\/5601c8a83fbba7ef674a7369456d12f1e0d0eafa", + "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit\/phpunit": "~3.7.0", + "satooshi\/php-coveralls": ">=1.0" + }, + "time": "2016-02-11T07:05:27+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "files": [ + "src\/getallheaders.php" + ] + }, + "notification-url": "https:\/\/packagist.org\/downloads\/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders." } ] \ No newline at end of file diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/composer.json b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/composer.json index 14517709..e5bedc49 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/composer.json +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/composer.json @@ -35,12 +35,12 @@ "src\/functions_include.php" ], "psr-4": { - "_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\": "src\/" + "_PhpScoper5ce26f1fe2920\\GuzzleHttp\\": "src\/" } }, "autoload-dev": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Tests\\": "tests\/" + "_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Tests\\": "tests\/" } }, "suggest": { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Client.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Client.php index b0abaa89..b06a8b92 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Client.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Client.php @@ -1,13 +1,13 @@ configureDefaults($config); } @@ -80,15 +80,15 @@ public function __call($method, $args) $opts = isset($args[1]) ? $args[1] : []; return \substr($method, -5) === 'Async' ? $this->requestAsync(\substr($method, 0, -5), $uri, $opts) : $this->request($method, $uri, $opts); } - public function sendAsync(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options = []) + public function sendAsync(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options = []) { // Merge the base URI into the request URI if needed. $options = $this->prepareDefaults($options); return $this->transfer($request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), $options); } - public function send(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options = []) + public function send(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options = []) { - $options[\_PhpScoper5bbb1f4b001f3\GuzzleHttp\RequestOptions::SYNCHRONOUS] = \true; + $options[\_PhpScoper5ce26f1fe2920\GuzzleHttp\RequestOptions::SYNCHRONOUS] = \true; return $this->sendAsync($request, $options)->wait(); } public function requestAsync($method, $uri = '', array $options = []) @@ -103,14 +103,14 @@ public function requestAsync($method, $uri = '', array $options = []) if (\is_array($body)) { $this->invalidBody(); } - $request = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Request($method, $uri, $headers, $body, $version); + $request = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Request($method, $uri, $headers, $body, $version); // Remove the option so that they are not doubly-applied. unset($options['headers'], $options['body'], $options['version']); return $this->transfer($request, $options); } public function request($method, $uri = '', array $options = []) { - $options[\_PhpScoper5bbb1f4b001f3\GuzzleHttp\RequestOptions::SYNCHRONOUS] = \true; + $options[\_PhpScoper5ce26f1fe2920\GuzzleHttp\RequestOptions::SYNCHRONOUS] = \true; return $this->requestAsync($method, $uri, $options)->wait(); } public function getConfig($option = null) @@ -120,9 +120,9 @@ public function getConfig($option = null) private function buildUri($uri, array $config) { // for BC we accept null which would otherwise fail in uri_for - $uri = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\uri_for($uri === null ? '' : $uri); + $uri = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\uri_for($uri === null ? '' : $uri); if (isset($config['base_uri'])) { - $uri = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UriResolver::resolve(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\uri_for($config['base_uri']), $uri); + $uri = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UriResolver::resolve(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\uri_for($config['base_uri']), $uri); } return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri; } @@ -133,7 +133,7 @@ private function buildUri($uri, array $config) */ private function configureDefaults(array $config) { - $defaults = ['allow_redirects' => \_PhpScoper5bbb1f4b001f3\GuzzleHttp\RedirectMiddleware::$defaultSettings, 'http_errors' => \true, 'decode_content' => \true, 'verify' => \true, 'cookies' => \false]; + $defaults = ['allow_redirects' => \_PhpScoper5ce26f1fe2920\GuzzleHttp\RedirectMiddleware::$defaultSettings, 'http_errors' => \true, 'decode_content' => \true, 'verify' => \true, 'cookies' => \false]; // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set. // We can only trust the HTTP_PROXY environment variable in a CLI // process due to the fact that PHP has no reliable mechanism to @@ -150,7 +150,7 @@ private function configureDefaults(array $config) } $this->config = $config + $defaults; if (!empty($config['cookies']) && $config['cookies'] === \true) { - $this->config['cookies'] = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\CookieJar(); + $this->config['cookies'] = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\CookieJar(); } // Add the default user-agent header. if (!isset($this->config['headers'])) { @@ -212,7 +212,7 @@ private function prepareDefaults($options) * * @return Promise\PromiseInterface */ - private function transfer(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options) + private function transfer(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options) { // save_to -> sink if (isset($options['save_to'])) { @@ -227,9 +227,9 @@ private function transfer(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInter $request = $this->applyOptions($request, $options); $handler = $options['handler']; try { - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\promise_for($handler($request, $options)); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\promise_for($handler($request, $options)); } catch (\Exception $e) { - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($e); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($e); } } /** @@ -240,7 +240,7 @@ private function transfer(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInter * * @return RequestInterface */ - private function applyOptions(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array &$options) + private function applyOptions(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array &$options) { $modify = ['set_headers' => []]; if (isset($options['headers'])) { @@ -254,30 +254,30 @@ private function applyOptions(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI $options['body'] = \http_build_query($options['form_params'], '', '&'); unset($options['form_params']); // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); + $options['_conditional'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); $options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded'; } if (isset($options['multipart'])) { - $options['body'] = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\MultipartStream($options['multipart']); + $options['body'] = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\MultipartStream($options['multipart']); unset($options['multipart']); } if (isset($options['json'])) { - $options['body'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\json_encode($options['json']); + $options['body'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\json_encode($options['json']); unset($options['json']); // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); + $options['_conditional'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); $options['_conditional']['Content-Type'] = 'application/json'; } if (!empty($options['decode_content']) && $options['decode_content'] !== \true) { // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\_caseless_remove(['Accept-Encoding'], $options['_conditional']); + $options['_conditional'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\_caseless_remove(['Accept-Encoding'], $options['_conditional']); $modify['set_headers']['Accept-Encoding'] = $options['decode_content']; } if (isset($options['body'])) { if (\is_array($options['body'])) { $this->invalidBody(); } - $modify['body'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\stream_for($options['body']); + $modify['body'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\stream_for($options['body']); unset($options['body']); } if (!empty($options['auth']) && \is_array($options['auth'])) { @@ -286,7 +286,7 @@ private function applyOptions(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI switch ($type) { case 'basic': // Ensure that we don't have the header in different case and set the new value. - $modify['set_headers'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\_caseless_remove(['Authorization'], $modify['set_headers']); + $modify['set_headers'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\_caseless_remove(['Authorization'], $modify['set_headers']); $modify['set_headers']['Authorization'] = 'Basic ' . \base64_encode("{$value[0]}:{$value[1]}"); break; case 'digest': @@ -318,11 +318,11 @@ private function applyOptions(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI throw new \InvalidArgumentException('sink must not be a boolean'); } } - $request = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\modify_request($request, $modify); - if ($request->getBody() instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\MultipartStream) { + $request = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\modify_request($request, $modify); + if ($request->getBody() instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\MultipartStream) { // Use a multipart/form-data POST if a Content-Type is not set. // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); + $options['_conditional'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' . $request->getBody()->getBoundary(); } // Merge in conditional headers if they are not present. @@ -334,7 +334,7 @@ private function applyOptions(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI $modify['set_headers'][$k] = $v; } } - $request = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\modify_request($request, $modify); + $request = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\modify_request($request, $modify); // Don't pass this internal value along to middleware/handlers. unset($options['_conditional']); } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/ClientInterface.php index 7216248d..13531d13 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/ClientInterface.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/ClientInterface.php @@ -1,12 +1,12 @@ strictMode = $strictMode; foreach ($cookieArray as $cookie) { - if (!$cookie instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie) { - $cookie = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie($cookie); + if (!$cookie instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie) { + $cookie = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie($cookie); } $this->setCookie($cookie); } @@ -42,7 +42,7 @@ public static function fromArray(array $cookies, $domain) { $cookieJar = new self(); foreach ($cookies as $name => $value) { - $cookieJar->setCookie(new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie(['Domain' => $domain, 'Name' => $name, 'Value' => $value, 'Discard' => \true])); + $cookieJar->setCookie(new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie(['Domain' => $domain, 'Name' => $name, 'Value' => $value, 'Discard' => \true])); } return $cookieJar; } @@ -61,7 +61,7 @@ public static function getCookieValue($value) * @param bool $allowSessionCookies If we should persist session cookies * @return bool */ - public static function shouldPersist(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie, $allowSessionCookies = \false) + public static function shouldPersist(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie, $allowSessionCookies = \false) { if ($cookie->getExpires() || $allowSessionCookies) { if (!$cookie->getDiscard()) { @@ -90,7 +90,7 @@ public function getCookieByName($name) } public function toArray() { - return \array_map(function (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie) { + return \array_map(function (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie) { return $cookie->toArray(); }, $this->getIterator()->getArrayCopy()); } @@ -100,26 +100,26 @@ public function clear($domain = null, $path = null, $name = null) $this->cookies = []; return; } elseif (!$path) { - $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) { + $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) { return !$cookie->matchesDomain($domain); }); } elseif (!$name) { - $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) { + $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) { return !($cookie->matchesPath($path) && $cookie->matchesDomain($domain)); }); } else { - $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain, $name) { + $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain, $name) { return !($cookie->getName() == $name && $cookie->matchesPath($path) && $cookie->matchesDomain($domain)); }); } } public function clearSessionCookies() { - $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie) { + $this->cookies = \array_filter($this->cookies, function (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie) { return !$cookie->getDiscard() && $cookie->getExpires(); }); } - public function setCookie(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie) + public function setCookie(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie) { // If the name string is empty (but not 0), ignore the set-cookie // string entirely. @@ -175,11 +175,11 @@ public function getIterator() { return new \ArrayIterator(\array_values($this->cookies)); } - public function extractCookies(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) + public function extractCookies(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) { if ($cookieHeader = $response->getHeader('Set-Cookie')) { foreach ($cookieHeader as $cookie) { - $sc = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie::fromString($cookie); + $sc = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie::fromString($cookie); if (!$sc->getDomain()) { $sc->setDomain($request->getUri()->getHost()); } @@ -198,7 +198,7 @@ public function extractCookies(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\Request * @param RequestInterface $request * @return string */ - private function getCookiePathFromRequest(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request) + private function getCookiePathFromRequest(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request) { $uriPath = $request->getUri()->getPath(); if ('' === $uriPath) { @@ -215,7 +215,7 @@ private function getCookiePathFromRequest(\_PhpScoper5bbb1f4b001f3\Psr\Http\Mess } return \substr($uriPath, 0, $lastSlashPos); } - public function withCookieHeader(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request) + public function withCookieHeader(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request) { $values = []; $uri = $request->getUri(); @@ -235,7 +235,7 @@ public function withCookieHeader(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\Reque * * @param SetCookie $cookie */ - private function removeCookieIfEmpty(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie $cookie) + private function removeCookieIfEmpty(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie $cookie) { $cookieValue = $cookie->getValue(); if ($cookieValue === null || $cookieValue === '') { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php index 445ac6c9..e0e9a093 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php @@ -1,9 +1,9 @@ storeSessionCookies)) { + if (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { $json[] = $cookie->toArray(); } } - $jsonStr = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\json_encode($json); + $jsonStr = \_PhpScoper5ce26f1fe2920\GuzzleHttp\json_encode($json); if (\false === \file_put_contents($filename, $jsonStr)) { throw new \RuntimeException("Unable to save file {$filename}"); } @@ -71,10 +71,10 @@ public function load($filename) } elseif ($json === '') { return; } - $data = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\json_decode($json, \true); + $data = \_PhpScoper5ce26f1fe2920\GuzzleHttp\json_decode($json, \true); if (\is_array($data)) { foreach (\json_decode($json, \true) as $cookie) { - $this->setCookie(new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie($cookie)); + $this->setCookie(new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie($cookie)); } } elseif (\strlen($data)) { throw new \RuntimeException("Invalid cookie file: {$filename}"); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php index 16c6a68c..157dc505 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php @@ -1,11 +1,11 @@ storeSessionCookies)) { + if (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { $json[] = $cookie->toArray(); } } @@ -57,7 +57,7 @@ protected function load() $data = \json_decode($_SESSION[$this->sessionKey], \true); if (\is_array($data)) { foreach ($data as $cookie) { - $this->setCookie(new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Cookie\SetCookie($cookie)); + $this->setCookie(new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Cookie\SetCookie($cookie)); } } elseif (\strlen($data)) { throw new \RuntimeException("Invalid cookie data"); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php index fecf565f..b937035e 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php @@ -1,6 +1,6 @@ data as $k => $v) { if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== \false) { if ($k === 'Expires') { - $str .= 'Expires=' . \gmdate('_PhpScoper5bbb1f4b001f3\\D, d M Y H:i:s \\G\\M\\T', $v) . '; '; + $str .= 'Expires=' . \gmdate('_PhpScoper5ce26f1fe2920\\D, d M Y H:i:s \\G\\M\\T', $v) . '; '; } else { $str .= ($v === \true ? $k : "{$k}={$v}") . '; '; } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php index 941a52eb..07c6590b 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php @@ -1,15 +1,15 @@ getStatusCode() : 0; + $code = $response && !$response instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface ? $response->getStatusCode() : 0; parent::__construct($message, $code, $previous); $this->request = $request; $this->response = $response; @@ -34,9 +34,9 @@ public function __construct($message, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ * * @return RequestException */ - public static function wrapException(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, \Exception $e) + public static function wrapException(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, \Exception $e) { - return $e instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException ? $e : new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException($e->getMessage(), $request, null, $e); + return $e instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException ? $e : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException($e->getMessage(), $request, null, $e); } /** * Factory method to create a new exception with a normalized error message @@ -48,7 +48,7 @@ public static function wrapException(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\R * * @return self */ - public static function create(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response = null, \Exception $previous = null, array $ctx = []) + public static function create(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response = null, \Exception $previous = null, array $ctx = []) { if (!$response) { return new self('Error completing request', $request, null, $previous, $ctx); @@ -56,10 +56,10 @@ public static function create(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI $level = (int) \floor($response->getStatusCode() / 100); if ($level === 4) { $label = 'Client error'; - $className = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\ClientException::class; + $className = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\ClientException::class; } elseif ($level === 5) { $label = 'Server error'; - $className = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\ServerException::class; + $className = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\ServerException::class; } else { $label = 'Unsuccessful request'; $className = __CLASS__; @@ -84,7 +84,7 @@ public static function create(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI * * @return string|null */ - public static function getResponseBodySummary(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) + public static function getResponseBodySummary(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) { $body = $response->getBody(); if (!$body->isSeekable()) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php index a84cb992..4297fb0f 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php @@ -1,15 +1,15 @@ stream = $stream; $msg = $msg ?: 'Could not seek the stream to position ' . $pos; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php index 0c52a191..0a35bfba 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php @@ -1,10 +1,10 @@ maxHandles = $maxHandles; } - public function create(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options) + public function create(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options) { if (isset($options['curl']['body_as_string'])) { $options['_body_as_string'] = $options['curl']['body_as_string']; unset($options['curl']['body_as_string']); } - $easy = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle(); + $easy = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle(); $easy->request = $request; $easy->options = $options; $conf = $this->getDefaultConf($easy); @@ -48,7 +48,7 @@ public function create(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterfac \curl_setopt_array($easy->handle, $conf); return $easy; } - public function release(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy) + public function release(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy) { $resource = $easy->handle; unset($easy->handle); @@ -77,7 +77,7 @@ public function release(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $ * * @return \GuzzleHttp\Promise\PromiseInterface */ - public static function finish(callable $handler, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlFactoryInterface $factory) + public static function finish(callable $handler, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlFactoryInterface $factory) { if (isset($easy->options['on_stats'])) { self::invokeStats($easy); @@ -92,15 +92,15 @@ public static function finish(callable $handler, \_PhpScoper5bbb1f4b001f3\Guzzle if ($body->isSeekable()) { $body->rewind(); } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\FulfilledPromise($easy->response); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\FulfilledPromise($easy->response); } - private static function invokeStats(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy) + private static function invokeStats(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy) { $curlStats = \curl_getinfo($easy->handle); - $stats = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\TransferStats($easy->request, $easy->response, $curlStats['total_time'], $easy->errno, $curlStats); + $stats = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\TransferStats($easy->request, $easy->response, $curlStats['total_time'], $easy->errno, $curlStats); \call_user_func($easy->options['on_stats'], $stats); } - private static function finishError(callable $handler, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlFactoryInterface $factory) + private static function finishError(callable $handler, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlFactoryInterface $factory) { // Get error information and release the handle to the factory. $ctx = ['errno' => $easy->errno, 'error' => \curl_error($easy->handle)] + \curl_getinfo($easy->handle); @@ -111,20 +111,20 @@ private static function finishError(callable $handler, \_PhpScoper5bbb1f4b001f3\ } return self::createRejection($easy, $ctx); } - private static function createRejection(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) + private static function createRejection(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) { static $connectionErrors = [\CURLE_OPERATION_TIMEOUTED => \true, \CURLE_COULDNT_RESOLVE_HOST => \true, \CURLE_COULDNT_CONNECT => \true, \CURLE_SSL_CONNECT_ERROR => \true, \CURLE_GOT_NOTHING => \true]; // If an exception was encountered during the onHeaders event, then // return a rejected promise that wraps that exception. if ($easy->onHeadersException) { - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for(new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException('An error was encountered during the on_headers event', $easy->request, $easy->response, $easy->onHeadersException, $ctx)); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for(new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException('An error was encountered during the on_headers event', $easy->request, $easy->response, $easy->onHeadersException, $ctx)); } $message = \sprintf('cURL error %s: %s (%s)', $ctx['errno'], $ctx['error'], 'see http://curl.haxx.se/libcurl/c/libcurl-errors.html'); // Create a connection exception if it was a specific error code. - $error = isset($connectionErrors[$easy->errno]) ? new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\ConnectException($message, $easy->request, null, $ctx) : new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException($message, $easy->request, $easy->response, null, $ctx); - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($error); + $error = isset($connectionErrors[$easy->errno]) ? new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\ConnectException($message, $easy->request, null, $ctx) : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException($message, $easy->request, $easy->response, null, $ctx); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($error); } - private function getDefaultConf(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy) + private function getDefaultConf(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy) { $conf = ['_headers' => $easy->request->getHeaders(), \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), \CURLOPT_RETURNTRANSFER => \false, \CURLOPT_HEADER => \false, \CURLOPT_CONNECTTIMEOUT => 150]; if (\defined('CURLOPT_PROTOCOLS')) { @@ -140,7 +140,7 @@ private function getDefaultConf(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\Easy } return $conf; } - private function applyMethod(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) + private function applyMethod(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) { $body = $easy->request->getBody(); $size = $body->getSize(); @@ -159,7 +159,7 @@ private function applyMethod(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHan unset($conf[\CURLOPT_WRITEFUNCTION], $conf[\CURLOPT_READFUNCTION], $conf[\CURLOPT_FILE], $conf[\CURLOPT_INFILE]); } } - private function applyBody(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options, array &$conf) + private function applyBody(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options, array &$conf) { $size = $request->hasHeader('Content-Length') ? (int) $request->getHeaderLine('Content-Length') : null; // Send the body as a string if the size is less than 1MB OR if the @@ -192,7 +192,7 @@ private function applyBody(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInte $conf[\CURLOPT_HTTPHEADER][] = 'Content-Type:'; } } - private function applyHeaders(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) + private function applyHeaders(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) { foreach ($conf['_headers'] as $name => $values) { foreach ($values as $value) { @@ -226,7 +226,7 @@ private function removeHeader($name, array &$options) } } } - private function applyHandlerOptions(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) + private function applyHandlerOptions(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) { $options = $easy->options; if (isset($options['verify'])) { @@ -265,12 +265,12 @@ private function applyHandlerOptions(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler if (isset($options['sink'])) { $sink = $options['sink']; if (!\is_string($sink)) { - $sink = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\stream_for($sink); + $sink = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\stream_for($sink); } elseif (!\is_dir(\dirname($sink))) { // Ensure that the directory exists before failing in curl. throw new \RuntimeException(\sprintf('Directory %s does not exist for sink value of %s', \dirname($sink), $sink)); } else { - $sink = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\LazyOpenStream($sink, 'w+'); + $sink = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\LazyOpenStream($sink, 'w+'); } $easy->sink = $sink; $conf[\CURLOPT_WRITEFUNCTION] = function ($ch, $write) use($sink) { @@ -279,7 +279,7 @@ private function applyHandlerOptions(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler } else { // Use a default temp stream if no sink was set. $conf[\CURLOPT_FILE] = \fopen('php://temp', 'w+'); - $easy->sink = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\stream_for($conf[\CURLOPT_FILE]); + $easy->sink = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\stream_for($conf[\CURLOPT_FILE]); } $timeoutRequiresNoSignal = \false; if (isset($options['timeout'])) { @@ -308,7 +308,7 @@ private function applyHandlerOptions(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler $scheme = $easy->request->getUri()->getScheme(); if (isset($options['proxy'][$scheme])) { $host = $easy->request->getUri()->getHost(); - if (!isset($options['proxy']['no']) || !\_PhpScoper5bbb1f4b001f3\GuzzleHttp\is_host_in_noproxy($host, $options['proxy']['no'])) { + if (!isset($options['proxy']['no']) || !\_PhpScoper5ce26f1fe2920\GuzzleHttp\is_host_in_noproxy($host, $options['proxy']['no'])) { $conf[\CURLOPT_PROXY] = $options['proxy'][$scheme]; } } @@ -352,7 +352,7 @@ private function applyHandlerOptions(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler }; } if (!empty($options['debug'])) { - $conf[\CURLOPT_STDERR] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\debug_resource($options['debug']); + $conf[\CURLOPT_STDERR] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\debug_resource($options['debug']); $conf[\CURLOPT_VERBOSE] = \true; } } @@ -365,7 +365,7 @@ private function applyHandlerOptions(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler * error, causing the request to be sent through curl_multi_info_read() * without an error status. */ - private static function retryFailedRewind(callable $handler, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) + private static function retryFailedRewind(callable $handler, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) { try { // Only rewind if the body has been read from. @@ -388,7 +388,7 @@ private static function retryFailedRewind(callable $handler, \_PhpScoper5bbb1f4b } return $handler($easy->request, $easy->options); } - private function createHeaderFn(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\EasyHandle $easy) + private function createHeaderFn(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\EasyHandle $easy) { if (isset($easy->options['on_headers'])) { $onHeaders = $easy->options['on_headers']; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php index 1326c66d..f7c4252e 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php @@ -1,8 +1,8 @@ factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlFactory(3); + $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlFactory(3); } - public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options) + public function __invoke(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options) { if (isset($options['delay'])) { \usleep($options['delay'] * 1000); @@ -34,6 +34,6 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf $easy = $this->factory->create($request, $options); \curl_exec($easy->handle); $easy->errno = \curl_errno($easy->handle); - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlFactory::finish($this, $easy, $this->factory); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlFactory::finish($this, $easy, $this->factory); } } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php index 1e6d83d7..a9546771 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php @@ -1,11 +1,11 @@ factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlFactory(50); + $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlFactory(50); $this->selectTimeout = isset($options['select_timeout']) ? $options['select_timeout'] : 1; } public function __get($name) @@ -51,11 +51,11 @@ public function __destruct() unset($this->_mh); } } - public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options) + public function __invoke(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options) { $easy = $this->factory->create($request, $options); $id = (int) $easy->handle; - $promise = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise([$this, 'execute'], function () use($id) { + $promise = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise([$this, 'execute'], function () use($id) { return $this->cancel($id); }); $this->addRequest(['easy' => $easy, 'deferred' => $promise]); @@ -77,7 +77,7 @@ public function tick() } } // Step through the task queue which may add additional requests. - \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\queue()->run(); + \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\queue()->run(); if ($this->active && \curl_multi_select($this->_mh, $this->selectTimeout) === -1) { // Perform a usleep if a select returns -1. // See: https://bugs.php.net/bug.php?id=61141 @@ -92,7 +92,7 @@ public function tick() */ public function execute() { - $queue = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\queue(); + $queue = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\queue(); while ($this->handles || !$queue->isEmpty()) { // If there are no transfers, then sleep for the next delay if (!$this->active && $this->delays) { @@ -143,7 +143,7 @@ private function processMessages() $entry = $this->handles[$id]; unset($this->handles[$id], $this->delays[$id]); $entry['easy']->errno = $done['result']; - $entry['deferred']->resolve(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlFactory::finish($this, $entry['easy'], $this->factory)); + $entry['deferred']->resolve(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlFactory::finish($this, $entry['easy'], $this->factory)); } } private function timeToNext() diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php index a073a639..6fef0fd7 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php @@ -1,11 +1,11 @@ headers), 3); - $headers = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\headers_from_lines($this->headers); - $normalizedKeys = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\normalize_header_keys($headers); + $headers = \_PhpScoper5ce26f1fe2920\GuzzleHttp\headers_from_lines($this->headers); + $normalizedKeys = \_PhpScoper5ce26f1fe2920\GuzzleHttp\normalize_header_keys($headers); if (!empty($this->options['decode_content']) && isset($normalizedKeys['content-encoding'])) { $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; unset($headers[$normalizedKeys['content-encoding']]); @@ -57,7 +57,7 @@ public function createResponse() } } // Attach a response to the easy handle with the parsed headers. - $this->response = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Response($startLine[1], $headers, $this->sink, \substr($startLine[0], 5), isset($startLine[2]) ? (string) $startLine[2] : null); + $this->response = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Response($startLine[1], $headers, $this->sink, \substr($startLine[0], 5), isset($startLine[2]) ? (string) $startLine[2] : null); } public function __get($name) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php index 99813a8e..8821846d 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php @@ -1,14 +1,14 @@ queue) { throw new \OutOfBoundsException('Mock queue is empty'); @@ -69,13 +69,13 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf $options['on_headers']($response); } catch (\Exception $e) { $msg = 'An error was encountered during the on_headers event'; - $response = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException($msg, $request, $response, $e); + $response = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException($msg, $request, $response, $e); } } if (\is_callable($response)) { $response = \call_user_func($response, $request, $options); } - $response = $response instanceof \Exception ? \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($response) : \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\promise_for($response); + $response = $response instanceof \Exception ? \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($response) : \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\promise_for($response); return $response->then(function ($value) use($request, $options) { $this->invokeStats($request, $options, $value); if ($this->onFulfilled) { @@ -88,7 +88,7 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf \fwrite($sink, $contents); } elseif (\is_string($sink)) { \file_put_contents($sink, $contents); - } elseif ($sink instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface) { + } elseif ($sink instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface) { $sink->write($contents); } } @@ -98,7 +98,7 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf if ($this->onRejected) { \call_user_func($this->onRejected, $reason); } - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($reason); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($reason); }); } /** @@ -108,10 +108,10 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf public function append() { foreach (\func_get_args() as $value) { - if ($value instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface || $value instanceof \Exception || $value instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface || \is_callable($value)) { + if ($value instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface || $value instanceof \Exception || $value instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface || \is_callable($value)) { $this->queue[] = $value; } else { - throw new \InvalidArgumentException('Expected a response or ' . 'exception. Found ' . \_PhpScoper5bbb1f4b001f3\GuzzleHttp\describe_type($value)); + throw new \InvalidArgumentException('Expected a response or ' . 'exception. Found ' . \_PhpScoper5ce26f1fe2920\GuzzleHttp\describe_type($value)); } } } @@ -142,10 +142,10 @@ public function count() { return \count($this->queue); } - private function invokeStats(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response = null, $reason = null) + private function invokeStats(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response = null, $reason = null) { if (isset($options['on_stats'])) { - $stats = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\TransferStats($request, $response, 0, $reason); + $stats = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\TransferStats($request, $response, 0, $reason); \call_user_func($options['on_stats'], $stats); } } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php index 04f27efb..720c657b 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php @@ -1,9 +1,9 @@ getMessage(); // This list can probably get more comprehensive. if (\strpos($message, 'getaddrinfo') || \strpos($message, 'Connection refused') || \strpos($message, "couldn't connect to host") || \strpos($message, "connection attempt failed")) { - $e = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\ConnectException($e->getMessage(), $request, $e); + $e = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\ConnectException($e->getMessage(), $request, $e); } - $e = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException::wrapException($request, $e); + $e = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException::wrapException($request, $e); $this->invokeStats($options, $request, $startTime, null, $e); - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($e); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($e); } } - private function invokeStats(array $options, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, $startTime, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response = null, $error = null) + private function invokeStats(array $options, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, $startTime, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response = null, $error = null) { if (isset($options['on_stats'])) { - $stats = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\TransferStats($request, $response, \microtime(\true) - $startTime, $error, []); + $stats = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\TransferStats($request, $response, \microtime(\true) - $startTime, $error, []); \call_user_func($options['on_stats'], $stats); } } - private function createResponse(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options, $stream, $startTime) + private function createResponse(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options, $stream, $startTime) { $hdrs = $this->lastHeaders; $this->lastHeaders = []; @@ -70,21 +70,21 @@ private function createResponse(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\Reques $ver = \explode('/', $parts[0])[1]; $status = $parts[1]; $reason = isset($parts[2]) ? $parts[2] : null; - $headers = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\headers_from_lines($hdrs); + $headers = \_PhpScoper5ce26f1fe2920\GuzzleHttp\headers_from_lines($hdrs); list($stream, $headers) = $this->checkDecode($options, $headers, $stream); - $stream = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\stream_for($stream); + $stream = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\stream_for($stream); $sink = $stream; if (\strcasecmp('HEAD', $request->getMethod())) { $sink = $this->createSink($stream, $options); } - $response = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Response($status, $headers, $sink, $ver, $reason); + $response = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Response($status, $headers, $sink, $ver, $reason); if (isset($options['on_headers'])) { try { $options['on_headers']($response); } catch (\Exception $e) { $msg = 'An error was encountered during the on_headers event'; - $ex = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException($msg, $request, $response, $e); - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($ex); + $ex = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException($msg, $request, $response, $e); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($ex); } } // Do not drain when the request is a HEAD request because they have @@ -93,25 +93,25 @@ private function createResponse(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\Reques $this->drain($stream, $sink, $response->getHeaderLine('Content-Length')); } $this->invokeStats($options, $request, $startTime, $response, null); - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\FulfilledPromise($response); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\FulfilledPromise($response); } - private function createSink(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, array $options) + private function createSink(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream, array $options) { if (!empty($options['stream'])) { return $stream; } $sink = isset($options['sink']) ? $options['sink'] : \fopen('php://temp', 'r+'); - return \is_string($sink) ? new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\LazyOpenStream($sink, 'w+') : \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\stream_for($sink); + return \is_string($sink) ? new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\LazyOpenStream($sink, 'w+') : \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\stream_for($sink); } private function checkDecode(array $options, array $headers, $stream) { // Automatically decode responses when instructed. if (!empty($options['decode_content'])) { - $normalizedKeys = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\normalize_header_keys($headers); + $normalizedKeys = \_PhpScoper5ce26f1fe2920\GuzzleHttp\normalize_header_keys($headers); if (isset($normalizedKeys['content-encoding'])) { $encoding = $headers[$normalizedKeys['content-encoding']]; if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') { - $stream = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\InflateStream(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\stream_for($stream)); + $stream = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\InflateStream(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\stream_for($stream)); $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; // Remove content-encoding header unset($headers[$normalizedKeys['content-encoding']]); @@ -141,13 +141,13 @@ private function checkDecode(array $options, array $headers, $stream) * @return StreamInterface * @throws \RuntimeException when the sink option is invalid. */ - private function drain(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $source, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $sink, $contentLength) + private function drain(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $source, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $sink, $contentLength) { // If a content-length header is provided, then stop reading once // that number of bytes has been read. This can prevent infinitely // reading from a stream when dealing with servers that do not honor // Connection: Close headers. - \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\copy_to_stream($source, $sink, \strlen($contentLength) > 0 && (int) $contentLength > 0 ? (int) $contentLength : -1); + \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\copy_to_stream($source, $sink, \strlen($contentLength) > 0 && (int) $contentLength > 0 ? (int) $contentLength : -1); $sink->seek(0); $source->close(); return $sink; @@ -180,7 +180,7 @@ private function createResource(callable $callback) } return $resource; } - private function createStream(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options) + private function createStream(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options) { static $methods; if (!$methods) { @@ -234,27 +234,27 @@ private function createStream(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI return $resource; }); } - private function resolveHost(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options) + private function resolveHost(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options) { $uri = $request->getUri(); if (isset($options['force_ip_resolve']) && !\filter_var($uri->getHost(), \FILTER_VALIDATE_IP)) { if ('v4' === $options['force_ip_resolve']) { $records = \dns_get_record($uri->getHost(), \DNS_A); if (!isset($records[0]['ip'])) { - throw new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); + throw new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); } $uri = $uri->withHost($records[0]['ip']); } elseif ('v6' === $options['force_ip_resolve']) { $records = \dns_get_record($uri->getHost(), \DNS_AAAA); if (!isset($records[0]['ipv6'])) { - throw new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); + throw new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); } $uri = $uri->withHost('[' . $records[0]['ipv6'] . ']'); } } return $uri; } - private function getDefaultContext(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request) + private function getDefaultContext(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request) { $headers = ''; foreach ($request->getHeaders() as $name => $value) { @@ -274,32 +274,32 @@ private function getDefaultContext(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\Req $context['http']['header'] = \rtrim($context['http']['header']); return $context; } - private function add_proxy(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + private function add_proxy(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) { if (!\is_array($value)) { $options['http']['proxy'] = $value; } else { $scheme = $request->getUri()->getScheme(); if (isset($value[$scheme])) { - if (!isset($value['no']) || !\_PhpScoper5bbb1f4b001f3\GuzzleHttp\is_host_in_noproxy($request->getUri()->getHost(), $value['no'])) { + if (!isset($value['no']) || !\_PhpScoper5ce26f1fe2920\GuzzleHttp\is_host_in_noproxy($request->getUri()->getHost(), $value['no'])) { $options['http']['proxy'] = $value[$scheme]; } } } } - private function add_timeout(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + private function add_timeout(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) { if ($value > 0) { $options['http']['timeout'] = $value; } } - private function add_verify(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + private function add_verify(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) { if ($value === \true) { // PHP 5.6 or greater will find the system cert by default. When // < 5.6, use the Guzzle bundled cacert. if (\PHP_VERSION_ID < 50600) { - $options['ssl']['cafile'] = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\default_ca_bundle(); + $options['ssl']['cafile'] = \_PhpScoper5ce26f1fe2920\GuzzleHttp\default_ca_bundle(); } } elseif (\is_string($value)) { $options['ssl']['cafile'] = $value; @@ -317,7 +317,7 @@ private function add_verify(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInt $options['ssl']['verify_peer_name'] = \true; $options['ssl']['allow_self_signed'] = \false; } - private function add_cert(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + private function add_cert(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) { if (\is_array($value)) { $options['ssl']['passphrase'] = $value[1]; @@ -328,7 +328,7 @@ private function add_cert(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInter } $options['ssl']['local_cert'] = $value; } - private function add_progress(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + private function add_progress(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) { $this->addNotification($params, function ($code, $a, $b, $c, $transferred, $total) use($value) { if ($code == \STREAM_NOTIFY_PROGRESS) { @@ -336,14 +336,14 @@ private function add_progress(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI } }); } - private function add_debug(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + private function add_debug(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) { if ($value === \false) { return; } static $map = [\STREAM_NOTIFY_CONNECT => 'CONNECT', \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', \STREAM_NOTIFY_PROGRESS => 'PROGRESS', \STREAM_NOTIFY_FAILURE => 'FAILURE', \STREAM_NOTIFY_COMPLETED => 'COMPLETED', \STREAM_NOTIFY_RESOLVE => 'RESOLVE']; static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max']; - $value = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\debug_resource($value); + $value = \_PhpScoper5ce26f1fe2920\GuzzleHttp\debug_resource($value); $ident = $request->getMethod() . ' ' . $request->getUri()->withFragment(''); $this->addNotification($params, function () use($ident, $value, $map, $args) { $passed = \func_get_args(); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/HandlerStack.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/HandlerStack.php index ed573006..6d104d10 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/HandlerStack.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/HandlerStack.php @@ -1,8 +1,8 @@ push(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Middleware::httpErrors(), 'http_errors'); - $stack->push(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Middleware::redirect(), 'allow_redirects'); - $stack->push(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Middleware::cookies(), 'cookies'); - $stack->push(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Middleware::prepareBody(), 'prepare_body'); + $stack->push(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Middleware::httpErrors(), 'http_errors'); + $stack->push(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Middleware::redirect(), 'allow_redirects'); + $stack->push(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Middleware::cookies(), 'cookies'); + $stack->push(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Middleware::prepareBody(), 'prepare_body'); return $stack; } /** @@ -54,7 +54,7 @@ public function __construct(callable $handler = null) * @param RequestInterface $request * @param array $options */ - public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options) + public function __invoke(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options) { $handler = $this->resolve(); return $handler($request, $options); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/MessageFormatter.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/MessageFormatter.php index 92636250..59b77c89 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/MessageFormatter.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/MessageFormatter.php @@ -1,10 +1,10 @@ getMethod() . ' ' . $request->getRequestTarget()) . ' HTTP/' . $request->getProtocolVersion() . "\r\n" . $this->headers($request); @@ -140,7 +140,7 @@ public function format(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterfac return $result; }, $this->template); } - private function headers(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\MessageInterface $message) + private function headers(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\MessageInterface $message) { $result = ''; foreach ($message->getHeaders() as $name => $values) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Middleware.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Middleware.php index 40134a43..28e34939 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Middleware.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Middleware.php @@ -1,14 +1,14 @@ withCookieHeader($request); @@ -53,12 +53,12 @@ public static function httpErrors() if (empty($options['http_errors'])) { return $handler($request, $options); } - return $handler($request, $options)->then(function (\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) use($request, $handler) { + return $handler($request, $options)->then(function (\_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) use($request, $handler) { $code = $response->getStatusCode(); if ($code < 400) { return $response; } - throw \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException::create($request, $response); + throw \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException::create($request, $response); }); }; }; @@ -83,7 +83,7 @@ public static function history(&$container) return $value; }, function ($reason) use($request, &$container, $options) { $container[] = ['request' => $request, 'response' => null, 'error' => $reason, 'options' => $options]; - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($reason); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($reason); }); }; }; @@ -124,7 +124,7 @@ public static function tap(callable $before = null, callable $after = null) public static function redirect() { return function (callable $handler) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\RedirectMiddleware($handler); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\RedirectMiddleware($handler); }; } /** @@ -145,7 +145,7 @@ public static function redirect() public static function retry(callable $decider, callable $delay = null) { return function (callable $handler) use($decider, $delay) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\RetryMiddleware($decider, $handler, $delay); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\RetryMiddleware($decider, $handler, $delay); }; } /** @@ -158,7 +158,7 @@ public static function retry(callable $decider, callable $delay = null) * * @return callable Returns a function that accepts the next handler. */ - public static function log(\_PhpScoper5bbb1f4b001f3\Psr\Log\LoggerInterface $logger, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\MessageFormatter $formatter, $logLevel = \_PhpScoper5bbb1f4b001f3\Psr\Log\LogLevel::INFO) + public static function log(\_PhpScoper5ce26f1fe2920\Psr\Log\LoggerInterface $logger, \_PhpScoper5ce26f1fe2920\GuzzleHttp\MessageFormatter $formatter, $logLevel = \_PhpScoper5ce26f1fe2920\Psr\Log\LogLevel::INFO) { return function (callable $handler) use($logger, $formatter, $logLevel) { return function ($request, array $options) use($handler, $logger, $formatter, $logLevel) { @@ -167,10 +167,10 @@ public static function log(\_PhpScoper5bbb1f4b001f3\Psr\Log\LoggerInterface $log $logger->log($logLevel, $message); return $response; }, function ($reason) use($logger, $request, $formatter) { - $response = $reason instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\RequestException ? $reason->getResponse() : null; + $response = $reason instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\RequestException ? $reason->getResponse() : null; $message = $formatter->format($request, $response, $reason); $logger->notice($message); - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($reason); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($reason); }); }; }; @@ -184,7 +184,7 @@ public static function log(\_PhpScoper5bbb1f4b001f3\Psr\Log\LoggerInterface $log public static function prepareBody() { return function (callable $handler) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\PrepareBodyMiddleware($handler); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\PrepareBodyMiddleware($handler); }; } /** diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Pool.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Pool.php index 84767858..4ef4c629 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Pool.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/Pool.php @@ -1,10 +1,10 @@ $rfn) { - if ($rfn instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface) { + if ($rfn instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface) { (yield $key => $client->sendAsync($rfn, $opts)); } elseif (\is_callable($rfn)) { (yield $key => $rfn($opts)); @@ -56,7 +56,7 @@ public function __construct(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\ClientInterface } } }; - $this->each = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\EachPromise($requests(), $config); + $this->each = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\EachPromise($requests(), $config); } public function promise() { @@ -79,7 +79,7 @@ public function promise() * in the same order that the requests were sent. * @throws \InvalidArgumentException if the event format is incorrect. */ - public static function batch(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\ClientInterface $client, $requests, array $options = []) + public static function batch(\_PhpScoper5ce26f1fe2920\GuzzleHttp\ClientInterface $client, $requests, array $options = []) { $res = []; self::cmpCallback($options, 'fulfilled', $res); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php index 550a1451..a03ad13d 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php @@ -1,10 +1,10 @@ nextHandler; // Don't do anything if the request has no body. @@ -37,7 +37,7 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf // Add a default content-type if possible. if (!$request->hasHeader('Content-Type')) { if ($uri = $request->getBody()->getMetadata('uri')) { - if ($type = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\mimetype_from_filename($uri)) { + if ($type = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\mimetype_from_filename($uri)) { $modify['set_headers']['Content-Type'] = $type; } } @@ -53,9 +53,9 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf } // Add the expect header if needed. $this->addExpectHeader($request, $options, $modify); - return $fn(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\modify_request($request, $modify), $options); + return $fn(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\modify_request($request, $modify), $options); } - private function addExpectHeader(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options, array &$modify) + private function addExpectHeader(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options, array &$modify) { // Determine if the Expect header should be used if ($request->hasHeader('Expect')) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php index c98267a8..1a4f5598 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php @@ -1,14 +1,14 @@ nextHandler; if (empty($options['allow_redirects'])) { @@ -52,7 +52,7 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf if (empty($options['allow_redirects']['max'])) { return $fn($request, $options); } - return $fn($request, $options)->then(function (\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) use($request, $options) { + return $fn($request, $options)->then(function (\_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) use($request, $options) { return $this->checkRedirect($request, $options, $response); }); } @@ -63,7 +63,7 @@ public function __invoke(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterf * * @return ResponseInterface|PromiseInterface */ - public function checkRedirect(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) + public function checkRedirect(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) { if (\substr($response->getStatusCode(), 0, 1) != '3' || !$response->hasHeader('Location')) { return $response; @@ -81,9 +81,9 @@ public function checkRedirect(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI } return $promise; } - private function withTracking(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface $promise, $uri, $statusCode) + private function withTracking(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface $promise, $uri, $statusCode) { - return $promise->then(function (\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) use($uri, $statusCode) { + return $promise->then(function (\_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) use($uri, $statusCode) { // Note that we are pushing to the front of the list as this // would be an earlier response than what is currently present // in the history header. @@ -94,13 +94,13 @@ private function withTracking(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promis return $response->withHeader(self::HISTORY_HEADER, $historyHeader)->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader); }); } - private function guardMax(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array &$options) + private function guardMax(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array &$options) { $current = isset($options['__redirect_count']) ? $options['__redirect_count'] : 0; $options['__redirect_count'] = $current + 1; $max = $options['allow_redirects']['max']; if ($options['__redirect_count'] > $max) { - throw new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\TooManyRedirectsException("Will not follow more than {$max} redirects", $request); + throw new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\TooManyRedirectsException("Will not follow more than {$max} redirects", $request); } } /** @@ -110,7 +110,7 @@ private function guardMax(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInter * * @return RequestInterface */ - public function modifyRequest(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response) + public function modifyRequest(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response) { // Request modifications to apply. $modify = []; @@ -124,7 +124,7 @@ public function modifyRequest(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI $modify['body'] = ''; } $modify['uri'] = $this->redirectUri($request, $response, $protocols); - \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\rewind_body($request); + \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\rewind_body($request); // Add the Referer header if it is told to do so and only // add the header if we are not redirecting from https to http. if ($options['allow_redirects']['referer'] && $modify['uri']->getScheme() === $request->getUri()->getScheme()) { @@ -137,7 +137,7 @@ public function modifyRequest(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI if ($request->getUri()->getHost() !== $modify['uri']->getHost()) { $modify['remove_headers'][] = 'Authorization'; } - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\modify_request($request, $modify); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\modify_request($request, $modify); } /** * Set the appropriate URL on the request based on the location header @@ -148,12 +148,12 @@ public function modifyRequest(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestI * * @return UriInterface */ - private function redirectUri(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response, array $protocols) + private function redirectUri(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response, array $protocols) { - $location = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UriResolver::resolve($request->getUri(), new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri($response->getHeaderLine('Location'))); + $location = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UriResolver::resolve($request->getUri(), new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri($response->getHeaderLine('Location'))); // Ensure that the redirect URI is allowed based on the protocols. if (!\in_array($location->getScheme(), $protocols)) { - throw new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Exception\BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response); + throw new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Exception\BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response); } return $location; } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RequestOptions.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RequestOptions.php index 9f8a3d4d..5a499f89 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RequestOptions.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/RequestOptions.php @@ -1,6 +1,6 @@ nextHandler; return $fn($request, $options)->then($this->onFulfilled($request, $options), $this->onRejected($request, $options)); } - private function onFulfilled(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $req, array $options) + private function onFulfilled(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $req, array $options) { return function ($value) use($req, $options) { if (!\call_user_func($this->decider, $options['retries'], $req, $value, null)) { @@ -67,16 +67,16 @@ private function onFulfilled(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestIn return $this->doRetry($req, $options, $value); }; } - private function onRejected(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $req, array $options) + private function onRejected(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $req, array $options) { return function ($reason) use($req, $options) { if (!\call_user_func($this->decider, $options['retries'], $req, null, $reason)) { - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\rejection_for($reason); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\rejection_for($reason); } return $this->doRetry($req, $options); }; } - private function doRetry(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface $response = null) + private function doRetry(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $options, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface $response = null) { $options['delay'] = \call_user_func($this->delay, ++$options['retries'], $response); return $this($request, $options); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/TransferStats.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/TransferStats.php index d181a061..bc0ecf93 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/TransferStats.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/TransferStats.php @@ -1,10 +1,10 @@ request = $request; $this->response = $response; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/UriTemplate.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/UriTemplate.php index 058b31bb..bcec0f2e 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/UriTemplate.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/UriTemplate.php @@ -1,6 +1,6 @@ expand($template, $variables); } @@ -93,14 +93,14 @@ function choose_handler() { $handler = null; if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { - $handler = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\Proxy::wrapSync(new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlMultiHandler(), new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlHandler()); + $handler = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\Proxy::wrapSync(new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlMultiHandler(), new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlHandler()); } elseif (\function_exists('curl_exec')) { - $handler = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlHandler(); + $handler = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlHandler(); } elseif (\function_exists('curl_multi_exec')) { - $handler = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\CurlMultiHandler(); + $handler = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\CurlMultiHandler(); } if (\ini_get('allow_url_fopen')) { - $handler = $handler ? \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\Proxy::wrapStreaming($handler, new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\StreamHandler()) : new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Handler\StreamHandler(); + $handler = $handler ? \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\Proxy::wrapStreaming($handler, new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\StreamHandler()) : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Handler\StreamHandler(); } elseif (!$handler) { throw new \RuntimeException('GuzzleHttp requires cURL, the ' . 'allow_url_fopen ini setting, or a custom HTTP handler.'); } @@ -115,7 +115,7 @@ function default_user_agent() { static $defaultAgent = ''; if (!$defaultAgent) { - $defaultAgent = 'GuzzleHttp/' . \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Client::VERSION; + $defaultAgent = 'GuzzleHttp/' . \_PhpScoper5ce26f1fe2920\GuzzleHttp\Client::VERSION; if (\extension_loaded('curl') && \function_exists('curl_version')) { $defaultAgent .= ' curl/' . \curl_version()['version']; } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/functions_include.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/functions_include.php index da426e7f..b9a67ca5 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/functions_include.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/guzzle/src/functions_include.php @@ -1,8 +1,8 @@ generator = $generatorFn(); - $this->result = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise(function () { + $this->result = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise(function () { while (isset($this->currentPromise)) { $this->currentPromise->wait(); } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/EachPromise.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/EachPromise.php index 1aee2dcd..4b11664a 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/EachPromise.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/EachPromise.php @@ -1,12 +1,12 @@ mutex = \false; - $this->aggregate = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise(function () { + $this->aggregate = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise(function () { \reset($this->pending); if (empty($this->pending) && !$this->iterable->valid()) { $this->aggregate->resolve(null); @@ -85,7 +85,7 @@ private function createPromise() while ($promise = \current($this->pending)) { \next($this->pending); $promise->wait(); - if ($this->aggregate->getState() !== \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::PENDING) { + if ($this->aggregate->getState() !== \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::PENDING) { return; } } @@ -166,7 +166,7 @@ private function advanceIterator() private function step($idx) { // If the promise was already resolved, then ignore this step. - if ($this->aggregate->getState() !== \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::PENDING) { + if ($this->aggregate->getState() !== \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::PENDING) { return; } unset($this->pending[$idx]); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/FulfilledPromise.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/FulfilledPromise.php index 25b762c9..8bd89a83 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/FulfilledPromise.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/FulfilledPromise.php @@ -1,6 +1,6 @@ value; $queue->add(static function () use($p, $value, $onFulfilled) { if ($p->getState() === self::PENDING) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/Promise.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/Promise.php index ea79909a..90909e62 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/Promise.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/Promise.php @@ -1,13 +1,13 @@ state === self::PENDING) { - $p = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise(null, [$this, 'cancel']); + $p = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise(null, [$this, 'cancel']); $this->handlers[] = [$p, $onFulfilled, $onRejected]; $p->waitList = $this->waitList; $p->waitList[] = $this; @@ -49,9 +49,9 @@ public function otherwise(callable $onRejected) public function wait($unwrap = \true) { $this->waitIfPending(); - $inner = $this->result instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface ? $this->result->wait($unwrap) : $this->result; + $inner = $this->result instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface ? $this->result->wait($unwrap) : $this->result; if ($unwrap) { - if ($this->result instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface || $this->state === self::FULFILLED) { + if ($this->result instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface || $this->state === self::FULFILLED) { return $inner; } else { // It's rejected so "unwrap" and throw an exception. @@ -82,7 +82,7 @@ public function cancel() } // Reject the promise only if it wasn't rejected in a then callback. if ($this->state === self::PENDING) { - $this->reject(new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\CancellationException('Promise has been cancelled')); + $this->reject(new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\CancellationException('Promise has been cancelled')); } } public function resolve($value) @@ -125,7 +125,7 @@ private function settle($state, $value) self::callHandler($id, $value, $handler); } }); - } elseif ($value instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise && $value->getState() === self::PENDING) { + } elseif ($value instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise && $value->getState() === self::PENDING) { // We can just merge our handlers onto the next promise. $value->handlers = \array_merge($value->handlers, $handlers); } else { @@ -217,10 +217,10 @@ private function invokeWaitList() foreach ($waitList as $result) { while (\true) { $result->waitIfPending(); - if ($result->result instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise) { + if ($result->result instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise) { $result = $result->result; } else { - if ($result->result instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface) { + if ($result->result instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface) { $result->result->wait(\false); } break; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/PromiseInterface.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/PromiseInterface.php index a8f00bbb..0add0805 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/PromiseInterface.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/PromiseInterface.php @@ -1,6 +1,6 @@ reason; - $p = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise([$queue, 'run']); + $p = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise([$queue, 'run']); $queue->add(static function () use($p, $reason, $onRejected) { if ($p->getState() === self::PENDING) { try { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/RejectionException.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/RejectionException.php index 181627d2..5fd024d9 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/RejectionException.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/RejectionException.php @@ -1,6 +1,6 @@ run(); */ -class TaskQueue implements \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\TaskQueueInterface +class TaskQueue implements \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\TaskQueueInterface { private $enableShutdown = \true; private $queue = []; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/TaskQueueInterface.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/TaskQueueInterface.php index c42bd7a2..45207a1e 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/TaskQueueInterface.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/TaskQueueInterface.php @@ -1,6 +1,6 @@ add(function () use($task, $promise) { try { $promise->resolve($task()); @@ -61,18 +61,18 @@ function task(callable $task) */ function promise_for($value) { - if ($value instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface) { + if ($value instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface) { return $value; } // Return a Guzzle promise that shadows the given promise. if (\method_exists($value, 'then')) { $wfn = \method_exists($value, 'wait') ? [$value, 'wait'] : null; $cfn = \method_exists($value, 'cancel') ? [$value, 'cancel'] : null; - $promise = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise($wfn, $cfn); + $promise = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise($wfn, $cfn); $value->then([$promise, 'resolve'], [$promise, 'reject']); return $promise; } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\FulfilledPromise($value); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\FulfilledPromise($value); } /** * Creates a rejected promise for a reason if the reason is not a promise. If @@ -84,10 +84,10 @@ function promise_for($value) */ function rejection_for($reason) { - if ($reason instanceof \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface) { + if ($reason instanceof \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface) { return $reason; } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\RejectedPromise($reason); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\RejectedPromise($reason); } /** * Create an exception for a rejected promise value. @@ -98,7 +98,7 @@ function rejection_for($reason) */ function exception_for($reason) { - return $reason instanceof \Exception || $reason instanceof \Throwable ? $reason : new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\RejectionException($reason); + return $reason instanceof \Exception || $reason instanceof \Throwable ? $reason : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\RejectionException($reason); } /** * Returns an iterator for the given value. @@ -131,16 +131,16 @@ function iter_for($value) * * @return array */ -function inspect(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface $promise) +function inspect(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface $promise) { try { - return ['state' => \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::FULFILLED, 'value' => $promise->wait()]; - } catch (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\RejectionException $e) { - return ['state' => \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e->getReason()]; + return ['state' => \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::FULFILLED, 'value' => $promise->wait()]; + } catch (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\RejectionException $e) { + return ['state' => \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e->getReason()]; } catch (\Throwable $e) { - return ['state' => \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e]; + return ['state' => \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e]; } catch (\Exception $e) { - return ['state' => \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e]; + return ['state' => \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e]; } } /** @@ -200,7 +200,7 @@ function all($promises) $results = []; return \each($promises, function ($value, $idx) use(&$results) { $results[$idx] = $value; - }, function ($reason, $idx, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Promise $aggregate) { + }, function ($reason, $idx, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Promise $aggregate) { $aggregate->reject($reason); })->then(function () use(&$results) { \ksort($results); @@ -227,8 +227,8 @@ function some($count, $promises) { $results = []; $rejections = []; - return \each($promises, function ($value, $idx, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface $p) use(&$results, $count) { - if ($p->getState() !== \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::PENDING) { + return \each($promises, function ($value, $idx, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface $p) use(&$results, $count) { + if ($p->getState() !== \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::PENDING) { return; } $results[$idx] = $value; @@ -239,7 +239,7 @@ function some($count, $promises) $rejections[] = $reason; })->then(function () use(&$results, &$rejections, $count) { if (\count($results) !== $count) { - throw new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\AggregateException('Not enough promises to fulfill count', $rejections); + throw new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\AggregateException('Not enough promises to fulfill count', $rejections); } \ksort($results); return \array_values($results); @@ -274,9 +274,9 @@ function settle($promises) { $results = []; return \each($promises, function ($value, $idx) use(&$results) { - $results[$idx] = ['state' => \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::FULFILLED, 'value' => $value]; + $results[$idx] = ['state' => \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::FULFILLED, 'value' => $value]; }, function ($reason, $idx) use(&$results) { - $results[$idx] = ['state' => \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $reason]; + $results[$idx] = ['state' => \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $reason]; })->then(function () use(&$results) { \ksort($results); return $results; @@ -303,7 +303,7 @@ function settle($promises) */ function each($iterable, callable $onFulfilled = null, callable $onRejected = null) { - return (new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected]))->promise(); + return (new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected]))->promise(); } /** * Like each, but only allows a certain number of outstanding promises at any @@ -322,7 +322,7 @@ function each($iterable, callable $onFulfilled = null, callable $onRejected = nu */ function each_limit($iterable, $concurrency, callable $onFulfilled = null, callable $onRejected = null) { - return (new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise(); + return (new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise(); } /** * Like each_limit, but ensures that no promise in the given $iterable argument @@ -337,7 +337,7 @@ function each_limit($iterable, $concurrency, callable $onFulfilled = null, calla */ function each_limit_all($iterable, $concurrency, callable $onFulfilled = null) { - return each_limit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface $aggregate) { + return each_limit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface $aggregate) { $aggregate->reject($reason); }); } @@ -348,9 +348,9 @@ function each_limit_all($iterable, $concurrency, callable $onFulfilled = null) * * @return bool */ -function is_fulfilled(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface $promise) +function is_fulfilled(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface $promise) { - return $promise->getState() === \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::FULFILLED; + return $promise->getState() === \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::FULFILLED; } /** * Returns true if a promise is rejected. @@ -359,9 +359,9 @@ function is_fulfilled(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterfa * * @return bool */ -function is_rejected(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface $promise) +function is_rejected(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface $promise) { - return $promise->getState() === \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::REJECTED; + return $promise->getState() === \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::REJECTED; } /** * Returns true if a promise is fulfilled or rejected. @@ -370,9 +370,9 @@ function is_rejected(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterfac * * @return bool */ -function is_settled(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface $promise) +function is_settled(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface $promise) { - return $promise->getState() !== \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface::PENDING; + return $promise->getState() !== \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\PromiseInterface::PENDING; } /** * @see Coroutine @@ -383,5 +383,5 @@ function is_settled(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\PromiseInterface */ function coroutine(callable $generatorFn) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Promise\Coroutine($generatorFn); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Promise\Coroutine($generatorFn); } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/functions_include.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/functions_include.php index 457514dd..cef829a9 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/functions_include.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/promises/src/functions_include.php @@ -1,8 +1,8 @@ withPath('foo')->withHost('example.com')` will throw an exception - because the path of a URI with an authority must start with a slash "/" or be empty - - `(new Uri())->withScheme('http')` will return `'http://localhost'` -* Fix compatibility of URIs with `file` scheme and empty host. -* Added common URI utility methods based on RFC 3986 (see documentation in the readme): +## [1.4.0] - 2017-02-21 + +### Added + +- Added common URI utility methods based on RFC 3986 (see documentation in the readme): - `Uri::isDefaultPort` - `Uri::isAbsolute` - `Uri::isNetworkPathReference` @@ -37,69 +87,117 @@ - `UriNormalizer::normalize` - `UriNormalizer::isEquivalent` - `UriResolver::relativize` -* Deprecated `Uri::resolve` in favor of `UriResolver::resolve` -* Deprecated `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments` -## 1.3.1 - 2016-06-25 +### Changed + +- Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form. +- Allow `parse_response` to parse a response without delimiting space and reason. +- Ensure each URI modification results in a valid URI according to PSR-7 discussions. + Invalid modifications will throw an exception instead of returning a wrong URI or + doing some magic. + - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception + because the path of a URI with an authority must start with a slash "/" or be empty + - `(new Uri())->withScheme('http')` will return `'http://localhost'` + +### Deprecated + +- `Uri::resolve` in favor of `UriResolver::resolve` +- `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments` + +### Fixed + +- `Stream::read` when length parameter <= 0. +- `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory. +- `ServerRequest::getUriFromGlobals` when `Host` header contains port. +- Compatibility of URIs with `file` scheme and empty host. + -* Fix `Uri::__toString` for network path references, e.g. `//example.org`. -* Fix missing lowercase normalization for host. -* Fix handling of URI components in case they are `'0'` in a lot of places, +## [1.3.1] - 2016-06-25 + +### Fixed + +- `Uri::__toString` for network path references, e.g. `//example.org`. +- Missing lowercase normalization for host. +- Handling of URI components in case they are `'0'` in a lot of places, e.g. as a user info password. -* Fix `Uri::withAddedHeader` to correctly merge headers with different case. -* Fix trimming of header values in `Uri::withAddedHeader`. Header values may +- `Uri::withAddedHeader` to correctly merge headers with different case. +- Trimming of header values in `Uri::withAddedHeader`. Header values may be surrounded by whitespace which should be ignored according to RFC 7230 Section 3.2.4. This does not apply to header names. -* Fix `Uri::withAddedHeader` with an array of header values. -* Fix `Uri::resolve` when base path has no slash and handling of fragment. -* Fix handling of encoding in `Uri::with(out)QueryValue` so one can pass the +- `Uri::withAddedHeader` with an array of header values. +- `Uri::resolve` when base path has no slash and handling of fragment. +- Handling of encoding in `Uri::with(out)QueryValue` so one can pass the key/value both in encoded as well as decoded form to those methods. This is consistent with withPath, withQuery etc. -* Fix `ServerRequest::withoutAttribute` when attribute value is null. +- `ServerRequest::withoutAttribute` when attribute value is null. + + +## [1.3.0] - 2016-04-13 -## 1.3.0 - 2016-04-13 +### Added -* Added remaining interfaces needed for full PSR7 compatibility +- Remaining interfaces needed for full PSR7 compatibility (ServerRequestInterface, UploadedFileInterface, etc.). -* Added support for stream_for from scalars. -* Can now extend Uri. -* Fixed a bug in validating request methods by making it more permissive. +- Support for stream_for from scalars. -## 1.2.3 - 2016-02-18 +### Changed -* Fixed support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote +- Can now extend Uri. + +### Fixed +- A bug in validating request methods by making it more permissive. + + +## [1.2.3] - 2016-02-18 + +### Fixed + +- Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote streams, which can sometimes return fewer bytes than requested with `fread`. -* Fixed handling of gzipped responses with FNAME headers. +- Handling of gzipped responses with FNAME headers. + + +## [1.2.2] - 2016-01-22 + +### Added + +- Support for URIs without any authority. +- Support for HTTP 451 'Unavailable For Legal Reasons.' +- Support for using '0' as a filename. +- Support for including non-standard ports in Host headers. -## 1.2.2 - 2016-01-22 -* Added support for URIs without any authority. -* Added support for HTTP 451 'Unavailable For Legal Reasons.' -* Added support for using '0' as a filename. -* Added support for including non-standard ports in Host headers. +## [1.2.1] - 2015-11-02 -## 1.2.1 - 2015-11-02 +### Changes -* Now supporting negative offsets when seeking to SEEK_END. +- Now supporting negative offsets when seeking to SEEK_END. -## 1.2.0 - 2015-08-15 -* Body as `"0"` is now properly added to a response. -* Now allowing forward seeking in CachingStream. -* Now properly parsing HTTP requests that contain proxy targets in +## [1.2.0] - 2015-08-15 + +### Changed + +- Body as `"0"` is now properly added to a response. +- Now allowing forward seeking in CachingStream. +- Now properly parsing HTTP requests that contain proxy targets in `parse_request`. -* functions.php is now conditionally required. -* user-info is no longer dropped when resolving URIs. +- functions.php is now conditionally required. +- user-info is no longer dropped when resolving URIs. + + +## [1.1.0] - 2015-06-24 -## 1.1.0 - 2015-06-24 +### Changed -* URIs can now be relative. -* `multipart/form-data` headers are now overridden case-insensitively. -* URI paths no longer encode the following characters because they are allowed +- URIs can now be relative. +- `multipart/form-data` headers are now overridden case-insensitively. +- URI paths no longer encode the following characters because they are allowed in URIs: "(", ")", "*", "!", "'" -* A port is no longer added to a URI when the scheme is missing and no port is +- A port is no longer added to a URI when the scheme is missing and no port is present. + ## 1.0.0 - 2015-05-19 Initial release. @@ -108,3 +206,20 @@ Currently unsupported: - `Psr\Http\Message\ServerRequestInterface` - `Psr\Http\Message\UploadedFileInterface` + + + +[Unreleased]: https://github.com/guzzle/psr7/compare/1.5.2...HEAD +[1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2 +[1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1 +[1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0 +[1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2 +[1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1 +[1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0 +[1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1 +[1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0 +[1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3 +[1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2 +[1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1 +[1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0 +[1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0 diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/README.md b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/README.md index 16499358..c60a6a38 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/README.md +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/README.md @@ -372,7 +372,7 @@ This method accepts the following `$resource` types: $stream = GuzzleHttp\Psr7\stream_for('foo'); $stream = GuzzleHttp\Psr7\stream_for(fopen('/path/to/file', 'r')); -$generator function ($bytes) { +$generator = function ($bytes) { for ($i = 0; $i < $bytes; $i++) { yield ' '; } @@ -606,6 +606,12 @@ Creates a new URI with a specific query string value. Any existing query string provided key are removed and replaced with the given key value pair. A value of null will set the query string key without a value, e.g. "key" instead of "key=value". +### `GuzzleHttp\Psr7\Uri::withQueryValues` + +`public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface` + +Creates a new URI with multiple query string values. It has the same behavior as `withQueryValue()` but for an +associative array of key => value. ### `GuzzleHttp\Psr7\Uri::withoutQueryValue` diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/composer.json b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/composer.json index 220f2931..f6728ee3 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/composer.json +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/composer.json @@ -9,7 +9,8 @@ "stream", "http", "uri", - "url" + "url", + "psr-7" ], "license": "MIT", "authors": [ @@ -25,25 +26,31 @@ ], "require": { "php": ">=5.4.0", - "psr\/http-message": "~1.0" + "psr\/http-message": "~1.0", + "ralouphie\/getallheaders": "^2.0.5" }, "require-dev": { - "phpunit\/phpunit": "~4.0" + "phpunit\/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" }, "provide": { "psr\/http-message-implementation": "1.0" }, "autoload": { "psr-4": { - "_PhpScoper5bbb1f4b001f3\\GuzzleHttp\\Psr7\\": "src\/" + "_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Psr7\\": "src\/" }, "files": [ "src\/functions_include.php" ] }, + "autoload-dev": { + "psr-4": { + "_PhpScoper5ce26f1fe2920\\GuzzleHttp\\Tests\\Psr7\\": "tests\/" + } + }, "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } } } \ No newline at end of file diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/AppendStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/AppendStream.php index aae16bf0..e0b63fe2 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/AppendStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/AppendStream.php @@ -1,21 +1,20 @@ isReadable()) { throw new \InvalidArgumentException('Each stream must be readable'); @@ -65,20 +64,27 @@ public function getContents() public function close() { $this->pos = $this->current = 0; + $this->seekable = \true; foreach ($this->streams as $stream) { $stream->close(); } $this->streams = []; } /** - * Detaches each attached stream + * Detaches each attached stream. + * + * Returns null as it's not clear which underlying stream resource to return. * * {@inheritdoc} */ public function detach() { - $this->close(); - $this->detached = \true; + $this->pos = $this->current = 0; + $this->seekable = \true; + foreach ($this->streams as $stream) { + $stream->detach(); + } + $this->streams = []; } public function tell() { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/BufferStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/BufferStream.php index 3b737ccd..1adc52f0 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/BufferStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/BufferStream.php @@ -1,8 +1,8 @@ remoteStream = $stream; - $this->stream = $target ?: new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+')); + $this->stream = $target ?: new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+')); } public function getSize() { @@ -108,7 +108,7 @@ public function close() } private function cacheEntireStream() { - $target = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\FnStream(['write' => 'strlen']); + $target = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\FnStream(['write' => 'strlen']); copy_to_stream($this, $target); return $this->tell(); } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/DroppingStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/DroppingStream.php index 100cfa22..4bb9e399 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/DroppingStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/DroppingStream.php @@ -1,13 +1,13 @@ stream = $stream; $this->maxLength = $maxLength; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/FnStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/FnStream.php index ea79cd27..a1722ac2 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/FnStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/FnStream.php @@ -1,15 +1,15 @@ _fn_close); } } + /** + * An unserialize would allow the __destruct to run when the unserialized value goes out of scope. + * @throws \LogicException + */ + public function __wakeup() + { + throw new \LogicException('FnStream should never be unserialized'); + } /** * Adds custom functionality to an underlying stream by intercepting * specific method calls. @@ -52,7 +60,7 @@ public function __destruct() * * @return FnStream */ - public static function decorate(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, array $methods) + public static function decorate(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream, array $methods) { // If any of the required methods were not provided, then simply // proxy to the decorated stream. diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/InflateStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/InflateStream.php index 936215e6..86590852 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/InflateStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/InflateStream.php @@ -1,8 +1,8 @@ read(10); $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); // Skip the header, that is 10 + length of filename + 1 (nil) bytes - $stream = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\LimitStream($stream, -1, 10 + $filenameHeaderLength); - $resource = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\StreamWrapper::getResource($stream); + $stream = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\LimitStream($stream, -1, 10 + $filenameHeaderLength); + $resource = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\StreamWrapper::getResource($stream); \stream_filter_append($resource, 'zlib.inflate', \STREAM_FILTER_READ); - $this->stream = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Stream($resource); + $this->stream = $stream->isSeekable() ? new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Stream($resource) : new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\NoSeekStream(new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Stream($resource)); } /** * @param StreamInterface $stream * @param $header * @return int */ - private function getLengthOfPossibleFilenameHeader(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, $header) + private function getLengthOfPossibleFilenameHeader(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream, $header) { $filename_header_length = 0; if (\substr(\bin2hex($header), 6, 2) === '08') { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/LazyOpenStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/LazyOpenStream.php index b386ee06..6f15343b 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/LazyOpenStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/LazyOpenStream.php @@ -1,13 +1,13 @@ stream = $stream; $this->setLimit($limit); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MessageTrait.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MessageTrait.php index f8b100f5..e7077188 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MessageTrait.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MessageTrait.php @@ -1,8 +1,8 @@ stream; } - public function withBody(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $body) + public function withBody(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $body) { if ($body === $this->stream) { return $this; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MultipartStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MultipartStream.php index 719dac2a..dc20ad07 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MultipartStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/MultipartStream.php @@ -1,13 +1,13 @@ addElement($stream, $element); } @@ -65,7 +65,7 @@ protected function createStream(array $elements) $stream->addStream(stream_for("--{$this->boundary}--\r\n")); return $stream; } - private function addElement(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\AppendStream $stream, array $element) + private function addElement(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\AppendStream $stream, array $element) { foreach (['contents', 'name'] as $key) { if (!\array_key_exists($key, $element)) { @@ -87,7 +87,7 @@ private function addElement(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\AppendStrea /** * @return array */ - private function createElement($name, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, $filename, array $headers) + private function createElement($name, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream, $filename, array $headers) { // Set a default content-disposition header if one was no provided $disposition = $this->getHeader($headers, 'content-disposition'); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/NoSeekStream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/NoSeekStream.php index f08aa5b1..920b269a 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/NoSeekStream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/NoSeekStream.php @@ -1,12 +1,12 @@ source = $source; $this->size = isset($options['size']) ? $options['size'] : null; $this->metadata = isset($options['metadata']) ? $options['metadata'] : []; - $this->buffer = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\BufferStream(); + $this->buffer = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\BufferStream(); } public function __toString() { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Request.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Request.php index 820702a0..bedefd3e 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Request.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Request.php @@ -1,15 +1,15 @@ method = \strtoupper($method); $this->uri = $uri; $this->setHeaders($headers); $this->protocol = $version; - if (!$this->hasHeader('Host')) { + if (!isset($this->headerNames['host'])) { $this->updateHostFromUri(); } if ($body !== '' && $body !== null) { @@ -78,14 +78,14 @@ public function getUri() { return $this->uri; } - public function withUri(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri, $preserveHost = \false) + public function withUri(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri, $preserveHost = \false) { if ($uri === $this->uri) { return $this; } $new = clone $this; $new->uri = $uri; - if (!$preserveHost) { + if (!$preserveHost || !isset($this->headerNames['host'])) { $new->updateHostFromUri(); } return $new; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Response.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Response.php index 14c28d5f..d21c0759 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Response.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Response.php @@ -1,13 +1,13 @@ statusCode = (int) $status; if ($body !== '' && $body !== null) { $this->stream = stream_for($body); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Rfc7230.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Rfc7230.php new file mode 100644 index 00000000..a1cf0828 --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Rfc7230.php @@ -0,0 +1,18 @@ +@,;:\\\"/[\\]?={}\1- ]++):[ \t]*+((?:[ \t]*+[!-~-]++)*+)[ \t]*+\r?\n)m"; + const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; +} diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/ServerRequest.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/ServerRequest.php index d53a104e..45cf2f43 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/ServerRequest.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/ServerRequest.php @@ -1,12 +1,12 @@ $value) { - if ($value instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UploadedFileInterface) { + if ($value instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\UploadedFileInterface) { $normalized[$key] = $value; } elseif (\is_array($value) && isset($value['tmp_name'])) { $normalized[$key] = self::createUploadedFileFromSpec($value); @@ -98,7 +98,7 @@ private static function createUploadedFileFromSpec(array $value) if (\is_array($value['tmp_name'])) { return self::normalizeNestedFileSpec($value); } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UploadedFile($value['tmp_name'], (int) $value['size'], (int) $value['error'], $value['name'], $value['type']); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UploadedFile($value['tmp_name'], (int) $value['size'], (int) $value['error'], $value['name'], $value['type']); } /** * Normalize an array of file specifications. @@ -131,13 +131,24 @@ private static function normalizeNestedFileSpec(array $files = []) public static function fromGlobals() { $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : 'GET'; - $headers = \function_exists('_PhpScoper5bbb1f4b001f3\\getallheaders') ? getallheaders() : []; + $headers = getallheaders(); $uri = self::getUriFromGlobals(); - $body = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\LazyOpenStream('php://input', 'r+'); + $body = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\LazyOpenStream('php://input', 'r+'); $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? \str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; - $serverRequest = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); + $serverRequest = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); return $serverRequest->withCookieParams($_COOKIE)->withQueryParams($_GET)->withParsedBody($_POST)->withUploadedFiles(self::normalizeFiles($_FILES)); } + private static function extractHostAndPortFromAuthority($authority) + { + $uri = 'http://' . $authority; + $parts = \parse_url($uri); + if (\false === $parts) { + return [null, null]; + } + $host = isset($parts['host']) ? $parts['host'] : null; + $port = isset($parts['port']) ? $parts['port'] : null; + return [$host, $port]; + } /** * Get a Uri populated with values from $_SERVER. * @@ -145,15 +156,17 @@ public static function fromGlobals() */ public static function getUriFromGlobals() { - $uri = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri(''); + $uri = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri(''); $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http'); $hasPort = \false; if (isset($_SERVER['HTTP_HOST'])) { - $hostHeaderParts = \explode(':', $_SERVER['HTTP_HOST']); - $uri = $uri->withHost($hostHeaderParts[0]); - if (isset($hostHeaderParts[1])) { + list($host, $port) = self::extractHostAndPortFromAuthority($_SERVER['HTTP_HOST']); + if ($host !== null) { + $uri = $uri->withHost($host); + } + if ($port !== null) { $hasPort = \true; - $uri = $uri->withPort($hostHeaderParts[1]); + $uri = $uri->withPort($port); } } elseif (isset($_SERVER['SERVER_NAME'])) { $uri = $uri->withHost($_SERVER['SERVER_NAME']); @@ -165,7 +178,7 @@ public static function getUriFromGlobals() } $hasQuery = \false; if (isset($_SERVER['REQUEST_URI'])) { - $requestUriParts = \explode('?', $_SERVER['REQUEST_URI']); + $requestUriParts = \explode('?', $_SERVER['REQUEST_URI'], 2); $uri = $uri->withPath($requestUriParts[0]); if (isset($requestUriParts[1])) { $hasQuery = \true; diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Stream.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Stream.php index bee2a3e8..ee97505e 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Stream.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Stream.php @@ -1,14 +1,14 @@ ['r' => \true, 'w+' => \true, 'r+' => \true, 'x+' => \true, 'c+' => \true, 'rb' => \true, 'w+b' => \true, 'r+b' => \true, 'x+b' => \true, 'c+b' => \true, 'rt' => \true, 'w+t' => \true, 'r+t' => \true, 'x+t' => \true, 'c+t' => \true, 'a+' => \true], 'write' => ['w' => \true, 'w+' => \true, 'rw' => \true, 'r+' => \true, 'x+' => \true, 'c+' => \true, 'wb' => \true, 'w+b' => \true, 'r+b' => \true, 'x+b' => \true, 'c+b' => \true, 'w+t' => \true, 'r+t' => \true, 'x+t' => \true, 'c+t' => \true, 'a' => \true, 'a+' => \true]]; + private static $readWriteHash = ['read' => ['r' => \true, 'w+' => \true, 'r+' => \true, 'x+' => \true, 'c+' => \true, 'rb' => \true, 'w+b' => \true, 'r+b' => \true, 'x+b' => \true, 'c+b' => \true, 'rt' => \true, 'w+t' => \true, 'r+t' => \true, 'x+t' => \true, 'c+t' => \true, 'a+' => \true, 'rb+' => \true], 'write' => ['w' => \true, 'w+' => \true, 'rw' => \true, 'r+' => \true, 'x+' => \true, 'c+' => \true, 'wb' => \true, 'w+b' => \true, 'r+b' => \true, 'rb+' => \true, 'x+b' => \true, 'c+b' => \true, 'w+t' => \true, 'r+t' => \true, 'x+t' => \true, 'c+t' => \true, 'a' => \true, 'a+' => \true]]; /** * This constructor accepts an associative array of options. * @@ -49,13 +49,6 @@ public function __construct($stream, $options = []) $this->writable = isset(self::$readWriteHash['write'][$meta['mode']]); $this->uri = $this->getMetadata('uri'); } - public function __get($name) - { - if ($name == 'stream') { - throw new \RuntimeException('The stream is detached'); - } - throw new \BadMethodCallException('No value for ' . $name); - } /** * Closes the stream when the destructed */ @@ -74,6 +67,9 @@ public function __toString() } public function getContents() { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } $contents = \stream_get_contents($this->stream); if ($contents === \false) { throw new \RuntimeException('Unable to read stream contents'); @@ -133,10 +129,16 @@ public function isSeekable() } public function eof() { - return !$this->stream || \feof($this->stream); + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + return \feof($this->stream); } public function tell() { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } $result = \ftell($this->stream); if ($result === \false) { throw new \RuntimeException('Unable to determine stream position'); @@ -149,14 +151,21 @@ public function rewind() } public function seek($offset, $whence = \SEEK_SET) { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } if (!$this->seekable) { throw new \RuntimeException('Stream is not seekable'); - } elseif (\fseek($this->stream, $offset, $whence) === -1) { + } + if (\fseek($this->stream, $offset, $whence) === -1) { throw new \RuntimeException('Unable to seek to stream position ' . $offset . ' with whence ' . \var_export($whence, \true)); } } public function read($length) { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } if (!$this->readable) { throw new \RuntimeException('Cannot read from non-readable stream'); } @@ -174,6 +183,9 @@ public function read($length) } public function write($string) { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } if (!$this->writable) { throw new \RuntimeException('Cannot write to a non-writable stream'); } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php index 15381b4d..da3afec4 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php @@ -1,8 +1,8 @@ stream = $stream; } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamWrapper.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamWrapper.php index f542025d..fb9abcf5 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamWrapper.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/StreamWrapper.php @@ -1,8 +1,8 @@ isReadable()) { @@ -32,7 +32,18 @@ public static function getResource(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\Str } else { throw new \InvalidArgumentException('The stream must be readable, ' . 'writable, or both.'); } - return \fopen('guzzle://stream', $mode, null, \stream_context_create(['guzzle' => ['stream' => $stream]])); + return \fopen('guzzle://stream', $mode, null, self::createStreamContext($stream)); + } + /** + * Creates a stream context that can be used to open a stream as a php stream resource. + * + * @param StreamInterface $stream + * + * @return resource + */ + public static function createStreamContext(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream) + { + return \stream_context_create(['guzzle' => ['stream' => $stream]]); } /** * Registers the stream wrapper if needed @@ -74,9 +85,18 @@ public function stream_seek($offset, $whence) $this->stream->seek($offset, $whence); return \true; } + public function stream_cast($cast_as) + { + $stream = clone $this->stream; + return $stream->detach(); + } public function stream_stat() { - static $modeMap = ['r' => 33060, 'r+' => 33206, 'w' => 33188]; + static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188]; return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; } + public function url_stat($path, $flags) + { + return ['dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; + } } diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UploadedFile.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UploadedFile.php index d1b57da2..9fcec5e0 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UploadedFile.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UploadedFile.php @@ -1,12 +1,12 @@ file = $streamOrFile; } elseif (\is_resource($streamOrFile)) { - $this->stream = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Stream($streamOrFile); - } elseif ($streamOrFile instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface) { + $this->stream = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Stream($streamOrFile); + } elseif ($streamOrFile instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface) { $this->stream = $streamOrFile; } else { throw new \InvalidArgumentException('Invalid stream or file provided for UploadedFile'); @@ -84,7 +84,7 @@ private function setError($error) if (\false === \is_int($error)) { throw new \InvalidArgumentException('Upload file error status must be an integer'); } - if (\false === \in_array($error, \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UploadedFile::$errors)) { + if (\false === \in_array($error, \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UploadedFile::$errors)) { throw new \InvalidArgumentException('Invalid error status for UploadedFile'); } $this->error = $error; @@ -173,10 +173,10 @@ private function validateActive() public function getStream() { $this->validateActive(); - if ($this->stream instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface) { + if ($this->stream instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface) { return $this->stream; } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\LazyOpenStream($this->file, 'r+'); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\LazyOpenStream($this->file, 'r+'); } /** * {@inheritdoc} @@ -198,7 +198,7 @@ public function moveTo($targetPath) if ($this->file) { $this->moved = \php_sapi_name() == 'cli' ? \rename($this->file, $targetPath) : \move_uploaded_file($this->file, $targetPath); } else { - copy_to_stream($this->getStream(), new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\LazyOpenStream($targetPath, 'w')); + copy_to_stream($this->getStream(), new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\LazyOpenStream($targetPath, 'w')); $this->moved = \true; } if (\false === $this->moved) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Uri.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Uri.php index dc0cf52d..1e8d5472 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Uri.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/Uri.php @@ -1,8 +1,8 @@ getPort() === null || isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]; } @@ -132,7 +132,7 @@ public static function isDefaultPort(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\U * @see Uri::isRelativePathReference * @link https://tools.ietf.org/html/rfc3986#section-4 */ - public static function isAbsolute(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri) + public static function isAbsolute(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() !== ''; } @@ -146,7 +146,7 @@ public static function isAbsolute(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriI * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ - public static function isNetworkPathReference(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri) + public static function isNetworkPathReference(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() === '' && $uri->getAuthority() !== ''; } @@ -160,7 +160,7 @@ public static function isNetworkPathReference(\_PhpScoper5bbb1f4b001f3\Psr\Http\ * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ - public static function isAbsolutePathReference(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri) + public static function isAbsolutePathReference(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() === '' && $uri->getAuthority() === '' && isset($uri->getPath()[0]) && $uri->getPath()[0] === '/'; } @@ -174,7 +174,7 @@ public static function isAbsolutePathReference(\_PhpScoper5bbb1f4b001f3\Psr\Http * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ - public static function isRelativePathReference(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri) + public static function isRelativePathReference(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() === '' && $uri->getAuthority() === '' && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); } @@ -191,10 +191,10 @@ public static function isRelativePathReference(\_PhpScoper5bbb1f4b001f3\Psr\Http * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.4 */ - public static function isSameDocumentReference(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $base = null) + public static function isSameDocumentReference(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $base = null) { if ($base !== null) { - $uri = \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UriResolver::resolve($base, $uri); + $uri = \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UriResolver::resolve($base, $uri); return $uri->getScheme() === $base->getScheme() && $uri->getAuthority() === $base->getAuthority() && $uri->getPath() === $base->getPath() && $uri->getQuery() === $base->getQuery(); } return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === ''; @@ -211,7 +211,7 @@ public static function isSameDocumentReference(\_PhpScoper5bbb1f4b001f3\Psr\Http */ public static function removeDotSegments($path) { - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UriResolver::removeDotSegments($path); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UriResolver::removeDotSegments($path); } /** * Converts the relative URI into a new URI that is resolved against the base URI. @@ -224,12 +224,12 @@ public static function removeDotSegments($path) * @deprecated since version 1.4. Use UriResolver::resolve instead. * @see UriResolver::resolve */ - public static function resolve(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $base, $rel) + public static function resolve(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $base, $rel) { - if (!$rel instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface) { + if (!$rel instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface) { $rel = new self($rel); } - return \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UriResolver::resolve($base, $rel); + return \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UriResolver::resolve($base, $rel); } /** * Creates a new URI with a specific query string value removed. @@ -242,16 +242,9 @@ public static function resolve(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInte * * @return UriInterface */ - public static function withoutQueryValue(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri, $key) + public static function withoutQueryValue(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri, $key) { - $current = $uri->getQuery(); - if ($current === '') { - return $uri; - } - $decodedKey = \rawurldecode($key); - $result = \array_filter(\explode('&', $current), function ($part) use($decodedKey) { - return \rawurldecode(\explode('=', $part)[0]) !== $decodedKey; - }); + $result = self::getFilteredQueryString($uri, [$key]); return $uri->withQuery(\implode('&', $result)); } /** @@ -269,25 +262,27 @@ public static function withoutQueryValue(\_PhpScoper5bbb1f4b001f3\Psr\Http\Messa * * @return UriInterface */ - public static function withQueryValue(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri, $key, $value) + public static function withQueryValue(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri, $key, $value) { - $current = $uri->getQuery(); - if ($current === '') { - $result = []; - } else { - $decodedKey = \rawurldecode($key); - $result = \array_filter(\explode('&', $current), function ($part) use($decodedKey) { - return \rawurldecode(\explode('=', $part)[0]) !== $decodedKey; - }); - } - // Query string separators ("=", "&") within the key or value need to be encoded - // (while preventing double-encoding) before setting the query string. All other - // chars that need percent-encoding will be encoded by withQuery(). - $key = \strtr($key, self::$replaceQuery); - if ($value !== null) { - $result[] = $key . '=' . \strtr($value, self::$replaceQuery); - } else { - $result[] = $key; + $result = self::getFilteredQueryString($uri, [$key]); + $result[] = self::generateQueryString($key, $value); + return $uri->withQuery(\implode('&', $result)); + } + /** + * Creates a new URI with multiple specific query string values. + * + * It has the same behavior as withQueryValue() but for an associative array of key => value. + * + * @param UriInterface $uri URI to use as a base. + * @param array $keyValueArray Associative array of key and values + * + * @return UriInterface + */ + public static function withQueryValues(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri, array $keyValueArray) + { + $result = self::getFilteredQueryString($uri, \array_keys($keyValueArray)); + foreach ($keyValueArray as $key => $value) { + $result[] = self::generateQueryString($key, $value); } return $uri->withQuery(\implode('&', $result)); } @@ -492,6 +487,40 @@ private function filterPort($port) } return $port; } + /** + * @param UriInterface $uri + * @param array $keys + * + * @return array + */ + private static function getFilteredQueryString(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri, array $keys) + { + $current = $uri->getQuery(); + if ($current === '') { + return []; + } + $decodedKeys = \array_map('rawurldecode', $keys); + return \array_filter(\explode('&', $current), function ($part) use($decodedKeys) { + return !\in_array(\rawurldecode(\explode('=', $part)[0]), $decodedKeys, \true); + }); + } + /** + * @param string $key + * @param string|null $value + * + * @return string + */ + private static function generateQueryString($key, $value) + { + // Query string separators ("=", "&") within the key or value need to be encoded + // (while preventing double-encoding) before setting the query string. All other + // chars that need percent-encoding will be encoded by withQuery(). + $queryString = \strtr($key, self::$replaceQuery); + if ($value !== null) { + $queryString .= '=' . \strtr($value, self::$replaceQuery); + } + return $queryString; + } private function removeDefaultPort() { if ($this->port !== null && self::isDefaultPort($this)) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriNormalizer.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriNormalizer.php index bee41ff6..16c9e901 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriNormalizer.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriNormalizer.php @@ -1,8 +1,8 @@ getScheme() === 'file' && $uri->getHost() === 'localhost') { $uri = $uri->withHost(''); } - if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri::isDefaultPort($uri)) { + if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri::isDefaultPort($uri)) { $uri = $uri->withPort(null); } - if ($flags & self::REMOVE_DOT_SEGMENTS && !\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri::isRelativePathReference($uri)) { - $uri = $uri->withPath(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\UriResolver::removeDotSegments($uri->getPath())); + if ($flags & self::REMOVE_DOT_SEGMENTS && !\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri::isRelativePathReference($uri)) { + $uri = $uri->withPath(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\UriResolver::removeDotSegments($uri->getPath())); } if ($flags & self::REMOVE_DUPLICATE_SLASHES) { $uri = $uri->withPath(\preg_replace('#//++#', '/', $uri->getPath())); @@ -152,11 +152,11 @@ public static function normalize(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriIn * @return bool * @link https://tools.ietf.org/html/rfc3986#section-6.1 */ - public static function isEquivalent(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri1, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS) + public static function isEquivalent(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri1, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS) { return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations); } - private static function capitalizePercentEncoding(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri) + private static function capitalizePercentEncoding(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri) { $regex = '/(?:%[A-Fa-f0-9]{2})++/'; $callback = function (array $match) { @@ -164,7 +164,7 @@ private static function capitalizePercentEncoding(\_PhpScoper5bbb1f4b001f3\Psr\H }; return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery())); } - private static function decodeUnreservedCharacters(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $uri) + private static function decodeUnreservedCharacters(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $uri) { $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i'; $callback = function (array $match) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriResolver.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriResolver.php index d53941935..46266747 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriResolver.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/UriResolver.php @@ -1,8 +1,8 @@ getQuery(); } } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri(\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri::composeComponents($base->getScheme(), $targetAuthority, $targetPath, $targetQuery, $rel->getFragment())); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri::composeComponents($base->getScheme(), $targetAuthority, $targetPath, $targetQuery, $rel->getFragment())); } /** * Returns the target URI as a relative reference from the base URI. @@ -119,12 +119,12 @@ public static function resolve(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInte * * @return UriInterface The relative URI reference */ - public static function relativize(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $base, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $target) + public static function relativize(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $base, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $target) { if ($target->getScheme() !== '' && ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')) { return $target; } - if (\_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri::isRelativePathReference($target)) { + if (\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri::isRelativePathReference($target)) { // As the target is already highly relative we return it as-is. It would be possible to resolve // the target with `$target = self::resolve($base, $target);` and then try make it more relative // by removing a duplicate query. But let's not do that automatically. @@ -153,7 +153,7 @@ public static function relativize(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriI } return $emptyPathUri; } - private static function getRelativePath(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $base, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface $target) + private static function getRelativePath(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $base, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface $target) { $sourceSegments = \explode('/', $base->getPath()); $targetSegments = \explode('/', $target->getPath()); diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions.php index 0dc2ca9a..20b34e81 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions.php @@ -1,13 +1,13 @@ getMethod() . ' ' . $message->getRequestTarget()) . ' HTTP/' . $message->getProtocolVersion(); if (!$message->hasHeader('host')) { $msg .= "\r\nHost: " . $message->getUri()->getHost(); } - } elseif ($message instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ResponseInterface) { + } elseif ($message instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ResponseInterface) { $msg = 'HTTP/' . $message->getProtocolVersion() . ' ' . $message->getStatusCode() . ' ' . $message->getReasonPhrase(); } else { throw new \InvalidArgumentException('Unknown message type'); @@ -46,10 +46,10 @@ function str(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\MessageInterface $message */ function uri_for($uri) { - if ($uri instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\UriInterface) { + if ($uri instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\UriInterface) { return $uri; } elseif (\is_string($uri)) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Uri($uri); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Uri($uri); } throw new \InvalidArgumentException('URI must be a string or UriInterface'); } @@ -60,10 +60,10 @@ function uri_for($uri) * - metadata: Array of custom metadata. * - size: Size of the stream. * - * @param resource|string|null|int|float|bool|StreamInterface|callable $resource Entity body data - * @param array $options Additional options + * @param resource|string|null|int|float|bool|StreamInterface|callable|\Iterator $resource Entity body data + * @param array $options Additional options * - * @return Stream + * @return StreamInterface * @throws \InvalidArgumentException if the $resource arg is not valid. */ function stream_for($resource = '', array $options = []) @@ -74,16 +74,16 @@ function stream_for($resource = '', array $options = []) \fwrite($stream, $resource); \fseek($stream, 0); } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Stream($stream, $options); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Stream($stream, $options); } switch (\gettype($resource)) { case 'resource': - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Stream($resource, $options); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Stream($resource, $options); case 'object': - if ($resource instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface) { + if ($resource instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface) { return $resource; } elseif ($resource instanceof \Iterator) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\PumpStream(function () use($resource) { + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\PumpStream(function () use($resource) { if (!$resource->valid()) { return \false; } @@ -96,10 +96,10 @@ function stream_for($resource = '', array $options = []) } break; case 'NULL': - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+'), $options); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+'), $options); } if (\is_callable($resource)) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\PumpStream($resource, $options); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\PumpStream($resource, $options); } throw new \InvalidArgumentException('Invalid resource type: ' . \gettype($resource)); } @@ -179,7 +179,7 @@ function normalize_header($header) * * @return RequestInterface */ -function modify_request(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterface $request, array $changes) +function modify_request(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\RequestInterface $request, array $changes) { if (!$changes) { return $request; @@ -211,10 +211,10 @@ function modify_request(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterfa if (isset($changes['query'])) { $uri = $uri->withQuery($changes['query']); } - if ($request instanceof \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\ServerRequestInterface) { - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\ServerRequest(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion(), $request->getServerParams()); + if ($request instanceof \_PhpScoper5ce26f1fe2920\Psr\Http\Message\ServerRequestInterface) { + return (new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\ServerRequest(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion(), $request->getServerParams()))->withParsedBody($request->getParsedBody())->withQueryParams($request->getQueryParams())->withCookieParams($request->getCookieParams())->withUploadedFiles($request->getUploadedFiles()); } - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Request(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion()); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Request(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion()); } /** * Attempts to rewind a message body and throws an exception on failure. @@ -226,7 +226,7 @@ function modify_request(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\RequestInterfa * * @throws \RuntimeException */ -function rewind_body(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\MessageInterface $message) +function rewind_body(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\MessageInterface $message) { $body = $message->getBody(); if ($body->tell()) { @@ -269,7 +269,7 @@ function try_fopen($filename, $mode) * @return string * @throws \RuntimeException on error. */ -function copy_to_string(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, $maxLen = -1) +function copy_to_string(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream, $maxLen = -1) { $buffer = ''; if ($maxLen === -1) { @@ -306,7 +306,7 @@ function copy_to_string(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterfac * * @throws \RuntimeException on error. */ -function copy_to_stream(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $source, \_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $dest, $maxLen = -1) +function copy_to_stream(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $source, \_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $dest, $maxLen = -1) { $bufferSize = 8192; if ($maxLen === -1) { @@ -338,7 +338,7 @@ function copy_to_stream(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterfac * @return string Returns the hash of the stream * @throws \RuntimeException on error. */ -function hash(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, $algo, $rawOutput = \false) +function hash(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream, $algo, $rawOutput = \false) { $pos = $stream->tell(); if ($pos > 0) { @@ -358,9 +358,9 @@ function hash(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, * @param StreamInterface $stream Stream to read from * @param int $maxLength Maximum buffer length * - * @return string|bool + * @return string */ -function readline(\_PhpScoper5bbb1f4b001f3\Psr\Http\Message\StreamInterface $stream, $maxLength = null) +function readline(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\StreamInterface $stream, $maxLength = null) { $buffer = ''; $size = 0; @@ -393,7 +393,7 @@ function parse_request($message) } $parts = \explode(' ', $data['start-line'], 3); $version = isset($parts[2]) ? \explode('/', $parts[2])[1] : '1.1'; - $request = new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Request($parts[0], $matches[1] === '/' ? _parse_request_uri($parts[1], $data['headers']) : $parts[1], $data['headers'], $data['body'], $version); + $request = new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Request($parts[0], $matches[1] === '/' ? _parse_request_uri($parts[1], $data['headers']) : $parts[1], $data['headers'], $data['body'], $version); return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); } /** @@ -410,10 +410,10 @@ function parse_response($message) // between status-code and reason-phrase is required. But browsers accept // responses without space and reason as well. if (!\preg_match('/^HTTP\\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { - throw new \InvalidArgumentException('Invalid response string'); + throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']); } $parts = \explode(' ', $data['start-line'], 3); - return new \_PhpScoper5bbb1f4b001f3\GuzzleHttp\Psr7\Response($parts[1], $data['headers'], $data['body'], \explode('/', $parts[0])[1], isset($parts[2]) ? $parts[2] : null); + return new \_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Response($parts[1], $data['headers'], $data['body'], \explode('/', $parts[0])[1], isset($parts[2]) ? $parts[2] : null); } /** * Parse a query string into an associative array. @@ -423,8 +423,8 @@ function parse_response($message) * PHP style arrays into an associative array (e.g., foo[a]=1&foo[b]=2 will * be parsed into ['foo[a]' => '1', 'foo[b]' => '2']). * - * @param string $str Query string to parse - * @param bool|string $urlEncoding How the query string is encoded + * @param string $str Query string to parse + * @param int|bool $urlEncoding How the query string is encoded * * @return array */ @@ -438,9 +438,9 @@ function parse_query($str, $urlEncoding = \true) $decoder = function ($value) { return \rawurldecode(\str_replace('+', ' ', $value)); }; - } elseif ($urlEncoding == \PHP_QUERY_RFC3986) { + } elseif ($urlEncoding === \PHP_QUERY_RFC3986) { $decoder = 'rawurldecode'; - } elseif ($urlEncoding == \PHP_QUERY_RFC1738) { + } elseif ($urlEncoding === \PHP_QUERY_RFC1738) { $decoder = 'urldecode'; } else { $decoder = function ($str) { @@ -533,7 +533,7 @@ function mimetype_from_filename($filename) */ function mimetype_from_extension($extension) { - static $mimetypes = ['7z' => 'application/x-7z-compressed', 'aac' => 'audio/x-aac', 'ai' => 'application/postscript', 'aif' => 'audio/x-aiff', 'asc' => 'text/plain', 'asf' => 'video/x-ms-asf', 'atom' => 'application/atom+xml', 'avi' => 'video/x-msvideo', 'bmp' => 'image/bmp', 'bz2' => 'application/x-bzip2', 'cer' => 'application/pkix-cert', 'crl' => 'application/pkix-crl', 'crt' => 'application/x-x509-ca-cert', 'css' => 'text/css', 'csv' => 'text/csv', 'cu' => 'application/cu-seeme', 'deb' => 'application/x-debian-package', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dvi' => 'application/x-dvi', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'epub' => 'application/epub+zip', 'etx' => 'text/x-setext', 'flac' => 'audio/flac', 'flv' => 'video/x-flv', 'gif' => 'image/gif', 'gz' => 'application/gzip', 'htm' => 'text/html', 'html' => 'text/html', 'ico' => 'image/x-icon', 'ics' => 'text/calendar', 'ini' => 'text/plain', 'iso' => 'application/x-iso9660-image', 'jar' => 'application/java-archive', 'jpe' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'js' => 'text/javascript', 'json' => 'application/json', 'latex' => 'application/x-latex', 'log' => 'text/plain', 'm4a' => 'audio/mp4', 'm4v' => 'video/mp4', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mov' => 'video/quicktime', 'mp3' => 'audio/mpeg', 'mp4' => 'video/mp4', 'mp4a' => 'audio/mp4', 'mp4v' => 'video/mp4', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpg4' => 'video/mp4', 'oga' => 'audio/ogg', 'ogg' => 'audio/ogg', 'ogv' => 'video/ogg', 'ogx' => 'application/ogg', 'pbm' => 'image/x-portable-bitmap', 'pdf' => 'application/pdf', 'pgm' => 'image/x-portable-graymap', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'ppm' => 'image/x-portable-pixmap', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ps' => 'application/postscript', 'qt' => 'video/quicktime', 'rar' => 'application/x-rar-compressed', 'ras' => 'image/x-cmu-raster', 'rss' => 'application/rss+xml', 'rtf' => 'application/rtf', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'svg' => 'image/svg+xml', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'torrent' => 'application/x-bittorrent', 'ttf' => 'application/x-font-ttf', 'txt' => 'text/plain', 'wav' => 'audio/x-wav', 'webm' => 'video/webm', 'wma' => 'audio/x-ms-wma', 'wmv' => 'video/x-ms-wmv', 'woff' => 'application/x-font-woff', 'wsdl' => 'application/wsdl+xml', 'xbm' => 'image/x-xbitmap', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xml' => 'application/xml', 'xpm' => 'image/x-xpixmap', 'xwd' => 'image/x-xwindowdump', 'yaml' => 'text/yaml', 'yml' => 'text/yaml', 'zip' => 'application/zip']; + static $mimetypes = ['3gp' => 'video/3gpp', '7z' => 'application/x-7z-compressed', 'aac' => 'audio/x-aac', 'ai' => 'application/postscript', 'aif' => 'audio/x-aiff', 'asc' => 'text/plain', 'asf' => 'video/x-ms-asf', 'atom' => 'application/atom+xml', 'avi' => 'video/x-msvideo', 'bmp' => 'image/bmp', 'bz2' => 'application/x-bzip2', 'cer' => 'application/pkix-cert', 'crl' => 'application/pkix-crl', 'crt' => 'application/x-x509-ca-cert', 'css' => 'text/css', 'csv' => 'text/csv', 'cu' => 'application/cu-seeme', 'deb' => 'application/x-debian-package', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dvi' => 'application/x-dvi', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'epub' => 'application/epub+zip', 'etx' => 'text/x-setext', 'flac' => 'audio/flac', 'flv' => 'video/x-flv', 'gif' => 'image/gif', 'gz' => 'application/gzip', 'htm' => 'text/html', 'html' => 'text/html', 'ico' => 'image/x-icon', 'ics' => 'text/calendar', 'ini' => 'text/plain', 'iso' => 'application/x-iso9660-image', 'jar' => 'application/java-archive', 'jpe' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'js' => 'text/javascript', 'json' => 'application/json', 'latex' => 'application/x-latex', 'log' => 'text/plain', 'm4a' => 'audio/mp4', 'm4v' => 'video/mp4', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mov' => 'video/quicktime', 'mkv' => 'video/x-matroska', 'mp3' => 'audio/mpeg', 'mp4' => 'video/mp4', 'mp4a' => 'audio/mp4', 'mp4v' => 'video/mp4', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpg4' => 'video/mp4', 'oga' => 'audio/ogg', 'ogg' => 'audio/ogg', 'ogv' => 'video/ogg', 'ogx' => 'application/ogg', 'pbm' => 'image/x-portable-bitmap', 'pdf' => 'application/pdf', 'pgm' => 'image/x-portable-graymap', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'ppm' => 'image/x-portable-pixmap', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ps' => 'application/postscript', 'qt' => 'video/quicktime', 'rar' => 'application/x-rar-compressed', 'ras' => 'image/x-cmu-raster', 'rss' => 'application/rss+xml', 'rtf' => 'application/rtf', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'svg' => 'image/svg+xml', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'torrent' => 'application/x-bittorrent', 'ttf' => 'application/x-font-ttf', 'txt' => 'text/plain', 'wav' => 'audio/x-wav', 'webm' => 'video/webm', 'wma' => 'audio/x-ms-wma', 'wmv' => 'video/x-ms-wmv', 'woff' => 'application/x-font-woff', 'wsdl' => 'application/wsdl+xml', 'xbm' => 'image/x-xbitmap', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xml' => 'application/xml', 'xpm' => 'image/x-xpixmap', 'xwd' => 'image/x-xwindowdump', 'yaml' => 'text/yaml', 'yml' => 'text/yaml', 'zip' => 'application/zip']; $extension = \strtolower($extension); return isset($mimetypes[$extension]) ? $mimetypes[$extension] : null; } @@ -554,27 +554,38 @@ function _parse_message($message) if (!$message) { throw new \InvalidArgumentException('Invalid message'); } - // Iterate over each line in the message, accounting for line endings - $lines = \preg_split('/(\\r?\\n)/', $message, -1, \PREG_SPLIT_DELIM_CAPTURE); - $result = ['start-line' => \array_shift($lines), 'headers' => [], 'body' => '']; - \array_shift($lines); - for ($i = 0, $totalLines = \count($lines); $i < $totalLines; $i += 2) { - $line = $lines[$i]; - // If two line breaks were encountered, then this is the end of body - if (empty($line)) { - if ($i < $totalLines - 1) { - $result['body'] = \implode('', \array_slice($lines, $i + 2)); - } - break; - } - if (\strpos($line, ':')) { - $parts = \explode(':', $line, 2); - $key = \trim($parts[0]); - $value = isset($parts[1]) ? \trim($parts[1]) : ''; - $result['headers'][$key][] = $value; + $message = \ltrim($message, "\r\n"); + $messageParts = \preg_split("/\r?\n\r?\n/", $message, 2); + if ($messageParts === \false || \count($messageParts) !== 2) { + throw new \InvalidArgumentException('Invalid message: Missing header delimiter'); + } + list($rawHeaders, $body) = $messageParts; + $rawHeaders .= "\r\n"; + // Put back the delimiter we split previously + $headerParts = \preg_split("/\r?\n/", $rawHeaders, 2); + if ($headerParts === \false || \count($headerParts) !== 2) { + throw new \InvalidArgumentException('Invalid message: Missing status line'); + } + list($startLine, $rawHeaders) = $headerParts; + if (\preg_match("/(?:^HTTP\\/|^[A-Z]+ \\S+ HTTP\\/)(\\d+(?:\\.\\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { + // Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0 + $rawHeaders = \preg_replace(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); + } + /** @var array[] $headerLines */ + $count = \preg_match_all(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, \PREG_SET_ORDER); + // If these aren't the same, then one line didn't match and there's an invalid header. + if ($count !== \substr_count($rawHeaders, "\n")) { + // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4 + if (\preg_match(\_PhpScoper5ce26f1fe2920\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { + throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); } + throw new \InvalidArgumentException('Invalid header syntax'); } - return $result; + $headers = []; + foreach ($headerLines as $headerLine) { + $headers[$headerLine[1]][] = $headerLine[2]; + } + return ['start-line' => $startLine, 'headers' => $headers, 'body' => $body]; } /** * Constructs a URI for an HTTP request message. @@ -598,6 +609,38 @@ function _parse_request_uri($path, array $headers) $scheme = \substr($host, -4) === ':443' ? 'https' : 'http'; return $scheme . '://' . $host . '/' . \ltrim($path, '/'); } +/** + * Get a short summary of the message body + * + * Will return `null` if the response is not printable. + * + * @param MessageInterface $message The message to get the body summary + * @param int $truncateAt The maximum allowed size of the summary + * + * @return null|string + */ +function get_message_body_summary(\_PhpScoper5ce26f1fe2920\Psr\Http\Message\MessageInterface $message, $truncateAt = 120) +{ + $body = $message->getBody(); + if (!$body->isSeekable() || !$body->isReadable()) { + return null; + } + $size = $body->getSize(); + if ($size === 0) { + return null; + } + $summary = $body->read($truncateAt); + $body->rewind(); + if ($size > $truncateAt) { + $summary .= ' (truncated...)'; + } + // Matches any printable character, including unicode characters: + // letters, marks, numbers, punctuation, spacing, and separators. + if (\preg_match('/[^\\pL\\pM\\pN\\pP\\pS\\pZ\\n\\r\\t]/', $summary)) { + return null; + } + return $summary; +} /** @internal */ function _caseless_remove($keys, array $data) { diff --git a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions_include.php b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions_include.php index 212874d4..cfab25b8 100644 --- a/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions_include.php +++ b/catalog/controller/payment/mollie-api-client/vendor/guzzlehttp/psr7/src/functions_include.php @@ -1,8 +1,8 @@ = 5.3. + +[![Build Status](https://travis-ci.org/ralouphie/getallheaders.svg?branch=master)](https://travis-ci.org/ralouphie/getallheaders) +[![Coverage Status](https://coveralls.io/repos/ralouphie/getallheaders/badge.png?branch=master)](https://coveralls.io/r/ralouphie/getallheaders?branch=master) +[![Latest Stable Version](https://poser.pugx.org/ralouphie/getallheaders/v/stable.png)](https://packagist.org/packages/ralouphie/getallheaders) +[![Latest Unstable Version](https://poser.pugx.org/ralouphie/getallheaders/v/unstable.png)](https://packagist.org/packages/ralouphie/getallheaders) +[![License](https://poser.pugx.org/ralouphie/getallheaders/license.png)](https://packagist.org/packages/ralouphie/getallheaders) + + +This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php). + +## Install + +``` +composer require ralouphie/getallheaders +``` diff --git a/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/composer.json b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/composer.json new file mode 100644 index 00000000..7892a0fe --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/composer.json @@ -0,0 +1,23 @@ +{ + "name": "ralouphie\/getallheaders", + "description": "A polyfill for getallheaders.", + "license": "MIT", + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit\/phpunit": "~3.7.0", + "satooshi\/php-coveralls": ">=1.0" + }, + "autoload": { + "files": [ + "src\/getallheaders.php" + ] + } +} \ No newline at end of file diff --git a/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/phpunit.xml b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/phpunit.xml new file mode 100644 index 00000000..7255b23d --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/phpunit.xml @@ -0,0 +1,22 @@ + + + + ./tests + + + + + src + + + + + + + + \ No newline at end of file diff --git a/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/src/getallheaders.php b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/src/getallheaders.php new file mode 100644 index 00000000..b4aced5f --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/src/getallheaders.php @@ -0,0 +1,38 @@ + 'Content-Type', 'CONTENT_LENGTH' => 'Content-Length', 'CONTENT_MD5' => 'Content-Md5'); + foreach ($_SERVER as $key => $value) { + if (\substr($key, 0, 5) === 'HTTP_') { + $key = \substr($key, 5); + if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { + $key = \str_replace(' ', '-', \ucwords(\strtolower(\str_replace('_', ' ', $key)))); + $headers[$key] = $value; + } + } elseif (isset($copy_server[$key])) { + $headers[$copy_server[$key]] = $value; + } + } + if (!isset($headers['Authorization'])) { + if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { + $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; + } elseif (isset($_SERVER['PHP_AUTH_USER'])) { + $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; + $headers['Authorization'] = 'Basic ' . \base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass); + } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) { + $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST']; + } + } + return $headers; + } +} diff --git a/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/tests/GetAllHeadersTest.php b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/tests/GetAllHeadersTest.php new file mode 100644 index 00000000..13616240 --- /dev/null +++ b/catalog/controller/payment/mollie-api-client/vendor/ralouphie/getallheaders/tests/GetAllHeadersTest.php @@ -0,0 +1,22 @@ + $val) { + $_SERVER[$key] = $val; + } + $result = \_PhpScoper5ce26f1fe2920\getallheaders(); + $this->assertEquals($expected, $result, "Error testing {$test_type} works."); + } + public function testWorksData() + { + return array(array('normal case', array('Key-One' => 'foo', 'Key-Two' => 'bar', 'Another-Key-For-Testing' => 'baz'), array('HTTP_KEY_ONE' => 'foo', 'HTTP_KEY_TWO' => 'bar', 'HTTP_ANOTHER_KEY_FOR_TESTING' => 'baz')), array('Content-Type', array('Content-Type' => 'two'), array('HTTP_CONTENT_TYPE' => 'one', 'CONTENT_TYPE' => 'two')), array('Content-Length', array('Content-Length' => '222'), array('CONTENT_LENGTH' => '222', 'HTTP_CONTENT_LENGTH' => '111')), array('Content-Length (HTTP_CONTENT_LENGTH only)', array('Content-Length' => '111'), array('HTTP_CONTENT_LENGTH' => '111')), array('Content-MD5', array('Content-Md5' => 'aef123'), array('CONTENT_MD5' => 'aef123', 'HTTP_CONTENT_MD5' => 'fea321')), array('Content-MD5 (HTTP_CONTENT_MD5 only)', array('Content-Md5' => 'f123'), array('HTTP_CONTENT_MD5' => 'f123')), array('Authorization (normal)', array('Authorization' => 'testing'), array('HTTP_AUTHORIZATION' => 'testing')), array('Authorization (redirect)', array('Authorization' => 'testing redirect'), array('REDIRECT_HTTP_AUTHORIZATION' => 'testing redirect')), array('Authorization (PHP_AUTH_USER + PHP_AUTH_PW)', array('Authorization' => 'Basic ' . \base64_encode('foo:bar')), array('PHP_AUTH_USER' => 'foo', 'PHP_AUTH_PW' => 'bar')), array('Authorization (PHP_AUTH_DIGEST)', array('Authorization' => 'example-digest'), array('PHP_AUTH_DIGEST' => 'example-digest'))); + } +} diff --git a/catalog/controller/payment/mollie/base.php b/catalog/controller/payment/mollie/base.php index 09664c53..e1afaf7f 100644 --- a/catalog/controller/payment/mollie/base.php +++ b/catalog/controller/payment/mollie/base.php @@ -485,10 +485,16 @@ public function payment() if(!empty($otherOrderTotals)) { $otherTotals = array(); + if(MollieHelper::isOpenCart3x()) { + $typePrefix = 'total_'; + } else { + $typePrefix = ''; + } + foreach($otherOrderTotals as $orderTotals) { - if($this->config->get($orderTotals['code'] . '_tax_class_id')) { - $taxClass = $this->config->get($orderTotals['code'] . '_tax_class_id'); + if($this->config->get($typePrefix . $orderTotals['code'] . '_tax_class_id')) { + $taxClass = $this->config->get($typePrefix . $orderTotals['code'] . '_tax_class_id'); } else { $taxClass = 0; } @@ -527,13 +533,14 @@ public function payment() $orderLineTotal += $line['totalAmount']['value']; } - if(($orderTotal > $orderLineTotal) && (number_format(($orderTotal - $orderLineTotal), 2, '.', '') == 0.01)) { + if($orderTotal > $orderLineTotal) { + $amountDiff = number_format(($orderTotal - $orderLineTotal), 2, '.', ''); $lineForDiscount[] = array( 'type' => 'discount', 'name' => $this->formatText($this->language->get("roundoff_description")), 'quantity' => 1, - 'unitPrice' => ["currency" => $currency, "value" => "0.01"], - 'totalAmount' => ["currency" => $currency, "value" => "0.01"], + 'unitPrice' => ["currency" => $currency, "value" => (string)$amountDiff], + 'totalAmount' => ["currency" => $currency, "value" => (string)$amountDiff], 'vatRate' => "0", 'vatAmount' => ["currency" => $currency, "value" => "0.00"] ); @@ -541,13 +548,14 @@ public function payment() $lines = array_merge($lines, $lineForDiscount); } - if(($orderTotal < $orderLineTotal) && (number_format(($orderLineTotal - $orderTotal), 2, '.', '') == 0.01)) { + if($orderTotal < $orderLineTotal) { + $amountDiff = number_format(($orderLineTotal - $orderTotal), 2, '.', ''); $lineForSurcharge[] = array( 'type' => 'surcharge', 'name' => $this->formatText($this->language->get("roundoff_description")), 'quantity' => 1, - 'unitPrice' => ["currency" => $currency, "value" => "-0.01"], - 'totalAmount' => ["currency" => $currency, "value" => "-0.01"], + 'unitPrice' => ["currency" => $currency, "value" => (string)-$amountDiff], + 'totalAmount' => ["currency" => $currency, "value" => (string)-$amountDiff], 'vatRate' => "0", 'vatAmount' => ["currency" => $currency, "value" => "0.00"] ); @@ -585,17 +593,28 @@ public function payment() $data["shippingAddress"] = $data["billingAddress"]; } - $locales = array( 'en_US', + 'nl_NL', + 'nl_BE', + 'fr_FR', + 'fr_BE', + 'de_DE', 'de_AT', 'de_CH', - 'de_DE', 'es_ES', - 'fr_BE', - 'fr_FR', - 'nl_BE', - 'nl_NL' + 'ca_ES', + 'pt_PT', + 'it_IT', + 'nb_NO', + 'sv_SE', + 'fi_FI', + 'da_DK', + 'is_IS', + 'hu_HU', + 'pl_PL', + 'lv_LV', + 'lt_LT' ); if (strstr(isset($this->session->data['language']) ? $this->session->data['language'] : $this->config->get('config_language'), '-')) { @@ -606,7 +625,17 @@ public function payment() } if (!in_array($locale, $locales)) { - $locale = 'nl_NL'; + $locale = $this->config->get(MollieHelper::getModuleCode() . "_payment_screen_language"); + if (strstr($locale, '-')) { + list ($language, $country) = explode('-', $locale); + $locale = strtolower($language) . '_' . strtoupper($country); + } else { + $locale = strtolower($locale) . '_' . strtoupper($locale); + } + } + + if((strtolower($locale) == 'en_gb') || (strtolower($locale) == 'en_en')) { + $locale = 'en_US'; } $data["locale"]=$locale; @@ -616,7 +645,7 @@ public function payment() } catch (Mollie\Api\Exceptions\ApiException $e) { $this->showErrorPage($e->getMessage()); - $this->writeToMollieLog("Creating order failed; " . $e->getMessage()); + $this->writeToMollieLog("Creating order failed for order_id - " . $order['order_id'] . ' ; ' . $e->getMessage()); return; } @@ -626,9 +655,9 @@ public function payment() } if($model->setPayment($order['order_id'], $orderObject->id)) { - $this->writeToMollieLog("Order created : mollie_order_id - " . $orderObject->id); + $this->writeToMollieLog("Order created : order_id - " . $order['order_id'] . ', ' . "mollie_order_id - " . $orderObject->id); } else { - $this->writeToMollieLog("Order created but mollie_order_id - " . $orderObject->id . "not saved in the database. Should be updated when webhook called."); + $this->writeToMollieLog("Order created for order_id - " . $order['order_id'] . " but mollie_order_id - " . $orderObject->id . " not saved in the database. Should be updated when webhook called."); } // Redirect to payment gateway. @@ -688,13 +717,27 @@ private function webhookForPayment($payment_id) { //Get order_id of this transaction from db $order = $this->model_checkout_order->getOrder($mollieOrder->metadata->order_id); + if (empty($order)) { + header("HTTP/1.0 404 Not Found"); + echo "Could not find order."; + return; + } + //Set transaction ID $data = array(); + $paymentDetails = $model->getPayment($order['order_id']); + if($paymentDetails) { + $refund_id = $paymentDetails['refund_id']; + } else { + $refund_id = ''; + } + if($molliePayment) { $data = array( 'payment_id' => $payment_id, - 'status' => $molliePayment->status + 'status' => $molliePayment->status, + 'refund_id' => $refund_id ); } @@ -702,19 +745,34 @@ private function webhookForPayment($payment_id) { $model->updatePayment($mollieOrder->metadata->order_id, $mollieOrderId, $data); } - if (empty($order)) { - header("HTTP/1.0 404 Not Found"); - echo "Could not find order."; - return; - } - if($order['order_status_id'] != 0) { + //Check for refund + if($molliePayment->amountRefunded->value > 0) { + $data = array( + 'payment_id' => $payment_id, + 'status' => 'refunded', + 'refund_id' => $refund_id + ); + $this->writeToMollieLog("Order status has been updated to 'Refunded' for order " . $order['order_id'] . "."); + } else { + if (!empty($order['order_status_id']) && $order['order_status_id'] == $this->config->get($moduleCode . "_ideal_refund_status_id")) { + $data['refund_id'] = ''; + $this->addOrderHistory($order, $this->config->get($moduleCode . "_ideal_processing_status_id"), $this->language->get("refund_cancelled"), true); + $this->writeToMollieLog("Refund has been cancelled for order " . $order['order_id']); + $this->writeToMollieLog("Order status has been updated to 'Processing'."); + } + } + + if(!empty($data)) { + $model->updatePayment($mollieOrder->metadata->order_id, $mollieOrderId, $data); + } + return; } // Only process the status if the order is stateless or in 'pending' status. if (!empty($order['order_status_id']) && $order['order_status_id'] != $this->config->get($moduleCode . "_ideal_pending_status_id")) { - $this->writeToMollieLog("The order was already processed before (order status ID: " . intval($order['order_status_id']) . ")"); + $this->writeToMollieLog("The order " . $order['order_id'] . " was already processed before (order status ID: " . intval($order['order_status_id']) . ")"); return; } @@ -723,11 +781,11 @@ private function webhookForPayment($payment_id) { $new_status_id = intval($this->config->get($moduleCode . "_ideal_canceled_status_id")); if (!$new_status_id) { - $this->writeToMollieLog("The payment was cancelled. No 'cancelled' status ID is configured, so the order status could not be updated.", true); + $this->writeToMollieLog("The payment was cancelled. No 'cancelled' status ID is configured, so the order status for order " . $order['order_id'] . " could not be updated.", true); return; } $this->addOrderHistory($order, $new_status_id, $this->language->get("response_cancelled"), false); - $this->writeToMollieLog("The payment was cancelled and the order was moved to the 'cancelled' status (new status ID: {$new_status_id}).", true); + $this->writeToMollieLog("The payment was cancelled and the order " . $order['order_id'] . " was moved to the 'cancelled' status (new status ID: {$new_status_id}).", true); return; } @@ -736,11 +794,11 @@ private function webhookForPayment($payment_id) { $new_status_id = intval($this->config->get($moduleCode . "_ideal_expired_status_id")); if (!$new_status_id) { - $this->writeToMollieLog("The payment expired. No 'expired' status ID is configured, so the order status could not be updated.", true); + $this->writeToMollieLog("The payment expired. No 'expired' status ID is configured, so the order status for order " . $order['order_id'] . " could not be updated.", true); return; } $this->addOrderHistory($order, $new_status_id, $this->language->get("response_expired"), false); - $this->writeToMollieLog("The payment expired and the order was moved to the 'expired' status (new status ID: {$new_status_id}).", true); + $this->writeToMollieLog("The payment expired and the order " . $order['order_id'] . " was moved to the 'expired' status (new status ID: {$new_status_id}).", true); return; } @@ -748,11 +806,11 @@ private function webhookForPayment($payment_id) { $new_status_id = intval($this->config->get($moduleCode . "_ideal_failed_status_id")); if (!$new_status_id) { - $this->writeToMollieLog("The payment failed. No 'failed' status ID is configured, so the order status could not be updated.", true); + $this->writeToMollieLog("The payment failed. No 'failed' status ID is configured, so the order status for order " . $order['order_id'] . " could not be updated.", true); return; } $this->addOrderHistory($order, $new_status_id, $this->language->get("response_unknown"), false); - $this->writeToMollieLog("The payment failed for an unknown reason and the order was moved to the 'failed' status (new status ID: {$new_status_id}).", true); + $this->writeToMollieLog("The payment failed for an unknown reason and the order " . $order['order_id'] . " was moved to the 'failed' status (new status ID: {$new_status_id}).", true); return; } @@ -793,7 +851,7 @@ private function webhookForOrder($order_id) { // Only process the status if the order is stateless or in 'pending' status. if (!empty($order['order_status_id']) && $order['order_status_id'] != $this->config->get($moduleCode . "_ideal_pending_status_id")) { - $this->writeToMollieLog("The order was already processed before (order status ID: " . intval($order['order_status_id']) . ")"); + $this->writeToMollieLog("The order " . $order['order_id'] . " was already processed before (order status ID: " . intval($order['order_status_id']) . ")"); return; } @@ -802,11 +860,11 @@ private function webhookForOrder($order_id) { $new_status_id = intval($this->config->get($moduleCode . "_ideal_processing_status_id")); if (!$new_status_id) { - $this->writeToMollieLog("The payment has been received/authorised. No 'processing' status ID is configured, so the order status could not be updated.", true); + $this->writeToMollieLog("The payment has been received/authorised. No 'processing' status ID is configured, so the order status for order " . $order['order_id'] . " could not be updated.", true); return; } $this->addOrderHistory($order, $new_status_id, $this->language->get("response_success"), true); - $this->writeToMollieLog("The payment was received/authorised and the order was moved to the 'processing' status (new status ID: {$new_status_id}.", true); + $this->writeToMollieLog("The payment was received/authorised and the order " . $order['order_id'] . " was moved to the 'processing' status (new status ID: {$new_status_id}.", true); return; } @@ -815,11 +873,11 @@ private function webhookForOrder($order_id) { $new_status_id = intval($this->config->get($moduleCode . "_ideal_canceled_status_id")); if (!$new_status_id) { - $this->writeToMollieLog("The payment was cancelled. No 'cancelled' status ID is configured, so the order status could not be updated.", true); + $this->writeToMollieLog("The payment was cancelled. No 'cancelled' status ID is configured, so the order status for order " . $order['order_id'] . " could not be updated.", true); return; } $this->addOrderHistory($order, $new_status_id, $this->language->get("response_cancelled"), false); - $this->writeToMollieLog("The payment was cancelled and the order was moved to the 'cancelled' status (new status ID: {$new_status_id}).", true); + $this->writeToMollieLog("The payment was cancelled and the order " . $order['order_id'] . " was moved to the 'cancelled' status (new status ID: {$new_status_id}).", true); return; } @@ -828,11 +886,11 @@ private function webhookForOrder($order_id) { $new_status_id = intval($this->config->get($moduleCode . "_ideal_expired_status_id")); if (!$new_status_id) { - $this->writeToMollieLog("The payment expired. No 'expired' status ID is configured, so the order status could not be updated.", true); + $this->writeToMollieLog("The payment expired. No 'expired' status ID is configured, so the order status for order " . $order['order_id'] . " could not be updated.", true); return; } $this->addOrderHistory($order, $new_status_id, $this->language->get("response_expired"), false); - $this->writeToMollieLog("The payment expired and the order was moved to the 'expired' status (new status ID: {$new_status_id}).", true); + $this->writeToMollieLog("The payment expired and the order " . $order['order_id'] . " was moved to the 'expired' status (new status ID: {$new_status_id}).", true); return; } @@ -840,11 +898,11 @@ private function webhookForOrder($order_id) { $new_status_id = intval($this->config->get($moduleCode . "_ideal_failed_status_id")); if (!$new_status_id) { - $this->writeToMollieLog("The payment failed. No 'failed' status ID is configured, so the order status could not be updated.", true); + $this->writeToMollieLog("The payment failed. No 'failed' status ID is configured, so the order status for order " . $order['order_id'] . " could not be updated.", true); return; } $this->addOrderHistory($order, $new_status_id, $this->language->get("response_unknown"), false); - $this->writeToMollieLog("The payment failed for an unknown reason and the order was moved to the 'failed' status (new status ID: {$new_status_id}).", true); + $this->writeToMollieLog("The payment failed for an unknown reason and the order " . $order['order_id'] . " was moved to the 'failed' status (new status ID: {$new_status_id}).", true); return; } @@ -916,7 +974,7 @@ public function createShipment(&$route, &$data, $orderID = "", $orderStatusID = $mollie_order_id = $mollieModel->getOrderID($order_id); if (empty($mollie_order_id)) { - $this->writeToMollieLog("Could not find mollie reference order id."); + $this->writeToMollieLog("Could not find mollie reference order id for order " . $order['order_id'] . "."); return; } @@ -1009,6 +1067,18 @@ public function callback() } $orderDetails = $this->getAPIClient()->orders->get($mollie_order_id, ["embed" => "payments"]); + + // Update payment status + if(!empty($orderDetails->_embedded->payments)) { + $payment = $orderDetails->_embedded->payments[0]; + $paymentData = array( + 'payment_id' => $payment->id, + 'status' => $payment->status + ); + $model->updatePayment($orderDetails->metadata->order_id, $mollie_order_id, $paymentData); + + } + if (($orderDetails->isPaid() || $orderDetails->isAuthorized()) && $order['order_status_id'] != $paid_status_id) { $this->addOrderHistory($order, $paid_status_id, $this->language->get("response_success"), true); $order['order_status_id'] = $paid_status_id; @@ -1050,7 +1120,7 @@ public function callback() if ($failed_status_id && $order['order_status_id'] == $failed_status_id) { $this->writeToMollieLog("Error payment failed for order " . $order['order_id']); } else { - $this->writeToMollieLog("Error couldn't find order"); + $this->writeToMollieLog("Error couldn't find order " . $order['order_id']); } return $this->showReturnPage( diff --git a/catalog/controller/payment/mollie/helper.php b/catalog/controller/payment/mollie/helper.php index 57a6be86..5c466a77 100644 --- a/catalog/controller/payment/mollie/helper.php +++ b/catalog/controller/payment/mollie/helper.php @@ -5,7 +5,7 @@ class MollieHelper { - const PLUGIN_VERSION = "9.0.6"; + const PLUGIN_VERSION = "9.1.0"; // All available modules. These should correspond to the Mollie_API_Object_Method constants. const MODULE_NAME_BANKTRANSFER = "banktransfer"; @@ -25,6 +25,7 @@ class MollieHelper const MODULE_NAME_KLARNAPAYLATER = "klarnapaylater"; const MODULE_NAME_KLARNASLICEIT = "klarnasliceit"; const MODULE_NAME_PRZELEWY24 = "przelewy24"; + const MODULE_NAME_APPLEPAY = "applepay"; // List of all available module names. @@ -45,7 +46,8 @@ class MollieHelper self::MODULE_NAME_GIROPAY, self::MODULE_NAME_KLARNAPAYLATER, self::MODULE_NAME_KLARNASLICEIT, - self::MODULE_NAME_PRZELEWY24 + self::MODULE_NAME_PRZELEWY24, + self::MODULE_NAME_APPLEPAY ); static protected $api_client; @@ -116,6 +118,18 @@ public static function getAPIClientForKey($key = null) return $mollie; } + public static function getAPIClientForAccessToken($accessToken) { + require_once(realpath(DIR_SYSTEM . "/..") . "/catalog/controller/payment/mollie-api-client/vendor/autoload.php"); + $mollie = new MollieApiClient; + + $mollie->setAccessToken(!empty($accessToken) ? $accessToken : null); + + $mollie->addVersionString("OpenCart/" . VERSION); + $mollie->addVersionString("MollieOpenCart/" . self::PLUGIN_VERSION); + + return $mollie; + } + /** * @return string */ diff --git a/catalog/controller/payment/mollie_applepay.php b/catalog/controller/payment/mollie_applepay.php new file mode 100644 index 00000000..41a389d6 --- /dev/null +++ b/catalog/controller/payment/mollie_applepay.php @@ -0,0 +1,7 @@ +currency->convert($total, $this->config->get("config_currency"), 'EUR'); if($standardTotal <= 0.01) { @@ -107,9 +114,10 @@ public function getMethod($address, $total) $data = array( "amount" => ["value" => (string)number_format((float)$total, 2, '.', ''), "currency" => $currency,], "resource" => "orders", + "includeWallets" => "applepay", "billingCountry" => $country ); - $payment_methods = $this->getAPIClient()->methods->all($data); + $payment_methods = $this->getAPIClient()->methods->allActive($data); foreach ($payment_methods as $allowed_method) { @@ -194,11 +202,12 @@ public function updatePayment($order_id, $mollie_order_id, $data, $consumer = NU $this->db->query( sprintf( "UPDATE `%smollie_payments` - SET `transaction_id` = '%s', `bank_status` = '%s' + SET `transaction_id` = '%s', `bank_status` = '%s', `refund_id` = '%s' WHERE `order_id` = '%s' AND `mollie_order_id` = '%s';", DB_PREFIX, $this->db->escape($data['payment_id']), $this->db->escape($data['status']), + $this->db->escape($data['refund_id']), $this->db->escape($order_id), $this->db->escape($mollie_order_id) ) @@ -256,4 +265,14 @@ public function getOtherOrderTotals($orderID) { return $query->rows; } + public function getPayment($order_id) + { + if (!empty($order_id)) { + $results = $this->db->query("SELECT * FROM `" . DB_PREFIX . "mollie_payments` WHERE `order_id` = '" . $order_id . "'"); + if($results->num_rows == 0) return FALSE; + return $results->row; + } + return FALSE; + } + } diff --git a/catalog/model/payment/mollie_applepay.php b/catalog/model/payment/mollie_applepay.php new file mode 100644 index 00000000..2ebb4e23 --- /dev/null +++ b/catalog/model/payment/mollie_applepay.php @@ -0,0 +1,7 @@ + diff --git a/catalog/view/theme/default/template/payment/mollie_checkout_form.twig b/catalog/view/theme/default/template/payment/mollie_checkout_form.twig index db34b65e..0569015e 100644 --- a/catalog/view/theme/default/template/payment/mollie_checkout_form.twig +++ b/catalog/view/theme/default/template/payment/mollie_checkout_form.twig @@ -46,9 +46,7 @@ } // No confirmation button found. Show our own confirmation button. - $("#button-confirm").show().click(function () { - $("#mollie_payment_form").submit(); - }); + $("#button-confirm").show(); }); })(window.jQuery || window.$); diff --git a/image/mollie_connect.png b/image/mollie_connect.png new file mode 100644 index 00000000..1f7414db Binary files /dev/null and b/image/mollie_connect.png differ diff --git a/readme.md b/readme.md index 841a2388..380fe3d2 100755 --- a/readme.md +++ b/readme.md @@ -44,6 +44,7 @@ them ready-made into your OpenCart webshop with this powerful plugin. - Klarna Pay Later - Klarna Slice It - Przelewy24 +- Apple Pay Please go to the signup page to create a new Mollie account and start receiving payments in a couple of minutes. Contact info@mollie.com if you have any questions or comments about @@ -62,7 +63,7 @@ this plugin. Copyright (c) 2018, Mollie B.V. # Support # -Module developed by Comercia: [www.comercia.nl](https://www.comercia.nl) — mollie@support.comercia.nl — +31 85-7733618
    +Module developed by Comercia: [www.qualityworks.eu](https://www.qualityworks.eu) — mollie.support@qualityworks.eu — +31 85-7430150
    Contact Mollie: [www.mollie.com/nl/about](https://www.mollie.com/nl/about) — info@mollie.com — +31 20-612 88 55 + [More info on iDEAL via Mollie](https://www.mollie.com/payments/ideal/) @@ -79,3 +80,5 @@ Contact Mollie: [www.mollie.com/nl/about](https://www.mollie.com/nl/about) — i + [More info on Giropay via Mollie](https://www.mollie.com/payments/giropay/) + [More info on Klarna Pay Later via Mollie](https://www.mollie.com/payments/klarna-pay-later/) + [More info on Klarna Slite It via Mollie](https://www.mollie.com/payments/klarna-slice-it/) ++ [More info on Przelewy24 It via Mollie](https://www.mollie.com/payments/p24/) ++ [More info on Apple Pay via Mollie](https://www.mollie.com/payments/apple-pay/) diff --git a/tests/bootstrap.php b/tests/bootstrap.php old mode 100755 new mode 100644 diff --git a/tests/phpunit.xml b/tests/phpunit.xml old mode 100755 new mode 100644 diff --git a/tests/unittests/translationTest.php b/tests/unittests/translationTest.php old mode 100755 new mode 100644 diff --git a/vqmod/xml/mollie.xml b/vqmod/xml/mollie.xml index 32608ada..c60ad985 100644 --- a/vqmod/xml/mollie.xml +++ b/vqmod/xml/mollie.xml @@ -1,8 +1,8 @@ - Mollie - 1.0.0 + Quality Works - Mollie + 1.2.1 2.3.0 - Comercia - Pradeep Mishra + Quality Works @@ -61,4 +61,516 @@ } ]]> + + + + + + model_sale_order->getMolliePayment($this->request->get['order_id'])['bank_status'];]]> + + + data['payment_method'] = $order_info['payment_method'];]]> + data['payment_status'] = $this->model_sale_order->getMolliePayment($this->request->get['order_id'])['bank_status'];]]> + + + + + + + db->query("SELECT * FROM `" . DB_PREFIX . "mollie_payments` WHERE order_id = '" . (int)$order_id . "'"); + + if ($query->num_rows) { + return $query->row; + } + + return null; + } +]]> + + + + + + ]]> +    + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + {{ payment_method }}]]> + {{ payment_method }}   + {% if(payment_status == 'paid') %} + {{ payment_status | upper }} + {% elseif(payment_status == 'failed') %} + {{ payment_status | upper }} + {% elseif(payment_status == 'expired') %} + {{ payment_status | upper }} + {% elseif(payment_status == 'open') %} + {{ payment_status | upper }} + {% elseif(payment_status == 'canceled') %} + {{ payment_status | upper }} + {% elseif(payment_status == 'pending') %} + {{ payment_status | upper }} + {% elseif(payment_status == 'authorized') %} + {{ payment_status | upper }} + n {% elseif(payment_status == 'refunded') %} + {{ payment_status | upper }} + {% endif %} + {% if((payment_status != 'expired') and (payment_status != 'refunded') and (payment_status != 'failed') and (payment_status != 'canceled')) %} + {{ button_refund }} + {% endif %} + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + ]]> + + + + + + ]]> + ]]> + + + + + + + + + + + + language->get('button_refund');]]> + + + data['button_add_history']]]> + data['button_refund'] = $this->language->get('button_refund');]]> + + + + data['isVersion15x'] = true; + $data['isVersion15x'] = true; + }]]> + + + + ') == true) { + $token = 'user_token=' . $this->session->data['user_token']; + } else { + $token = 'token=' . $this->session->data['token']; + } + + $data['refund'] = $this->url->link('sale/order/refund', $token . '&order_id=' . (int)$this->request->get['order_id'], true);]]> + + + + config); + } + + public function refund() { + $this->load->language('sale/order'); + + $this->document->setTitle($this->language->get('heading_title')); + + $this->load->model('sale/order'); + + $json = array(); + $json['error'] = false; + + $log = new Log('Mollie.log'); + + $moduleCode = MollieHelper::getModuleCode(); + + $order_id = $this->request->get['order_id']; + $order = $this->model_sale_order->getOrder($order_id); + + $mollieOrderDetails = $this->model_sale_order->getMollieOrderDetails($order_id); + if(!$mollieOrderDetails) { + $log->write("Mollie order(mollie_order_id) not found for order_id - $order_id"); + $json['error'] = $this->language->get('text_order_not_found'); + } + + if($mollieOrderDetails['refund_id']) { + $log->write("Refund has been processed already for order_id - $order_id"); + $json['error'] = $this->language->get('text_refunded_already'); + } + + if(!$json['error']) { + $mollieOrder = $this->getAPIClient()->orders->get($mollieOrderDetails['mollie_order_id']); + if($mollieOrder->isPaid() || $mollieOrder->isShipping() || $mollieOrder->isCompleted()) { + + $refundObject = $mollieOrder->refundAll([ + "metadata" => array("order_id" => $order_id) + ]); + + if($refundObject->id) { + $log->write("Refund has been processed for order_id - $order_id. Refund id is $refundObject->id."); + $json['success'] = $this->language->get('text_refund_success'); + $json['order_status_id'] = $this->config->get($moduleCode . "_ideal_refund_status_id"); + $json['comment'] = $this->language->get('text_refund_success'); + + $this->model_sale_order->updateMolliePayment($order_id, $refundObject->id, 'refunded'); + + } else { + $log->write("Refund process can not be processed for order_id - $order_id."); + $json['error'] = $this->language->get('text_no_refund'); + } + + } else { + $log->write("Refund can not be processed for order_id - $order_id. Order lines that are Paid, Shipping or Completed can be refunded."); + $json['error'] = $this->language->get('text_no_refund'); + } + } + + $this->response->addHeader('Content-Type: application/json'); + $this->response->setOutput(json_encode($json)); + + } + ]]> + + + + + + + db->query("SELECT * FROM `" . DB_PREFIX . "mollie_payments` WHERE order_id = '" . (int)$order_id . "'"); + + if($query->num_rows) { + return $query->row; + } + + return false; + } + + public function updateMolliePayment($order_id, $refund_id, $payment_status) { + $this->db->query("UPDATE `" . DB_PREFIX . "mollie_payments` SET refund_id = '" . $refund_id . "', bank_status = '" . $payment_status . "' WHERE order_id = '" . (int)$order_id . "'"); + } + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + +]]> + + + + + + + +]]> + + +