Class: Pago::V2026_04::Models::CustomerSubscriptionUpdateClear
- 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:) ⇒ CustomerSubscriptionUpdateClear
constructor
A new instance of CustomerSubscriptionUpdateClear.
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:) ⇒ CustomerSubscriptionUpdateClear
Returns a new instance of CustomerSubscriptionUpdateClear.
21482 21483 21484 21485 21486 21487 |
# File 'lib/pago/v2026_04/models.rb', line 21482 def initialize( pending_update: ) super() assign(:pending_update, pending_update) end |
Instance Attribute Details
#pending_update ⇒ nil (readonly)
Clear the pending subscription update.
21480 21481 21482 |
# File 'lib/pago/v2026_04/models.rb', line 21480 def pending_update @pending_update end |
Class Method Details
.from_json(data) ⇒ CustomerSubscriptionUpdateClear?
21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 |
# File 'lib/pago/v2026_04/models.rb', line 21491 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 |