Class: Pago::V2026_04::Models::CustomerUpdatedMetadata
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::CustomerUpdatedMetadata
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
customer_id: "customer_id",
customer_email: "customer_email",
customer_name: "customer_name",
customer_external_id: "customer_external_id",
updated_fields: "updated_fields"
}.freeze
- REQUIRED_KEYS =
["customer_id", "customer_email", "customer_name", "customer_external_id", "updated_fields"].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(customer_id:, customer_email:, customer_name:, customer_external_id:, updated_fields:) ⇒ CustomerUpdatedMetadata
Returns a new instance of CustomerUpdatedMetadata.
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
|
# File 'lib/pago/v2026_04/models.rb', line 22241
def initialize(
customer_id:,
customer_email:,
customer_name:,
customer_external_id:,
updated_fields:
)
super()
assign(:customer_id, customer_id)
assign(:customer_email, customer_email)
assign(:customer_name, customer_name)
assign(:customer_external_id, customer_external_id)
assign(:updated_fields, updated_fields)
end
|
Instance Attribute Details
#customer_email ⇒ String?
22230
22231
22232
|
# File 'lib/pago/v2026_04/models.rb', line 22230
def customer_email
@customer_email
end
|
#customer_external_id ⇒ String?
22236
22237
22238
|
# File 'lib/pago/v2026_04/models.rb', line 22236
def customer_external_id
@customer_external_id
end
|
#customer_id ⇒ String
22227
22228
22229
|
# File 'lib/pago/v2026_04/models.rb', line 22227
def customer_id
@customer_id
end
|
#customer_name ⇒ String?
22233
22234
22235
|
# File 'lib/pago/v2026_04/models.rb', line 22233
def customer_name
@customer_name
end
|
22239
22240
22241
|
# File 'lib/pago/v2026_04/models.rb', line 22239
def updated_fields
@updated_fields
end
|
Class Method Details
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
|
# File 'lib/pago/v2026_04/models.rb', line 22258
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(
customer_id: (data.key?("customer_id") ? data["customer_id"] : ::Pago::UNSET),
customer_email: (data.key?("customer_email") ? data["customer_email"] : ::Pago::UNSET),
customer_name: (data.key?("customer_name") ? data["customer_name"] : ::Pago::UNSET),
customer_external_id: (data.key?("customer_external_id") ? data["customer_external_id"] : ::Pago::UNSET),
updated_fields: (data.key?("updated_fields") ? Models::CustomerUpdatedFields.from_json(data["updated_fields"]) : ::Pago::UNSET)
),
data
)
end
|