Class: Telegram::Bot::Types::SuccessfulPayment
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::SuccessfulPayment
- Defined in:
- lib/telegram/bot/types/successful_payment.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#invoice_payload ⇒ Object
Returns the value of attribute invoice_payload.
-
#order_info ⇒ Object
Returns the value of attribute order_info.
-
#provider_payment_charge_id ⇒ Object
Returns the value of attribute provider_payment_charge_id.
-
#shipping_option_id ⇒ Object
Returns the value of attribute shipping_option_id.
-
#telegram_payment_charge_id ⇒ Object
Returns the value of attribute telegram_payment_charge_id.
-
#total_amount ⇒ Object
Returns the value of attribute total_amount.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ SuccessfulPayment
constructor
A new instance of SuccessfulPayment.
Constructor Details
#initialize(attributes) ⇒ SuccessfulPayment
Returns a new instance of SuccessfulPayment.
11 12 13 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 11 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 3 def currency @currency end |
#invoice_payload ⇒ Object
Returns the value of attribute invoice_payload.
3 4 5 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 3 def invoice_payload @invoice_payload end |
#order_info ⇒ Object
Returns the value of attribute order_info.
3 4 5 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 3 def order_info @order_info end |
#provider_payment_charge_id ⇒ Object
Returns the value of attribute provider_payment_charge_id.
3 4 5 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 3 def provider_payment_charge_id @provider_payment_charge_id end |
#shipping_option_id ⇒ Object
Returns the value of attribute shipping_option_id.
3 4 5 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 3 def shipping_option_id @shipping_option_id end |
#telegram_payment_charge_id ⇒ Object
Returns the value of attribute telegram_payment_charge_id.
3 4 5 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 3 def telegram_payment_charge_id @telegram_payment_charge_id end |
#total_amount ⇒ Object
Returns the value of attribute total_amount.
3 4 5 |
# File 'lib/telegram/bot/types/successful_payment.rb', line 3 def total_amount @total_amount end |