Class: Pago::V2026_04::Models::ListResourceDispute
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::ListResourceDispute
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
items: "items",
pagination: "pagination"
}.freeze
- REQUIRED_KEYS =
["items", "pagination"].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
Returns a new instance of ListResourceDispute.
27993
27994
27995
27996
27997
27998
27999
28000
|
# File 'lib/pago/v2026_04/models.rb', line 27993
def initialize(
items:,
pagination:
)
super()
assign(:items, items)
assign(:pagination, )
end
|
Instance Attribute Details
27988
27989
27990
|
# File 'lib/pago/v2026_04/models.rb', line 27988
def items
@items
end
|
27991
27992
27993
|
# File 'lib/pago/v2026_04/models.rb', line 27991
def
@pagination
end
|
Class Method Details
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
|
# File 'lib/pago/v2026_04/models.rb', line 28004
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(
items: (data.key?("items") ? ::Pago::Serde.array(data["items"]) { |item0| Models::Dispute.from_json(item0) } : ::Pago::UNSET),
pagination: (data.key?("pagination") ? Models::Pagination.from_json(data["pagination"]) : ::Pago::UNSET)
),
data
)
end
|