File: _billing_service.py

package info (click to toggle)
python-stripe 12.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,864 kB
  • sloc: python: 157,573; makefile: 13; sh: 9
file content (34 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_service import StripeService
from stripe.billing._alert_service import AlertService
from stripe.billing._credit_balance_summary_service import (
    CreditBalanceSummaryService,
)
from stripe.billing._credit_balance_transaction_service import (
    CreditBalanceTransactionService,
)
from stripe.billing._credit_grant_service import CreditGrantService
from stripe.billing._meter_event_adjustment_service import (
    MeterEventAdjustmentService,
)
from stripe.billing._meter_event_service import MeterEventService
from stripe.billing._meter_service import MeterService


class BillingService(StripeService):
    def __init__(self, requestor):
        super().__init__(requestor)
        self.alerts = AlertService(self._requestor)
        self.credit_balance_summary = CreditBalanceSummaryService(
            self._requestor,
        )
        self.credit_balance_transactions = CreditBalanceTransactionService(
            self._requestor,
        )
        self.credit_grants = CreditGrantService(self._requestor)
        self.meters = MeterService(self._requestor)
        self.meter_events = MeterEventService(self._requestor)
        self.meter_event_adjustments = MeterEventAdjustmentService(
            self._requestor,
        )