Skip to content

Commit ce9b657

Browse files
committed
Import correct ObjectSerializer and fix misspelling
1 parent fa0ea2a commit ce9b657

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Adyen/Service/TokenizationWebhookParser.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Adyen\Service;
44

5-
use Adyen\Model\ConfigurationWebhooks\ObjectSerializer;
5+
use Adyen\Model\TokenizationWebhooks\ObjectSerializer;
66
use Adyen\Model\TokenizationWebhooks\TokenizationAlreadyExistingDetailsNotificationRequest;
77
use Adyen\Model\TokenizationWebhooks\TokenizationCreatedDetailsNotificationRequest;
88
use Adyen\Model\TokenizationWebhooks\TokenizationDisabledDetailsNotificationRequest;
@@ -31,19 +31,19 @@ public function getGenericWebhook()
3131
}
3232

3333
if (in_array($type, ($clazz = new TokenizationAlreadyExistingDetailsNotificationRequest())->getTypeAllowableValues())) {
34-
return (object)$this->deserializewebhook($clazz);
34+
return (object)$this->deserializeWebhook($clazz);
3535
}
3636

3737
if (in_array($type, ($clazz = new TokenizationCreatedDetailsNotificationRequest())->getTypeAllowableValues())) {
38-
return (object)$this->deserializewebhook($clazz);
38+
return (object)$this->deserializeWebhook($clazz);
3939
}
4040

4141
if (in_array($type, ($clazz = new TokenizationDisabledDetailsNotificationRequest)->getTypeAllowableValues())) {
42-
return (object)self::deserializewebhook($clazz);
42+
return (object)$this->deserializeWebhook($clazz);
4343
}
4444

4545
if (in_array($type, ($clazz = new TokenizationUpdatedDetailsNotificationRequest())->getTypeAllowableValues())) {
46-
return (object)self::deserializeWebhook($clazz);
46+
return (object)$this->deserializeWebhook($clazz);
4747
}
4848

4949
// throw error in case the webhook can not be parsed

0 commit comments

Comments
 (0)