Class: Dinie::Events::CreditOfferAvailable
- Inherits:
-
WebhookEventBase
- Object
- Internal::Model
- WebhookEventBase
- Dinie::Events::CreditOfferAvailable
- Defined in:
- lib/dinie/generated/events/credit_offer.rb,
sig/dinie/generated/events/credit_offer.rbs
Constant Summary
Constants inherited from Internal::Model
Internal::Model::REDACTED_ATTRIBUTES
Instance Attribute Summary collapse
-
#data ⇒ CreditOfferEventData
readonly
Returns the value of attribute data.
Attributes inherited from WebhookEventBase
#api_version, #created_at, #delivery_id, #id, #timestamp, #type
Class Method Summary collapse
Methods inherited from Internal::Model
#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h
Constructor Details
This class inherits a constructor from Dinie::Internal::Model
Instance Attribute Details
#data ⇒ CreditOfferEventData (readonly)
Returns the value of attribute data.
22 23 24 |
# File 'sig/dinie/generated/events/credit_offer.rbs', line 22 def data @data end |
Class Method Details
.deserialize(raw) ⇒ CreditOfferAvailable
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/dinie/generated/events/credit_offer.rb', line 29 def self.deserialize(raw) new( api_version: raw[:api_version], created_at: raw[:created_at], data: CreditOfferData.deserialize(raw[:data]), delivery_id: raw[:delivery_id], id: raw[:id], timestamp: raw[:timestamp], type: "credit_offer.available" ) end |