Class: Pago::V2026_04::Models::SubscriptionUpdateClear
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ pending_update: "pending_update" }.freeze
- REQUIRED_KEYS =
["pending_update"].freeze
Instance Attribute Summary collapse
-
#pending_update ⇒ nil
readonly
Clear the pending subscription update.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pending_update:) ⇒ SubscriptionUpdateClear
constructor
A new instance of SubscriptionUpdateClear.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(pending_update:) ⇒ SubscriptionUpdateClear
Returns a new instance of SubscriptionUpdateClear.
42751 42752 42753 42754 42755 42756 |
# File 'lib/pago/v2026_04/models.rb', line 42751 def initialize( pending_update: ) super() assign(:pending_update, pending_update) end |
Instance Attribute Details
#pending_update ⇒ nil (readonly)
Clear the pending subscription update. Set to null to remove scheduled changes.
42749 42750 42751 |
# File 'lib/pago/v2026_04/models.rb', line 42749 def pending_update @pending_update end |
Class Method Details
.from_json(data) ⇒ SubscriptionUpdateClear?
42760 42761 42762 42763 42764 42765 42766 42767 42768 42769 42770 42771 |
# File 'lib/pago/v2026_04/models.rb', line 42760 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( pending_update: (data.key?("pending_update") ? data["pending_update"] : ::Pago::UNSET) ), data ) end |