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

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/successful_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/successful_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/successful_payment.rbs', line 10

def invoice_payload
  @invoice_payload
end

#is_first_recurringtrue? (readonly)

Returns the value of attribute is_first_recurring.

Returns:

  • (true, nil)


13
14
15
# File 'sig/telegram/bot/types/successful_payment.rbs', line 13

def is_first_recurring
  @is_first_recurring
end

#is_recurringtrue? (readonly)

Returns the value of attribute is_recurring.

Returns:

  • (true, nil)


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

def is_recurring
  @is_recurring
end

#order_infoOrderInfo? (readonly)

Returns the value of attribute order_info.

Returns:



15
16
17
# File 'sig/telegram/bot/types/successful_payment.rbs', line 15

def order_info
  @order_info
end

#provider_payment_charge_idString (readonly)

Returns the value of attribute provider_payment_charge_id.

Returns:

  • (String)


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_idString? (readonly)

Returns the value of attribute shipping_option_id.

Returns:

  • (String, nil)


14
15
16
# File 'sig/telegram/bot/types/successful_payment.rbs', line 14

def shipping_option_id
  @shipping_option_id
end

#subscription_expiration_dateInteger? (readonly)

Returns the value of attribute subscription_expiration_date.

Returns:

  • (Integer, nil)


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

def subscription_expiration_date
  @subscription_expiration_date
end

#telegram_payment_charge_idString (readonly)

Returns the value of attribute telegram_payment_charge_id.

Returns:

  • (String)


16
17
18
# File 'sig/telegram/bot/types/successful_payment.rbs', line 16

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/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

Overloads:

  • .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

    Parameters:

    • 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)

    Returns:

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

    Parameters:

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

    Returns:

    • (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