From 163458123ae7c333d74b08df61ca03cc03334d30 Mon Sep 17 00:00:00 2001 From: Gmanboy Date: Sun, 4 Feb 2024 07:57:26 +1030 Subject: [PATCH 1/2] fix: add products to features list in cargo.toml and export from resourses --- Cargo.toml | 2 ++ src/resources.rs | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 4bed7d1..6d0c144 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/resources.rs b/src/resources.rs index a4adeca..42ced2a 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 { From 19cbe3e2bce802bfde690755f2c325a84d7b8d26 Mon Sep 17 00:00:00 2001 From: Gmanboy Date: Tue, 6 Feb 2024 08:12:47 +1030 Subject: [PATCH 2/2] fix: export SearchList --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 11bcab1..c956514 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::*;