|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * |
| 4 | + * Adyen Payment Module |
| 5 | + * |
| 6 | + * Copyright (c) 2025 Adyen N.V. |
| 7 | + * This file is open source and available under the MIT license. |
| 8 | + * See the LICENSE file for more info. |
| 9 | + * |
| 10 | + * Author: Adyen <magento@adyen.com> |
| 11 | + */ |
| 12 | + |
| 13 | +namespace Adyen\Payment\Api\Data; |
| 14 | + |
| 15 | +use DateTime; |
| 16 | + |
| 17 | +interface AnalyticsEventInterface |
| 18 | +{ |
| 19 | + const ADYEN_ANALYTICS_EVENT = 'adyen_analytics_event'; |
| 20 | + const TABLE_NAME_ALIAS = 'analytics_event'; |
| 21 | + const ENTITY_ID = 'entity_id'; |
| 22 | + const UUID = 'uuid'; |
| 23 | + const RELATION_ID = 'relation_id'; |
| 24 | + const TYPE = 'type'; |
| 25 | + const TOPIC = 'topic'; |
| 26 | + const MESSAGE = 'message'; |
| 27 | + const VERSION = 'version'; |
| 28 | + const ERROR_TYPE = 'error_type'; |
| 29 | + const ERROR_CODE = 'error_code'; |
| 30 | + const ERROR_COUNT = 'error_count'; |
| 31 | + const STATUS = 'status'; |
| 32 | + const CREATED_AT = 'created_at'; |
| 33 | + const UPDATED_AT = 'updated_at'; |
| 34 | + const SCHEDULED_PROCESSING_TIME = 'scheduled_processing_time'; |
| 35 | + const MAX_ERROR_COUNT = 5; |
| 36 | + |
| 37 | + public function getEntityId(); |
| 38 | + |
| 39 | + public function setEntityId($entityId); |
| 40 | + |
| 41 | + public function getRelationId(): string; |
| 42 | + |
| 43 | + public function setRelationId(string $relationId): AnalyticsEventInterface; |
| 44 | + |
| 45 | + public function getUuid(): string; |
| 46 | + |
| 47 | + public function setUuid(string $uuid): AnalyticsEventInterface; |
| 48 | + |
| 49 | + public function getType(): string; |
| 50 | + |
| 51 | + public function setType(string $type): AnalyticsEventInterface; |
| 52 | + |
| 53 | + public function getTopic(): string; |
| 54 | + |
| 55 | + public function setTopic(string $topic): AnalyticsEventInterface; |
| 56 | + |
| 57 | + public function getMessage(): ?string; |
| 58 | + |
| 59 | + public function setMessage(?string $message = null): AnalyticsEventInterface; |
| 60 | + |
| 61 | + public function getVersion(): string; |
| 62 | + |
| 63 | + public function setVersion(string $version): AnalyticsEventInterface; |
| 64 | + |
| 65 | + public function getErrorType(): ?string; |
| 66 | + |
| 67 | + public function setErrorType(?string $errorType = null): AnalyticsEventInterface; |
| 68 | + |
| 69 | + public function getErrorCode(): ?string; |
| 70 | + |
| 71 | + public function setErrorCode(?string $errorCode = null): AnalyticsEventInterface; |
| 72 | + |
| 73 | + public function getErrorCount(): int; |
| 74 | + |
| 75 | + public function setErrorCount(int $errorCount): AnalyticsEventInterface; |
| 76 | + |
| 77 | + public function getStatus(): string; |
| 78 | + |
| 79 | + public function setStatus(string $status): AnalyticsEventInterface; |
| 80 | + |
| 81 | + public function getCreatedAt(): string; |
| 82 | + |
| 83 | + public function setCreatedAt(string $createdAt): AnalyticsEventInterface; |
| 84 | + |
| 85 | + public function getCreatedAtTimestamp(): int; |
| 86 | + |
| 87 | + public function getUpdatedAt(): ?string; |
| 88 | + |
| 89 | + public function setUpdatedAt(?string $updatedAt = null): AnalyticsEventInterface; |
| 90 | + |
| 91 | + public function getScheduledProcessingTime(): ?string; |
| 92 | + |
| 93 | + public function setScheduledProcessingTime(?string $scheduledProcessingTime = null): AnalyticsEventInterface; |
| 94 | +} |
0 commit comments