Class: Pago::V2026_04::Models::WebhookCustomerDeletedPayload
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Overview
Sent when a customer is deleted.
Discord & Slack support: Basic
Constant Summary collapse
- JSON_KEYS =
{ type: "type", timestamp: "timestamp", data: "data" }.freeze
- REQUIRED_KEYS =
["type", "timestamp", "data"].freeze
Instance Attribute Summary collapse
- #data ⇒ Object readonly
- #timestamp ⇒ String readonly
- #type ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, timestamp:, data:) ⇒ WebhookCustomerDeletedPayload
constructor
A new instance of WebhookCustomerDeletedPayload.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(type:, timestamp:, data:) ⇒ WebhookCustomerDeletedPayload
Returns a new instance of WebhookCustomerDeletedPayload.
44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 |
# File 'lib/pago/v2026_04/models.rb', line 44975 def initialize( type:, timestamp:, data: ) super() assign(:type, type) assign(:timestamp, ) assign(:data, data) end |
Instance Attribute Details
#data ⇒ Object (readonly)
44973 44974 44975 |
# File 'lib/pago/v2026_04/models.rb', line 44973 def data @data end |
#timestamp ⇒ String (readonly)
44970 44971 44972 |
# File 'lib/pago/v2026_04/models.rb', line 44970 def @timestamp end |
#type ⇒ String (readonly)
44967 44968 44969 |
# File 'lib/pago/v2026_04/models.rb', line 44967 def type @type end |
Class Method Details
.from_json(data) ⇒ WebhookCustomerDeletedPayload?
44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 |
# File 'lib/pago/v2026_04/models.rb', line 44988 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( type: (data.key?("type") ? data["type"] : ::Pago::UNSET), timestamp: (data.key?("timestamp") ? data["timestamp"] : ::Pago::UNSET), data: (data.key?("data") ? Unions::Customer.from_json(data["data"]) : ::Pago::UNSET) ), data ) end |