Class: Pago::V2026_04::Models::CustomerEmailUpdateVerifyRequest
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ token: "token" }.freeze
- REQUIRED_KEYS =
["token"].freeze
Instance Attribute Summary collapse
- #token ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(token:) ⇒ CustomerEmailUpdateVerifyRequest
constructor
A new instance of CustomerEmailUpdateVerifyRequest.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(token:) ⇒ CustomerEmailUpdateVerifyRequest
Returns a new instance of CustomerEmailUpdateVerifyRequest.
16821 16822 16823 16824 16825 16826 |
# File 'lib/pago/v2026_04/models.rb', line 16821 def initialize( token: ) super() assign(:token, token) end |
Instance Attribute Details
#token ⇒ String (readonly)
16819 16820 16821 |
# File 'lib/pago/v2026_04/models.rb', line 16819 def token @token end |
Class Method Details
.from_json(data) ⇒ CustomerEmailUpdateVerifyRequest?
16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 |
# File 'lib/pago/v2026_04/models.rb', line 16830 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( token: (data.key?("token") ? data["token"] : ::Pago::UNSET) ), data ) end |