Class: Stripe::Billing::MeterCreateParams::CustomerMapping
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::MeterCreateParams::CustomerMapping
- Defined in:
- lib/stripe/params/billing/meter_create_params.rb
Instance Attribute Summary collapse
-
#event_payload_key ⇒ Object
The key in the meter event payload to use for mapping the event to a customer.
-
#type ⇒ Object
The method for mapping a meter event to a customer.
Instance Method Summary collapse
-
#initialize(event_payload_key: nil, type: nil) ⇒ CustomerMapping
constructor
A new instance of CustomerMapping.
Methods inherited from RequestParams
Constructor Details
#initialize(event_payload_key: nil, type: nil) ⇒ CustomerMapping
Returns a new instance of CustomerMapping.
13 14 15 16 |
# File 'lib/stripe/params/billing/meter_create_params.rb', line 13 def initialize(event_payload_key: nil, type: nil) @event_payload_key = event_payload_key @type = type end |
Instance Attribute Details
#event_payload_key ⇒ Object
The key in the meter event payload to use for mapping the event to a customer.
9 10 11 |
# File 'lib/stripe/params/billing/meter_create_params.rb', line 9 def event_payload_key @event_payload_key end |
#type ⇒ Object
The method for mapping a meter event to a customer. Must be ‘by_id`.
11 12 13 |
# File 'lib/stripe/params/billing/meter_create_params.rb', line 11 def type @type end |