Class: Telegram::Bot::Types::InputInvoiceMessageContent

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/input_invoice_message_content.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)


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

def currency
  @currency
end

#descriptionString (readonly)

Returns the value of attribute description.

Returns:

  • (String)


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

def description
  @description
end

#is_flexibleBoolean? (readonly)

Returns the value of attribute is_flexible.

Returns:

  • (Boolean, nil)


27
28
29
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 27

def is_flexible
  @is_flexible
end

#max_tip_amountInteger (readonly)

Returns the value of attribute max_tip_amount.

Returns:

  • (Integer)


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

def max_tip_amount
  @max_tip_amount
end

#need_emailBoolean? (readonly)

Returns the value of attribute need_email.

Returns:

  • (Boolean, nil)


23
24
25
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 23

def need_email
  @need_email
end

#need_nameBoolean? (readonly)

Returns the value of attribute need_name.

Returns:

  • (Boolean, nil)


21
22
23
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 21

def need_name
  @need_name
end

#need_phone_numberBoolean? (readonly)

Returns the value of attribute need_phone_number.

Returns:

  • (Boolean, nil)


22
23
24
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 22

def need_phone_number
  @need_phone_number
end

#need_shipping_addressBoolean? (readonly)

Returns the value of attribute need_shipping_address.

Returns:

  • (Boolean, nil)


24
25
26
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 24

def need_shipping_address
  @need_shipping_address
end

#payloadString (readonly)

Returns the value of attribute payload.

Returns:

  • (String)


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

def payload
  @payload
end

#photo_heightInteger? (readonly)

Returns the value of attribute photo_height.

Returns:

  • (Integer, nil)


20
21
22
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 20

def photo_height
  @photo_height
end

#photo_sizeInteger? (readonly)

Returns the value of attribute photo_size.

Returns:

  • (Integer, nil)


18
19
20
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 18

def photo_size
  @photo_size
end

#photo_urlString? (readonly)

Returns the value of attribute photo_url.

Returns:

  • (String, nil)


17
18
19
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 17

def photo_url
  @photo_url
end

#photo_widthInteger? (readonly)

Returns the value of attribute photo_width.

Returns:

  • (Integer, nil)


19
20
21
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 19

def photo_width
  @photo_width
end

#pricesArray[LabeledPrice] (readonly)

Returns the value of attribute prices.

Returns:



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

def prices
  @prices
end

#provider_dataString? (readonly)

Returns the value of attribute provider_data.

Returns:

  • (String, nil)


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

def provider_data
  @provider_data
end

#provider_tokenString? (readonly)

Returns the value of attribute provider_token.

Returns:

  • (String, nil)


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

def provider_token
  @provider_token
end

#send_email_to_providerBoolean? (readonly)

Returns the value of attribute send_email_to_provider.

Returns:

  • (Boolean, nil)


26
27
28
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 26

def send_email_to_provider
  @send_email_to_provider
end

#send_phone_number_to_providerBoolean? (readonly)

Returns the value of attribute send_phone_number_to_provider.

Returns:

  • (Boolean, nil)


25
26
27
# File 'sig/telegram/bot/types/input_invoice_message_content.rbs', line 25

def send_phone_number_to_provider
  @send_phone_number_to_provider
end

#suggested_tip_amountsArray[Integer]? (readonly)

Returns the value of attribute suggested_tip_amounts.

Returns:

  • (Array[Integer], nil)


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

def suggested_tip_amounts
  @suggested_tip_amounts
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


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

def title
  @title
end

Class Method Details

.new(title:, description:, payload:, provider_token:, currency:, prices:, max_tip_amount:, suggested_tip_amounts:, provider_data:, photo_url:, photo_size:, photo_width:, photo_height:, need_name:, need_phone_number:, need_email:, need_shipping_address:, send_phone_number_to_provider:, send_email_to_provider:, is_flexible:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(title:, description:, payload:, provider_token:, currency:, prices:, max_tip_amount:, suggested_tip_amounts:, provider_data:, photo_url:, photo_size:, photo_width:, photo_height:, need_name:, need_phone_number:, need_email:, need_shipping_address:, send_phone_number_to_provider:, send_email_to_provider:, is_flexible:) ⇒ instance

    Parameters:

    • title: (String)
    • description: (String)
    • payload: (String)
    • provider_token: (String)
    • currency: (String)
    • prices: (Array[LabeledPrice])
    • max_tip_amount: (Integer)
    • suggested_tip_amounts: (Array[Integer])
    • provider_data: (String)
    • photo_url: (String)
    • photo_size: (Integer)
    • photo_width: (Integer)
    • photo_height: (Integer)
    • need_name: (Boolean)
    • need_phone_number: (Boolean)
    • need_email: (Boolean)
    • need_shipping_address: (Boolean)
    • send_phone_number_to_provider: (Boolean)
    • send_email_to_provider: (Boolean)
    • is_flexible: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (title: String, description: String, payload: String, ?provider_token: String, currency: String, prices: Array[LabeledPrice], ?max_tip_amount: Integer, ?suggested_tip_amounts: Array[Integer], ?provider_data: String, ?photo_url: String, ?photo_size: Integer, ?photo_width: Integer, ?photo_height: Integer, ?need_name: bool, ?need_phone_number: bool, ?need_email: bool, ?need_shipping_address: bool, ?send_phone_number_to_provider: bool, ?send_email_to_provider: bool, ?is_flexible: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance