# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Events # This event occurs when a bill setting is updated. class V2BillingBillSettingUpdatedEvent < Stripe::V2::Core::Event def self.lookup_type "v2.billing.bill_setting.updated" end class V2BillingBillSettingUpdatedEventData < Stripe::StripeObject # Timestamp of when the object was updated. attr_reader :updated def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end def self.inner_class_types @inner_class_types = { data: V2BillingBillSettingUpdatedEventData } end attr_reader :data, :related_object # Retrieves the related object from the API. Makes an API request on every call. def fetch_related_object _request( method: :get, path: related_object.url, base_address: :api, opts: { stripe_context: context } ) end end # This event occurs when a bill setting is updated. class V2BillingBillSettingUpdatedEventNotification < Stripe::V2::Core::EventNotification def self.lookup_type "v2.billing.bill_setting.updated" end attr_reader :related_object # Retrieves the BillSetting related to this EventNotification from the Stripe API. Makes an API request on every call. def fetch_related_object resp = @client.raw_request( :get, related_object.url, opts: { stripe_context: context }, usage: ["fetch_related_object"] ) @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) end end end end