Class: Stripe::Billing::Meter::CreateParams::ValueSettings

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing/meter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(event_payload_key: nil) ⇒ ValueSettings

Returns a new instance of ValueSettings.



99
100
101
# File 'lib/stripe/resources/billing/meter.rb', line 99

def initialize(event_payload_key: nil)
  @event_payload_key = event_payload_key
end

Instance Attribute Details

#event_payload_keyObject

The key in the usage event payload to use as the value for this meter. For example, if the event payload contains usage on a ‘bytes_used` field, then set the event_payload_key to “bytes_used”.



97
98
99
# File 'lib/stripe/resources/billing/meter.rb', line 97

def event_payload_key
  @event_payload_key
end