Class: MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert
- Defined in:
- lib/metronome_sdk/models/v1/customers/customer_alert.rb
Overview
Defined Under Namespace
Modules: Status, Type Classes: CustomFieldFilter, GroupKeyFilter, GroupValue
Instance Attribute Summary collapse
-
#credit_grant_type_filters ⇒ Array<String>?
An array of strings, representing a way to filter the credit grant this threshold notification applies to, by looking at the credit_grant_type field on the credit grant.
- #credit_type ⇒ MetronomeSDK::Models::CreditTypeData?
-
#custom_field_filters ⇒ Array<MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::CustomFieldFilter>?
A list of custom field filters for notification types that support advanced filtering.
-
#group_key_filter ⇒ MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::GroupKeyFilter?
Scopes threshold notification evaluation to a specific presentation group key on individual line items.
-
#group_values ⇒ Array<MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::GroupValue>?
Only present for ‘spend_threshold_reached` notifications.
-
#id ⇒ String
the Metronome ID of the threshold notification.
-
#invoice_types_filter ⇒ Array<String>?
Only supported for invoice_total_reached threshold notifications.
-
#name ⇒ String
Name of the threshold notification.
-
#status ⇒ Symbol, MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::Status
Status of the threshold notification.
-
#threshold ⇒ Float
Threshold value of the notification policy.
-
#type ⇒ Symbol, MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::Type
Type of the threshold notification.
-
#uniqueness_key ⇒ String?
Prevents the creation of duplicates.
-
#updated_at ⇒ Time
Timestamp for when the threshold notification was last updated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: , value: ) ⇒ Object
constructor
Scopes threshold notification evaluation to a specific presentation group key on individual line items.
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(key: , value: ) ⇒ Object
Scopes threshold notification evaluation to a specific presentation group key on individual line items. Only present for spend notifications.
|
|
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 129
|
Instance Attribute Details
#credit_grant_type_filters ⇒ Array<String>?
An array of strings, representing a way to filter the credit grant this threshold notification applies to, by looking at the credit_grant_type field on the credit grant. This field is only defined for CreditPercentage and CreditBalance notifications
84 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 84 optional :credit_grant_type_filters, MetronomeSDK::Internal::Type::ArrayOf[String] |
#credit_type ⇒ MetronomeSDK::Models::CreditTypeData?
89 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 89 optional :credit_type, -> { MetronomeSDK::CreditTypeData }, nil?: true |
#custom_field_filters ⇒ Array<MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::CustomFieldFilter>?
A list of custom field filters for notification types that support advanced filtering
96 97 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 96 optional :custom_field_filters, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::CustomerAlert::Alert::CustomFieldFilter] } |
#group_key_filter ⇒ MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::GroupKeyFilter?
Scopes threshold notification evaluation to a specific presentation group key on individual line items. Only present for spend notifications.
104 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 104 optional :group_key_filter, -> { MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupKeyFilter } |
#group_values ⇒ Array<MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::GroupValue>?
Only present for ‘spend_threshold_reached` notifications. Scope notification to a specific group key on individual line items.
111 112 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 111 optional :group_values, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupValue] } |
#id ⇒ String
the Metronome ID of the threshold notification
45 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 45 required :id, String |
#invoice_types_filter ⇒ Array<String>?
Only supported for invoice_total_reached threshold notifications. A list of invoice types to evaluate.
119 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 119 optional :invoice_types_filter, MetronomeSDK::Internal::Type::ArrayOf[String] |
#name ⇒ String
Name of the threshold notification
51 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 51 required :name, String |
#status ⇒ Symbol, MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::Status
Status of the threshold notification
57 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 57 required :status, enum: -> { MetronomeSDK::V1::Customers::CustomerAlert::Alert::Status } |
#threshold ⇒ Float
Threshold value of the notification policy
63 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 63 required :threshold, Float |
#type ⇒ Symbol, MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::Type
Type of the threshold notification
69 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 69 required :type, enum: -> { MetronomeSDK::V1::Customers::CustomerAlert::Alert::Type } |
#uniqueness_key ⇒ String?
Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.
127 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 127 optional :uniqueness_key, String |
#updated_at ⇒ Time
Timestamp for when the threshold notification was last updated
75 |
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 75 required :updated_at, Time |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/metronome_sdk/models/v1/customers/customer_alert.rb', line 169
|