Class: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button
- Defined in:
- lib/telnyx/models/whatsapp/template_create_params.rb
Defined Under Namespace
Modules: FlowAction, OtpType, Type
Instance Attribute Summary collapse
-
#autofill_text ⇒ String?
Custom autofill button text for ONE_TAP OTP buttons.
-
#example ⇒ Array<String>?
Sample values for URL variable.
-
#flow_action ⇒ Symbol, ...
Flow action type for FLOW-type buttons.
-
#flow_id ⇒ String?
Flow ID for FLOW-type buttons.
-
#navigate_screen ⇒ String?
Target screen name for FLOW buttons with navigate action.
- #otp_type ⇒ Symbol, ...
-
#package_name ⇒ String?
Android package name.
-
#phone_number ⇒ String?
Phone number in E.164 format.
-
#signature_hash ⇒ String?
Android app signing key hash.
-
#text ⇒ String?
Button label text.
- #type ⇒ Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::Type
-
#url ⇒ String?
URL for URL-type buttons.
-
#zero_tap_terms_accepted ⇒ Boolean?
Whether zero-tap terms have been accepted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, autofill_text: nil, example: nil, flow_action: nil, flow_id: nil, navigate_screen: nil, otp_type: nil, package_name: nil, phone_number: nil, signature_hash: nil, text: nil, url: nil, zero_tap_terms_accepted: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Button for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(type:, autofill_text: nil, example: nil, flow_action: nil, flow_id: nil, navigate_screen: nil, otp_type: nil, package_name: nil, phone_number: nil, signature_hash: nil, text: nil, url: nil, zero_tap_terms_accepted: nil) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button for more details.
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 281 class Button < Telnyx::Internal::Type::BaseModel # @!attribute type # # @return [Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::Type] required :type, enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button::Type } # @!attribute autofill_text # Custom autofill button text for ONE_TAP OTP buttons. # # @return [String, nil] optional :autofill_text, String # @!attribute example # Sample values for URL variable. # # @return [Array<String>, nil] optional :example, Telnyx::Internal::Type::ArrayOf[String] # @!attribute flow_action # Flow action type for FLOW-type buttons. # # @return [Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::FlowAction, nil] optional :flow_action, enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button::FlowAction } # @!attribute flow_id # Flow ID for FLOW-type buttons. # # @return [String, nil] optional :flow_id, String # @!attribute navigate_screen # Target screen name for FLOW buttons with navigate action. # # @return [String, nil] optional :navigate_screen, String # @!attribute otp_type # # @return [Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::OtpType, nil] optional :otp_type, enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button::OtpType } # @!attribute package_name # Android package name. Required for ONE_TAP OTP buttons. # # @return [String, nil] optional :package_name, String # @!attribute phone_number # Phone number in E.164 format. # # @return [String, nil] optional :phone_number, String # @!attribute signature_hash # Android app signing key hash. Required for ONE_TAP OTP buttons. # # @return [String, nil] optional :signature_hash, String # @!attribute text # Button label text. Maximum 25 characters. Required for URL, PHONE_NUMBER, and # QUICK_REPLY buttons. Not required for OTP buttons (Meta supplies the label). # # @return [String, nil] optional :text, String # @!attribute url # URL for URL-type buttons. Supports one variable ({{1}}). # # @return [String, nil] optional :url, String # @!attribute zero_tap_terms_accepted # Whether zero-tap terms have been accepted. # # @return [Boolean, nil] optional :zero_tap_terms_accepted, Telnyx::Internal::Type::Boolean # @!method initialize(type:, autofill_text: nil, example: nil, flow_action: nil, flow_id: nil, navigate_screen: nil, otp_type: nil, package_name: nil, phone_number: nil, signature_hash: nil, text: nil, url: nil, zero_tap_terms_accepted: nil) # Some parameter documentations has been truncated, see # {Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button} for # more details. # # @param type [Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::Type] # # @param autofill_text [String] Custom autofill button text for ONE_TAP OTP buttons. # # @param example [Array<String>] Sample values for URL variable. # # @param flow_action [Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::FlowAction] Flow action type for FLOW-type buttons. # # @param flow_id [String] Flow ID for FLOW-type buttons. # # @param navigate_screen [String] Target screen name for FLOW buttons with navigate action. # # @param otp_type [Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::OtpType] # # @param package_name [String] Android package name. Required for ONE_TAP OTP buttons. # # @param phone_number [String] Phone number in E.164 format. # # @param signature_hash [String] Android app signing key hash. Required for ONE_TAP OTP buttons. # # @param text [String] Button label text. Maximum 25 characters. Required for URL, PHONE_NUMBER, and QU # # @param url [String] URL for URL-type buttons. Supports one variable ({{1}}). # # @param zero_tap_terms_accepted [Boolean] Whether zero-tap terms have been accepted. # @see Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button#type module Type extend Telnyx::Internal::Type::Enum URL = :URL PHONE_NUMBER = :PHONE_NUMBER QUICK_REPLY = :QUICK_REPLY OTP = :OTP COPY_CODE = :COPY_CODE FLOW = :FLOW # @!method self.values # @return [Array<Symbol>] end # Flow action type for FLOW-type buttons. # # @see Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button#flow_action module FlowAction extend Telnyx::Internal::Type::Enum NAVIGATE = :navigate DATA_EXCHANGE = :data_exchange # @!method self.values # @return [Array<Symbol>] end # @see Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button#otp_type module OtpType extend Telnyx::Internal::Type::Enum COPY_CODE = :COPY_CODE ONE_TAP = :ONE_TAP # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#autofill_text ⇒ String?
Custom autofill button text for ONE_TAP OTP buttons.
291 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 291 optional :autofill_text, String |
#example ⇒ Array<String>?
Sample values for URL variable.
297 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 297 optional :example, Telnyx::Internal::Type::ArrayOf[String] |
#flow_action ⇒ Symbol, ...
Flow action type for FLOW-type buttons.
303 304 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 303 optional :flow_action, enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button::FlowAction } |
#flow_id ⇒ String?
Flow ID for FLOW-type buttons.
310 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 310 optional :flow_id, String |
#navigate_screen ⇒ String?
Target screen name for FLOW buttons with navigate action.
316 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 316 optional :navigate_screen, String |
#otp_type ⇒ Symbol, ...
321 322 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 321 optional :otp_type, enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button::OtpType } |
#package_name ⇒ String?
Android package name. Required for ONE_TAP OTP buttons.
328 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 328 optional :package_name, String |
#phone_number ⇒ String?
Phone number in E.164 format.
334 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 334 optional :phone_number, String |
#signature_hash ⇒ String?
Android app signing key hash. Required for ONE_TAP OTP buttons.
340 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 340 optional :signature_hash, String |
#text ⇒ String?
Button label text. Maximum 25 characters. Required for URL, PHONE_NUMBER, and QUICK_REPLY buttons. Not required for OTP buttons (Meta supplies the label).
347 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 347 optional :text, String |
#type ⇒ Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons::Button::Type
285 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 285 required :type, enum: -> { Telnyx::Whatsapp::TemplateCreateParams::Component::Buttons::Button::Type } |
#url ⇒ String?
URL for URL-type buttons. Supports one variable ({1}).
353 |
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 353 optional :url, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/whatsapp/template_create_params.rb', line 403
|