SuggestedPostRefunded constructor

const SuggestedPostRefunded({
  1. @JsonKey.new(name: 'suggested_post_message') Message? suggestedPostMessage,
  2. @JsonKey.new(name: 'reason') required String reason,
})

Creates a new SuggestedPostRefunded object.

Implementation

const factory SuggestedPostRefunded({
  /// Optional. Message containing the suggested post. Note that the Message
  /// object in this field will not contain the reply_to_message field even
  /// if it itself is a reply.
  @JsonKey(name: 'suggested_post_message') Message? suggestedPostMessage,

  /// Reason for the refund. Currently, one of "post_deleted" if the post was
  /// deleted within 24 hours of being posted or removed from scheduled messages
  /// without being posted, or "payment_refunded" if the payer refunded their payment.
  @JsonKey(name: 'reason') required String reason,
}) = _SuggestedPostRefunded;