class
TD::Invoice
- TD::Invoice
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/invoice.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #currency : String
- #currency=(currency : String)
- #is_flexible : Bool
- #is_flexible=(is_flexible : Bool)
- #is_test : Bool
- #is_test=(is_test : Bool)
- #max_tip_amount : Int64
- #max_tip_amount=(max_tip_amount : Int64)
- #need_email_address : Bool
- #need_email_address=(need_email_address : Bool)
- #need_name : Bool
- #need_name=(need_name : Bool)
- #need_phone_number : Bool
- #need_phone_number=(need_phone_number : Bool)
- #need_shipping_address : Bool
- #need_shipping_address=(need_shipping_address : Bool)
- #object_type : String
- #object_type=(object_type : String)
- #price_parts : Array(TD::LabeledPricePart)
- #price_parts=(price_parts : Array(TD::LabeledPricePart))
- #send_email_address_to_provider : Bool
- #send_email_address_to_provider=(send_email_address_to_provider : Bool)
- #send_phone_number_to_provider : Bool
- #send_phone_number_to_provider=(send_phone_number_to_provider : Bool)
- #suggested_tip_amounts : Array(Int64)
- #suggested_tip_amounts=(suggested_tip_amounts : Array(Int64))
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)
#