diff --git a/.gitignore b/.gitignore index 4aa2fa6..c590e5b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ vendor composer.lock phpunit.xml .phpunit.result.cache +.phpunit.cache .DS_Store .php-cs-fixer.cache diff --git a/composer.json b/composer.json index 3a48341..ba8a5f7 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ ], "require": { "php": "^8.0", - "mollie/mollie-api-php": "v2.58.0-beta", + "mollie/mollie-api-php": "^2.60", "illuminate/support": "^9.0|^10.0", "ext-json": "*" }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1f20019..fdc7ae3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,13 +1,14 @@ - - - - ./src - - + + ./tests + + + ./src + + diff --git a/src/Wrappers/MollieApiWrapper.php b/src/Wrappers/MollieApiWrapper.php index 9bb83cd..6351465 100644 --- a/src/Wrappers/MollieApiWrapper.php +++ b/src/Wrappers/MollieApiWrapper.php @@ -418,6 +418,26 @@ public function disableDebugging() $this->client->disableDebugging(); } + public function setIdempotencyKey(string $key) + { + return $this->client->setIdempotencyKey($key); + } + + public function resetIdempotencyKey() + { + return $this->client->resetIdempotencyKey(); + } + + public function setIdempotencyKeyGenerator($generator) + { + return $this->client->setIdempotencyKeyGenerator($generator); + } + + public function clearIdempotencyKeyGenerator() + { + return $this->client->clearIdempotencyKeyGenerator(); + } + /** * Handle dynamic property calls. *