class
Hamilton::Types::SuccessfulPayment
- Hamilton::Types::SuccessfulPayment
- Reference
- Object
Overview
This object contains basic information about a successful payment. Note that if the buyer initiates a chargeback with the relevant payment provider following this transaction, the funds may be debited from your balance. This is outside of Telegram's control.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/successful_payment.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.
-
#invoice_payload : String
Bot-specified invoice payload.
-
#invoice_payload=(invoice_payload : String)
Bot-specified invoice payload.
-
#is_first_recurring : Bool | Nil
True, if the payment is the first payment for a subscription.
-
#is_first_recurring=(is_first_recurring : Bool | Nil)
True, if the payment is the first payment for a subscription.
-
#is_recurring : Bool | Nil
True, if the payment is a recurring payment for a subscription.
-
#is_recurring=(is_recurring : Bool | Nil)
True, if the payment is a recurring payment for a subscription.
-
#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.
-
#order_info : Hamilton::Types::OrderInfo
Order information provided by the user.
-
#order_info=(order_info : Hamilton::Types::OrderInfo)
Order information provided by the user.
-
#provider_payment_charge_id : String
Provider payment identifier.
-
#provider_payment_charge_id=(provider_payment_charge_id : String)
Provider payment identifier.
-
#shipping_option_id : String | Nil
Identifier of the shipping option chosen by the user.
-
#shipping_option_id=(shipping_option_id : String | Nil)
Identifier of the shipping option chosen by the user.
-
#subscription_expiration_date : Int32 | Nil
Expiration date of the subscription, in Unix time; for recurring payments only.
-
#subscription_expiration_date=(subscription_expiration_date : Int32 | Nil)
Expiration date of the subscription, in Unix time; for recurring payments only.
-
#telegram_payment_charge_id : String
Telegram payment identifier.
-
#telegram_payment_charge_id=(telegram_payment_charge_id : String)
Telegram payment identifier.
-
#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.
True, if the payment is the first payment for a subscription.
True, if the payment is a recurring payment for a subscription.
Identifier of the shipping option chosen by the user.
Expiration date of the subscription, in Unix time; for recurring payments only.
Expiration date of the subscription, in Unix time; for recurring payments only.
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)..