Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions api.md

Large diffs are not rendered by default.

92 changes: 92 additions & 0 deletions meteroid/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,38 @@
from .client import AsyncMeteroid, Meteroid

if t.TYPE_CHECKING:
from ._pages import (
AddOnsListPage,
AsyncAddOnsListPage,
AsyncBatchJobsListFailuresPage,
AsyncBatchJobsListPage,
AsyncCouponsListPage,
AsyncCreditNotesListPage,
AsyncCustomersListPage,
AsyncCustomPropertiesListCustomPropertyDefinitionsPage,
AsyncFeaturesListPage,
AsyncInvoicesListPage,
AsyncMetricsListPage,
AsyncPlansListPage,
AsyncPlansListVersionsPage,
AsyncProductFamiliesListPage,
AsyncProductsListPage,
AsyncSubscriptionsListPage,
BatchJobsListFailuresPage,
BatchJobsListPage,
CouponsListPage,
CreditNotesListPage,
CustomersListPage,
CustomPropertiesListCustomPropertyDefinitionsPage,
FeaturesListPage,
InvoicesListPage,
MetricsListPage,
PlansListPage,
PlansListVersionsPage,
ProductFamiliesListPage,
ProductsListPage,
SubscriptionsListPage,
)
from .add_ons import AddOns, AsyncAddOns
from .batch_jobs import AsyncBatchJobs, BatchJobs
from .checkout_sessions import AsyncCheckoutSessions, CheckoutSessions
Expand Down Expand Up @@ -101,6 +133,36 @@
"Subscriptions": "subscriptions",
"AsyncUsage": "usage",
"Usage": "usage",
"AsyncAddOnsListPage": "_pages",
"AddOnsListPage": "_pages",
"AsyncBatchJobsListPage": "_pages",
"BatchJobsListPage": "_pages",
"AsyncBatchJobsListFailuresPage": "_pages",
"BatchJobsListFailuresPage": "_pages",
"AsyncCouponsListPage": "_pages",
"CouponsListPage": "_pages",
"AsyncCreditNotesListPage": "_pages",
"CreditNotesListPage": "_pages",
"AsyncCustomPropertiesListCustomPropertyDefinitionsPage": "_pages",
"CustomPropertiesListCustomPropertyDefinitionsPage": "_pages",
"AsyncCustomersListPage": "_pages",
"CustomersListPage": "_pages",
"AsyncFeaturesListPage": "_pages",
"FeaturesListPage": "_pages",
"AsyncInvoicesListPage": "_pages",
"InvoicesListPage": "_pages",
"AsyncMetricsListPage": "_pages",
"MetricsListPage": "_pages",
"AsyncPlansListPage": "_pages",
"PlansListPage": "_pages",
"AsyncPlansListVersionsPage": "_pages",
"PlansListVersionsPage": "_pages",
"AsyncProductFamiliesListPage": "_pages",
"ProductFamiliesListPage": "_pages",
"AsyncProductsListPage": "_pages",
"ProductsListPage": "_pages",
"AsyncSubscriptionsListPage": "_pages",
"SubscriptionsListPage": "_pages",
}


Expand Down Expand Up @@ -185,4 +247,34 @@ def __dir__() -> list[str]:
"Subscriptions",
"AsyncUsage",
"Usage",
"AsyncAddOnsListPage",
"AddOnsListPage",
"AsyncBatchJobsListPage",
"BatchJobsListPage",
"AsyncBatchJobsListFailuresPage",
"BatchJobsListFailuresPage",
"AsyncCouponsListPage",
"CouponsListPage",
"AsyncCreditNotesListPage",
"CreditNotesListPage",
"AsyncCustomPropertiesListCustomPropertyDefinitionsPage",
"CustomPropertiesListCustomPropertyDefinitionsPage",
"AsyncCustomersListPage",
"CustomersListPage",
"AsyncFeaturesListPage",
"FeaturesListPage",
"AsyncInvoicesListPage",
"InvoicesListPage",
"AsyncMetricsListPage",
"MetricsListPage",
"AsyncPlansListPage",
"PlansListPage",
"AsyncPlansListVersionsPage",
"PlansListVersionsPage",
"AsyncProductFamiliesListPage",
"ProductFamiliesListPage",
"AsyncProductsListPage",
"ProductsListPage",
"AsyncSubscriptionsListPage",
"SubscriptionsListPage",
]
233 changes: 233 additions & 0 deletions meteroid/api/_pages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
# this file is @generated
"""The pages of the list operations, each a subclass of the response model of its request."""

