Class: Pago::V2026_04::Models::PaymentMethodSetupFailed
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::PaymentMethodSetupFailed
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
error: "error",
detail: "detail"
}.freeze
- REQUIRED_KEYS =
["error", "detail"].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 PaymentMethodSetupFailed.
35780
35781
35782
35783
35784
35785
35786
35787
|
# File 'lib/pago/v2026_04/models.rb', line 35780
def initialize(
error:,
detail:
)
super()
assign(:error, error)
assign(:detail, detail)
end
|
Instance Attribute Details
#detail ⇒ String
35778
35779
35780
|
# File 'lib/pago/v2026_04/models.rb', line 35778
def detail
@detail
end
|
#error ⇒ String
35775
35776
35777
|
# File 'lib/pago/v2026_04/models.rb', line 35775
def error
@error
end
|
Class Method Details
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
|
# File 'lib/pago/v2026_04/models.rb', line 35791
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(
error: (data.key?("error") ? data["error"] : ::Pago::UNSET),
detail: (data.key?("detail") ? data["detail"] : ::Pago::UNSET)
),
data
)
end
|