Class: Courier::Models::ProviderCreateParams

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

Overview

See Also:

  • Courier::Resources::Providers#create

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(provider:, alias_: nil, settings: nil, title: nil, idempotency_key: nil, x_idempotency_expiration: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Courier::Models::ProviderCreateParams for more details.



# File 'lib/courier/models/provider_create_params.rb', line 47


Instance Attribute Details

#alias_ ⇒ String?

Optional alias for this configuration.



21
# File 'lib/courier/models/provider_create_params.rb', line 21

optional :alias_, String, api_name: :alias

#idempotency_key ⇒ String?



40
# File 'lib/courier/models/provider_create_params.rb', line 40

optional :idempotency_key, String

#provider ⇒ String

The provider key identifying the type (e.g. "sendgrid", "twilio"). Must be a known Courier provider — see the catalog endpoint for valid keys.



15
# File 'lib/courier/models/provider_create_params.rb', line 15

required :provider, String

#settings ⇒ Hash{Symbol=>Object}?

Provider-specific settings (snake_case keys). Defaults to an empty object when omitted. Use the catalog endpoint to discover required fields for a given provider — omitting a required field returns a 400 validation error.



29
# File 'lib/courier/models/provider_create_params.rb', line 29

optional :settings, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown]

#title ⇒ String?

Optional display title. Omit to use "Default Configuration".



35
# File 'lib/courier/models/provider_create_params.rb', line 35

optional :title, String

#x_idempotency_expiration ⇒ String?



45
# File 'lib/courier/models/provider_create_params.rb', line 45

optional :x_idempotency_expiration, String

Instance Method Details

#to_hash ⇒ {



50
# File 'sig/courier/models/provider_create_params.rbs', line 50

def to_hash: -> {