from __future__ import annotations

from ..models import (
AddOn,
AddOnListResponse,
BatchJobFailuresResponse,
BatchJobItemFailureResponse,
BatchJobListResponse,
BatchJobResponse,
Coupon,
CouponListResponse,
CreditNote,
CreditNoteListResponse,
Customer,
CustomerListResponse,
CustomPropertyDefinition,
CustomPropertyDefinitionListResponse,
Feature,
FeatureListResponse,
Invoice,
InvoiceListResponse,
MetricListResponse,
MetricSummary,
Plan,
PlanListResponse,
PlanVersionListResponse,
PlanVersionSummary,
Product,
ProductFamily,
ProductFamilyListResponse,
ProductListResponse,
Subscription,
SubscriptionListResponse,
)
from ._pagination import AsyncPage, SyncPage

__all__ = [
"AsyncAddOnsListPage",
"AddOnsListPage",
"AsyncBatchJobsListPage",
"BatchJobsListPage",
"AsyncBatchJobsListFailuresPage",
"BatchJobsListFailuresPage",
"AsyncCouponsListPage",
"CouponsListPage",
"AsyncCreditNotesListPage",
"CreditNotesListPage",
"AsyncCustomPropertiesListCustomPropertyDefinitionsPage",
"CustomPropertiesListCustomPropertyDefinitionsPage",
"AsyncCustomersListPage",
"CustomersListPage",
"AsyncFeaturesListPage",
"FeaturesListPage",
"AsyncInvoicesListPage",
"InvoicesListPage",
"AsyncMetricsListPage",
"MetricsListPage",
"AsyncPlansListPage",
"PlansListPage",
"AsyncPlansListVersionsPage",
"PlansListVersionsPage",
"AsyncProductFamiliesListPage",
"ProductFamiliesListPage",
"AsyncProductsListPage",
"ProductsListPage",
"AsyncSubscriptionsListPage",
"SubscriptionsListPage",
]


class AddOnsListPage(SyncPage[AddOn, AddOnListResponse], AddOnListResponse):
"""A page of :class:`AddOn`, and the :class:`AddOnListResponse` response of its request."""


class AsyncAddOnsListPage(AsyncPage[AddOn, AddOnListResponse], AddOnListResponse):
"""A page of :class:`AddOn`, and the :class:`AddOnListResponse` response of its request."""


class BatchJobsListPage(
SyncPage[BatchJobResponse, BatchJobListResponse], BatchJobListResponse
):
"""A page of :class:`BatchJobResponse`, and the :class:`BatchJobListResponse` response of its request."""


class AsyncBatchJobsListPage(
AsyncPage[BatchJobResponse, BatchJobListResponse], BatchJobListResponse
):
"""A page of :class:`BatchJobResponse`, and the :class:`BatchJobListResponse` response of its request."""


class BatchJobsListFailuresPage(
SyncPage[BatchJobItemFailureResponse, BatchJobFailuresResponse],
BatchJobFailuresResponse,
):
"""A page of :class:`BatchJobItemFailureResponse`, and the :class:`BatchJobFailuresResponse` response of its request."""


class AsyncBatchJobsListFailuresPage(
AsyncPage[BatchJobItemFailureResponse, BatchJobFailuresResponse],
BatchJobFailuresResponse,
):
"""A page of :class:`BatchJobItemFailureResponse`, and the :class:`BatchJobFailuresResponse` response of its request."""


class CouponsListPage(SyncPage[Coupon, CouponListResponse], CouponListResponse):
"""A page of :class:`Coupon`, and the :class:`CouponListResponse` response of its request."""


class AsyncCouponsListPage(AsyncPage[Coupon, CouponListResponse], CouponListResponse):
"""A page of :class:`Coupon`, and the :class:`CouponListResponse` response of its request."""


class CreditNotesListPage(
SyncPage[CreditNote, CreditNoteListResponse], CreditNoteListResponse
):
"""A page of :class:`CreditNote`, and the :class:`CreditNoteListResponse` response of its request."""


class AsyncCreditNotesListPage(
AsyncPage[CreditNote, CreditNoteListResponse], CreditNoteListResponse
):
"""A page of :class:`CreditNote`, and the :class:`CreditNoteListResponse` response of its request."""


