diff --git a/async-stripe-webhook/Cargo.toml b/async-stripe-webhook/Cargo.toml index 776142eef..ab26e6553 100644 --- a/async-stripe-webhook/Cargo.toml +++ b/async-stripe-webhook/Cargo.toml @@ -40,9 +40,9 @@ serde_json.workspace = true [features] serialize = ["async-stripe-types/serialize", "async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra", "async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra", "async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize", "async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra", "async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra", "async-stripe-shared/deserialize_extra", "dep:serde_json"] full = [ "async-stripe-billing", diff --git a/generated/async-stripe-billing/Cargo.toml b/generated/async-stripe-billing/Cargo.toml index b40f77335..7a19af22c 100644 --- a/generated/async-stripe-billing/Cargo.toml +++ b/generated/async-stripe-billing/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] billing_meter = [] billing_meter_event = [] billing_meter_event_adjustment = [] diff --git a/generated/async-stripe-billing/src/billing_meter/types.rs b/generated/async-stripe-billing/src/billing_meter/types.rs index 5b42b5571..f927a774d 100644 --- a/generated/async-stripe-billing/src/billing_meter/types.rs +++ b/generated/async-stripe-billing/src/billing_meter/types.rs @@ -2,7 +2,6 @@ /// For example, you might create a billing meter to track the number of API calls made by a particular user. /// You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingMeter { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-billing/src/billing_meter_event/types.rs b/generated/async-stripe-billing/src/billing_meter_event/types.rs index 729416d6f..437ed90f9 100644 --- a/generated/async-stripe-billing/src/billing_meter_event/types.rs +++ b/generated/async-stripe-billing/src/billing_meter_event/types.rs @@ -2,7 +2,6 @@ /// Meter events are used to bill a customer based on their usage. /// Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingMeterEvent { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-billing/src/billing_meter_event_adjustment/types.rs b/generated/async-stripe-billing/src/billing_meter_event_adjustment/types.rs index 2c1eb5fb8..46a255e88 100644 --- a/generated/async-stripe-billing/src/billing_meter_event_adjustment/types.rs +++ b/generated/async-stripe-billing/src/billing_meter_event_adjustment/types.rs @@ -1,7 +1,6 @@ /// A billing meter event adjustment is a resource that allows you to cancel a meter event. /// For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingMeterEventAdjustment { /// Specifies which event to cancel. @@ -14,7 +13,7 @@ pub struct BillingMeterEventAdjustment { pub status: BillingMeterEventAdjustmentStatus, /// Specifies whether to cancel a single event or a range of events for a time period. /// Time period cancellation is not supported yet. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_billing::BillingMeterEventAdjustmentType, } #[doc(hidden)] diff --git a/generated/async-stripe-billing/src/billing_meter_event_summary/types.rs b/generated/async-stripe-billing/src/billing_meter_event_summary/types.rs index c5814e14b..0fcb865c9 100644 --- a/generated/async-stripe-billing/src/billing_meter_event_summary/types.rs +++ b/generated/async-stripe-billing/src/billing_meter_event_summary/types.rs @@ -2,7 +2,6 @@ /// It indicates how much. /// usage was accrued by a customer for that period. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingMeterEventSummary { /// Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). diff --git a/generated/async-stripe-billing/src/billing_portal_configuration/types.rs b/generated/async-stripe-billing/src/billing_portal_configuration/types.rs index 9282fa47a..97f8a398a 100644 --- a/generated/async-stripe-billing/src/billing_portal_configuration/types.rs +++ b/generated/async-stripe-billing/src/billing_portal_configuration/types.rs @@ -1,6 +1,5 @@ /// A portal configuration describes the functionality and behavior of a portal session. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingPortalConfiguration { /// Whether the configuration is active and can be used to create portal sessions. diff --git a/generated/async-stripe-billing/src/billing_portal_session/types.rs b/generated/async-stripe-billing/src/billing_portal_session/types.rs index 8af73d5aa..c247e8a18 100644 --- a/generated/async-stripe-billing/src/billing_portal_session/types.rs +++ b/generated/async-stripe-billing/src/billing_portal_session/types.rs @@ -13,7 +13,6 @@ /// /// Learn more in the [integration guide](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingPortalSession { /// The configuration used by this session, describing the features available. diff --git a/generated/async-stripe-billing/src/usage_record/types.rs b/generated/async-stripe-billing/src/usage_record/types.rs index a2dea369c..dd9136ec9 100644 --- a/generated/async-stripe-billing/src/usage_record/types.rs +++ b/generated/async-stripe-billing/src/usage_record/types.rs @@ -8,7 +8,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct UsageRecord { /// Unique identifier for the object. diff --git a/generated/async-stripe-checkout/Cargo.toml b/generated/async-stripe-checkout/Cargo.toml index 302665751..6e5f2e230 100644 --- a/generated/async-stripe-checkout/Cargo.toml +++ b/generated/async-stripe-checkout/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] checkout_session = [] full = ["checkout_session"] diff --git a/generated/async-stripe-checkout/src/checkout_session/types.rs b/generated/async-stripe-checkout/src/checkout_session/types.rs index f3b5abe65..2c56434ac 100644 --- a/generated/async-stripe-checkout/src/checkout_session/types.rs +++ b/generated/async-stripe-checkout/src/checkout_session/types.rs @@ -15,7 +15,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSession { /// When set, provides configuration for actions to take if this Checkout Session expires. diff --git a/generated/async-stripe-connect/Cargo.toml b/generated/async-stripe-connect/Cargo.toml index 532a1877b..ff9cc0570 100644 --- a/generated/async-stripe-connect/Cargo.toml +++ b/generated/async-stripe-connect/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] account = [] account_link = [] account_session = [] diff --git a/generated/async-stripe-connect/src/account_link/types.rs b/generated/async-stripe-connect/src/account_link/types.rs index ff2ba974b..459afd29b 100644 --- a/generated/async-stripe-connect/src/account_link/types.rs +++ b/generated/async-stripe-connect/src/account_link/types.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountLink { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-connect/src/account_session/types.rs b/generated/async-stripe-connect/src/account_session/types.rs index 97475b4b5..3106dea8a 100644 --- a/generated/async-stripe-connect/src/account_session/types.rs +++ b/generated/async-stripe-connect/src/account_session/types.rs @@ -8,7 +8,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountSession { /// The ID of the account the AccountSession was created for diff --git a/generated/async-stripe-connect/src/apps_secret/types.rs b/generated/async-stripe-connect/src/apps_secret/types.rs index 905635926..157434491 100644 --- a/generated/async-stripe-connect/src/apps_secret/types.rs +++ b/generated/async-stripe-connect/src/apps_secret/types.rs @@ -12,7 +12,6 @@ /// /// Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AppsSecret { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-connect/src/country_spec/types.rs b/generated/async-stripe-connect/src/country_spec/types.rs index 91404fa63..d9d2d1d24 100644 --- a/generated/async-stripe-connect/src/country_spec/types.rs +++ b/generated/async-stripe-connect/src/country_spec/types.rs @@ -7,7 +7,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CountrySpec { /// The default currency for this country. This applies to both payment methods and bank accounts. diff --git a/generated/async-stripe-connect/src/login_link/types.rs b/generated/async-stripe-connect/src/login_link/types.rs index bcce2c298..fb8c73052 100644 --- a/generated/async-stripe-connect/src/login_link/types.rs +++ b/generated/async-stripe-connect/src/login_link/types.rs @@ -3,7 +3,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LoginLink { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-core/Cargo.toml b/generated/async-stripe-core/Cargo.toml index 6175d2155..31ea2189f 100644 --- a/generated/async-stripe-core/Cargo.toml +++ b/generated/async-stripe-core/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] balance = [] balance_transaction = [] cash_balance = [] diff --git a/generated/async-stripe-core/src/balance/types.rs b/generated/async-stripe-core/src/balance/types.rs index 9ac70d016..b41be1a1c 100644 --- a/generated/async-stripe-core/src/balance/types.rs +++ b/generated/async-stripe-core/src/balance/types.rs @@ -12,7 +12,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Balance { /// Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). diff --git a/generated/async-stripe-core/src/customer_session/types.rs b/generated/async-stripe-core/src/customer_session/types.rs index 4cb353113..16b448dc7 100644 --- a/generated/async-stripe-core/src/customer_session/types.rs +++ b/generated/async-stripe-core/src/customer_session/types.rs @@ -1,7 +1,6 @@ /// A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs) /// control over a customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerSession { /// The client secret of this customer session. diff --git a/generated/async-stripe-core/src/token/types.rs b/generated/async-stripe-core/src/token/types.rs index 029f48660..2d9bedc72 100644 --- a/generated/async-stripe-core/src/token/types.rs +++ b/generated/async-stripe-core/src/token/types.rs @@ -21,7 +21,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Token { pub bank_account: Option, @@ -35,7 +34,7 @@ pub struct Token { /// Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. pub livemode: bool, /// Type of the token: `account`, `bank_account`, `card`, or `pii`. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: String, /// Determines if you have already used this token (you can only use tokens once). pub used: bool, diff --git a/generated/async-stripe-fraud/Cargo.toml b/generated/async-stripe-fraud/Cargo.toml index 86cee5cfc..313e40310 100644 --- a/generated/async-stripe-fraud/Cargo.toml +++ b/generated/async-stripe-fraud/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] radar_early_fraud_warning = [] radar_value_list = [] radar_value_list_item = [] diff --git a/generated/async-stripe-fraud/src/deleted_radar_value_list.rs b/generated/async-stripe-fraud/src/deleted_radar_value_list.rs index 3af7ba142..4fed4ce2d 100644 --- a/generated/async-stripe-fraud/src/deleted_radar_value_list.rs +++ b/generated/async-stripe-fraud/src/deleted_radar_value_list.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedRadarValueList { #[allow(dead_code)] diff --git a/generated/async-stripe-fraud/src/deleted_radar_value_list_item.rs b/generated/async-stripe-fraud/src/deleted_radar_value_list_item.rs index 5379e75dc..b6c12083e 100644 --- a/generated/async-stripe-fraud/src/deleted_radar_value_list_item.rs +++ b/generated/async-stripe-fraud/src/deleted_radar_value_list_item.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedRadarValueListItem { #[allow(dead_code)] diff --git a/generated/async-stripe-fraud/src/radar_early_fraud_warning/types.rs b/generated/async-stripe-fraud/src/radar_early_fraud_warning/types.rs index c3d98dad5..d2bdb23ae 100644 --- a/generated/async-stripe-fraud/src/radar_early_fraud_warning/types.rs +++ b/generated/async-stripe-fraud/src/radar_early_fraud_warning/types.rs @@ -3,7 +3,6 @@ /// /// Related guide: [Early fraud warnings](https://stripe.com/docs/disputes/measuring#early-fraud-warnings). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarEarlyFraudWarning { /// An EFW is actionable if it has not received a dispute and has not been fully refunded. diff --git a/generated/async-stripe-fraud/src/radar_value_list/types.rs b/generated/async-stripe-fraud/src/radar_value_list/types.rs index 491712fc7..27be4c154 100644 --- a/generated/async-stripe-fraud/src/radar_value_list/types.rs +++ b/generated/async-stripe-fraud/src/radar_value_list/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarValueList { /// The name of the value list for use in rules. diff --git a/generated/async-stripe-fraud/src/radar_value_list_item/types.rs b/generated/async-stripe-fraud/src/radar_value_list_item/types.rs index e227dd4c8..579f92f00 100644 --- a/generated/async-stripe-fraud/src/radar_value_list_item/types.rs +++ b/generated/async-stripe-fraud/src/radar_value_list_item/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarValueListItem { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-issuing/Cargo.toml b/generated/async-stripe-issuing/Cargo.toml index 5327b07df..9ae4dd85b 100644 --- a/generated/async-stripe-issuing/Cargo.toml +++ b/generated/async-stripe-issuing/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] issuing_authorization = [] issuing_card = [] issuing_cardholder = [] diff --git a/generated/async-stripe-misc/Cargo.toml b/generated/async-stripe-misc/Cargo.toml index 373d99cb0..07b7468b8 100644 --- a/generated/async-stripe-misc/Cargo.toml +++ b/generated/async-stripe-misc/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] apple_pay_domain = [] climate_order = [] climate_product = [] diff --git a/generated/async-stripe-misc/src/apple_pay_domain/types.rs b/generated/async-stripe-misc/src/apple_pay_domain/types.rs index d7cec444b..a1bbd6f6d 100644 --- a/generated/async-stripe-misc/src/apple_pay_domain/types.rs +++ b/generated/async-stripe-misc/src/apple_pay_domain/types.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ApplePayDomain { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/climate_order/types.rs b/generated/async-stripe-misc/src/climate_order/types.rs index d345d0bf5..a3ac996e6 100644 --- a/generated/async-stripe-misc/src/climate_order/types.rs +++ b/generated/async-stripe-misc/src/climate_order/types.rs @@ -2,7 +2,6 @@ /// When you create an order, the. /// payment is deducted from your merchant balance. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateOrder { /// Total amount of [Frontier](https://frontierclimate.com/)'s service fees in the currency's smallest unit. diff --git a/generated/async-stripe-misc/src/climate_product/types.rs b/generated/async-stripe-misc/src/climate_product/types.rs index 4ae88449d..c55190958 100644 --- a/generated/async-stripe-misc/src/climate_product/types.rs +++ b/generated/async-stripe-misc/src/climate_product/types.rs @@ -1,7 +1,6 @@ /// A Climate product represents a type of carbon removal unit available for reservation. /// You can retrieve it to see the current price and availability. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateProduct { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/climate_supplier/types.rs b/generated/async-stripe-misc/src/climate_supplier/types.rs index 164b58c71..24d61823d 100644 --- a/generated/async-stripe-misc/src/climate_supplier/types.rs +++ b/generated/async-stripe-misc/src/climate_supplier/types.rs @@ -1,6 +1,5 @@ /// A supplier of carbon removal. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateSupplier { /// Unique identifier for the object. diff --git a/generated/async-stripe-misc/src/deleted_apple_pay_domain.rs b/generated/async-stripe-misc/src/deleted_apple_pay_domain.rs index 387898b23..3b9c68a54 100644 --- a/generated/async-stripe-misc/src/deleted_apple_pay_domain.rs +++ b/generated/async-stripe-misc/src/deleted_apple_pay_domain.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedApplePayDomain { #[allow(dead_code)] diff --git a/generated/async-stripe-misc/src/deleted_webhook_endpoint.rs b/generated/async-stripe-misc/src/deleted_webhook_endpoint.rs index 1152ba9c8..92e5f4a68 100644 --- a/generated/async-stripe-misc/src/deleted_webhook_endpoint.rs +++ b/generated/async-stripe-misc/src/deleted_webhook_endpoint.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedWebhookEndpoint { #[allow(dead_code)] diff --git a/generated/async-stripe-misc/src/entitlements_active_entitlement/types.rs b/generated/async-stripe-misc/src/entitlements_active_entitlement/types.rs index 3f6f2cc2e..f61fc0b32 100644 --- a/generated/async-stripe-misc/src/entitlements_active_entitlement/types.rs +++ b/generated/async-stripe-misc/src/entitlements_active_entitlement/types.rs @@ -1,6 +1,5 @@ /// An active entitlement describes access to a feature for a customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct EntitlementsActiveEntitlement { /// The [Feature](https://stripe.com/docs/api/entitlements/feature) that the customer is entitled to. diff --git a/generated/async-stripe-misc/src/entitlements_active_entitlement_summary.rs b/generated/async-stripe-misc/src/entitlements_active_entitlement_summary.rs index 76083a7fb..4ce998c37 100644 --- a/generated/async-stripe-misc/src/entitlements_active_entitlement_summary.rs +++ b/generated/async-stripe-misc/src/entitlements_active_entitlement_summary.rs @@ -1,6 +1,5 @@ /// A summary of a customer's active entitlements. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct EntitlementsActiveEntitlementSummary { /// The customer that is entitled to this feature. diff --git a/generated/async-stripe-misc/src/ephemeral_key/types.rs b/generated/async-stripe-misc/src/ephemeral_key/types.rs index 01ca06bc7..8fe897a5b 100644 --- a/generated/async-stripe-misc/src/ephemeral_key/types.rs +++ b/generated/async-stripe-misc/src/ephemeral_key/types.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct EphemeralKey { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/exchange_rate/types.rs b/generated/async-stripe-misc/src/exchange_rate/types.rs index 986c9f355..a7e4797c2 100644 --- a/generated/async-stripe-misc/src/exchange_rate/types.rs +++ b/generated/async-stripe-misc/src/exchange_rate/types.rs @@ -27,7 +27,6 @@ /// /// *Using this Exchange Rates API beta for any purpose other than to transact on Stripe is strictly prohibited and constitutes a violation of Stripe's terms of service.*. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ExchangeRate { /// Unique identifier for the object. diff --git a/generated/async-stripe-misc/src/financial_connections_account/types.rs b/generated/async-stripe-misc/src/financial_connections_account/types.rs index 3dd78f2f2..0e8adaffd 100644 --- a/generated/async-stripe-misc/src/financial_connections_account/types.rs +++ b/generated/async-stripe-misc/src/financial_connections_account/types.rs @@ -2,7 +2,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsAccount { /// The account holder that this account belongs to. diff --git a/generated/async-stripe-misc/src/financial_connections_account_owner.rs b/generated/async-stripe-misc/src/financial_connections_account_owner.rs index 9591c8003..a86d31f58 100644 --- a/generated/async-stripe-misc/src/financial_connections_account_owner.rs +++ b/generated/async-stripe-misc/src/financial_connections_account_owner.rs @@ -1,6 +1,5 @@ /// Describes an owner of an account. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsAccountOwner { /// The email address of the owner. diff --git a/generated/async-stripe-misc/src/financial_connections_account_ownership.rs b/generated/async-stripe-misc/src/financial_connections_account_ownership.rs index 1143aafcb..78e3d1d93 100644 --- a/generated/async-stripe-misc/src/financial_connections_account_ownership.rs +++ b/generated/async-stripe-misc/src/financial_connections_account_ownership.rs @@ -1,6 +1,5 @@ /// Describes a snapshot of the owners of an account at a particular point in time. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsAccountOwnership { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/financial_connections_session/types.rs b/generated/async-stripe-misc/src/financial_connections_session/types.rs index e3af1d4ed..170080bac 100644 --- a/generated/async-stripe-misc/src/financial_connections_session/types.rs +++ b/generated/async-stripe-misc/src/financial_connections_session/types.rs @@ -2,7 +2,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsSession { /// The account holder for whom accounts are collected in this session. diff --git a/generated/async-stripe-misc/src/financial_connections_transaction/types.rs b/generated/async-stripe-misc/src/financial_connections_transaction/types.rs index a4d99cbba..a192c29dc 100644 --- a/generated/async-stripe-misc/src/financial_connections_transaction/types.rs +++ b/generated/async-stripe-misc/src/financial_connections_transaction/types.rs @@ -1,6 +1,5 @@ /// A Transaction represents a real transaction that affects a Financial Connections Account balance. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsTransaction { /// The ID of the Financial Connections Account this transaction belongs to. diff --git a/generated/async-stripe-misc/src/forwarding_request/types.rs b/generated/async-stripe-misc/src/forwarding_request/types.rs index 1fa0dda2c..68509c155 100644 --- a/generated/async-stripe-misc/src/forwarding_request/types.rs +++ b/generated/async-stripe-misc/src/forwarding_request/types.rs @@ -16,7 +16,6 @@ /// /// Related guide: [Forward card details to third-party API endpoints](https://docs.stripe.com/payments/forwarding). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ForwardingRequest { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/identity_verification_report/types.rs b/generated/async-stripe-misc/src/identity_verification_report/types.rs index b8f0bdba4..b332d68b5 100644 --- a/generated/async-stripe-misc/src/identity_verification_report/types.rs +++ b/generated/async-stripe-misc/src/identity_verification_report/types.rs @@ -12,7 +12,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IdentityVerificationReport { /// A string to reference this user. @@ -31,7 +30,7 @@ pub struct IdentityVerificationReport { pub phone: Option, pub selfie: Option, /// Type of report. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: IdentityVerificationReportType, /// The configuration token of a Verification Flow from the dashboard. pub verification_flow: Option, diff --git a/generated/async-stripe-misc/src/identity_verification_session/types.rs b/generated/async-stripe-misc/src/identity_verification_session/types.rs index 55536551e..5859c8b2f 100644 --- a/generated/async-stripe-misc/src/identity_verification_session/types.rs +++ b/generated/async-stripe-misc/src/identity_verification_session/types.rs @@ -12,7 +12,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IdentityVerificationSession { /// A string to reference this user. @@ -50,7 +49,7 @@ pub struct IdentityVerificationSession { /// [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work). pub status: stripe_misc::IdentityVerificationSessionStatus, /// The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: IdentityVerificationSessionType, /// The short-lived URL that you use to redirect a user to Stripe to submit their identity information. /// This URL expires after 48 hours and can only be used once. diff --git a/generated/async-stripe-misc/src/reporting_report_run/types.rs b/generated/async-stripe-misc/src/reporting_report_run/types.rs index eb96ef034..5e787afdd 100644 --- a/generated/async-stripe-misc/src/reporting_report_run/types.rs +++ b/generated/async-stripe-misc/src/reporting_report_run/types.rs @@ -9,7 +9,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ReportingReportRun { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/reporting_report_type/types.rs b/generated/async-stripe-misc/src/reporting_report_type/types.rs index 76c52b9da..8d3c8b36a 100644 --- a/generated/async-stripe-misc/src/reporting_report_type/types.rs +++ b/generated/async-stripe-misc/src/reporting_report_type/types.rs @@ -9,7 +9,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ReportingReportType { /// Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/scheduled_query_run/types.rs b/generated/async-stripe-misc/src/scheduled_query_run/types.rs index e21fbaa3e..75bd3f69d 100644 --- a/generated/async-stripe-misc/src/scheduled_query_run/types.rs +++ b/generated/async-stripe-misc/src/scheduled_query_run/types.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ScheduledQueryRun { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/tax_calculation/types.rs b/generated/async-stripe-misc/src/tax_calculation/types.rs index e2d84edb7..ffc5ac064 100644 --- a/generated/async-stripe-misc/src/tax_calculation/types.rs +++ b/generated/async-stripe-misc/src/tax_calculation/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxCalculation { /// Total after taxes. diff --git a/generated/async-stripe-misc/src/tax_calculation_line_item.rs b/generated/async-stripe-misc/src/tax_calculation_line_item.rs index 4ccadd552..4d8557d43 100644 --- a/generated/async-stripe-misc/src/tax_calculation_line_item.rs +++ b/generated/async-stripe-misc/src/tax_calculation_line_item.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxCalculationLineItem { /// The line item amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/generated/async-stripe-misc/src/tax_registration/types.rs b/generated/async-stripe-misc/src/tax_registration/types.rs index 17dc80349..2853da506 100644 --- a/generated/async-stripe-misc/src/tax_registration/types.rs +++ b/generated/async-stripe-misc/src/tax_registration/types.rs @@ -5,7 +5,6 @@ /// /// Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api) #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxRegistration { /// Time at which the registration becomes active. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-misc/src/tax_settings/types.rs b/generated/async-stripe-misc/src/tax_settings/types.rs index 4ffbca67e..a8df04eb7 100644 --- a/generated/async-stripe-misc/src/tax_settings/types.rs +++ b/generated/async-stripe-misc/src/tax_settings/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxSettings { pub defaults: stripe_misc::TaxProductResourceTaxSettingsDefaults, diff --git a/generated/async-stripe-misc/src/tax_transaction/types.rs b/generated/async-stripe-misc/src/tax_transaction/types.rs index 30dc4f43a..93b8cd456 100644 --- a/generated/async-stripe-misc/src/tax_transaction/types.rs +++ b/generated/async-stripe-misc/src/tax_transaction/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxTransaction { /// Time at which the object was created. Measured in seconds since the Unix epoch. @@ -35,7 +34,7 @@ pub struct TaxTransaction { /// Timestamp of date at which the tax rules and rates in effect applies for the calculation. pub tax_date: stripe_types::Timestamp, /// If `reversal`, this transaction reverses an earlier transaction. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TaxTransactionType, } #[doc(hidden)] diff --git a/generated/async-stripe-misc/src/tax_transaction_line_item.rs b/generated/async-stripe-misc/src/tax_transaction_line_item.rs index 23d4aaaed..c96cedf3a 100644 --- a/generated/async-stripe-misc/src/tax_transaction_line_item.rs +++ b/generated/async-stripe-misc/src/tax_transaction_line_item.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxTransactionLineItem { /// The line item amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). @@ -29,7 +28,7 @@ pub struct TaxTransactionLineItem { /// The [tax code](https://stripe.com/docs/tax/tax-categories) ID used for this resource. pub tax_code: String, /// If `reversal`, this line item reverses an earlier transaction. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TaxTransactionLineItemType, } #[doc(hidden)] diff --git a/generated/async-stripe-misc/src/webhook_endpoint/types.rs b/generated/async-stripe-misc/src/webhook_endpoint/types.rs index 7873d88ac..02b5689cc 100644 --- a/generated/async-stripe-misc/src/webhook_endpoint/types.rs +++ b/generated/async-stripe-misc/src/webhook_endpoint/types.rs @@ -8,7 +8,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct WebhookEndpoint { /// The API version events are rendered as for this webhook endpoint. diff --git a/generated/async-stripe-payment/Cargo.toml b/generated/async-stripe-payment/Cargo.toml index bccdac9b2..8c1a59c29 100644 --- a/generated/async-stripe-payment/Cargo.toml +++ b/generated/async-stripe-payment/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] bank_account = [] card = [] confirmation_token = [] diff --git a/generated/async-stripe-payment/src/confirmation_token/types.rs b/generated/async-stripe-payment/src/confirmation_token/types.rs index 0759808f5..f31ce3bd9 100644 --- a/generated/async-stripe-payment/src/confirmation_token/types.rs +++ b/generated/async-stripe-payment/src/confirmation_token/types.rs @@ -6,7 +6,6 @@ /// - [Finalize payments on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server). /// - [Build two-step confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConfirmationToken { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-payment/src/payment_method_configuration/types.rs b/generated/async-stripe-payment/src/payment_method_configuration/types.rs index e30c1863c..fd4c0ce00 100644 --- a/generated/async-stripe-payment/src/payment_method_configuration/types.rs +++ b/generated/async-stripe-payment/src/payment_method_configuration/types.rs @@ -22,7 +22,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodConfiguration { pub acss_debit: Option, diff --git a/generated/async-stripe-payment/src/payment_method_domain/types.rs b/generated/async-stripe-payment/src/payment_method_domain/types.rs index b9e74fd04..546f3df09 100644 --- a/generated/async-stripe-payment/src/payment_method_domain/types.rs +++ b/generated/async-stripe-payment/src/payment_method_domain/types.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDomain { pub apple_pay: stripe_payment::PaymentMethodDomainResourcePaymentMethodStatus, diff --git a/generated/async-stripe-payment/src/source_mandate_notification.rs b/generated/async-stripe-payment/src/source_mandate_notification.rs index 4395cf01b..5d1f5c4a6 100644 --- a/generated/async-stripe-payment/src/source_mandate_notification.rs +++ b/generated/async-stripe-payment/src/source_mandate_notification.rs @@ -2,7 +2,6 @@ /// a source mandate must be sent to the payer. They will trigger a webhook or /// deliver an email to the customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceMandateNotification { pub acss_debit: Option, @@ -25,7 +24,7 @@ pub struct SourceMandateNotification { pub status: String, /// The type of source this mandate notification is attached to. /// Should be the source type identifier code for the payment method, such as `three_d_secure`. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: String, } #[doc(hidden)] diff --git a/generated/async-stripe-product/Cargo.toml b/generated/async-stripe-product/Cargo.toml index e1a9209a9..297f2deac 100644 --- a/generated/async-stripe-product/Cargo.toml +++ b/generated/async-stripe-product/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] coupon = [] price = [] product = [] diff --git a/generated/async-stripe-product/src/deleted_product_feature.rs b/generated/async-stripe-product/src/deleted_product_feature.rs index 591a7a1de..43b93757a 100644 --- a/generated/async-stripe-product/src/deleted_product_feature.rs +++ b/generated/async-stripe-product/src/deleted_product_feature.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedProductFeature { #[allow(dead_code)] diff --git a/generated/async-stripe-product/src/product_feature/types.rs b/generated/async-stripe-product/src/product_feature/types.rs index 3e65b0f85..213ce8592 100644 --- a/generated/async-stripe-product/src/product_feature/types.rs +++ b/generated/async-stripe-product/src/product_feature/types.rs @@ -1,7 +1,6 @@ /// A product_feature represents an attachment between a feature and a product. /// When a product is purchased that has a feature attached, Stripe will create an entitlement to the feature for the purchasing customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ProductFeature { pub entitlement_feature: stripe_shared::EntitlementsFeature, diff --git a/generated/async-stripe-shared/Cargo.toml b/generated/async-stripe-shared/Cargo.toml index 040aff8ac..12a96c3c8 100644 --- a/generated/async-stripe-shared/Cargo.toml +++ b/generated/async-stripe-shared/Cargo.toml @@ -27,7 +27,7 @@ async-stripe-types = {path = "../../async-stripe-types"} [features] serialize = ["async-stripe-types/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra"] deserialize = ["async-stripe-types/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra", "dep:serde_json"] diff --git a/generated/async-stripe-shared/src/account.rs b/generated/async-stripe-shared/src/account.rs index 706e11d74..6e6ba3876 100644 --- a/generated/async-stripe-shared/src/account.rs +++ b/generated/async-stripe-shared/src/account.rs @@ -13,7 +13,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Account { /// Business information about the account. @@ -56,7 +55,7 @@ pub struct Account { pub settings: Option, pub tos_acceptance: Option, /// The Stripe account type. Can be `standard`, `express`, `custom`, or `none`. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/application.rs b/generated/async-stripe-shared/src/application.rs index ea290f1e7..1945eb58e 100644 --- a/generated/async-stripe-shared/src/application.rs +++ b/generated/async-stripe-shared/src/application.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Application { /// Unique identifier for the object. diff --git a/generated/async-stripe-shared/src/application_fee.rs b/generated/async-stripe-shared/src/application_fee.rs index 97db153f2..50b7d47a6 100644 --- a/generated/async-stripe-shared/src/application_fee.rs +++ b/generated/async-stripe-shared/src/application_fee.rs @@ -1,6 +1,5 @@ /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ApplicationFee { /// ID of the Stripe account this fee was taken from. diff --git a/generated/async-stripe-shared/src/application_fee_refund.rs b/generated/async-stripe-shared/src/application_fee_refund.rs index 231f27772..29862e781 100644 --- a/generated/async-stripe-shared/src/application_fee_refund.rs +++ b/generated/async-stripe-shared/src/application_fee_refund.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ApplicationFeeRefund { /// Amount, in cents (or local equivalent). diff --git a/generated/async-stripe-shared/src/balance_transaction.rs b/generated/async-stripe-shared/src/balance_transaction.rs index a02002c3f..24917afe1 100644 --- a/generated/async-stripe-shared/src/balance_transaction.rs +++ b/generated/async-stripe-shared/src/balance_transaction.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BalanceTransaction { /// Gross amount of this transaction (in cents (or local equivalent)). @@ -45,7 +44,7 @@ pub struct BalanceTransaction { /// Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. /// Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). /// To classify transactions for accounting purposes, consider `reporting_category` instead. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: BalanceTransactionType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/bank_account.rs b/generated/async-stripe-shared/src/bank_account.rs index 2e78d11a5..41bcd9a3b 100644 --- a/generated/async-stripe-shared/src/bank_account.rs +++ b/generated/async-stripe-shared/src/bank_account.rs @@ -7,7 +7,6 @@ /// /// Related guide: [Bank debits and transfers](/payments/bank-debits-transfers) #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankAccount { /// The ID of the account that the bank account is associated with. diff --git a/generated/async-stripe-shared/src/capability.rs b/generated/async-stripe-shared/src/capability.rs index 8c46fab0f..7d36c61ec 100644 --- a/generated/async-stripe-shared/src/capability.rs +++ b/generated/async-stripe-shared/src/capability.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Capability { /// The account for which the capability enables functionality. diff --git a/generated/async-stripe-shared/src/card.rs b/generated/async-stripe-shared/src/card.rs index 22b0e2748..763add6f9 100644 --- a/generated/async-stripe-shared/src/card.rs +++ b/generated/async-stripe-shared/src/card.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Card { /// The account this card belongs to. diff --git a/generated/async-stripe-shared/src/cash_balance.rs b/generated/async-stripe-shared/src/cash_balance.rs index 1045d2617..870bd9684 100644 --- a/generated/async-stripe-shared/src/cash_balance.rs +++ b/generated/async-stripe-shared/src/cash_balance.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CashBalance { /// A hash of all cash balances available to this customer. diff --git a/generated/async-stripe-shared/src/charge.rs b/generated/async-stripe-shared/src/charge.rs index d035c278c..24ae42171 100644 --- a/generated/async-stripe-shared/src/charge.rs +++ b/generated/async-stripe-shared/src/charge.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Charge { /// Amount intended to be collected by this payment. diff --git a/generated/async-stripe-shared/src/checkout_session_item.rs b/generated/async-stripe-shared/src/checkout_session_item.rs index 449b722ee..28217ba00 100644 --- a/generated/async-stripe-shared/src/checkout_session_item.rs +++ b/generated/async-stripe-shared/src/checkout_session_item.rs @@ -1,6 +1,5 @@ /// A line item. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSessionItem { /// Total discount amount applied. If no discounts were applied, defaults to 0. diff --git a/generated/async-stripe-shared/src/connect_collection_transfer.rs b/generated/async-stripe-shared/src/connect_collection_transfer.rs index 02677f16f..d8788d43b 100644 --- a/generated/async-stripe-shared/src/connect_collection_transfer.rs +++ b/generated/async-stripe-shared/src/connect_collection_transfer.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectCollectionTransfer { /// Amount transferred, in cents (or local equivalent). diff --git a/generated/async-stripe-shared/src/coupon.rs b/generated/async-stripe-shared/src/coupon.rs index 605c7ad40..c0fc77052 100644 --- a/generated/async-stripe-shared/src/coupon.rs +++ b/generated/async-stripe-shared/src/coupon.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Coupon { /// Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer. diff --git a/generated/async-stripe-shared/src/credit_note.rs b/generated/async-stripe-shared/src/credit_note.rs index e1a155ba4..0f5bcd4b0 100644 --- a/generated/async-stripe-shared/src/credit_note.rs +++ b/generated/async-stripe-shared/src/credit_note.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CreditNote { /// The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax. @@ -70,7 +69,7 @@ pub struct CreditNote { /// Type of this credit note, one of `pre_payment` or `post_payment`. /// A `pre_payment` credit note means it was issued when the invoice was open. /// A `post_payment` credit note means it was issued when the invoice was paid. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: CreditNoteType, /// The time that the credit note was voided. pub voided_at: Option, diff --git a/generated/async-stripe-shared/src/credit_note_line_item.rs b/generated/async-stripe-shared/src/credit_note_line_item.rs index 958d024a3..807eb8b3c 100644 --- a/generated/async-stripe-shared/src/credit_note_line_item.rs +++ b/generated/async-stripe-shared/src/credit_note_line_item.rs @@ -2,7 +2,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CreditNoteLineItem { /// The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts. @@ -29,7 +28,7 @@ pub struct CreditNoteLineItem { pub tax_rates: Vec, /// The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. /// When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: CreditNoteLineItemType, /// The cost of each unit of product being credited. pub unit_amount: Option, diff --git a/generated/async-stripe-shared/src/customer.rs b/generated/async-stripe-shared/src/customer.rs index eb745bb27..7c9498db3 100644 --- a/generated/async-stripe-shared/src/customer.rs +++ b/generated/async-stripe-shared/src/customer.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Customer { /// The customer's address. diff --git a/generated/async-stripe-shared/src/customer_balance_transaction.rs b/generated/async-stripe-shared/src/customer_balance_transaction.rs index 4ae1fcf95..38b86f60f 100644 --- a/generated/async-stripe-shared/src/customer_balance_transaction.rs +++ b/generated/async-stripe-shared/src/customer_balance_transaction.rs @@ -7,7 +7,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceTransaction { /// The amount of the transaction. @@ -39,7 +38,7 @@ pub struct CustomerBalanceTransaction { pub metadata: Option>, /// Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, or `unapplied_from_invoice`. /// See the [Customer Balance page](https://stripe.com/docs/billing/customer/balance#types) to learn more about transaction types. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: CustomerBalanceTransactionType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/customer_cash_balance_transaction.rs b/generated/async-stripe-shared/src/customer_cash_balance_transaction.rs index 5e30d7de8..248a45701 100644 --- a/generated/async-stripe-shared/src/customer_cash_balance_transaction.rs +++ b/generated/async-stripe-shared/src/customer_cash_balance_transaction.rs @@ -7,7 +7,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerCashBalanceTransaction { pub adjusted_for_overdraft: Option, @@ -35,7 +34,7 @@ pub transferred_to_balance: Option, diff --git a/generated/async-stripe-shared/src/deleted_account.rs b/generated/async-stripe-shared/src/deleted_account.rs index ffce6146f..99c389f25 100644 --- a/generated/async-stripe-shared/src/deleted_account.rs +++ b/generated/async-stripe-shared/src/deleted_account.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedAccount { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_bank_account.rs b/generated/async-stripe-shared/src/deleted_bank_account.rs index b7c135bfc..fc12b52f0 100644 --- a/generated/async-stripe-shared/src/deleted_bank_account.rs +++ b/generated/async-stripe-shared/src/deleted_bank_account.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedBankAccount { /// Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account. diff --git a/generated/async-stripe-shared/src/deleted_card.rs b/generated/async-stripe-shared/src/deleted_card.rs index 8f5b4f399..2474c9f04 100644 --- a/generated/async-stripe-shared/src/deleted_card.rs +++ b/generated/async-stripe-shared/src/deleted_card.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedCard { /// Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account. diff --git a/generated/async-stripe-shared/src/deleted_coupon.rs b/generated/async-stripe-shared/src/deleted_coupon.rs index 7b205a2cc..12e41af96 100644 --- a/generated/async-stripe-shared/src/deleted_coupon.rs +++ b/generated/async-stripe-shared/src/deleted_coupon.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedCoupon { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_customer.rs b/generated/async-stripe-shared/src/deleted_customer.rs index 483ac1128..e03c93ceb 100644 --- a/generated/async-stripe-shared/src/deleted_customer.rs +++ b/generated/async-stripe-shared/src/deleted_customer.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedCustomer { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_discount.rs b/generated/async-stripe-shared/src/deleted_discount.rs index a24141480..c8de0d016 100644 --- a/generated/async-stripe-shared/src/deleted_discount.rs +++ b/generated/async-stripe-shared/src/deleted_discount.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedDiscount { /// The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. diff --git a/generated/async-stripe-shared/src/deleted_invoice.rs b/generated/async-stripe-shared/src/deleted_invoice.rs index e02bef393..4aa059252 100644 --- a/generated/async-stripe-shared/src/deleted_invoice.rs +++ b/generated/async-stripe-shared/src/deleted_invoice.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedInvoice { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_invoiceitem.rs b/generated/async-stripe-shared/src/deleted_invoiceitem.rs index 84e2a93e5..0bc8c3050 100644 --- a/generated/async-stripe-shared/src/deleted_invoiceitem.rs +++ b/generated/async-stripe-shared/src/deleted_invoiceitem.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedInvoiceitem { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_person.rs b/generated/async-stripe-shared/src/deleted_person.rs index d4d144300..5775355f5 100644 --- a/generated/async-stripe-shared/src/deleted_person.rs +++ b/generated/async-stripe-shared/src/deleted_person.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedPerson { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_plan.rs b/generated/async-stripe-shared/src/deleted_plan.rs index bd7ad3bb7..f4413efcd 100644 --- a/generated/async-stripe-shared/src/deleted_plan.rs +++ b/generated/async-stripe-shared/src/deleted_plan.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedPlan { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_product.rs b/generated/async-stripe-shared/src/deleted_product.rs index 7ab6670a1..5109d6f90 100644 --- a/generated/async-stripe-shared/src/deleted_product.rs +++ b/generated/async-stripe-shared/src/deleted_product.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedProduct { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_subscription_item.rs b/generated/async-stripe-shared/src/deleted_subscription_item.rs index 06f919b57..a6613e7fb 100644 --- a/generated/async-stripe-shared/src/deleted_subscription_item.rs +++ b/generated/async-stripe-shared/src/deleted_subscription_item.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedSubscriptionItem { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_tax_id.rs b/generated/async-stripe-shared/src/deleted_tax_id.rs index b0f75af23..ac5919de2 100644 --- a/generated/async-stripe-shared/src/deleted_tax_id.rs +++ b/generated/async-stripe-shared/src/deleted_tax_id.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTaxId { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/deleted_test_helpers_test_clock.rs b/generated/async-stripe-shared/src/deleted_test_helpers_test_clock.rs index d46ee511c..3216a3708 100644 --- a/generated/async-stripe-shared/src/deleted_test_helpers_test_clock.rs +++ b/generated/async-stripe-shared/src/deleted_test_helpers_test_clock.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTestHelpersTestClock { #[allow(dead_code)] diff --git a/generated/async-stripe-shared/src/discount.rs b/generated/async-stripe-shared/src/discount.rs index 3def4261a..8f5c8bd3d 100644 --- a/generated/async-stripe-shared/src/discount.rs +++ b/generated/async-stripe-shared/src/discount.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Discount { /// The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. diff --git a/generated/async-stripe-shared/src/dispute.rs b/generated/async-stripe-shared/src/dispute.rs index d31463d49..bc5eb387e 100644 --- a/generated/async-stripe-shared/src/dispute.rs +++ b/generated/async-stripe-shared/src/dispute.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Dispute { /// Disputed amount. diff --git a/generated/async-stripe-shared/src/entitlements_feature.rs b/generated/async-stripe-shared/src/entitlements_feature.rs index 05acc362b..343062a92 100644 --- a/generated/async-stripe-shared/src/entitlements_feature.rs +++ b/generated/async-stripe-shared/src/entitlements_feature.rs @@ -1,7 +1,6 @@ /// A feature represents a monetizable ability or functionality in your system. /// Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct EntitlementsFeature { /// Inactive features cannot be attached to new products and will not be returned from the features list endpoint. diff --git a/generated/async-stripe-shared/src/event.rs b/generated/async-stripe-shared/src/event.rs index 33ab57888..780552162 100644 --- a/generated/async-stripe-shared/src/event.rs +++ b/generated/async-stripe-shared/src/event.rs @@ -31,7 +31,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Event { /// The connected account that originates the event. @@ -51,7 +50,7 @@ pub struct Event { /// Information on the API request that triggers the event. pub request: Option, /// Description of the event (for example, `invoice.created` or `charge.refunded`). - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: EventType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/file.rs b/generated/async-stripe-shared/src/file.rs index 79c2ac2c8..1f949c683 100644 --- a/generated/async-stripe-shared/src/file.rs +++ b/generated/async-stripe-shared/src/file.rs @@ -8,7 +8,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct File { /// Time at which the object was created. Measured in seconds since the Unix epoch. @@ -28,7 +27,7 @@ pub struct File { /// A suitable title for the document. pub title: Option, /// The returned file type (for example, `csv`, `pdf`, `jpg`, or `png`). - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: Option, /// Use your live secret API key to download the file from this URL. pub url: Option, diff --git a/generated/async-stripe-shared/src/file_link.rs b/generated/async-stripe-shared/src/file_link.rs index 1e0bdf7da..4fc1d8136 100644 --- a/generated/async-stripe-shared/src/file_link.rs +++ b/generated/async-stripe-shared/src/file_link.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FileLink { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-shared/src/funding_instructions.rs b/generated/async-stripe-shared/src/funding_instructions.rs index 65ee1974d..d13a6f06f 100644 --- a/generated/async-stripe-shared/src/funding_instructions.rs +++ b/generated/async-stripe-shared/src/funding_instructions.rs @@ -4,7 +4,6 @@ /// `financial_addresses` field. /// Related guide: [Customer balance funding instructions](https://stripe.com/docs/payments/customer-balance/funding-instructions). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructions { pub bank_transfer: stripe_shared::FundingInstructionsBankTransfer, diff --git a/generated/async-stripe-shared/src/invoice.rs b/generated/async-stripe-shared/src/invoice.rs index facaea274..8ddc46d12 100644 --- a/generated/async-stripe-shared/src/invoice.rs +++ b/generated/async-stripe-shared/src/invoice.rs @@ -33,7 +33,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Invoice { /// The country of the business associated with this invoice, most often the business creating the invoice. diff --git a/generated/async-stripe-shared/src/invoice_item.rs b/generated/async-stripe-shared/src/invoice_item.rs index 36386ed90..d2eb96f9e 100644 --- a/generated/async-stripe-shared/src/invoice_item.rs +++ b/generated/async-stripe-shared/src/invoice_item.rs @@ -16,7 +16,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceItem { /// Amount (in the `currency` specified) of the invoice item. diff --git a/generated/async-stripe-shared/src/invoice_line_item.rs b/generated/async-stripe-shared/src/invoice_line_item.rs index 2a22737de..58be4f051 100644 --- a/generated/async-stripe-shared/src/invoice_line_item.rs +++ b/generated/async-stripe-shared/src/invoice_line_item.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceLineItem { /// The amount, in cents (or local equivalent). @@ -52,7 +51,7 @@ pub struct InvoiceLineItem { /// The tax rates which apply to the line item. pub tax_rates: Option>, /// A string identifying the type of the source of this line item, either an `invoiceitem` or a `subscription`. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: InvoiceLineItemType, /// The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts. pub unit_amount_excluding_tax: Option, diff --git a/generated/async-stripe-shared/src/issuing_authorization.rs b/generated/async-stripe-shared/src/issuing_authorization.rs index 538747eac..08d3bb74f 100644 --- a/generated/async-stripe-shared/src/issuing_authorization.rs +++ b/generated/async-stripe-shared/src/issuing_authorization.rs @@ -7,7 +7,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorization { /// The total amount that was authorized or rejected. diff --git a/generated/async-stripe-shared/src/issuing_card.rs b/generated/async-stripe-shared/src/issuing_card.rs index d54a44ee4..dc66c880e 100644 --- a/generated/async-stripe-shared/src/issuing_card.rs +++ b/generated/async-stripe-shared/src/issuing_card.rs @@ -2,7 +2,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCard { /// The brand of the card. @@ -55,7 +54,7 @@ pub struct IssuingCard { /// Defaults to `inactive`. pub status: stripe_shared::IssuingCardStatus, /// The type of the card. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::IssuingCardType, /// Information relating to digital wallets (like Apple Pay and Google Pay). pub wallets: Option, diff --git a/generated/async-stripe-shared/src/issuing_cardholder.rs b/generated/async-stripe-shared/src/issuing_cardholder.rs index db61dd5dc..84325f3a8 100644 --- a/generated/async-stripe-shared/src/issuing_cardholder.rs +++ b/generated/async-stripe-shared/src/issuing_cardholder.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholder { pub billing: stripe_shared::IssuingCardholderAddress, @@ -41,7 +40,7 @@ pub struct IssuingCardholder { pub status: stripe_shared::IssuingCardholderStatus, /// One of `individual` or `company`. /// See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::IssuingCardholderType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/issuing_dispute.rs b/generated/async-stripe-shared/src/issuing_dispute.rs index 2a0a2ac89..71718424d 100644 --- a/generated/async-stripe-shared/src/issuing_dispute.rs +++ b/generated/async-stripe-shared/src/issuing_dispute.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDispute { /// Disputed amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/generated/async-stripe-shared/src/issuing_personalization_design.rs b/generated/async-stripe-shared/src/issuing_personalization_design.rs index 41a8cf3a4..385f7151a 100644 --- a/generated/async-stripe-shared/src/issuing_personalization_design.rs +++ b/generated/async-stripe-shared/src/issuing_personalization_design.rs @@ -1,6 +1,5 @@ /// A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingPersonalizationDesign { /// The file for the card logo to use with physical bundles that support card logos. diff --git a/generated/async-stripe-shared/src/issuing_physical_bundle.rs b/generated/async-stripe-shared/src/issuing_physical_bundle.rs index ad7d4f039..3d7146ba0 100644 --- a/generated/async-stripe-shared/src/issuing_physical_bundle.rs +++ b/generated/async-stripe-shared/src/issuing_physical_bundle.rs @@ -1,6 +1,5 @@ /// A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingPhysicalBundle { pub features: Option, @@ -13,7 +12,7 @@ pub struct IssuingPhysicalBundle { /// Whether this physical bundle can be used to create cards. pub status: stripe_shared::IssuingPhysicalBundleStatus, /// Whether this physical bundle is a standard Stripe offering or custom-made for you. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::IssuingPhysicalBundleType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/issuing_token.rs b/generated/async-stripe-shared/src/issuing_token.rs index 102c24325..f3ce614a6 100644 --- a/generated/async-stripe-shared/src/issuing_token.rs +++ b/generated/async-stripe-shared/src/issuing_token.rs @@ -3,7 +3,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingToken { /// Card associated with this token. diff --git a/generated/async-stripe-shared/src/issuing_transaction.rs b/generated/async-stripe-shared/src/issuing_transaction.rs index 4f8f0c594..6766a52cc 100644 --- a/generated/async-stripe-shared/src/issuing_transaction.rs +++ b/generated/async-stripe-shared/src/issuing_transaction.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransaction { /// The transaction amount, which will be reflected in your balance. @@ -53,7 +52,7 @@ pub struct IssuingTransaction { /// [Treasury](https://stripe.com/docs/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts. pub treasury: Option, /// The nature of the transaction. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::IssuingTransactionType, /// The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. pub wallet: Option, diff --git a/generated/async-stripe-shared/src/mandate.rs b/generated/async-stripe-shared/src/mandate.rs index 42a75123c..2c93c2d79 100644 --- a/generated/async-stripe-shared/src/mandate.rs +++ b/generated/async-stripe-shared/src/mandate.rs @@ -2,7 +2,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Mandate { pub customer_acceptance: stripe_shared::CustomerAcceptance, @@ -20,7 +19,7 @@ pub struct Mandate { /// The mandate status indicates whether or not you can use it to initiate a payment. pub status: MandateStatus, /// The type of the mandate. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: MandateType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/payment_intent.rs b/generated/async-stripe-shared/src/payment_intent.rs index b9d5aa9bb..92f242156 100644 --- a/generated/async-stripe-shared/src/payment_intent.rs +++ b/generated/async-stripe-shared/src/payment_intent.rs @@ -12,7 +12,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntent { /// Amount intended to be collected by this PaymentIntent. diff --git a/generated/async-stripe-shared/src/payment_link.rs b/generated/async-stripe-shared/src/payment_link.rs index 38927e8b0..547f556b2 100644 --- a/generated/async-stripe-shared/src/payment_link.rs +++ b/generated/async-stripe-shared/src/payment_link.rs @@ -8,7 +8,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLink { /// Whether the payment link's `url` is active. diff --git a/generated/async-stripe-shared/src/payment_method.rs b/generated/async-stripe-shared/src/payment_method.rs index 90a82ed2b..2b90be427 100644 --- a/generated/async-stripe-shared/src/payment_method.rs +++ b/generated/async-stripe-shared/src/payment_method.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethod { pub acss_debit: Option, @@ -60,7 +59,7 @@ pub struct PaymentMethod { /// The type of the PaymentMethod. /// An additional hash is included on the PaymentMethod with a name matching this value. /// It contains additional information specific to the PaymentMethod type. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: PaymentMethodType, pub us_bank_account: Option, pub wechat_pay: Option, diff --git a/generated/async-stripe-shared/src/payout.rs b/generated/async-stripe-shared/src/payout.rs index fe6ffc9e7..13062f8b5 100644 --- a/generated/async-stripe-shared/src/payout.rs +++ b/generated/async-stripe-shared/src/payout.rs @@ -9,7 +9,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Payout { /// The amount (in cents (or local equivalent)) that transfers to your bank account or debit card. @@ -65,7 +64,7 @@ pub struct Payout { /// Some payouts that fail might initially show as `paid`, then change to `failed`. pub status: String, /// Can be `bank_account` or `card`. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: PayoutType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/person.rs b/generated/async-stripe-shared/src/person.rs index 771ffcc7e..5406935e5 100644 --- a/generated/async-stripe-shared/src/person.rs +++ b/generated/async-stripe-shared/src/person.rs @@ -7,7 +7,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Person { /// The account the person is associated with. diff --git a/generated/async-stripe-shared/src/plan.rs b/generated/async-stripe-shared/src/plan.rs index 4c0bb7ca3..5107c692b 100644 --- a/generated/async-stripe-shared/src/plan.rs +++ b/generated/async-stripe-shared/src/plan.rs @@ -12,7 +12,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Plan { /// Whether the plan can be used for new purchases. diff --git a/generated/async-stripe-shared/src/platform_tax_fee.rs b/generated/async-stripe-shared/src/platform_tax_fee.rs index 6063e5873..848a355f2 100644 --- a/generated/async-stripe-shared/src/platform_tax_fee.rs +++ b/generated/async-stripe-shared/src/platform_tax_fee.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PlatformTaxFee { /// The Connected account that incurred this charge. @@ -9,7 +8,7 @@ pub struct PlatformTaxFee { /// The payment object that caused this tax to be inflicted. pub source_transaction: String, /// The type of tax (VAT). - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: String, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/price.rs b/generated/async-stripe-shared/src/price.rs index 681ba2a40..18c4d9a1e 100644 --- a/generated/async-stripe-shared/src/price.rs +++ b/generated/async-stripe-shared/src/price.rs @@ -9,7 +9,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Price { /// Whether the price can be used for new purchases. @@ -63,7 +62,7 @@ pub struct Price { /// Cannot be combined with `tiers`. pub transform_quantity: Option, /// One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::PriceType, /// The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. /// Only set if `billing_scheme=per_unit`. diff --git a/generated/async-stripe-shared/src/product.rs b/generated/async-stripe-shared/src/product.rs index c00c08997..f2499e360 100644 --- a/generated/async-stripe-shared/src/product.rs +++ b/generated/async-stripe-shared/src/product.rs @@ -9,7 +9,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Product { /// Whether the product is currently available for purchase. @@ -46,7 +45,7 @@ pub struct Product { pub tax_code: Option>, /// The type of the product. /// The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::ProductType, /// A label that represents units of this product. /// When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. diff --git a/generated/async-stripe-shared/src/promotion_code.rs b/generated/async-stripe-shared/src/promotion_code.rs index 52543d6d4..69bac325c 100644 --- a/generated/async-stripe-shared/src/promotion_code.rs +++ b/generated/async-stripe-shared/src/promotion_code.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PromotionCode { /// Whether the promotion code is currently active. diff --git a/generated/async-stripe-shared/src/quote.rs b/generated/async-stripe-shared/src/quote.rs index 29c8beaa1..3e4675201 100644 --- a/generated/async-stripe-shared/src/quote.rs +++ b/generated/async-stripe-shared/src/quote.rs @@ -3,7 +3,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Quote { /// Total before any discounts or taxes are applied. diff --git a/generated/async-stripe-shared/src/refund.rs b/generated/async-stripe-shared/src/refund.rs index 9c65983ae..2e74dc457 100644 --- a/generated/async-stripe-shared/src/refund.rs +++ b/generated/async-stripe-shared/src/refund.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Refund { /// Amount, in cents (or local equivalent). diff --git a/generated/async-stripe-shared/src/reserve_transaction.rs b/generated/async-stripe-shared/src/reserve_transaction.rs index 9c8582fbe..f3b6e4a36 100644 --- a/generated/async-stripe-shared/src/reserve_transaction.rs +++ b/generated/async-stripe-shared/src/reserve_transaction.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ReserveTransaction { pub amount: i64, diff --git a/generated/async-stripe-shared/src/review.rs b/generated/async-stripe-shared/src/review.rs index 82b94b7a5..e7a3bd680 100644 --- a/generated/async-stripe-shared/src/review.rs +++ b/generated/async-stripe-shared/src/review.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Review { /// The ZIP or postal code of the card used, if applicable. diff --git a/generated/async-stripe-shared/src/setup_attempt.rs b/generated/async-stripe-shared/src/setup_attempt.rs index c22692679..cb77ced81 100644 --- a/generated/async-stripe-shared/src/setup_attempt.rs +++ b/generated/async-stripe-shared/src/setup_attempt.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttempt { /// The value of [application](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-application) on the SetupIntent at the time of this confirmation. diff --git a/generated/async-stripe-shared/src/setup_intent.rs b/generated/async-stripe-shared/src/setup_intent.rs index d9faff2fc..177f3b341 100644 --- a/generated/async-stripe-shared/src/setup_intent.rs +++ b/generated/async-stripe-shared/src/setup_intent.rs @@ -22,7 +22,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntent { /// ID of the Connect application that created the SetupIntent. diff --git a/generated/async-stripe-shared/src/shipping_rate.rs b/generated/async-stripe-shared/src/shipping_rate.rs index ad3a895f9..440396ca3 100644 --- a/generated/async-stripe-shared/src/shipping_rate.rs +++ b/generated/async-stripe-shared/src/shipping_rate.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ShippingRate { /// Whether the shipping rate can be used for new purchases. Defaults to `true`. @@ -32,7 +31,7 @@ pub struct ShippingRate { /// The Shipping tax code is `txcd_92010001`. pub tax_code: Option>, /// The type of calculation to use on the shipping rate. Can only be `fixed_amount` for now. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::ShippingRateType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/source.rs b/generated/async-stripe-shared/src/source.rs index d30d704b0..f066738f1 100644 --- a/generated/async-stripe-shared/src/source.rs +++ b/generated/async-stripe-shared/src/source.rs @@ -11,7 +11,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Source { pub ach_credit_transfer: Option, @@ -73,7 +72,7 @@ pub struct Source { /// The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. /// An additional hash is included on the source with a name matching this value. /// It contains additional information specific to the [payment method](https://stripe.com/docs/sources) used. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: SourceType, /// Either `reusable` or `single_use`. /// Whether this source should be reusable or not. diff --git a/generated/async-stripe-shared/src/source_transaction.rs b/generated/async-stripe-shared/src/source_transaction.rs index 9fbafe8be..a357c02de 100644 --- a/generated/async-stripe-shared/src/source_transaction.rs +++ b/generated/async-stripe-shared/src/source_transaction.rs @@ -3,7 +3,6 @@ /// multiple transactions. As such, sources can have multiple associated /// transactions. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTransaction { pub ach_credit_transfer: Option, @@ -27,7 +26,7 @@ pub struct SourceTransaction { /// The status of the transaction, one of `succeeded`, `pending`, or `failed`. pub status: String, /// The type of source this transaction is attached to. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: SourceTransactionType, } #[doc(hidden)] diff --git a/generated/async-stripe-shared/src/subscription.rs b/generated/async-stripe-shared/src/subscription.rs index 57d7df990..7eceb42dd 100644 --- a/generated/async-stripe-shared/src/subscription.rs +++ b/generated/async-stripe-shared/src/subscription.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Subscription { /// ID of the Connect Application that created the subscription. diff --git a/generated/async-stripe-shared/src/subscription_item.rs b/generated/async-stripe-shared/src/subscription_item.rs index cacf540d1..1e57379e5 100644 --- a/generated/async-stripe-shared/src/subscription_item.rs +++ b/generated/async-stripe-shared/src/subscription_item.rs @@ -3,7 +3,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionItem { /// Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period. diff --git a/generated/async-stripe-shared/src/subscription_schedule.rs b/generated/async-stripe-shared/src/subscription_schedule.rs index 646c6ee14..c76609e08 100644 --- a/generated/async-stripe-shared/src/subscription_schedule.rs +++ b/generated/async-stripe-shared/src/subscription_schedule.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionSchedule { /// ID of the Connect Application that created the schedule. diff --git a/generated/async-stripe-shared/src/tax_code.rs b/generated/async-stripe-shared/src/tax_code.rs index a4d71901f..b52ffdc4f 100644 --- a/generated/async-stripe-shared/src/tax_code.rs +++ b/generated/async-stripe-shared/src/tax_code.rs @@ -2,7 +2,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxCode { /// A detailed description of which types of products the tax code represents. diff --git a/generated/async-stripe-shared/src/tax_deducted_at_source.rs b/generated/async-stripe-shared/src/tax_deducted_at_source.rs index 5506a6134..6ba94d3e0 100644 --- a/generated/async-stripe-shared/src/tax_deducted_at_source.rs +++ b/generated/async-stripe-shared/src/tax_deducted_at_source.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxDeductedAtSource { /// Unique identifier for the object. diff --git a/generated/async-stripe-shared/src/tax_id.rs b/generated/async-stripe-shared/src/tax_id.rs index 0ba1bc33f..dff946c1f 100644 --- a/generated/async-stripe-shared/src/tax_id.rs +++ b/generated/async-stripe-shared/src/tax_id.rs @@ -5,7 +5,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxId { /// Two-letter ISO code representing the country of the tax ID. @@ -22,7 +21,7 @@ pub struct TaxId { pub owner: Option, /// Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. /// Note that some legacy tax IDs have type `unknown`. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TaxIdType, /// Value of the tax ID. pub value: String, diff --git a/generated/async-stripe-shared/src/tax_rate.rs b/generated/async-stripe-shared/src/tax_rate.rs index 6e99f4398..d53ef0696 100644 --- a/generated/async-stripe-shared/src/tax_rate.rs +++ b/generated/async-stripe-shared/src/tax_rate.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxRate { /// Defaults to `true`. diff --git a/generated/async-stripe-shared/src/test_helpers_test_clock.rs b/generated/async-stripe-shared/src/test_helpers_test_clock.rs index 78ca73343..b9f438e57 100644 --- a/generated/async-stripe-shared/src/test_helpers_test_clock.rs +++ b/generated/async-stripe-shared/src/test_helpers_test_clock.rs @@ -4,7 +4,6 @@ /// After the clock advances,. /// you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TestHelpersTestClock { /// Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/generated/async-stripe-shared/src/topup.rs b/generated/async-stripe-shared/src/topup.rs index 74606a3ee..a7f1bb1f3 100644 --- a/generated/async-stripe-shared/src/topup.rs +++ b/generated/async-stripe-shared/src/topup.rs @@ -6,7 +6,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Topup { /// Amount transferred. diff --git a/generated/async-stripe-shared/src/transfer.rs b/generated/async-stripe-shared/src/transfer.rs index 0dd20af85..e67a240f2 100644 --- a/generated/async-stripe-shared/src/transfer.rs +++ b/generated/async-stripe-shared/src/transfer.rs @@ -12,7 +12,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Transfer { /// Amount in cents (or local equivalent) to be transferred. diff --git a/generated/async-stripe-shared/src/transfer_reversal.rs b/generated/async-stripe-shared/src/transfer_reversal.rs index c650b3044..8fe054f9e 100644 --- a/generated/async-stripe-shared/src/transfer_reversal.rs +++ b/generated/async-stripe-shared/src/transfer_reversal.rs @@ -14,7 +14,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TransferReversal { /// Amount, in cents (or local equivalent). diff --git a/generated/async-stripe-shared/src/usage_record_summary.rs b/generated/async-stripe-shared/src/usage_record_summary.rs index 0ba77e9ae..50ba33530 100644 --- a/generated/async-stripe-shared/src/usage_record_summary.rs +++ b/generated/async-stripe-shared/src/usage_record_summary.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct UsageRecordSummary { /// Unique identifier for the object. diff --git a/generated/async-stripe-terminal/Cargo.toml b/generated/async-stripe-terminal/Cargo.toml index cfeaf72e6..6ee315313 100644 --- a/generated/async-stripe-terminal/Cargo.toml +++ b/generated/async-stripe-terminal/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] terminal_configuration = [] terminal_connection_token = [] terminal_location = [] diff --git a/generated/async-stripe-terminal/src/deleted_terminal_configuration.rs b/generated/async-stripe-terminal/src/deleted_terminal_configuration.rs index 2407590fe..29b8745ff 100644 --- a/generated/async-stripe-terminal/src/deleted_terminal_configuration.rs +++ b/generated/async-stripe-terminal/src/deleted_terminal_configuration.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTerminalConfiguration { #[allow(dead_code)] diff --git a/generated/async-stripe-terminal/src/deleted_terminal_location.rs b/generated/async-stripe-terminal/src/deleted_terminal_location.rs index 7f53f4742..0e0c61dca 100644 --- a/generated/async-stripe-terminal/src/deleted_terminal_location.rs +++ b/generated/async-stripe-terminal/src/deleted_terminal_location.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTerminalLocation { #[allow(dead_code)] diff --git a/generated/async-stripe-terminal/src/deleted_terminal_reader.rs b/generated/async-stripe-terminal/src/deleted_terminal_reader.rs index c3178509d..494f3a098 100644 --- a/generated/async-stripe-terminal/src/deleted_terminal_reader.rs +++ b/generated/async-stripe-terminal/src/deleted_terminal_reader.rs @@ -1,5 +1,4 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTerminalReader { #[allow(dead_code)] diff --git a/generated/async-stripe-terminal/src/terminal_configuration/types.rs b/generated/async-stripe-terminal/src/terminal_configuration/types.rs index 5d2308a10..8d31e863f 100644 --- a/generated/async-stripe-terminal/src/terminal_configuration/types.rs +++ b/generated/async-stripe-terminal/src/terminal_configuration/types.rs @@ -2,7 +2,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConfiguration { pub bbpos_wisepos_e: diff --git a/generated/async-stripe-terminal/src/terminal_connection_token/types.rs b/generated/async-stripe-terminal/src/terminal_connection_token/types.rs index 5d58c10e6..d3c084a65 100644 --- a/generated/async-stripe-terminal/src/terminal_connection_token/types.rs +++ b/generated/async-stripe-terminal/src/terminal_connection_token/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConnectionToken { /// The id of the location that this connection token is scoped to. diff --git a/generated/async-stripe-terminal/src/terminal_location/types.rs b/generated/async-stripe-terminal/src/terminal_location/types.rs index f6d40757b..6876656e4 100644 --- a/generated/async-stripe-terminal/src/terminal_location/types.rs +++ b/generated/async-stripe-terminal/src/terminal_location/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalLocation { pub address: stripe_shared::Address, diff --git a/generated/async-stripe-terminal/src/terminal_reader/types.rs b/generated/async-stripe-terminal/src/terminal_reader/types.rs index 8db68ec7c..824fecc19 100644 --- a/generated/async-stripe-terminal/src/terminal_reader/types.rs +++ b/generated/async-stripe-terminal/src/terminal_reader/types.rs @@ -4,7 +4,6 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReader { /// The most recent action performed by the reader. diff --git a/generated/async-stripe-treasury/Cargo.toml b/generated/async-stripe-treasury/Cargo.toml index 866469ebb..c9d43272c 100644 --- a/generated/async-stripe-treasury/Cargo.toml +++ b/generated/async-stripe-treasury/Cargo.toml @@ -28,9 +28,9 @@ async-stripe-shared = {path = "../../generated/async-stripe-shared"} [features] serialize = ["async-stripe-types/serialize","async-stripe-shared/serialize"] -serialize_extra = ["async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] +serialize_extra = ["serialize", "async-stripe-types/serialize_extra","async-stripe-shared/serialize_extra"] deserialize = ["async-stripe-types/deserialize","async-stripe-shared/deserialize", "dep:serde_json"] -deserialize_extra = ["async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] +deserialize_extra = ["deserialize", "async-stripe-types/deserialize_extra","async-stripe-shared/deserialize_extra", "dep:serde_json"] treasury_credit_reversal = [] treasury_debit_reversal = [] treasury_financial_account = [] diff --git a/generated/async-stripe-treasury/src/treasury_credit_reversal/types.rs b/generated/async-stripe-treasury/src/treasury_credit_reversal/types.rs index 6bdce2838..a445aed25 100644 --- a/generated/async-stripe-treasury/src/treasury_credit_reversal/types.rs +++ b/generated/async-stripe-treasury/src/treasury_credit_reversal/types.rs @@ -1,7 +1,6 @@ /// You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. /// Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryCreditReversal { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_debit_reversal/types.rs b/generated/async-stripe-treasury/src/treasury_debit_reversal/types.rs index 2c8cb8e8e..4ba5fee3b 100644 --- a/generated/async-stripe-treasury/src/treasury_debit_reversal/types.rs +++ b/generated/async-stripe-treasury/src/treasury_debit_reversal/types.rs @@ -1,7 +1,6 @@ /// You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. /// Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryDebitReversal { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_financial_account/types.rs b/generated/async-stripe-treasury/src/treasury_financial_account/types.rs index 18e28bddc..823962df2 100644 --- a/generated/async-stripe-treasury/src/treasury_financial_account/types.rs +++ b/generated/async-stripe-treasury/src/treasury_financial_account/types.rs @@ -1,7 +1,6 @@ /// Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance. /// FinancialAccounts serve as the source and destination of Treasury’s money movement APIs. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccount { /// The array of paths to active Features in the Features hash. diff --git a/generated/async-stripe-treasury/src/treasury_financial_account_features.rs b/generated/async-stripe-treasury/src/treasury_financial_account_features.rs index 7d7487a05..7fa3bff18 100644 --- a/generated/async-stripe-treasury/src/treasury_financial_account_features.rs +++ b/generated/async-stripe-treasury/src/treasury_financial_account_features.rs @@ -1,7 +1,6 @@ /// Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. /// Stripe or the platform can control Features via the requested field. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountFeatures { pub card_issuing: Option, diff --git a/generated/async-stripe-treasury/src/treasury_inbound_transfer/types.rs b/generated/async-stripe-treasury/src/treasury_inbound_transfer/types.rs index 335c37760..937da35ab 100644 --- a/generated/async-stripe-treasury/src/treasury_inbound_transfer/types.rs +++ b/generated/async-stripe-treasury/src/treasury_inbound_transfer/types.rs @@ -1,7 +1,6 @@ /// Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. /// The funds will be transferred via an ACH debit. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryInboundTransfer { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_outbound_payment/types.rs b/generated/async-stripe-treasury/src/treasury_outbound_payment/types.rs index aff69d672..ad46c07e9 100644 --- a/generated/async-stripe-treasury/src/treasury_outbound_payment/types.rs +++ b/generated/async-stripe-treasury/src/treasury_outbound_payment/types.rs @@ -4,7 +4,6 @@ /// Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. /// These methods can only be called on test mode objects. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundPayment { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_outbound_transfer/types.rs b/generated/async-stripe-treasury/src/treasury_outbound_transfer/types.rs index 33556008a..1efdf888a 100644 --- a/generated/async-stripe-treasury/src/treasury_outbound_transfer/types.rs +++ b/generated/async-stripe-treasury/src/treasury_outbound_transfer/types.rs @@ -5,7 +5,6 @@ /// Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. /// These methods can only be called on test mode objects. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundTransfer { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_received_credit/types.rs b/generated/async-stripe-treasury/src/treasury_received_credit/types.rs index 9dfa13f4a..58c67dcc3 100644 --- a/generated/async-stripe-treasury/src/treasury_received_credit/types.rs +++ b/generated/async-stripe-treasury/src/treasury_received_credit/types.rs @@ -1,7 +1,6 @@ /// ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). /// These money movements are not initiated from the FinancialAccount. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedCredit { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_received_debit/types.rs b/generated/async-stripe-treasury/src/treasury_received_debit/types.rs index 4f9223e02..493974c1b 100644 --- a/generated/async-stripe-treasury/src/treasury_received_debit/types.rs +++ b/generated/async-stripe-treasury/src/treasury_received_debit/types.rs @@ -1,7 +1,6 @@ /// ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). /// These are not initiated from the FinancialAccount. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedDebit { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_transaction/types.rs b/generated/async-stripe-treasury/src/treasury_transaction/types.rs index 2c1c08b75..f455f7a16 100644 --- a/generated/async-stripe-treasury/src/treasury_transaction/types.rs +++ b/generated/async-stripe-treasury/src/treasury_transaction/types.rs @@ -1,6 +1,5 @@ /// Transactions represent changes to a [FinancialAccount's](https://stripe.com/docs/api#financial_accounts) balance. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryTransaction { /// Amount (in cents) transferred. diff --git a/generated/async-stripe-treasury/src/treasury_transaction_entry/types.rs b/generated/async-stripe-treasury/src/treasury_transaction_entry/types.rs index eed892fba..1d91a0027 100644 --- a/generated/async-stripe-treasury/src/treasury_transaction_entry/types.rs +++ b/generated/async-stripe-treasury/src/treasury_transaction_entry/types.rs @@ -1,6 +1,5 @@ /// TransactionEntries represent individual units of money movements within a single [Transaction](https://stripe.com/docs/api#transactions). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serialize_extra", derive(serde::Serialize))] #[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryTransactionEntry { pub balance_impact: stripe_treasury::TreasuryTransactionsResourceBalanceImpact, @@ -26,7 +25,7 @@ pub struct TreasuryTransactionEntry { /// The Transaction associated with this object. pub transaction: stripe_types::Expandable, /// The specific money movement that generated the TransactionEntry. - #[cfg_attr(any(feature = "deserialize", feature = "serialize_extra"), serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TreasuryTransactionEntryType, } #[doc(hidden)] diff --git a/openapi/src/templates/cargo_toml.rs b/openapi/src/templates/cargo_toml.rs index eb58428a5..4a650a1a5 100644 --- a/openapi/src/templates/cargo_toml.rs +++ b/openapi/src/templates/cargo_toml.rs @@ -69,9 +69,9 @@ pub fn gen_crate_toml(krate: Crate, crate_deps: Vec, crate_features: Vec< [features] serialize = [{ser_features}] - serialize_extra = [{ser_extra_features}] + serialize_extra = ["serialize", {ser_extra_features}] deserialize = [{deser_features}, "dep:serde_json"] - deserialize_extra = [{deser_extra_features}, "dep:serde_json"] + deserialize_extra = ["deserialize", {deser_extra_features}, "dep:serde_json"] {features} "# } diff --git a/openapi/src/templates/structs.rs b/openapi/src/templates/structs.rs index 3e9623bbe..24e7f9a8e 100644 --- a/openapi/src/templates/structs.rs +++ b/openapi/src/templates/structs.rs @@ -26,6 +26,8 @@ impl<'a> ObjectWriter<'a> { } else if struct_.object_field.is_none() { // Otherwise we can just use the proc macro if there is no object sentinel field serde_derive.serialize(ShouldDerive::Gated); + } else if struct_.object_field.is_some() { + serde_derive.serialize(ShouldDerive::Never); } let fields = &struct_.fields; diff --git a/openapi/src/templates/utils.rs b/openapi/src/templates/utils.rs index 363165703..5bbfcd1fa 100644 --- a/openapi/src/templates/utils.rs +++ b/openapi/src/templates/utils.rs @@ -29,12 +29,19 @@ impl SerdeDeriveState { } pub fn write_derives(&self, out: &mut String) { - write_derive(self.serialize, SerOrDeser::Ser, out); - write_derive(self.deserialize, SerOrDeser::Deser, out); + if self.serialize != ShouldDerive::Never { + write_derive(self.serialize, SerOrDeser::Ser, out); + } + if self.deserialize != ShouldDerive::Never { + write_derive(self.deserialize, SerOrDeser::Deser, out); + } } pub fn maybe_write_tag(&self, out: &mut String, tag: impl Display) { let feature_gate = match self.usage() { + SerdeUsage::Never => { + return; + } SerdeUsage::Always => { let _ = writeln!(out, r#"#[serde({tag})]"#); return; @@ -43,6 +50,10 @@ impl SerdeDeriveState { SerdeUsage::DeserGatedSerExtra => SerFeatureGate::DeserGatedSerExtra, SerdeUsage::EitherExtra => SerFeatureGate::EitherExtra, SerdeUsage::EitherGated => SerFeatureGate::EitherGated, + SerdeUsage::SerGated => SerFeatureGate::Ser, + SerdeUsage::SerExtra => SerFeatureGate::SerExtra, + SerdeUsage::DeserGated => SerFeatureGate::Deser, + SerdeUsage::DeserExtra => SerFeatureGate::DeserExtra, }; let _ = writeln!(out, r#"#[cfg_attr({feature_gate}, serde({tag}))]"#); } @@ -53,12 +64,17 @@ impl SerdeDeriveState { fn usage(&self) -> SerdeUsage { match (self.serialize, self.deserialize) { + (ShouldDerive::Never, ShouldDerive::Never) => SerdeUsage::Never, (ShouldDerive::Always, _) => SerdeUsage::Always, (_, ShouldDerive::Always) => SerdeUsage::Always, (ShouldDerive::Gated, ShouldDerive::Extra) => SerdeUsage::SerGatedDeserExtra, (ShouldDerive::Extra, ShouldDerive::Gated) => SerdeUsage::DeserGatedSerExtra, (ShouldDerive::Extra, ShouldDerive::Extra) => SerdeUsage::EitherExtra, (ShouldDerive::Gated, ShouldDerive::Gated) => SerdeUsage::EitherGated, + (ShouldDerive::Gated, ShouldDerive::Never) => SerdeUsage::SerGated, + (ShouldDerive::Extra, ShouldDerive::Never) => SerdeUsage::SerExtra, + (ShouldDerive::Never, ShouldDerive::Gated) => SerdeUsage::DeserGated, + (ShouldDerive::Never, ShouldDerive::Extra) => SerdeUsage::DeserExtra, } } } @@ -79,11 +95,16 @@ fn write_derive(derive: ShouldDerive, ser: SerOrDeser, out: &mut String) { } enum SerdeUsage { + SerGated, + SerExtra, + DeserGated, + DeserExtra, SerGatedDeserExtra, DeserGatedSerExtra, EitherExtra, EitherGated, Always, + Never, } #[derive(Debug, Copy, Clone, PartialEq, Eq, Default)] @@ -92,10 +113,15 @@ pub enum ShouldDerive { Gated, #[default] Extra, + Never, } #[derive(Debug, Copy, Clone)] enum SerFeatureGate { + Ser, + SerExtra, + Deser, + DeserExtra, SerGatedDeserExtra, DeserGatedSerExtra, EitherExtra, @@ -105,6 +131,10 @@ enum SerFeatureGate { impl Display for SerFeatureGate { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { f.write_str(match self { + SerFeatureGate::Ser => r#"feature = "serialize""#, + SerFeatureGate::SerExtra => r#"feature = "serialize_extra""#, + SerFeatureGate::Deser => r#"feature = "deserialize""#, + SerFeatureGate::DeserExtra => r#"feature = "deserialize_extra""#, SerFeatureGate::SerGatedDeserExtra => { r#"any(feature = "deserialize_extra", feature = "serialize")"# }