Class: Pago::V2026_04::Models::CustomerSeatClaimResponse

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

Overview

Response after successfully claiming a seat.

Constant Summary collapse

JSON_KEYS =

Returns:

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

Returns:

  • (Array[String])
["seat", "customer_session_token"].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(seat:, customer_session_token:) ⇒ CustomerSeatClaimResponse

Returns a new instance of CustomerSeatClaimResponse.

Parameters:



19686
19687
19688
19689
19690
19691
19692
19693
# File 'lib/pago/v2026_04/models.rb', line 19686

def initialize(
  seat:,
  customer_session_token:
)
  super()
  assign(:seat, seat)
  assign(:customer_session_token, customer_session_token)
end

Instance Attribute Details

#customer_session_tokenString (readonly)

Session token for immediate customer portal access

Returns:

  • (String)


19684
19685
19686
# File 'lib/pago/v2026_04/models.rb', line 19684

def customer_session_token
  @customer_session_token
end

#seatModels::CustomerSeat (readonly)



19680
19681
19682
# File 'lib/pago/v2026_04/models.rb', line 19680

def seat
  @seat
end

Class Method Details

.from_json(data) ⇒ CustomerSeatClaimResponse?

Parameters:

  • data (Hash, String, nil)

Returns:



19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
# File 'lib/pago/v2026_04/models.rb', line 19697

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(
      seat: (data.key?("seat") ? Models::CustomerSeat.from_json(data["seat"]) : ::Pago::UNSET),
      customer_session_token: (data.key?("customer_session_token") ? data["customer_session_token"] : ::Pago::UNSET)
    ),
    data
  )
end