Class: Pago::V2026_04::Models::WebhookOrganizationUpdatedPayload
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Overview
Sent when a organization is updated.
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 ⇒ Models::Organization readonly
- #timestamp ⇒ String readonly
- #type ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, timestamp:, data:) ⇒ WebhookOrganizationUpdatedPayload
constructor
A new instance of WebhookOrganizationUpdatedPayload.
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:) ⇒ WebhookOrganizationUpdatedPayload
Returns a new instance of WebhookOrganizationUpdatedPayload.
45651 45652 45653 45654 45655 45656 45657 45658 45659 45660 |
# File 'lib/pago/v2026_04/models.rb', line 45651 def initialize( type:, timestamp:, data: ) super() assign(:type, type) assign(:timestamp, ) assign(:data, data) end |
Instance Attribute Details
#data ⇒ Models::Organization (readonly)
45649 45650 45651 |
# File 'lib/pago/v2026_04/models.rb', line 45649 def data @data end |
#timestamp ⇒ String (readonly)
45646 45647 45648 |
# File 'lib/pago/v2026_04/models.rb', line 45646 def @timestamp end |
#type ⇒ String (readonly)
45643 45644 45645 |
# File 'lib/pago/v2026_04/models.rb', line 45643 def type @type end |
Class Method Details
.from_json(data) ⇒ WebhookOrganizationUpdatedPayload?
45664 45665 45666 45667 45668 45669 45670 45671 45672 45673 45674 45675 45676 45677 |
# File 'lib/pago/v2026_04/models.rb', line 45664 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") ? Models::Organization.from_json(data["data"]) : ::Pago::UNSET) ), data ) end |