class Tourmaline::TransactionPartnerUser

Overview

Describes a transaction with a user.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, user : Tourmaline::User, affiliate : Tourmaline::AffiliateInfo | Nil = nil, invoice_payload : String | Nil = nil, subscription_period : Int32 | Int64 | Nil = nil, paid_media : Array(Tourmaline::PaidMedia) = [] of Tourmaline::PaidMedia, paid_media_payload : String | Nil = nil, gift : Tourmaline::Gift | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def affiliate : Tourmaline::AffiliateInfo | Nil #

Optional. Information about the affiliate that received a commission via this transaction


[View source]
def affiliate=(affiliate : Tourmaline::AffiliateInfo | Nil) #

Optional. Information about the affiliate that received a commission via this transaction


[View source]
def gift : Tourmaline::Gift | Nil #

Optional. The gift sent to the user by the bot


[View source]
def gift=(gift : Tourmaline::Gift | Nil) #

Optional. The gift sent to the user by the bot


[View source]
def invoice_payload : String | Nil #

Optional. Bot-specified invoice payload


[View source]
def invoice_payload=(invoice_payload : String | Nil) #

Optional. Bot-specified invoice payload


[View source]
def subscription_period : Int32 | Int64 | Nil #

Optional. The duration of the paid subscription


[View source]
def subscription_period=(subscription_period : Int32 | Int64 | Nil) #

Optional. The duration of the paid subscription


[View source]
def type : String #

Type of the transaction partner, always "user"


[View source]
def type=(type : String) #

Type of the transaction partner, always "user"


[View source]
def user : Tourmaline::User #

Information about the user


[View source]
def user=(user : Tourmaline::User) #

Information about the user


[View source]