Class: Dodopayments::Models::Customers::EmailLogItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Customers::EmailLogItem
- Defined in:
- lib/dodopayments/models/customers/email_log_item.rb,
sig/dodopayments/models/customers/email_log_item.rbs
Overview
Instance Attribute Summary collapse
-
#category ⇒ String
The group this email belongs to: payments, refunds, subscriptions, dunning_recovery, entitlements or auth.
-
#created_at ⇒ Time
When this email was sent.
-
#email_log_id ⇒ String
Identifies this email.
-
#email_type ⇒ String
What kind of email this is, for example
payment_successful. -
#failure_code ⇒ Symbol, ...
Why the email did not arrive.
-
#failure_reason ⇒ String?
A sentence that explains
failure_code. -
#from ⇒ String?
The address the email was sent from.
-
#has_preview ⇒ Boolean
Whether this email has content to show.
-
#policies ⇒ Dodopayments::Models::Customers::EmailPolicies
What you may do with this email.
-
#recipient ⇒ String?
The address the email reached.
-
#status ⇒ Symbol, Dodopayments::Models::Customers::EmailLogStatus
Where the email got to: sent, delivered, failed, complained or blocked.
-
#subject ⇒ String?
The subject line as it was sent.
Instance Method Summary collapse
-
#initialize(category:, created_at:, email_log_id:, email_type:, has_preview:, policies:, status:, failure_code: nil, failure_reason: nil, from: nil, recipient: nil, subject: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see EmailLogItem for more details.
- #to_hash ⇒ {
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(category:, created_at:, email_log_id:, email_type:, has_preview:, policies:, status:, failure_code: nil, failure_reason: nil, from: nil, recipient: nil, subject: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::Customers::EmailLogItem for more details.
|
|
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 82
|
Instance Attribute Details
#category ⇒ String
The group this email belongs to: payments, refunds, subscriptions, dunning_recovery, entitlements or auth.
13 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 13 required :category, String |
#created_at ⇒ Time
When this email was sent.
19 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 19 required :created_at, Time |
#email_log_id ⇒ String
Identifies this email. Use it to read the body or to send it again.
25 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 25 required :email_log_id, String |
#email_type ⇒ String
What kind of email this is, for example payment_successful.
31 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 31 required :email_type, String |
#failure_code ⇒ Symbol, ...
Why the email did not arrive. It is null unless the email failed.
56 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 56 optional :failure_code, enum: -> { Dodopayments::Customers::EmailFailureCode }, nil?: true |
#failure_reason ⇒ String?
A sentence that explains failure_code. It is null unless the email failed.
62 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 62 optional :failure_reason, String, nil?: true |
#from ⇒ String?
The address the email was sent from.
68 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 68 optional :from, String, nil?: true |
#has_preview ⇒ Boolean
Whether this email has content to show. The content endpoint can still refuse, because the content is removed after 180 days.
38 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 38 required :has_preview, Dodopayments::Internal::Type::Boolean |
#policies ⇒ Dodopayments::Models::Customers::EmailPolicies
What you may do with this email.
44 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 44 required :policies, -> { Dodopayments::Customers::EmailPolicies } |
#recipient ⇒ String?
The address the email reached.
74 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 74 optional :recipient, String, nil?: true |
#status ⇒ Symbol, Dodopayments::Models::Customers::EmailLogStatus
Where the email got to: sent, delivered, failed, complained or blocked.
50 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 50 required :status, enum: -> { Dodopayments::Customers::EmailLogStatus } |
#subject ⇒ String?
The subject line as it was sent. Empty until the provider replicates.
80 |
# File 'lib/dodopayments/models/customers/email_log_item.rb', line 80 optional :subject, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
60 |
# File 'sig/dodopayments/models/customers/email_log_item.rbs', line 60
def to_hash: -> {
|