TransactionPartner.telegramAds constructor

  1. @Assert('type == TransactionPartnerType.telegramAds', 'type must be TransactionPartnerType.telegramAds')
const TransactionPartner.telegramAds({
  1. @JsonKey(name: 'type') @Default(TransactionPartnerType.telegramAds) TransactionPartnerType type,
})

Represents a withdrawal transaction to the Telegram Ads platform

Implementation

@Assert(
  'type == TransactionPartnerType.telegramAds',
  'type must be TransactionPartnerType.telegramAds',
)
const factory TransactionPartner.telegramAds({
  /// Type of the transaction partner, must be "telegram_ads"
  @JsonKey(name: 'type')
  @Default(TransactionPartnerType.telegramAds)
  TransactionPartnerType type,
}) = TransactionPartnerTelegramAds;