Class: Dodopayments::Models::Blocklist::CreateBlockedCustomerRequest::BlocklistCustomersBlockByEmail

Inherits:
BlockByEmail show all
Defined in:
lib/dodopayments/models/blocklist/create_blocked_customer_request.rb,
sig/dodopayments/models/blocklist/create_blocked_customer_request.rbs

Instance Attribute Summary collapse

Attributes inherited from BlockByEmail

#email

Instance Method Summary collapse

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(reason: nil, source: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::Blocklist::CreateBlockedCustomerRequest::BlocklistCustomersBlockByEmail for more details.

Parameters:

  • reason (String, nil) (defaults to: nil)

    Why the merchant blocked this customer. The entry page shows it.

  • source (Symbol, Dodopayments::Models::Blocklist::BlockedCustomerSource, nil) (defaults to: nil)

    Screen the merchant blocked from. Ignored for an API-key caller, whose



# File 'lib/dodopayments/models/blocklist/create_blocked_customer_request.rb', line 51

Instance Attribute Details

#reasonString?

Why the merchant blocked this customer. The entry page shows it.

Parameters:

  • _ (String, nil)

Returns:

  • (String, nil)


42
# File 'lib/dodopayments/models/blocklist/create_blocked_customer_request.rb', line 42

optional :reason, String, nil?: true

#sourceSymbol, ...

Screen the merchant blocked from. Ignored for an API-key caller, whose entry always records api. A dashboard caller that omits it records blocklist_page.



49
# File 'lib/dodopayments/models/blocklist/create_blocked_customer_request.rb', line 49

optional :source, enum: -> { Dodopayments::Blocklist::BlockedCustomerSource }, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


61
# File 'sig/dodopayments/models/blocklist/create_blocked_customer_request.rbs', line 61

def to_hash: -> {