Class: Pago::V2026_04::Models::CustomerEmailUpdateRequest
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ email: "email" }.freeze
- REQUIRED_KEYS =
["email"].freeze
Instance Attribute Summary collapse
- #email ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(email:) ⇒ CustomerEmailUpdateRequest
constructor
A new instance of CustomerEmailUpdateRequest.
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.
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
#email ⇒ String (readonly)
16787 16788 16789 |
# File 'lib/pago/v2026_04/models.rb', line 16787 def email @email end |
Class Method Details
.from_json(data) ⇒ CustomerEmailUpdateRequest?
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 |