Class: Telegram::Bot::Types::RefundedPayment

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/refunded_payment.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#currencyString (readonly)

Returns the value of attribute currency.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/refunded_payment.rbs', line 8

def currency
  @currency
end

#invoice_payloadString (readonly)

Returns the value of attribute invoice_payload.

Returns:

  • (String)


10
11
12
# File 'sig/telegram/bot/types/refunded_payment.rbs', line 10

def invoice_payload
  @invoice_payload
end

#provider_payment_charge_idString? (readonly)

Returns the value of attribute provider_payment_charge_id.

Returns:

  • (String, nil)


12
13
14
# File 'sig/telegram/bot/types/refunded_payment.rbs', line 12

def provider_payment_charge_id
  @provider_payment_charge_id
end

#telegram_payment_charge_idString (readonly)

Returns the value of attribute telegram_payment_charge_id.

Returns:

  • (String)


11
12
13
# File 'sig/telegram/bot/types/refunded_payment.rbs', line 11

def telegram_payment_charge_id
  @telegram_payment_charge_id
end

#total_amountInteger (readonly)

Returns the value of attribute total_amount.

Returns:

  • (Integer)


9
10
11
# File 'sig/telegram/bot/types/refunded_payment.rbs', line 9

def total_amount
  @total_amount
end

Class Method Details

.new(currency:, total_amount:, invoice_payload:, telegram_payment_charge_id:, provider_payment_charge_id:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(currency:, total_amount:, invoice_payload:, telegram_payment_charge_id:, provider_payment_charge_id:) ⇒ instance

    Parameters:

    • currency: (String)
    • total_amount: (Integer)
    • invoice_payload: (String)
    • telegram_payment_charge_id: (String)
    • provider_payment_charge_id: (String)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/refunded_payment.rbs', line 6

def self.new: (?currency: String, total_amount: Integer, invoice_payload: String, telegram_payment_charge_id: String, ?provider_payment_charge_id: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance