Class: Zavudev::Models::Sender::Whatsapp::PaymentStatus

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/sender.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

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(can_send_templates: nil, method_status: nil, setup_status: nil) ⇒ Object

Some parameter documentations has been truncated, see Zavudev::Models::Sender::Whatsapp::PaymentStatus for more details.

Payment configuration status from Meta.

Parameters:

  • can_send_templates (Boolean) (defaults to: nil)

    Whether template messages can be sent. Requires setupStatus=COMPLETE and methodS

  • method_status (String) (defaults to: nil)

    Payment method status (VALID, NONE, etc.).

  • setup_status (String) (defaults to: nil)

    Payment setup status (COMPLETE, NOT_STARTED, etc.).



# File 'lib/zavudev/models/sender.rb', line 126

Instance Attribute Details

#can_send_templatesBoolean?

Whether template messages can be sent. Requires setupStatus=COMPLETE and methodStatus=VALID.

Returns:

  • (Boolean, nil)


112
# File 'lib/zavudev/models/sender.rb', line 112

optional :can_send_templates, Zavudev::Internal::Type::Boolean, api_name: :canSendTemplates

#method_statusString?

Payment method status (VALID, NONE, etc.).

Returns:

  • (String, nil)


118
# File 'lib/zavudev/models/sender.rb', line 118

optional :method_status, String, api_name: :methodStatus

#setup_statusString?

Payment setup status (COMPLETE, NOT_STARTED, etc.).

Returns:

  • (String, nil)


124
# File 'lib/zavudev/models/sender.rb', line 124

optional :setup_status, String, api_name: :setupStatus