Class: Telegram::Bot::Types::SuccessfulPayment

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/successful_payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currencyObject

Returns the value of attribute currency.



3
4
5
# File 'lib/telegram/bot/types/successful_payment.rb', line 3

def currency
  @currency
end

#invoice_payloadObject

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_infoObject

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_idObject

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_idObject

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_idObject

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_amountObject

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