Class: Lithic::Models::AuthRules::MerchantLockParameters::Merchant

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/auth_rules/merchant_lock_parameters.rb

Instance Attribute Summary collapse

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(comment: nil, descriptor: nil, merchant_id: nil) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::AuthRules::MerchantLockParameters::Merchant for more details.

Represents a specific merchant lock based on their ID or descriptor. Each merchant object allows transaction rules to work at a granular level and requires at least one of merchant_id or descriptor.

Parameters:

  • comment (String) (defaults to: nil)

    A comment or explanation about the merchant, used internally for rule management

  • descriptor (String) (defaults to: nil)

    Short description of the merchant, often used to provide more human-readable con

  • merchant_id (String) (defaults to: nil)

    Unique alphanumeric identifier for the payment card acceptor (merchant). This at



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/lithic/models/auth_rules/merchant_lock_parameters.rb', line 21

class Merchant < Lithic::Internal::Type::BaseModel
  # @!attribute comment
  #   A comment or explanation about the merchant, used internally for rule management
  #   purposes.
  #
  #   @return [String, nil]
  optional :comment, String

  # @!attribute descriptor
  #   Short description of the merchant, often used to provide more human-readable
  #   context about the transaction merchant. This is typically the name or label
  #   shown on transaction summaries.
  #
  #   @return [String, nil]
  optional :descriptor, String

  # @!attribute merchant_id
  #   Unique alphanumeric identifier for the payment card acceptor (merchant). This
  #   attribute specifies the merchant entity that will be locked or referenced for
  #   authorization rules.
  #
  #   @return [String, nil]
  optional :merchant_id, String

  # @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
  #   Some parameter documentations has been truncated, see
  #   {Lithic::Models::AuthRules::MerchantLockParameters::Merchant} for more details.
  #
  #   Represents a specific merchant lock based on their ID or descriptor. Each
  #   merchant object allows transaction rules to work at a granular level and
  #   requires at least one of merchant_id or descriptor.
  #
  #   @param comment [String] A comment or explanation about the merchant, used internally for rule management
  #
  #   @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
  #
  #   @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
end

Instance Attribute Details

#commentString?

A comment or explanation about the merchant, used internally for rule management purposes.

Returns:

  • (String, nil)


27
# File 'lib/lithic/models/auth_rules/merchant_lock_parameters.rb', line 27

optional :comment, String

#descriptorString?

Short description of the merchant, often used to provide more human-readable context about the transaction merchant. This is typically the name or label shown on transaction summaries.

Returns:

  • (String, nil)


35
# File 'lib/lithic/models/auth_rules/merchant_lock_parameters.rb', line 35

optional :descriptor, String

#merchant_idString?

Unique alphanumeric identifier for the payment card acceptor (merchant). This attribute specifies the merchant entity that will be locked or referenced for authorization rules.

Returns:

  • (String, nil)


43
# File 'lib/lithic/models/auth_rules/merchant_lock_parameters.rb', line 43

optional :merchant_id, String