Class: Pago::V2026_04::Models::CustomerPaymentMethodCreateRequiresActionResponse

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])
{
  status: "status",
  client_secret: "client_secret"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["status", "client_secret"].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(status:, client_secret:) ⇒ CustomerPaymentMethodCreateRequiresActionResponse

Returns a new instance of CustomerPaymentMethodCreateRequiresActionResponse.

Parameters:

  • status: (String)
  • client_secret: (String)


18625
18626
18627
18628
18629
18630
18631
18632
# File 'lib/pago/v2026_04/models.rb', line 18625

def initialize(
  status:,
  client_secret:
)
  super()
  assign(:status, status)
  assign(:client_secret, client_secret)
end

Instance Attribute Details

#client_secretString (readonly)

Returns:

  • (String)


18623
18624
18625
# File 'lib/pago/v2026_04/models.rb', line 18623

def client_secret
  @client_secret
end

#statusString (readonly)

Returns:

  • (String)


18620
18621
18622
# File 'lib/pago/v2026_04/models.rb', line 18620

def status
  @status
end

Class Method Details

.from_json(data) ⇒ CustomerPaymentMethodCreateRequiresActionResponse?

Parameters:

  • data (Hash, String, nil)

Returns:



18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
# File 'lib/pago/v2026_04/models.rb', line 18636

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(
      status: (data.key?("status") ? data["status"] : ::Pago::UNSET),
      client_secret: (data.key?("client_secret") ? data["client_secret"] : ::Pago::UNSET)
    ),
    data
  )
end