Class: Pago::V2026_04::Models::SubscriptionLocked
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::SubscriptionLocked
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 SubscriptionLocked.
40763
40764
40765
40766
40767
40768
40769
40770
|
# File 'lib/pago/v2026_04/models.rb', line 40763
def initialize(
error:,
detail:
)
super()
assign(:error, error)
assign(:detail, detail)
end
|
Instance Attribute Details
#detail ⇒ String
40761
40762
40763
|
# File 'lib/pago/v2026_04/models.rb', line 40761
def detail
@detail
end
|
#error ⇒ String
40758
40759
40760
|
# File 'lib/pago/v2026_04/models.rb', line 40758
def error
@error
end
|
Class Method Details
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
|
# File 'lib/pago/v2026_04/models.rb', line 40774
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
|