Skip to content

Latest commit

 

History

History
409 lines (288 loc) · 31.5 KB

api.md

File metadata and controls

409 lines (288 loc) · 31.5 KB

Shared Types

from orb.types import (
    AmountDiscount,
    BillingCycleRelativeDate,
    Discount,
    InvoiceLevelDiscount,
    PaginationMetadata,
    PercentageDiscount,
    TrialDiscount,
)

TopLevel

Types:

from orb.types import TopLevelPingResponse

Methods:

Coupons

Types:

from orb.types import Coupon

Methods:

Subscriptions

Methods:

CreditNotes

Types:

from orb.types import CreditNote

Methods:

Customers

Types:

from orb.types import Customer

Methods:

Costs

Types:

from orb.types.customers import CostListResponse, CostListByExternalIDResponse

Methods:

Credits

Types:

from orb.types.customers import CreditListResponse, CreditListByExternalIDResponse

Methods:

Ledger

Types:

from orb.types.customers.credits import (
    LedgerListResponse,
    LedgerCreateEntryResponse,
    LedgerCreateEntryByExternalIDResponse,
    LedgerListByExternalIDResponse,
)

Methods:

TopUps

Types:

from orb.types.customers.credits import (
    TopUpCreateResponse,
    TopUpListResponse,
    TopUpCreateByExternalIDResponse,
    TopUpListByExternalIDResponse,
)

Methods:

BalanceTransactions

Types:

from orb.types.customers import BalanceTransactionCreateResponse, BalanceTransactionListResponse

Methods:

Events

Types:

from orb.types import (
    EventUpdateResponse,
    EventDeprecateResponse,
    EventIngestResponse,
    EventSearchResponse,
)

Methods:

Backfills

Types:

from orb.types.events import (
    BackfillCreateResponse,
    BackfillListResponse,
    BackfillCloseResponse,
    BackfillFetchResponse,
    BackfillRevertResponse,
)

Methods:

Volume

Types:

from orb.types.events import EventVolumes

Methods:

InvoiceLineItems

Types:

from orb.types import InvoiceLineItemCreateResponse

Methods:

Invoices

Types:

from orb.types import Invoice, InvoiceFetchUpcomingResponse

Methods:

Items

Types:

from orb.types import Item

Methods:

Metrics

Types:

from orb.types import BillableMetric

Methods:

Plans

Types:

from orb.types import Plan

Methods:

ExternalPlanID

Methods:

  • client.plans.external_plan_id.update(other_external_plan_id, **params) -> Plan
  • client.plans.external_plan_id.fetch(external_plan_id) -> Plan

Prices

Types:

from orb.types import EvaluatePriceGroup, Price, PriceEvaluateResponse

Methods:

ExternalPriceID

Methods:

  • client.prices.external_price_id.update(external_price_id, **params) -> Price
  • client.prices.external_price_id.fetch(external_price_id) -> Price

Subscriptions

Types:

from orb.types import (
    Subscription,
    SubscriptionUsage,
    Subscriptions,
    SubscriptionCreateResponse,
    SubscriptionCancelResponse,
    SubscriptionFetchCostsResponse,
    SubscriptionFetchScheduleResponse,
    SubscriptionPriceIntervalsResponse,
    SubscriptionSchedulePlanChangeResponse,
    SubscriptionTriggerPhaseResponse,
    SubscriptionUnscheduleCancellationResponse,
    SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse,
    SubscriptionUnschedulePendingPlanChangesResponse,
    SubscriptionUpdateFixedFeeQuantityResponse,
    SubscriptionUpdateTrialResponse,
)

Methods:

Webhooks

Methods:

Alerts

Types:

from orb.types import Alert

Methods:

DimensionalPriceGroups

Types:

from orb.types import DimensionalPriceGroup, DimensionalPriceGroups

Methods:

ExternalDimensionalPriceGroupID

Methods: