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
19
# File 'lib/stripe/services/billing_service.rb', line 8

def initialize(requestor)
  super
  @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)
  @feedback_options = Stripe::Billing::FeedbackOptionService.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

#alerts ⇒ Object (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_summary ⇒ Object (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_transactions ⇒ Object (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_grants ⇒ Object (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

#feedback_options ⇒ Object (readonly)

Returns the value of attribute feedback_options.



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

def feedback_options
  @feedback_options
end

#meter_event_adjustments ⇒ Object (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_events ⇒ Object (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

#meters ⇒ Object (readonly)

Returns the value of attribute meters.



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

def meters
  @meters
end