VerticalFeedPromoCodeComponent

@objc(VerticalFeedPromoCodeComponent)
public final class VerticalFeedPromoCodeComponent : VerticalFeedItemComponent

This class represents the PromoCode component.

  • PromoCode text that the user copied

    Declaration

    Swift

    @objc
    public let text: String
  • VerticalFeedRatingComponent initialization

    Declaration

    Swift

    @objc
    public init(id: String,
                text: String,
                customPayload: String?)

    Parameters

    id

    Id of the interactive component

    text

    PromoCode text that the user copied

    customPayload

    Custom payload for PromoCode component if exists