Source code for appstoreserverlibrary.models.AlternateProduct
# Copyright (c) 2025 Apple Inc. Licensed under MIT License.
from typing import Optional
from uuid import UUID
from attr import define
import attr
[docs]
@define
class AlternateProduct:
"""
A switch-plan message and product ID you provide in a real-time response to your Get Retention Message endpoint.
https://developer.apple.com/documentation/retentionmessaging/alternateproduct
"""
messageIdentifier: Optional[UUID] = attr.ib(default=None)
"""
The message identifier of the text to display in the switch-plan retention message.
https://developer.apple.com/documentation/retentionmessaging/messageidentifier
"""
productId: Optional[str] = attr.ib(default=None)
"""
The product identifier of the subscription the retention message suggests for your customer to switch to.
https://developer.apple.com/documentation/retentionmessaging/productid
"""