From 29a909f3926635c141aacac6c0dddccb0b794032 Mon Sep 17 00:00:00 2001 From: Lea Marty Date: Mon, 14 Dec 2020 16:29:38 +0100 Subject: [PATCH] fix: repair https url --- README.md | 2 +- build/config.json | 2 +- build/package.json | 2 +- lib/Configuration.php | 4 ++-- lib/MoneiClient.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4d08995..05a8c4a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Or add the following to `composer.json`: ```json { "require": { - "monei/monei-php-sdk": "^0.1.5" + "monei/monei-php-sdk": "^0.1.6" } } ``` diff --git a/build/config.json b/build/config.json index 6d12234..fcb3ced 100644 --- a/build/config.json +++ b/build/config.json @@ -1,6 +1,6 @@ { "packageName": "MONEI PHP SDK", - "packageVersion": "0.1.5", + "packageVersion": "0.1.6", "gitHost": "github.com", "gitUserId": "monei", "gitRepoId": "monei-php-sdk" diff --git a/build/package.json b/build/package.json index c3d894f..46c8c1f 100644 --- a/build/package.json +++ b/build/package.json @@ -1,6 +1,6 @@ { "name": "monei-php-sdk", - "version": "0.1.5", + "version": "0.1.6", "description": "MONEI PHP SDK", "author": "monei", "scripts": { diff --git a/lib/Configuration.php b/lib/Configuration.php index fe97c19..8cfce50 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -81,7 +81,7 @@ class Configuration * * @var string */ - protected $host = 'http://api.monei.net/v1'; + protected $host = 'https://api.monei.net/v1'; /** * User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default @@ -436,7 +436,7 @@ public function getHostSettings() { return array( array( - "url" => "http://api.monei.net/v1", + "url" => "https://api.monei.net/v1", "description" => "MONEI API v1", ) ); diff --git a/lib/MoneiClient.php b/lib/MoneiClient.php index dbbfb04..dc2ac00 100644 --- a/lib/MoneiClient.php +++ b/lib/MoneiClient.php @@ -46,7 +46,7 @@ public function __construct( ) { $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config->setApiKey('Authorization', $apiKey); - $this->config->setUserAgent('MONEI/PHP/0.1.5'); + $this->config->setUserAgent('MONEI/PHP/0.1.6'); $this->payments = new PaymentsApi(null, $this->config); }