TransactionPartner.telegramApi constructor
- @Assert('type == TransactionPartnerType.telegramApi', 'type must be TransactionPartnerType.telegramApi')
- @JsonKey(name: 'type') @Default(TransactionPartnerType.telegramApi) TransactionPartnerType type,
- @JsonKey(name: 'request_count') int? requestCount,
Represents transaction with payment for paid broadcasting
Implementation
@Assert(
'type == TransactionPartnerType.telegramApi',
'type must be TransactionPartnerType.telegramApi',
)
const factory TransactionPartner.telegramApi({
/// Type of the transaction partner, must be "telegram_api"
@JsonKey(name: 'type')
@Default(TransactionPartnerType.telegramApi)
TransactionPartnerType type,
/// The number of successful requests that exceeded regular limits and were
/// therefore billed.
@JsonKey(name: 'request_count') final int? requestCount,
}) = TransactionPartnerTelegramApi;