Class TransactionPartner
java.lang.Object
io.github.natanimn.telebof.types.payments.TransactionPartner
This class describes the source of a transaction, or its recipient for outgoing transactions.
- Since:
- 3 March 2025
- Author:
- Natanim
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AffiliateInfoInformation about the affiliate that received a commission via this transaction.private ChatInformation about the chatprivate IntegerThe number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred usersprivate GiftThe gift sent to the user by the bot; for "gift_purchase" transactions only or The gift sent to the chat by the botprivate StringBot-specified invoice payload.Information about the paid media bought by the user; for "paid_media_payment" transactions onlyprivate IntegerOptional.private IntegerThe number of successful requests that exceeded regular limits and were therefore billedprivate UserInformation about the bot that sponsored the affiliate programprivate IntegerThe duration of the paid subscription.private StringType of the transaction, currently one of invoice_payment for payments via invoices, paid_media_payment for payments for paid media, gift_purchase for gifts sent by the bot, premium_purchase for Telegram Premium subscriptions gifted by the bot, business_account_transfer for direct transfers from managed business accountsprivate TransactionPartnerTypeType of the transaction partnerprivate UserInformation about the userprivate RevenueWithdrawalStateState of the transaction if the transaction is outgoing -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
Type of the transaction partner -
transactionType
Type of the transaction, currently one of invoice_payment for payments via invoices, paid_media_payment for payments for paid media, gift_purchase for gifts sent by the bot, premium_purchase for Telegram Premium subscriptions gifted by the bot, business_account_transfer for direct transfers from managed business accounts -
invoicePayload
Bot-specified invoice payload. Can be available only for "invoice_payment" transactions. -
user
Information about the user -
withdrawalState
State of the transaction if the transaction is outgoing -
paidMedia
Information about the paid media bought by the user; for "paid_media_payment" transactions only -
requestCount
The number of successful requests that exceeded regular limits and were therefore billed -
subscriptionPeriod
The duration of the paid subscription. Can be available only for "invoice_payment" transactions. -
gift
The gift sent to the user by the bot; for "gift_purchase" transactions only or The gift sent to the chat by the bot -
affiliate
Information about the affiliate that received a commission via this transaction. Can be available only for "invoice_payment" and "paid_media_payment" transactions. -
sponsorUser
Information about the bot that sponsored the affiliate program -
commissionPerMille
The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users -
chat
Information about the chat
-
-
Constructor Details
-
TransactionPartner
public TransactionPartner()
-
-
Method Details
-
getType
-
getTransactionType
-
getInvoicePayload
-
getUser
-
getWithdrawalState
-
getPaidMedia
-
getRequestCount
-
getSubscriptionPeriod
-
getGift
-
getAffiliate
-
getSponsorUser
-
getCommissionPerMille
-
getChat
-
getPremiumSubscriptionDuration
-