Class: PreludeSDK::Models::WatchEvaluateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PreludeSDK::Models::WatchEvaluateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/prelude_sdk/models/watch_evaluate_params.rb,
sig/prelude_sdk/models/watch_evaluate_params.rbs
Overview
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::PreludeSDK
Instance Attribute Summary collapse
-
#attributes ⇒ Hash{Symbol=>String}?
Values for the attributes the flow's recipes declare, keyed without the
attr.namespace a rule uses to reference them. -
#dispatch_id ⇒ String?
The identifier of the dispatch that came from the front-end SDK.
-
#flow_id ⇒ String
The flow to evaluate.
-
#signals ⇒ PreludeSDK::Models::Signals?
The signals used for anti-fraud.
-
#target ⇒ PreludeSDK::Models::Target
The identifier to score — a phone number or email address.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(flow_id:, target:, attributes: nil, dispatch_id: nil, signals: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see WatchEvaluateParams for more details.
- #to_hash ⇒ {
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(flow_id:, target:, attributes: nil, dispatch_id: nil, signals: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see PreludeSDK::Models::WatchEvaluateParams for more details.
|
|
# File 'lib/prelude_sdk/models/watch_evaluate_params.rb', line 51
|
Instance Attribute Details
#attributes ⇒ Hash{Symbol=>String}?
Values for the attributes the flow's recipes declare, keyed without the attr.
namespace a rule uses to reference them.
An attribute a recipe declares and this request omits is treated as missing
evidence, not as an empty value: the rules reading it report NOT_EVALUATED
rather than being scored as though the condition were false. A key no recipe in
the flow declares is ignored rather than rejected, so one payload can serve
flows that read different attributes.
34 |
# File 'lib/prelude_sdk/models/watch_evaluate_params.rb', line 34 optional :attributes, PreludeSDK::Internal::Type::HashOf[String] |
#dispatch_id ⇒ String?
The identifier of the dispatch that came from the front-end SDK. Signals it carries fill in anything the request did not state; the request wins where both supply a value.
42 |
# File 'lib/prelude_sdk/models/watch_evaluate_params.rb', line 42 optional :dispatch_id, String |
#flow_id ⇒ String
The flow to evaluate. A flow names the moment you are guarding and selects the recipes that run.
15 |
# File 'lib/prelude_sdk/models/watch_evaluate_params.rb', line 15 required :flow_id, String |
#signals ⇒ PreludeSDK::Models::Signals?
The signals used for anti-fraud. For more details, refer to Signals.
49 |
# File 'lib/prelude_sdk/models/watch_evaluate_params.rb', line 49 optional :signals, -> { PreludeSDK::Signals } |
#target ⇒ PreludeSDK::Models::Target
The identifier to score — a phone number or email address.
21 |
# File 'lib/prelude_sdk/models/watch_evaluate_params.rb', line 21 required :target, -> { PreludeSDK::Target } |
Instance Method Details
#to_hash ⇒ {
42 |
# File 'sig/prelude_sdk/models/watch_evaluate_params.rbs', line 42
def to_hash: -> {
|