Class: Stripe::Billing::MeterService::CreateParams::CustomerMapping

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/billing/meter_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(event_payload_key: nil, type: nil) ⇒ CustomerMapping

Returns a new instance of CustomerMapping.



48
49
50
51
# File 'lib/stripe/services/billing/meter_service.rb', line 48

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

Instance Attribute Details

#event_payload_keyObject

The key in the meter event payload to use for mapping the event to a customer.



44
45
46
# File 'lib/stripe/services/billing/meter_service.rb', line 44

def event_payload_key
  @event_payload_key
end

#typeObject

The method for mapping a meter event to a customer. Must be ‘by_id`.



46
47
48
# File 'lib/stripe/services/billing/meter_service.rb', line 46

def type
  @type
end