Class: Pago::V2026_04::Models::CustomerBenefitGrantDiscordPropertiesUpdate

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

Returns:

  • (Array[String])
["account_id"].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(account_id:) ⇒ CustomerBenefitGrantDiscordPropertiesUpdate

Returns a new instance of CustomerBenefitGrantDiscordPropertiesUpdate.

Parameters:

  • account_id: (String, nil)


15036
15037
15038
15039
15040
15041
# File 'lib/pago/v2026_04/models.rb', line 15036

def initialize(
  account_id:
)
  super()
  assign(:account_id, )
end

Instance Attribute Details

#account_idString? (readonly)

Returns:

  • (String, nil)


15034
15035
15036
# File 'lib/pago/v2026_04/models.rb', line 15034

def 
  @account_id
end

Class Method Details

.from_json(data) ⇒ CustomerBenefitGrantDiscordPropertiesUpdate?

Parameters:

  • data (Hash, String, nil)

Returns:



15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
# File 'lib/pago/v2026_04/models.rb', line 15045

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