Class: GrowsurfRuby::Models::Campaign::WebhookUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/growsurf_ruby/models/campaign/webhook_update_params.rb,
sig/growsurf_ruby/models/campaign/webhook_update_params.rbs

Overview

See Also:

  • GrowsurfRuby::Resources::Campaign::Webhooks#update

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::GrowsurfRuby

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(id:, webhook_id:, events: nil, is_enabled: nil, payload_url: nil, secret: nil, request_options: {}) ⇒ Object

Parameters:



# File 'lib/growsurf_ruby/models/campaign/webhook_update_params.rb', line 42

Instance Attribute Details

#eventsArray<Symbol, GrowsurfRuby::Models::Campaign::WebhookEvent>?

Returns:



24
# File 'lib/growsurf_ruby/models/campaign/webhook_update_params.rb', line 24

optional :events, -> { GrowsurfRuby::Internal::Type::ArrayOf[enum: GrowsurfRuby::Campaign::WebhookEvent] }

#idString

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/growsurf_ruby/models/campaign/webhook_update_params.rb', line 14

required :id, String

#is_enabledBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


29
# File 'lib/growsurf_ruby/models/campaign/webhook_update_params.rb', line 29

optional :is_enabled, GrowsurfRuby::Internal::Type::Boolean, api_name: :isEnabled

#payload_urlString?

Parameters:

  • (String)

Returns:

  • (String, nil)


34
# File 'lib/growsurf_ruby/models/campaign/webhook_update_params.rb', line 34

optional :payload_url, String, api_name: :payloadUrl

#secretString?

Write-only.

Parameters:

  • (String)

Returns:

  • (String, nil)


40
# File 'lib/growsurf_ruby/models/campaign/webhook_update_params.rb', line 40

optional :secret, String

#webhook_idString

Parameters:

  • value (String)

Returns:

  • (String)


19
# File 'lib/growsurf_ruby/models/campaign/webhook_update_params.rb', line 19

required :webhook_id, String

Instance Method Details

#to_hash{

Returns:

  • ({)


51
# File 'sig/growsurf_ruby/models/campaign/webhook_update_params.rbs', line 51

def to_hash: -> {