Class: Pago::V2026_04::Models::ValidationError
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::ValidationError
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
loc: "loc",
msg: "msg",
type: "type",
input: "input",
ctx: "ctx"
}.freeze
- REQUIRED_KEYS =
["loc", "msg", "type"].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(loc:, msg:, type:, input: ::Pago::UNSET, ctx: ::Pago::UNSET) ⇒ ValidationError
Returns a new instance of ValidationError.
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014
44015
44016
44017
|
# File 'lib/pago/v2026_04/models.rb', line 44004
def initialize(
loc:,
msg:,
type:,
input: ::Pago::UNSET,
ctx: ::Pago::UNSET
)
super()
assign(:loc, loc)
assign(:msg, msg)
assign(:type, type)
assign(:input, input)
assign(:ctx, ctx)
end
|
Instance Attribute Details
44002
44003
44004
|
# File 'lib/pago/v2026_04/models.rb', line 44002
def ctx
@ctx
end
|
43999
44000
44001
|
# File 'lib/pago/v2026_04/models.rb', line 43999
def input
@input
end
|
#loc ⇒ Array<String, Integer>
43990
43991
43992
|
# File 'lib/pago/v2026_04/models.rb', line 43990
def loc
@loc
end
|
#msg ⇒ String
43993
43994
43995
|
# File 'lib/pago/v2026_04/models.rb', line 43993
def msg
@msg
end
|
#type ⇒ String
43996
43997
43998
|
# File 'lib/pago/v2026_04/models.rb', line 43996
def type
@type
end
|
Class Method Details
44021
44022
44023
44024
44025
44026
44027
44028
44029
44030
44031
44032
44033
44034
44035
44036
|
# File 'lib/pago/v2026_04/models.rb', line 44021
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(
loc: (data.key?("loc") ? data["loc"] : ::Pago::UNSET),
msg: (data.key?("msg") ? data["msg"] : ::Pago::UNSET),
type: (data.key?("type") ? data["type"] : ::Pago::UNSET),
input: (data.key?("input") ? data["input"] : ::Pago::UNSET),
ctx: (data.key?("ctx") ? Models::Context.from_json(data["ctx"]) : ::Pago::UNSET)
),
data
)
end
|