Class: Telegram::Bot::Types::SuccessfulPayment
- Defined in:
- sig/telegram/bot/types/successful_payment.rbs
Instance Attribute Summary collapse
-
#currency ⇒ String
readonly
Returns the value of attribute currency.
-
#invoice_payload ⇒ String
readonly
Returns the value of attribute invoice_payload.
-
#is_first_recurring ⇒ true?
readonly
Returns the value of attribute is_first_recurring.
-
#is_recurring ⇒ true?
readonly
Returns the value of attribute is_recurring.
-
#order_info ⇒ OrderInfo?
readonly
Returns the value of attribute order_info.
-
#provider_payment_charge_id ⇒ String
readonly
Returns the value of attribute provider_payment_charge_id.
-
#shipping_option_id ⇒ String?
readonly
Returns the value of attribute shipping_option_id.
-
#subscription_expiration_date ⇒ Integer?
readonly
Returns the value of attribute subscription_expiration_date.
-
#telegram_payment_charge_id ⇒ String
readonly
Returns the value of attribute telegram_payment_charge_id.
-
#total_amount ⇒ Integer
readonly
Returns the value of attribute total_amount.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#currency ⇒ String (readonly)
Returns the value of attribute currency.
8 9 10 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 8 def currency @currency end |
#invoice_payload ⇒ String (readonly)
Returns the value of attribute invoice_payload.
10 11 12 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 10 def invoice_payload @invoice_payload end |
#is_first_recurring ⇒ true? (readonly)
Returns the value of attribute is_first_recurring.
13 14 15 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 13 def is_first_recurring @is_first_recurring end |
#is_recurring ⇒ true? (readonly)
Returns the value of attribute is_recurring.
12 13 14 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 12 def is_recurring @is_recurring end |
#order_info ⇒ OrderInfo? (readonly)
Returns the value of attribute order_info.
15 16 17 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 15 def order_info @order_info end |
#provider_payment_charge_id ⇒ String (readonly)
Returns the value of attribute provider_payment_charge_id.
17 18 19 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 17 def provider_payment_charge_id @provider_payment_charge_id end |
#shipping_option_id ⇒ String? (readonly)
Returns the value of attribute shipping_option_id.
14 15 16 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 14 def shipping_option_id @shipping_option_id end |
#subscription_expiration_date ⇒ Integer? (readonly)
Returns the value of attribute subscription_expiration_date.
11 12 13 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 11 def subscription_expiration_date @subscription_expiration_date end |
#telegram_payment_charge_id ⇒ String (readonly)
Returns the value of attribute telegram_payment_charge_id.
16 17 18 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 16 def telegram_payment_charge_id @telegram_payment_charge_id end |
#total_amount ⇒ Integer (readonly)
Returns the value of attribute total_amount.
9 10 11 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 9 def total_amount @total_amount end |
Class Method Details
.new(currency:, total_amount:, invoice_payload:, subscription_expiration_date:, is_recurring:, is_first_recurring:, shipping_option_id:, order_info:, telegram_payment_charge_id:, provider_payment_charge_id:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/successful_payment.rbs', line 6
def self.new: (currency: String, total_amount: Integer, invoice_payload: String, ?subscription_expiration_date: Integer, ?is_recurring: true, ?is_first_recurring: true, ?shipping_option_id: String, ?order_info: OrderInfo, telegram_payment_charge_id: String, provider_payment_charge_id: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|