class CustomPropertiesListCustomPropertyDefinitionsPage(
SyncPage[CustomPropertyDefinition, CustomPropertyDefinitionListResponse],
CustomPropertyDefinitionListResponse,
):
"""A page of :class:`CustomPropertyDefinition`, and the :class:`CustomPropertyDefinitionListResponse` response of its request."""


class AsyncCustomPropertiesListCustomPropertyDefinitionsPage(
AsyncPage[CustomPropertyDefinition, CustomPropertyDefinitionListResponse],
CustomPropertyDefinitionListResponse,
):
"""A page of :class:`CustomPropertyDefinition`, and the :class:`CustomPropertyDefinitionListResponse` response of its request."""


class CustomersListPage(SyncPage[Customer, CustomerListResponse], CustomerListResponse):
"""A page of :class:`Customer`, and the :class:`CustomerListResponse` response of its request."""


class AsyncCustomersListPage(
AsyncPage[Customer, CustomerListResponse], CustomerListResponse
):
"""A page of :class:`Customer`, and the :class:`CustomerListResponse` response of its request."""


class FeaturesListPage(SyncPage[Feature, FeatureListResponse], FeatureListResponse):
"""A page of :class:`Feature`, and the :class:`FeatureListResponse` response of its request."""


class AsyncFeaturesListPage(
AsyncPage[Feature, FeatureListResponse], FeatureListResponse
):
"""A page of :class:`Feature`, and the :class:`FeatureListResponse` response of its request."""


class InvoicesListPage(SyncPage[Invoice, InvoiceListResponse], InvoiceListResponse):
"""A page of :class:`Invoice`, and the :class:`InvoiceListResponse` response of its request."""


class AsyncInvoicesListPage(
AsyncPage[Invoice, InvoiceListResponse], InvoiceListResponse
):
"""A page of :class:`Invoice`, and the :class:`InvoiceListResponse` response of its request."""


class MetricsListPage(SyncPage[MetricSummary, MetricListResponse], MetricListResponse):
"""A page of :class:`MetricSummary`, and the :class:`MetricListResponse` response of its request."""


class AsyncMetricsListPage(
AsyncPage[MetricSummary, MetricListResponse], MetricListResponse
):
"""A page of :class:`MetricSummary`, and the :class:`MetricListResponse` response of its request."""


class PlansListPage(SyncPage[Plan, PlanListResponse], PlanListResponse):
"""A page of :class:`Plan`, and the :class:`PlanListResponse` response of its request."""


class AsyncPlansListPage(AsyncPage[Plan, PlanListResponse], PlanListResponse):
"""A page of :class:`Plan`, and the :class:`PlanListResponse` response of its request."""


class PlansListVersionsPage(
SyncPage[PlanVersionSummary, PlanVersionListResponse], PlanVersionListResponse
):
"""A page of :class:`PlanVersionSummary`, and the :class:`PlanVersionListResponse` response of its request."""


class AsyncPlansListVersionsPage(
AsyncPage[PlanVersionSummary, PlanVersionListResponse], PlanVersionListResponse
):
"""A page of :class:`PlanVersionSummary`, and the :class:`PlanVersionListResponse` response of its request."""


class ProductFamiliesListPage(
SyncPage[ProductFamily, ProductFamilyListResponse], ProductFamilyListResponse
):
"""A page of :class:`ProductFamily`, and the :class:`ProductFamilyListResponse` response of its request."""


class AsyncProductFamiliesListPage(
AsyncPage[ProductFamily, ProductFamilyListResponse], ProductFamilyListResponse
):
"""A page of :class:`ProductFamily`, and the :class:`ProductFamilyListResponse` response of its request."""


class ProductsListPage(SyncPage[Product, ProductListResponse], ProductListResponse):
"""A page of :class:`Product`, and the :class:`ProductListResponse` response of its request."""


class AsyncProductsListPage(
AsyncPage[Product, ProductListResponse], ProductListResponse
):
"""A page of :class:`Product`, and the :class:`ProductListResponse` response of its request."""


class SubscriptionsListPage(
SyncPage[Subscription, SubscriptionListResponse], SubscriptionListResponse
):
"""A page of :class:`Subscription`, and the :class:`SubscriptionListResponse` response of its request."""


class AsyncSubscriptionsListPage(
AsyncPage[Subscription, SubscriptionListResponse], SubscriptionListResponse
):
"""A page of :class:`Subscription`, and the :class:`SubscriptionListResponse` response of its request."""
Loading
Loading