#[path = "../call.rs"]
mod call;
pub mod client;
#[path = "../event_stream.rs"]
mod event_stream;
#[path = "../middleware.rs"]
pub mod middleware;
#[path = "../upload.rs"]
pub mod upload;
pub use crate::connector::{http_client, HttpClient};
pub use call::{ApiResponse, Call};
pub use event_stream::{EventStream, SseEvent};
pub use upload::{RequestBody, Upload};
#[path = "../auth_schemes.rs"]
pub(crate) mod auth_schemes;
pub use auth_schemes::{BasicAuth, TokenProvider};
#[path = "../pagination.rs"]
pub(crate) mod pagination;
pub use pagination::{Page, PageCall, Pages, Paginator};
#[path = "../request_options.rs"]
mod request_options;
pub use request_options::RequestOptions;
pub use ::http;
pub use bytes::Bytes;
pub type ErrorBody = crate::models::RestErrorResponse;
mod add_ons;
mod add_ons_entitlements;
mod batch_jobs;
mod budgets;
mod checkout_sessions;
mod checks;
mod connect;
mod coupons;
mod credit_notes;
mod credit_units;
mod credit_units_prices;
mod credits;
mod credits_grants;
mod credits_wallets;
mod custom_properties;
mod customers;
mod entitlements;
mod events;
mod features;
mod invoices;
mod licenses;
mod metrics;
mod oauth;
mod oauth_apps;
mod plans;
mod plans_versions;
mod product_families;
mod products;
mod products_entitlements;
mod subscriptions;
mod usage;
mod usage_costs;
mod usage_costs_customer;
mod usage_costs_subscription;
mod usage_customer;
mod webhook_endpoints;
mod webhook_endpoints_endpoints;
pub use self::{
add_ons::{AddOns, AddOnsListOptions},
add_ons_entitlements::AddOnsEntitlements,
batch_jobs::{BatchJobs, BatchJobsListFailuresOptions, BatchJobsListOptions},
budgets::{
Budgets, BudgetsArchiveOptions, BudgetsCreateOptions, BudgetsListOptions,
BudgetsUpdateOptions,
},
checkout_sessions::{CheckoutSessions, CheckoutSessionsListOptions},
checks::{Checks, ChecksCheckEntitlementOptions},
client::{Meteroid, MeteroidBuilder},
connect::Connect,
coupons::{Coupons, CouponsListOptions},
credit_notes::{CreditNotes, CreditNotesListOptions},
credit_units::{CreditUnits, CreditUnitsListOptions},
credit_units_prices::{CreditUnitsPrices, CreditUnitsPricesListOptions},
credits::{Credits, CreditsCreateCustomerTopUpOptions, CreditsListCustomerCreditLedgerOptions},
credits_grants::{CreditsGrants, CreditsGrantsCreateOptions, CreditsGrantsListOptions},
credits_wallets::{
CreditsWallets, CreditsWalletsCheckOptions, CreditsWalletsListOptions,
CreditsWalletsUpdateOptions,
},
custom_properties::{CustomProperties, CustomPropertiesListCustomPropertyDefinitionsOptions},
customers::{Customers, CustomersListOptions},
entitlements::Entitlements,
events::Events,
features::{Features, FeaturesListOptions},
invoices::{Invoices, InvoicesListOptions},
licenses::{Licenses, LicensesListOptions},
metrics::{Metrics, MetricsListOptions},
oauth::Oauth,
oauth_apps::OauthApps,
plans::{Plans, PlansListOptions, PlansRetrieveOptions},
plans_versions::{PlansVersions, PlansVersionsListOptions},
product_families::{ProductFamilies, ProductFamiliesListOptions},
products::{Products, ProductsListOptions},
products_entitlements::ProductsEntitlements,
subscriptions::{Subscriptions, SubscriptionsListOptions},
usage::{Usage, UsageRetrieveSubscriptionOptions, UsageRetrieveSummaryOptions},
usage_costs::UsageCosts,
usage_costs_customer::{
UsageCostsCustomer, UsageCostsCustomerListCostsOptions, UsageCostsCustomerListEventsOptions,
},
usage_costs_subscription::{
UsageCostsSubscription, UsageCostsSubscriptionListCostsOptions,
UsageCostsSubscriptionListEventsOptions,
},
usage_customer::{
UsageCustomer, UsageCustomerRetrieveOptions, UsageCustomerRetrieveUnattributedOptions,
},
webhook_endpoints::WebhookEndpoints,
webhook_endpoints_endpoints::{
WebhookEndpointsEndpoints, WebhookEndpointsEndpointsListDeliveriesOptions,
},
};
pub(crate) mod pages {
use super::pagination::Fields;
use crate::models;
pub(crate) static ADD_ONS_LIST: Fields<models::AddOnListResponse, models::AddOn> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static BATCH_JOBS_LIST: Fields<
models::BatchJobListResponse,
models::BatchJobResponse,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static BATCH_JOBS_LIST_FAILURES: Fields<
models::BatchJobFailuresResponse,
models::BatchJobItemFailureResponse,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(page.total_count)),
};
pub(crate) static BUDGETS_LIST: Fields<models::BudgetListResponse, models::Budget> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static COUPONS_LIST: Fields<models::CouponListResponse, models::Coupon> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static CREDIT_NOTES_LIST: Fields<
models::CreditNoteListResponse,
models::CreditNote,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static CREDITS_LIST_CUSTOMER_CREDIT_LEDGER: Fields<
models::LedgerListResponse,
models::LedgerEntry,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static CREDITS_GRANTS_LIST: Fields<
models::CreditGrantListResponse,
models::CreditGrant,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static CUSTOM_PROPERTIES_LIST_CUSTOM_PROPERTY_DEFINITIONS: Fields<
models::CustomPropertyDefinitionListResponse,
models::CustomPropertyDefinition,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static CUSTOMERS_LIST: Fields<models::CustomerListResponse, models::Customer> =
Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static FEATURES_LIST: Fields<models::FeatureListResponse, models::Feature> =
Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static INVOICES_LIST: Fields<models::InvoiceListResponse, models::Invoice> =
Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static METRICS_LIST: Fields<models::MetricListResponse, models::MetricSummary> =
Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static PLANS_LIST: Fields<models::PlanListResponse, models::Plan> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static PLANS_VERSIONS_LIST: Fields<
models::PlanVersionListResponse,
models::PlanVersionSummary,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static PRODUCT_FAMILIES_LIST: Fields<
models::ProductFamilyListResponse,
models::ProductFamily,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static PRODUCTS_LIST: Fields<models::ProductListResponse, models::Product> =
Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static SUBSCRIPTIONS_LIST: Fields<
models::SubscriptionListResponse,
models::Subscription,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
pub(crate) static WEBHOOK_ENDPOINTS_ENDPOINTS_LIST_DELIVERIES: Fields<
models::WebhookDeliveryListResponse,
models::WebhookDelivery,
> = Fields {
items: |page| Some(&page.data),
items_mut: |page| Some(&mut page.data),
next_cursor: None,
item_cursor: None,
has_more: None,
total: Some(|page| Some(i64::from(page.pagination_meta.total_pages))),
};
}