<?php

/**
 * This file is auto-generated by Saloon SDK Generator
 * Generator: Crescat\SaloonSdkGenerator\Generators\DtoGenerator
 * Do not modify it directly.
 */

declare(strict_types=1);

namespace SellingPartnerApi\Seller\NotificationsV1\Dto;

use SellingPartnerApi\Dto;

final class Subscription extends Dto
{
    /**
     * @param  string  $subscriptionId  The subscription identifier generated when the subscription is created.
     * @param  string  $payloadVersion  The version of the payload object to be used in the notification.
     * @param  string  $destinationId  The identifier for the destination where notifications will be delivered.
     * @param  ?ProcessingDirective  $processingDirective  Additional information passed to the subscription to control the processing of notifications. For example, you can use an `eventFilter` to customize your subscription to send notifications for only the specified `marketplaceId`s, or select the aggregation time period at which to send notifications (for example: limit to one notification every five minutes for high frequency notifications). The specific features available vary depending on the `notificationType`.
     *
     * This feature is currently only supported by the `ANY_OFFER_CHANGED` and `ORDER_CHANGE` `notificationType`s.
     */
    public function __construct(
        public readonly string $subscriptionId,
        public readonly string $payloadVersion,
        public readonly string $destinationId,
        public readonly ?ProcessingDirective $processingDirective = null,
    ) {}
}
