diff --git a/Cargo.toml b/Cargo.toml index 71376f9b1..646319a5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,6 +43,7 @@ full = [ "terminal", "webhook-endpoints", "tax-calculation", + "products", ] stream = [] @@ -58,6 +59,7 @@ sigma = [] terminal = [] webhook-endpoints = [] tax-calculation = [] +products = [] # deserialize events from webhooks webhook-events = ["events", "hmac", "sha2", "chrono", "hex"] diff --git a/src/lib.rs b/src/lib.rs index 11bcab1ec..c95651479 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,6 +78,7 @@ pub use crate::client::*; pub use crate::error::{ErrorCode, ErrorType, RequestError, StripeError, WebhookError}; pub use crate::ids::*; pub use crate::params::{ - Expandable, Headers, IdOrCreate, List, Metadata, Object, RangeBounds, RangeQuery, Timestamp, + Expandable, Headers, IdOrCreate, List, Metadata, Object, RangeBounds, RangeQuery, SearchList, + Timestamp, }; pub use crate::resources::*; diff --git a/src/resources.rs b/src/resources.rs index a4adeca74..42ced2ae0 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -191,6 +191,15 @@ pub use { }, }; +#[rustfmt::skip] +#[cfg(feature = "products")] +pub use { + products::{ + product_ext::*, + price_ext::*, + } +}; + #[rustfmt::skip] #[cfg(feature = "billing")] pub use {