class
Hamilton::Types::InputInvoiceMessageContent
- Hamilton::Types::InputInvoiceMessageContent
- Reference
- Object
Overview
Represents the content of an invoice message to be sent as the result of an inline query.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_message_content.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, see more on currencies.
-
#currency=(currency : String)
Three-letter ISO 4217 currency code, see more on currencies.
-
#description : String
Product description, 1-255 characters.
-
#description=(description : String)
Product description, 1-255 characters.
-
#is_flexible : Bool | Nil
Pass True if the final price depends on the shipping method.
-
#is_flexible=(is_flexible : Bool | Nil)
Pass True if the final price depends on the shipping method.
-
#max_tip_amount : Int32 | Nil
The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double).
-
#max_tip_amount=(max_tip_amount : Int32 | Nil)
The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double).
-
#need_email : Bool | Nil
Pass True if you require the user's email address to complete the order.
-
#need_email=(need_email : Bool | Nil)
Pass True if you require the user's email address to complete the order.
-
#need_name : Bool | Nil
Pass True if you require the user's full name to complete the order.
-
#need_name=(need_name : Bool | Nil)
Pass True if you require the user's full name to complete the order.
-
#need_phone_number : Bool | Nil
Pass True if you require the user's phone number to complete the order.
-
#need_phone_number=(need_phone_number : Bool | Nil)
Pass True if you require the user's phone number to complete the order.
-
#need_shipping_address : Bool | Nil
Pass True if you require the user's shipping address to complete the order.
-
#need_shipping_address=(need_shipping_address : Bool | Nil)
Pass True if you require the user's shipping address to complete the order.
-
#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.
-
#payload : String
Bot-defined invoice payload, 1-128 bytes.
-
#payload=(payload : String)
Bot-defined invoice payload, 1-128 bytes.
-
#photo_height : Int32 | Nil
Photo height.
-
#photo_height=(photo_height : Int32 | Nil)
Photo height.
-
#photo_size : Int32 | Nil
Photo size in bytes.
-
#photo_size=(photo_size : Int32 | Nil)
Photo size in bytes.
-
#photo_url : String | Nil
URL of the product photo for the invoice.
-
#photo_url=(photo_url : String | Nil)
URL of the product photo for the invoice.
-
#photo_width : Int32 | Nil
Photo width.
-
#photo_width=(photo_width : Int32 | Nil)
Photo width.
-
#prices : Array(Hamilton::Types::LabeledPrice)
Price breakdown, a JSON-serialized list of components (e.g.
-
#prices=(prices : Array(Hamilton::Types::LabeledPrice))
Price breakdown, a JSON-serialized list of components (e.g.
-
#provider_data : String | Nil
A JSON-serialized object for data about the invoice, which will be shared with the payment provider.
-
#provider_data=(provider_data : String | Nil)
A JSON-serialized object for data about the invoice, which will be shared with the payment provider.
-
#provider_token : String | Nil
Payment provider token, obtained via @BotFather.
-
#provider_token=(provider_token : String | Nil)
Payment provider token, obtained via @BotFather.
-
#send_email_to_provider : Bool | Nil
Pass True if the user's email address should be sent to the provider.
-
#send_email_to_provider=(send_email_to_provider : Bool | Nil)
Pass True if the user's email address should be sent to the provider.
-
#send_phone_number_to_provider : Bool | Nil
Pass True if the user's phone number should be sent to the provider.
-
#send_phone_number_to_provider=(send_phone_number_to_provider : Bool | Nil)
Pass True if the user's phone number should be sent to the provider.
-
#suggested_tip_amounts : Array(Int32) | Nil
A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double).
-
#suggested_tip_amounts=(suggested_tip_amounts : Array(Int32) | Nil)
A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double).
-
#title : String
Product name, 1-32 characters.
-
#title=(title : String)
Product name, 1-32 characters.
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, see more on currencies. Pass “XTR” for payments in Telegram Stars.
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars.
Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145.
The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145.
Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.
Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.
Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.
Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.
Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.
Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.
Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.
Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.
URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.
A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.
A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.
Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.
Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.
Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.
Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.
A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.