Skip to content

Commit

Permalink
fix double derive
Browse files Browse the repository at this point in the history
  • Loading branch information
lasantosr committed Sep 2, 2024
1 parent e80622b commit cff06ad
Show file tree
Hide file tree
Showing 171 changed files with 93 additions and 216 deletions.
4 changes: 2 additions & 2 deletions async-stripe-webhook/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions generated/async-stripe-billing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-billing/src/billing_meter/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-billing/src/usage_record/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
///
/// For more details see <<https://stripe.com/docs/api/usage_records/object>>.
#[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.
Expand Down
4 changes: 2 additions & 2 deletions generated/async-stripe-checkout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
///
/// For more details see <<https://stripe.com/docs/api/checkout/sessions/object>>.
#[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.
Expand Down
4 changes: 2 additions & 2 deletions generated/async-stripe-connect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-connect/src/account_link/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
///
/// For more details see <<https://stripe.com/docs/api/account_links/object>>.
#[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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
///
/// For more details see <<https://stripe.com/docs/api/account_sessions/object>>.
#[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
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-connect/src/apps_secret/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-connect/src/country_spec/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
///
/// For more details see <<https://stripe.com/docs/api/country_specs/object>>.
#[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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-connect/src/login_link/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
///
/// For more details see <<https://stripe.com/docs/api/account/login_link>>.
#[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.
Expand Down
4 changes: 2 additions & 2 deletions generated/async-stripe-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-core/src/balance/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
///
/// For more details see <<https://stripe.com/docs/api/balance/balance_object>>.
#[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).
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-core/src/customer_session/types.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions generated/async-stripe-core/src/token/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
///
/// For more details see <<https://stripe.com/docs/api/tokens/object>>.
#[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<stripe_shared::BankAccount>,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions generated/async-stripe-fraud/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-fraud/src/radar_value_list/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
///
/// For more details see <<https://stripe.com/docs/api/radar/value_lists/object>>.
#[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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
///
/// For more details see <<https://stripe.com/docs/api/radar/value_list_items/object>>.
#[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.
Expand Down
4 changes: 2 additions & 2 deletions generated/async-stripe-issuing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
4 changes: 2 additions & 2 deletions generated/async-stripe-misc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-misc/src/apple_pay_domain/types.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-misc/src/climate_order/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-misc/src/climate_product/types.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-misc/src/climate_supplier/types.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-misc/src/ephemeral_key/types.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion generated/async-stripe-misc/src/exchange_rate/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
///
/// For more details see <<https://stripe.com/docs/api/financial_connections/accounts/object>>.
#[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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading

0 comments on commit cff06ad

Please sign in to comment.