class
Hamilton::Types::Invoice
- Hamilton::Types::Invoice
- Reference
- Object
Overview
This object contains basic information about an invoice.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/invoice.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#currency : String
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
-
#currency=(currency : String)
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
-
#decription : String
Product description.
-
#decription=(decription : String)
Product description.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#start_parameter : String
Unique bot deep-linking parameter that can be used to generate this invoice.
-
#start_parameter=(start_parameter : String)
Unique bot deep-linking parameter that can be used to generate this invoice.
-
#title : String
Product name.
-
#title=(title : String)
Product name.
-
#total_amount : Int32
Total price in the smallest units of the currency (integer, not float/double).
-
#total_amount=(total_amount : Int32)
Total price in the smallest units of the currency (integer, not float/double).
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Unique bot deep-linking parameter that can be used to generate this invoice.
Unique bot deep-linking parameter that can be used to generate this invoice.
Total price in the smallest units of the currency (integer, not float/double).
Total price in the smallest units of the currency (integer, not float/double).