Class: Pago::V2026_04::Models::CustomerEmailUpdateRequest

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  email: "email"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["email"].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw

Constructor Details

#initialize(email:) ⇒ CustomerEmailUpdateRequest

Returns a new instance of CustomerEmailUpdateRequest.

Parameters:

  • email: (String)


16789
16790
16791
16792
16793
16794
# File 'lib/pago/v2026_04/models.rb', line 16789

def initialize(
  email:
)
  super()
  assign(:email, email)
end

Instance Attribute Details

#emailString (readonly)

Returns:

  • (String)


16787
16788
16789
# File 'lib/pago/v2026_04/models.rb', line 16787

def email
  @email
end

Class Method Details

.from_json(data) ⇒ CustomerEmailUpdateRequest?

Parameters:

  • data (Hash, String, nil)

Returns:



16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
# File 'lib/pago/v2026_04/models.rb', line 16798

def self.from_json(data)
  data = ::JSON.parse(data) if data.is_a?(String)
  data = ::Pago::Serde.object(data)
  return nil if data.nil?

  wrap_raw(
    new(
      email: (data.key?("email") ? data["email"] : ::Pago::UNSET)
    ),
    data
  )
end