class TD::Invoice

Included Modules

Defined in:

telegram/types/invoice.cr

Constructors

Instance Method Summary

Instance methods inherited from class TD::Base

extract_abstract_type(__json : JSON::Any) extract_abstract_type, extract_type(__json : JSON::Any, class_type : Class) extract_type

Macros inherited from class TD::Base

object_attributes(type) object_attributes, object_type(type) object_type

Constructor Detail

def self.new(currency : String, price_parts : Array(TD::LabeledPricePart), max_tip_amount : Int64, suggested_tip_amounts : Array(Int64), is_test : Bool = false, need_name : Bool = false, need_phone_number : Bool = false, need_email_address : Bool = false, need_shipping_address : Bool = false, send_phone_number_to_provider : Bool = false, send_email_address_to_provider : Bool = false, is_flexible : Bool = false) #

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

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def currency : String #

def currency=(currency : String) #

def is_flexible : Bool #

def is_flexible=(is_flexible : Bool) #

def is_test : Bool #

def is_test=(is_test : Bool) #

def max_tip_amount : Int64 #

def max_tip_amount=(max_tip_amount : Int64) #

def need_email_address : Bool #

def need_email_address=(need_email_address : Bool) #

def need_name : Bool #

def need_name=(need_name : Bool) #

def need_phone_number : Bool #

def need_phone_number=(need_phone_number : Bool) #

def need_shipping_address : Bool #

def need_shipping_address=(need_shipping_address : Bool) #

def object_type : String #

def object_type=(object_type : String) #

def price_parts : Array(TD::LabeledPricePart) #

def price_parts=(price_parts : Array(TD::LabeledPricePart)) #

def send_email_address_to_provider : Bool #

def send_email_address_to_provider=(send_email_address_to_provider : Bool) #

def send_phone_number_to_provider : Bool #

def send_phone_number_to_provider=(send_phone_number_to_provider : Bool) #

def suggested_tip_amounts : Array(Int64) #

def suggested_tip_amounts=(suggested_tip_amounts : Array(Int64)) #