Class: Stripe::BillingService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/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.



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

def initialize(requestor)
  super(requestor)
  @alerts = Stripe::Billing::AlertService.new(@requestor)
  @credit_balance_summary = Stripe::Billing::CreditBalanceSummaryService.new(@requestor)
  @credit_balance_transactions = Stripe::Billing::CreditBalanceTransactionService
                                 .new(@requestor)
  @credit_grants = Stripe::Billing::CreditGrantService.new(@requestor)
  @meters = Stripe::Billing::MeterService.new(@requestor)
  @meter_events = Stripe::Billing::MeterEventService.new(@requestor)
  @meter_event_adjustments = Stripe::Billing::MeterEventAdjustmentService.new(@requestor)
end

Instance Attribute Details

#alertsObject (readonly)

Returns the value of attribute alerts.



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

def alerts
  @alerts
end

#credit_balance_summaryObject (readonly)

Returns the value of attribute credit_balance_summary.



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

def credit_balance_summary
  @credit_balance_summary
end

#credit_balance_transactionsObject (readonly)

Returns the value of attribute credit_balance_transactions.



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

def credit_balance_transactions
  @credit_balance_transactions
end

#credit_grantsObject (readonly)

Returns the value of attribute credit_grants.



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

def credit_grants
  @credit_grants
end

#meter_event_adjustmentsObject (readonly)

Returns the value of attribute meter_event_adjustments.



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

def meter_event_adjustments
  @meter_event_adjustments
end

#meter_eventsObject (readonly)

Returns the value of attribute meter_events.



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

def meter_events
  @meter_events
end

#metersObject (readonly)

Returns the value of attribute meters.



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

def meters
  @meters
end