Class: Courier::Models::ProviderCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::ProviderCreateParams
- 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
Instance Attribute Summary collapse
-
#alias_ ⇒ String?
Optional alias for this configuration.
- #idempotency_key ⇒ String?
-
#provider ⇒ String
The provider key identifying the type (e.g. "sendgrid", "twilio").
-
#settings ⇒ Hash{Symbol=>Object}?
Provider-specific settings (snake_case keys).
-
#title ⇒ String?
Optional display title.
- #x_idempotency_expiration ⇒ String?
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(provider:, alias_: nil, settings: nil, title: nil, idempotency_key: nil, x_idempotency_expiration: nil, request_options: {}) ⇒ ProviderCreateParams
constructor
Some parameter documentations has been truncated, see ProviderCreateParams for more details.
- #to_hash ⇒ { provider: String, alias_: String, settings: ::Hash[Symbol, top], title: String, idempotency_key: String, x_idempotency_expiration: String, request_options: Courier::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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: {}) ⇒ ProviderCreateParams
Some parameter documentations has been truncated, see Courier::Models::ProviderCreateParams for more details.
|
|
# File 'lib/courier/models/provider_create_params.rb', line 57
|
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?
50 |
# File 'lib/courier/models/provider_create_params.rb', line 50 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. Set
rate_limit to cap this configuration's send rate:
{ "rate": <number greater than 0>, "period": "second" | "minute" | "hour" },
e.g. { "rate": 0.5, "period": "minute" } for one send every 2 minutes. The
interval between sends (period divided by rate) must be from 1 millisecond
to 12 hours, otherwise the request returns a 400 InvalidRateLimit error. The
limit applies per configuration and per environment (a test-environment
configuration has its own limit). Sends above the rate are queued, not dropped,
and changes take up to 60 seconds to apply. It has no effect on observability or
CDP integrations, which do not send messages. Omit it or set it to null for no
limit.
39 |
# File 'lib/courier/models/provider_create_params.rb', line 39 optional :settings, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown] |
#title ⇒ String?
Optional display title. Omit to use "Default Configuration".
45 |
# File 'lib/courier/models/provider_create_params.rb', line 45 optional :title, String |
#x_idempotency_expiration ⇒ String?
55 |
# File 'lib/courier/models/provider_create_params.rb', line 55 optional :x_idempotency_expiration, String |
Instance Method Details
#to_hash ⇒ { provider: String, alias_: String, settings: ::Hash[Symbol, top], title: String, idempotency_key: String, x_idempotency_expiration: String, request_options: Courier::RequestOptions }
50 51 52 53 54 55 56 57 58 |
# File 'sig/courier/models/provider_create_params.rbs', line 50
def to_hash: -> {
provider: String,
alias_: String,
settings: ::Hash[Symbol, top],
title: String,
idempotency_key: String,
x_idempotency_expiration: String,
request_options: Courier::RequestOptions
}
|