Class: Stripe::V2::BillingService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/v2/billing_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from StripeService

#request, #request_stream

Constructor Details

#initialize(requestor) ⇒ BillingService

Returns a new instance of BillingService.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/stripe/services/v2/billing_service.rb', line 9

def initialize(requestor)
  super
  @bill_settings = Stripe::V2::Billing::BillSettingService.new(@requestor)
  @cadences = Stripe::V2::Billing::CadenceService.new(@requestor)
  @collection_settings = Stripe::V2::Billing::CollectionSettingService.new(@requestor)
  @meter_events = Stripe::V2::Billing::MeterEventService.new(@requestor)
  @meter_event_adjustments = Stripe::V2::Billing::MeterEventAdjustmentService.new(@requestor)
  @meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
  @meter_event_stream = Stripe::V2::Billing::MeterEventStreamService.new(@requestor)
  @profiles = Stripe::V2::Billing::ProfileService.new(@requestor)
end

Instance Attribute Details

#bill_settingsObject (readonly)

Returns the value of attribute bill_settings.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def bill_settings
  @bill_settings
end

#cadencesObject (readonly)

Returns the value of attribute cadences.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def cadences
  @cadences
end

#collection_settingsObject (readonly)

Returns the value of attribute collection_settings.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def collection_settings
  @collection_settings
end

#meter_event_adjustmentsObject (readonly)

Returns the value of attribute meter_event_adjustments.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def meter_event_adjustments
  @meter_event_adjustments
end

#meter_event_sessionObject (readonly)

Returns the value of attribute meter_event_session.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def meter_event_session
  @meter_event_session
end

#meter_event_streamObject (readonly)

Returns the value of attribute meter_event_stream.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def meter_event_stream
  @meter_event_stream
end

#meter_eventsObject (readonly)

Returns the value of attribute meter_events.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def meter_events
  @meter_events
end

#profilesObject (readonly)

Returns the value of attribute profiles.



7
8
9
# File 'lib/stripe/services/v2/billing_service.rb', line 7

def profiles
  @profiles
end