Class: Pago::V2026_04::Models::CustomerSubscriptionUpdateClear

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  pending_update: "pending_update"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["pending_update"].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

#initialize(pending_update:) ⇒ CustomerSubscriptionUpdateClear

Returns a new instance of CustomerSubscriptionUpdateClear.

Parameters:

  • pending_update: (nil)


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_updatenil (readonly)

Clear the pending subscription update.

Returns:

  • (nil)


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?

Parameters:

  • data (Hash, String, nil)

Returns:



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