Class: Pago::V2026_04::Models::ListResourceCustomerWallet
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::ListResourceCustomerWallet
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 ListResourceCustomerWallet.
27915
27916
27917
27918
27919
27920
27921
27922
|
# File 'lib/pago/v2026_04/models.rb', line 27915
def initialize(
items:,
pagination:
)
super()
assign(:items, items)
assign(:pagination, )
end
|
Instance Attribute Details
27910
27911
27912
|
# File 'lib/pago/v2026_04/models.rb', line 27910
def items
@items
end
|
27913
27914
27915
|
# File 'lib/pago/v2026_04/models.rb', line 27913
def
@pagination
end
|
Class Method Details
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
|
# File 'lib/pago/v2026_04/models.rb', line 27926
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::CustomerWallet.from_json(item0) } : ::Pago::UNSET),
pagination: (data.key?("pagination") ? Models::Pagination.from_json(data["pagination"]) : ::Pago::UNSET)
),
data
)
end
|