stripe-ruby/lib/stripe/resources/v2/billing/meter_event_adjustment.rb
2025-04-22 21:53:04 +00:00

37 lines
1.4 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module V2
module Billing
class MeterEventAdjustment < APIResource
OBJECT_NAME = "v2.billing.meter_event_adjustment"
def self.object_name
"v2.billing.meter_event_adjustment"
end
class Cancel < Stripe::StripeObject
# Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
attr_reader :identifier
end
# Specifies which event to cancel.
attr_reader :cancel
# The time the adjustment was created.
attr_reader :created
# The name of the meter event. Corresponds with the `event_name` field on a meter.
attr_reader :event_name
# The unique id of this meter event adjustment.
attr_reader :id
# String representing the object's type. Objects of the same type share the same value of the object field.
attr_reader :object
# Open Enum. The meter event adjustments status.
attr_reader :status
# Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
attr_reader :type
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
attr_reader :livemode
end
end
end
end