class

Stripe::NotificationEventData

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, object : JSON::Any | Nil = nil, previous_attributes : JSON::Any | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
object

Object containing the API resource relevant to the event. For example, an invoice.created event will have a full invoice object as the value of the object key.

Source
object=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned

Source
previous_attributes

Object containing the names of the updated attributes and their values prior to the event (only included in events of type *.updated). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.

Source
previous_attributes=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] previous_attributes Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source