Class: Pago::V2026_04::Models::CustomerBenefitGrantSlackSharedChannelUpdate
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::CustomerBenefitGrantSlackSharedChannelUpdate
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
benefit_type: "benefit_type",
properties: "properties"
}.freeze
- REQUIRED_KEYS =
["benefit_type", "properties"].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
Returns a new instance of CustomerBenefitGrantSlackSharedChannelUpdate.
16182
16183
16184
16185
16186
16187
16188
16189
|
# File 'lib/pago/v2026_04/models.rb', line 16182
def initialize(
benefit_type:,
properties:
)
super()
assign(:benefit_type, benefit_type)
assign(:properties, properties)
end
|
Instance Attribute Details
#benefit_type ⇒ String
16177
16178
16179
|
# File 'lib/pago/v2026_04/models.rb', line 16177
def benefit_type
@benefit_type
end
|
16180
16181
16182
|
# File 'lib/pago/v2026_04/models.rb', line 16180
def properties
@properties
end
|
Class Method Details
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
|
# File 'lib/pago/v2026_04/models.rb', line 16193
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(
benefit_type: (data.key?("benefit_type") ? data["benefit_type"] : ::Pago::UNSET),
properties: (data.key?("properties") ? Models::CustomerBenefitGrantSlackSharedChannelPropertiesUpdate.from_json(data["properties"]) : ::Pago::UNSET)
),
data
)
end
|