diff --git a/async-stripe/src/blocking.rs b/async-stripe/src/blocking.rs index baff43f7f..d6ca4215b 100644 --- a/async-stripe/src/blocking.rs +++ b/async-stripe/src/blocking.rs @@ -20,6 +20,11 @@ impl Client { Client::from_async(crate::Client::new(secret_key)) } + /// Create a new account pointed at a specific URL. This is useful for testing. + pub fn from_url<'a>(url: impl Into<&'a str>, secret_key: impl Display) -> Self { + Client::from_async(crate::Client::from_url(url, secret_key)) + } + fn from_async(inner: crate::Client) -> Client { let runtime = tokio::runtime::Builder::new_current_thread() .enable_io() diff --git a/async-stripe/src/client.rs b/async-stripe/src/client.rs index 57220ec88..f304ca92e 100644 --- a/async-stripe/src/client.rs +++ b/async-stripe/src/client.rs @@ -1,4 +1,5 @@ use std::fmt::Display; +use std::str::FromStr; use bytes::Bytes; use http::Uri; @@ -26,23 +27,41 @@ fn connector() -> hyper::Client, Body> { hyper::Client::builder().pool_max_idle_per_host(0).build(HttpsConnector::new()) } -fn clone_builder(_builder: &Builder) -> Builder { - todo!("skipping for now since easier once hyper bumped to 1") +// TODO: this looks to be much simpler in hyper 1.x +// There's probably also a better way to do this now... +fn clone_builder(builder: &Builder) -> Builder { + let mut req_builder = + Request::builder().uri(builder.uri_ref().unwrap()).method(builder.method_ref().unwrap()); + for (k, v) in builder.headers_ref().unwrap() { + req_builder = req_builder.header(k, v); + } + req_builder } impl Client { - pub fn new(secret_key: impl Display) -> Self { + fn from_uri_and_key(uri: Uri, secret_key: impl Display) -> Self { let mut secret_header = - HeaderValue::from_str(&format!("Bearer {secret_key}")).expect("invalid secret key"); + HeaderValue::try_from(format!("Bearer {secret_key}")).expect("invalid secret key"); secret_header.set_sensitive(true); Self { client: connector(), secret_header_val: secret_header, headers: Headers::default(), - api_base: Uri::from_static("https://api.stripe.com/"), + api_base: uri, } } + pub fn new(secret_key: impl Display) -> Self { + let base = Uri::from_static("https://api.stripe.com/"); + Self::from_uri_and_key(base, secret_key) + } + + /// Create a new account pointed at a specific URL. This is useful for testing. + pub fn from_url<'a>(url: impl Into<&'a str>, secret_key: impl Display) -> Self { + let uri = Uri::from_str(url.into()).expect("invalid url provided"); + Self::from_uri_and_key(uri, secret_key) + } + async fn send_inner( &self, body: Option, diff --git a/generated/stripe_billing/src/billing_portal_configuration/requests.rs b/generated/stripe_billing/src/billing_portal_configuration/requests.rs index 6cfc4dfea..d4d1794e7 100644 --- a/generated/stripe_billing/src/billing_portal_configuration/requests.rs +++ b/generated/stripe_billing/src/billing_portal_configuration/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListBillingPortalConfigurationBuilder<'a> { /// Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations). #[serde(skip_serializing_if = "Option::is_none")] @@ -30,7 +30,14 @@ pub struct ListBillingPortalConfigurationBuilder<'a> { } impl<'a> ListBillingPortalConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + ending_before: None, + expand: None, + is_default: None, + limit: None, + starting_after: None, + } } } /// Returns a list of configurations that describe the functionality of the customer portal. @@ -135,7 +142,7 @@ impl<'a> CreateBillingPortalConfigurationBuilder<'a> { } } /// The business information shown to customers in the portal. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateBillingPortalConfigurationBuilderBusinessProfile<'a> { /// The messaging shown to customers in the portal. #[serde(skip_serializing_if = "Option::is_none")] @@ -149,11 +156,11 @@ pub struct CreateBillingPortalConfigurationBuilderBusinessProfile<'a> { } impl<'a> CreateBillingPortalConfigurationBuilderBusinessProfile<'a> { pub fn new() -> Self { - Self::default() + Self { headline: None, privacy_policy_url: None, terms_of_service_url: None } } } /// Information about the features available in the portal. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateBillingPortalConfigurationBuilderFeatures<'a> { /// Information about updating the customer details in the portal. #[serde(skip_serializing_if = "Option::is_none")] @@ -179,7 +186,14 @@ pub struct CreateBillingPortalConfigurationBuilderFeatures<'a> { } impl<'a> CreateBillingPortalConfigurationBuilderFeatures<'a> { pub fn new() -> Self { - Self::default() + Self { + customer_update: None, + invoice_history: None, + payment_method_update: None, + subscription_cancel: None, + subscription_pause: None, + subscription_update: None, + } } } /// Information about updating the customer details in the portal. @@ -714,7 +728,7 @@ impl StripeRequest for CreateBillingPortalConfiguration<'_> { RequestBuilder::new(StripeMethod::Post, "/billing_portal/configurations").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateBillingPortalConfigurationBuilder<'a> { /// Whether the configuration is active and can be used to create portal sessions. #[serde(skip_serializing_if = "Option::is_none")] @@ -745,11 +759,19 @@ pub struct UpdateBillingPortalConfigurationBuilder<'a> { } impl<'a> UpdateBillingPortalConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + business_profile: None, + default_return_url: None, + expand: None, + features: None, + login_page: None, + metadata: None, + } } } /// The business information shown to customers in the portal. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateBillingPortalConfigurationBuilderBusinessProfile<'a> { /// The messaging shown to customers in the portal. #[serde(skip_serializing_if = "Option::is_none")] @@ -763,11 +785,11 @@ pub struct UpdateBillingPortalConfigurationBuilderBusinessProfile<'a> { } impl<'a> UpdateBillingPortalConfigurationBuilderBusinessProfile<'a> { pub fn new() -> Self { - Self::default() + Self { headline: None, privacy_policy_url: None, terms_of_service_url: None } } } /// Information about the features available in the portal. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateBillingPortalConfigurationBuilderFeatures<'a> { /// Information about updating the customer details in the portal. #[serde(skip_serializing_if = "Option::is_none")] @@ -793,11 +815,18 @@ pub struct UpdateBillingPortalConfigurationBuilderFeatures<'a> { } impl<'a> UpdateBillingPortalConfigurationBuilderFeatures<'a> { pub fn new() -> Self { - Self::default() + Self { + customer_update: None, + invoice_history: None, + payment_method_update: None, + subscription_cancel: None, + subscription_pause: None, + subscription_update: None, + } } } /// Information about updating the customer details in the portal. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateBillingPortalConfigurationBuilderFeaturesCustomerUpdate<'a> { /// The types of customer updates that are supported. When empty, customers are not updateable. #[serde(skip_serializing_if = "Option::is_none")] @@ -809,7 +838,7 @@ pub struct UpdateBillingPortalConfigurationBuilderFeaturesCustomerUpdate<'a> { } impl<'a> UpdateBillingPortalConfigurationBuilderFeaturesCustomerUpdate<'a> { pub fn new() -> Self { - Self::default() + Self { allowed_updates: None, enabled: None } } } /// The types of customer updates that are supported. When empty, customers are not updateable. @@ -901,7 +930,7 @@ impl UpdateBillingPortalConfigurationBuilderFeaturesPaymentMethodUpdate { } } /// Information about canceling subscriptions in the portal. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateBillingPortalConfigurationBuilderFeaturesSubscriptionCancel<'a> { /// Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer. #[serde(skip_serializing_if = "Option::is_none")] @@ -923,7 +952,7 @@ pub struct UpdateBillingPortalConfigurationBuilderFeaturesSubscriptionCancel<'a> } impl<'a> UpdateBillingPortalConfigurationBuilderFeaturesSubscriptionCancel<'a> { pub fn new() -> Self { - Self::default() + Self { cancellation_reason: None, enabled: None, mode: None, proration_behavior: None } } } /// Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer. @@ -1120,7 +1149,7 @@ impl serde::Serialize } } /// Information about updating subscriptions in the portal. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateBillingPortalConfigurationBuilderFeaturesSubscriptionUpdate<'a> { /// The types of subscription updates that are supported. When empty, subscriptions are not updateable. #[serde(skip_serializing_if = "Option::is_none")] @@ -1139,7 +1168,12 @@ pub proration_behavior: Option UpdateBillingPortalConfigurationBuilderFeaturesSubscriptionUpdate<'a> { pub fn new() -> Self { - Self::default() + Self { + default_allowed_updates: None, + enabled: None, + products: None, + proration_behavior: None, + } } } /// The types of subscription updates that are supported. When empty, subscriptions are not updateable. @@ -1353,7 +1387,7 @@ impl StripeRequest for UpdateBillingPortalConfiguration<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveBillingPortalConfigurationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1361,7 +1395,7 @@ pub struct RetrieveBillingPortalConfigurationBuilder<'a> { } impl<'a> RetrieveBillingPortalConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a configuration that describes the functionality of the customer portal. @@ -1408,7 +1442,7 @@ impl StripeRequest for RetrieveBillingPortalConfiguration<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SubscriptionPauseParam { /// Whether the feature is enabled. #[serde(skip_serializing_if = "Option::is_none")] @@ -1416,7 +1450,7 @@ pub struct SubscriptionPauseParam { } impl SubscriptionPauseParam { pub fn new() -> Self { - Self::default() + Self { enabled: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] diff --git a/generated/stripe_billing/src/billing_portal_session/requests.rs b/generated/stripe_billing/src/billing_portal_session/requests.rs index ebd282cf5..25fe6c87a 100644 --- a/generated/stripe_billing/src/billing_portal_session/requests.rs +++ b/generated/stripe_billing/src/billing_portal_session/requests.rs @@ -98,7 +98,7 @@ impl<'a> CreateBillingPortalSessionBuilderFlowDataAfterCompletion<'a> { } } /// Configuration when `after_completion.type=hosted_confirmation`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateBillingPortalSessionBuilderFlowDataAfterCompletionHostedConfirmation<'a> { /// A custom message to display to the customer after the flow is completed. #[serde(skip_serializing_if = "Option::is_none")] @@ -106,7 +106,7 @@ pub struct CreateBillingPortalSessionBuilderFlowDataAfterCompletionHostedConfirm } impl<'a> CreateBillingPortalSessionBuilderFlowDataAfterCompletionHostedConfirmation<'a> { pub fn new() -> Self { - Self::default() + Self { custom_message: None } } } /// Configuration when `after_completion.type=redirect`. @@ -295,7 +295,7 @@ impl<'a> CreateBillingPortalSessionBuilderFlowDataSubscriptionUpdateConfirm<'a> } /// The coupon or promotion code to apply to this subscription update. /// Currently, only up to one may be specified. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateBillingPortalSessionBuilderFlowDataSubscriptionUpdateConfirmDiscounts<'a> { /// The ID of the coupon to apply to this subscription update. #[serde(skip_serializing_if = "Option::is_none")] @@ -306,7 +306,7 @@ pub struct CreateBillingPortalSessionBuilderFlowDataSubscriptionUpdateConfirmDis } impl<'a> CreateBillingPortalSessionBuilderFlowDataSubscriptionUpdateConfirmDiscounts<'a> { pub fn new() -> Self { - Self::default() + Self { coupon: None, promotion_code: None } } } /// The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. diff --git a/generated/stripe_billing/src/credit_note/requests.rs b/generated/stripe_billing/src/credit_note/requests.rs index 11a46a3c6..54366cd54 100644 --- a/generated/stripe_billing/src/credit_note/requests.rs +++ b/generated/stripe_billing/src/credit_note/requests.rs @@ -527,7 +527,7 @@ impl StripeRequest for PreviewCreditNote<'_> { RequestBuilder::new(StripeMethod::Get, "/credit_notes/preview").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCreditNoteBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -535,7 +535,7 @@ pub struct RetrieveCreditNoteBuilder<'a> { } impl<'a> RetrieveCreditNoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the credit note object with the given identifier. @@ -577,7 +577,7 @@ impl StripeRequest for RetrieveCreditNote<'_> { RequestBuilder::new(StripeMethod::Get, format!("/credit_notes/{id}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCreditNoteBuilder<'a> { /// Only return credit notes for the customer specified by this customer ID. #[serde(skip_serializing_if = "Option::is_none")] @@ -605,7 +605,14 @@ pub struct ListCreditNoteBuilder<'a> { } impl<'a> ListCreditNoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + customer: None, + ending_before: None, + expand: None, + invoice: None, + limit: None, + starting_after: None, + } } } /// Returns a list of credit notes. @@ -670,7 +677,7 @@ impl StripeRequest for ListCreditNote<'_> { RequestBuilder::new(StripeMethod::Get, "/credit_notes").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCreditNoteBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -687,7 +694,7 @@ pub struct UpdateCreditNoteBuilder<'a> { } impl<'a> UpdateCreditNoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, memo: None, metadata: None } } } /// Updates an existing credit note. @@ -739,7 +746,7 @@ impl StripeRequest for UpdateCreditNote<'_> { RequestBuilder::new(StripeMethod::Post, format!("/credit_notes/{id}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct VoidCreditNoteCreditNoteBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -747,7 +754,7 @@ pub struct VoidCreditNoteCreditNoteBuilder<'a> { } impl<'a> VoidCreditNoteCreditNoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Marks a credit note as void. @@ -1094,7 +1101,7 @@ impl<'a> TaxAmountWithTaxRateParam<'a> { Self { amount, tax_rate, taxable_amount } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreditNoteShippingCost<'a> { /// The ID of the shipping rate to use for this order. #[serde(skip_serializing_if = "Option::is_none")] @@ -1102,6 +1109,6 @@ pub struct CreditNoteShippingCost<'a> { } impl<'a> CreditNoteShippingCost<'a> { pub fn new() -> Self { - Self::default() + Self { shipping_rate: None } } } diff --git a/generated/stripe_billing/src/credit_note_line_item/requests.rs b/generated/stripe_billing/src/credit_note_line_item/requests.rs index 48960f1a5..1964c2035 100644 --- a/generated/stripe_billing/src/credit_note_line_item/requests.rs +++ b/generated/stripe_billing/src/credit_note_line_item/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCreditNoteCreditNoteLineItemBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListCreditNoteCreditNoteLineItemBuilder<'a> { } impl<'a> ListCreditNoteCreditNoteLineItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// When retrieving a credit note, you’ll get a **lines** property containing the the first handful of those items. diff --git a/generated/stripe_billing/src/invoice/requests.rs b/generated/stripe_billing/src/invoice/requests.rs index 26a094b5e..bfdadb024 100644 --- a/generated/stripe_billing/src/invoice/requests.rs +++ b/generated/stripe_billing/src/invoice/requests.rs @@ -77,7 +77,7 @@ impl StripeRequest for SearchInvoice<'_> { RequestBuilder::new(StripeMethod::Get, "/invoices/search").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingInvoiceBuilder<'a> { /// Settings for automatic tax lookup for this invoice preview. #[serde(skip_serializing_if = "Option::is_none")] @@ -175,12 +175,35 @@ pub struct UpcomingInvoiceBuilder<'a> { } impl<'a> UpcomingInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + automatic_tax: None, + coupon: None, + currency: None, + customer: None, + customer_details: None, + discounts: None, + expand: None, + invoice_items: None, + schedule: None, + subscription: None, + subscription_billing_cycle_anchor: None, + subscription_cancel_at: None, + subscription_cancel_at_period_end: None, + subscription_cancel_now: None, + subscription_default_tax_rates: None, + subscription_items: None, + subscription_proration_behavior: None, + subscription_proration_date: None, + subscription_resume_at: None, + subscription_start_date: None, + subscription_trial_end: None, + subscription_trial_from_plan: None, + } } } /// Details about the customer you want to invoice or overrides for an existing customer. /// If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingInvoiceBuilderCustomerDetails<'a> { /// The customer's address. #[serde(skip_serializing_if = "Option::is_none")] @@ -200,7 +223,7 @@ pub struct UpcomingInvoiceBuilderCustomerDetails<'a> { } impl<'a> UpcomingInvoiceBuilderCustomerDetails<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, shipping: None, tax: None, tax_exempt: None, tax_ids: None } } } /// The customer's tax exemption. One of `none`, `exempt`, or `reverse`. @@ -509,7 +532,7 @@ impl serde::Serialize for UpcomingInvoiceBuilderCustomerDetailsTaxIdsType { } } /// List of invoice items to add or update in the upcoming invoice preview. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingInvoiceBuilderInvoiceItems<'a> { /// The integer amount in cents (or local equivalent) of previewed invoice item. #[serde(skip_serializing_if = "Option::is_none")] @@ -579,7 +602,24 @@ pub struct UpcomingInvoiceBuilderInvoiceItems<'a> { } impl<'a> UpcomingInvoiceBuilderInvoiceItems<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + currency: None, + description: None, + discountable: None, + discounts: None, + invoiceitem: None, + metadata: None, + period: None, + price: None, + price_data: None, + quantity: None, + tax_behavior: None, + tax_code: None, + tax_rates: None, + unit_amount: None, + unit_amount_decimal: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -724,7 +764,7 @@ pub enum UpcomingInvoiceBuilderSubscriptionBillingCycleAnchor { Timestamp(stripe_types::Timestamp), } /// A list of up to 20 subscription items, each with an attached price. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingInvoiceBuilderSubscriptionItems<'a> { /// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. /// When updating, pass an empty string to remove previously-defined thresholds. @@ -767,7 +807,18 @@ pub struct UpcomingInvoiceBuilderSubscriptionItems<'a> { } impl<'a> UpcomingInvoiceBuilderSubscriptionItems<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_thresholds: None, + clear_usage: None, + deleted: None, + id: None, + metadata: None, + plan: None, + price: None, + price_data: None, + quantity: None, + tax_rates: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -1222,7 +1273,7 @@ impl StripeRequest for UpcomingInvoice<'_> { RequestBuilder::new(StripeMethod::Get, "/invoices/upcoming").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilder<'a> { /// The account tax IDs associated with the invoice. Only editable when the invoice is a draft. #[serde(skip_serializing_if = "Option::is_none")] @@ -1332,11 +1383,37 @@ pub struct UpdateInvoiceBuilder<'a> { } impl<'a> UpdateInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_tax_ids: None, + application_fee_amount: None, + auto_advance: None, + automatic_tax: None, + collection_method: None, + custom_fields: None, + days_until_due: None, + default_payment_method: None, + default_source: None, + default_tax_rates: None, + description: None, + discounts: None, + due_date: None, + effective_at: None, + expand: None, + footer: None, + metadata: None, + on_behalf_of: None, + payment_settings: None, + rendering: None, + rendering_options: None, + shipping_cost: None, + shipping_details: None, + statement_descriptor: None, + transfer_data: None, + } } } /// Configuration settings for the PaymentIntent that is generated when the invoice is finalized. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettings<'a> { /// ID of the mandate to be used for this invoice. /// It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set. @@ -1353,11 +1430,11 @@ pub struct UpdateInvoiceBuilderPaymentSettings<'a> { } impl<'a> UpdateInvoiceBuilderPaymentSettings<'a> { pub fn new() -> Self { - Self::default() + Self { default_mandate: None, payment_method_options: None, payment_method_types: None } } } /// Payment-method-specific configuration to provide to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptions<'a> { /// If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. #[serde(skip_serializing_if = "Option::is_none")] @@ -1381,11 +1458,18 @@ pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptions<'a> { } impl<'a> UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + bancontact: None, + card: None, + customer_balance: None, + konbini: None, + us_bank_account: None, + } } } /// If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -1398,11 +1482,11 @@ pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { } impl UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, verification_method: None } } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions { /// Transaction type of the mandate. #[serde(skip_serializing_if = "Option::is_none")] @@ -1411,7 +1495,7 @@ pub transaction_type: Option Self { - Self::default() + Self { transaction_type: None } } } /// Transaction type of the mandate. @@ -1517,7 +1601,7 @@ impl serde::Serialize } } /// If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. #[serde(skip_serializing_if = "Option::is_none")] @@ -1526,7 +1610,7 @@ pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsBancontact { } impl UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { preferred_language: None } } } /// Preferred language of the Bancontact authorization page that the customer is redirected to. @@ -1590,7 +1674,7 @@ impl serde::Serialize } } /// If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCard { /// Installment configuration for payments attempted on this invoice (Mexico Only). /// @@ -1607,13 +1691,13 @@ pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCard { } impl UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCard { pub fn new() -> Self { - Self::default() + Self { installments: None, request_three_d_secure: None } } } /// Installment configuration for payments attempted on this invoice (Mexico Only). /// /// For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCardInstallments { /// Setting to true enables installments for this invoice. /// Setting to false will prevent any selected plan from applying to a payment. @@ -1625,7 +1709,7 @@ pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCardInstallmen } impl UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCardInstallments { pub fn new() -> Self { - Self::default() + Self { enabled: None, plan: None } } } /// The selected installment plan to use for this invoice. @@ -1810,7 +1894,7 @@ impl serde::Serialize } } /// If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -1827,11 +1911,11 @@ pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount< } impl<'a> UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -1847,7 +1931,7 @@ impl<'a> UpdateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None } } } /// The list of permissions to request. @@ -2124,7 +2208,7 @@ impl serde::Serialize for UpdateInvoiceBuilderPaymentSettingsPaymentMethodTypes } } /// The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderRendering { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -2138,7 +2222,7 @@ pub struct UpdateInvoiceBuilderRendering { } impl UpdateInvoiceBuilderRendering { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None, pdf: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -2191,7 +2275,7 @@ impl serde::Serialize for UpdateInvoiceBuilderRenderingAmountTaxDisplay { } } /// Invoice pdf rendering options -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderRenderingPdf { /// Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. /// If set to `auto`, invoice PDF page size defaults to `a4` for customers with @@ -2201,7 +2285,7 @@ pub struct UpdateInvoiceBuilderRenderingPdf { } impl UpdateInvoiceBuilderRenderingPdf { pub fn new() -> Self { - Self::default() + Self { page_size: None } } } /// Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. @@ -2258,7 +2342,7 @@ impl serde::Serialize for UpdateInvoiceBuilderRenderingPdfPageSize { /// This is a legacy field that will be removed soon. /// For details about `rendering_options`, refer to `rendering` instead. /// Options for invoice PDF rendering. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -2269,7 +2353,7 @@ pub struct UpdateInvoiceBuilderRenderingOptions { } impl UpdateInvoiceBuilderRenderingOptions { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -2322,7 +2406,7 @@ impl serde::Serialize for UpdateInvoiceBuilderRenderingOptionsAmountTaxDisplay { } } /// Settings for the cost of shipping for this invoice. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderShippingCost<'a> { /// The ID of the shipping rate to use for this order. #[serde(skip_serializing_if = "Option::is_none")] @@ -2333,7 +2417,7 @@ pub struct UpdateInvoiceBuilderShippingCost<'a> { } impl<'a> UpdateInvoiceBuilderShippingCost<'a> { pub fn new() -> Self { - Self::default() + Self { shipping_rate: None, shipping_rate_data: None } } } /// Parameters to create a new ad-hoc shipping rate for this order. @@ -2383,7 +2467,7 @@ impl<'a> UpdateInvoiceBuilderShippingCostShippingRateData<'a> { } /// The estimated range for how long shipping will take, meant to be displayable to the customer. /// This will appear on CheckoutSessions. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceBuilderShippingCostShippingRateDataDeliveryEstimate { /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. #[serde(skip_serializing_if = "Option::is_none")] @@ -2394,7 +2478,7 @@ pub struct UpdateInvoiceBuilderShippingCostShippingRateDataDeliveryEstimate { } impl UpdateInvoiceBuilderShippingCostShippingRateDataDeliveryEstimate { pub fn new() -> Self { - Self::default() + Self { maximum: None, minimum: None } } } /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. @@ -2924,7 +3008,7 @@ impl StripeRequest for UpdateInvoice<'_> { RequestBuilder::new(StripeMethod::Post, format!("/invoices/{invoice}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PayInvoiceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -2962,7 +3046,15 @@ pub struct PayInvoiceBuilder<'a> { } impl<'a> PayInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + expand: None, + forgive: None, + mandate: None, + off_session: None, + paid_out_of_band: None, + payment_method: None, + source: None, + } } } /// Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). @@ -3036,7 +3128,7 @@ impl StripeRequest for PayInvoice<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingLinesInvoiceBuilder<'a> { /// Settings for automatic tax lookup for this invoice preview. #[serde(skip_serializing_if = "Option::is_none")] @@ -3148,12 +3240,38 @@ pub struct UpcomingLinesInvoiceBuilder<'a> { } impl<'a> UpcomingLinesInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + automatic_tax: None, + coupon: None, + currency: None, + customer: None, + customer_details: None, + discounts: None, + ending_before: None, + expand: None, + invoice_items: None, + limit: None, + schedule: None, + starting_after: None, + subscription: None, + subscription_billing_cycle_anchor: None, + subscription_cancel_at: None, + subscription_cancel_at_period_end: None, + subscription_cancel_now: None, + subscription_default_tax_rates: None, + subscription_items: None, + subscription_proration_behavior: None, + subscription_proration_date: None, + subscription_resume_at: None, + subscription_start_date: None, + subscription_trial_end: None, + subscription_trial_from_plan: None, + } } } /// Details about the customer you want to invoice or overrides for an existing customer. /// If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingLinesInvoiceBuilderCustomerDetails<'a> { /// The customer's address. #[serde(skip_serializing_if = "Option::is_none")] @@ -3173,7 +3291,7 @@ pub struct UpcomingLinesInvoiceBuilderCustomerDetails<'a> { } impl<'a> UpcomingLinesInvoiceBuilderCustomerDetails<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, shipping: None, tax: None, tax_exempt: None, tax_ids: None } } } /// The customer's tax exemption. One of `none`, `exempt`, or `reverse`. @@ -3485,7 +3603,7 @@ impl serde::Serialize for UpcomingLinesInvoiceBuilderCustomerDetailsTaxIdsType { } } /// List of invoice items to add or update in the upcoming invoice preview. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingLinesInvoiceBuilderInvoiceItems<'a> { /// The integer amount in cents (or local equivalent) of previewed invoice item. #[serde(skip_serializing_if = "Option::is_none")] @@ -3555,7 +3673,24 @@ pub struct UpcomingLinesInvoiceBuilderInvoiceItems<'a> { } impl<'a> UpcomingLinesInvoiceBuilderInvoiceItems<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + currency: None, + description: None, + discountable: None, + discounts: None, + invoiceitem: None, + metadata: None, + period: None, + price: None, + price_data: None, + quantity: None, + tax_behavior: None, + tax_code: None, + tax_rates: None, + unit_amount: None, + unit_amount_decimal: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -3700,7 +3835,7 @@ pub enum UpcomingLinesInvoiceBuilderSubscriptionBillingCycleAnchor { Timestamp(stripe_types::Timestamp), } /// A list of up to 20 subscription items, each with an attached price. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpcomingLinesInvoiceBuilderSubscriptionItems<'a> { /// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. /// When updating, pass an empty string to remove previously-defined thresholds. @@ -3743,7 +3878,18 @@ pub struct UpcomingLinesInvoiceBuilderSubscriptionItems<'a> { } impl<'a> UpcomingLinesInvoiceBuilderSubscriptionItems<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_thresholds: None, + clear_usage: None, + deleted: None, + id: None, + metadata: None, + plan: None, + price: None, + price_data: None, + quantity: None, + tax_rates: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -4203,7 +4349,7 @@ impl StripeRequest for UpcomingLinesInvoice<'_> { RequestBuilder::new(StripeMethod::Get, "/invoices/upcoming/lines").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilder<'a> { /// The account tax IDs associated with the invoice. Only editable when the invoice is a draft. #[serde(skip_serializing_if = "Option::is_none")] @@ -4334,7 +4480,38 @@ pub struct CreateInvoiceBuilder<'a> { } impl<'a> CreateInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_tax_ids: None, + application_fee_amount: None, + auto_advance: None, + automatic_tax: None, + collection_method: None, + currency: None, + custom_fields: None, + customer: None, + days_until_due: None, + default_payment_method: None, + default_source: None, + default_tax_rates: None, + description: None, + discounts: None, + due_date: None, + effective_at: None, + expand: None, + footer: None, + from_invoice: None, + metadata: None, + on_behalf_of: None, + payment_settings: None, + pending_invoice_items_behavior: None, + rendering: None, + rendering_options: None, + shipping_cost: None, + shipping_details: None, + statement_descriptor: None, + subscription: None, + transfer_data: None, + } } } /// Revise an existing invoice. @@ -4398,7 +4575,7 @@ impl serde::Serialize for CreateInvoiceBuilderFromInvoiceAction { } } /// Configuration settings for the PaymentIntent that is generated when the invoice is finalized. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettings<'a> { /// ID of the mandate to be used for this invoice. /// It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set. @@ -4415,11 +4592,11 @@ pub struct CreateInvoiceBuilderPaymentSettings<'a> { } impl<'a> CreateInvoiceBuilderPaymentSettings<'a> { pub fn new() -> Self { - Self::default() + Self { default_mandate: None, payment_method_options: None, payment_method_types: None } } } /// Payment-method-specific configuration to provide to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptions<'a> { /// If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. #[serde(skip_serializing_if = "Option::is_none")] @@ -4443,11 +4620,18 @@ pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptions<'a> { } impl<'a> CreateInvoiceBuilderPaymentSettingsPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + bancontact: None, + card: None, + customer_balance: None, + konbini: None, + us_bank_account: None, + } } } /// If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -4460,11 +4644,11 @@ pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { } impl CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, verification_method: None } } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions { /// Transaction type of the mandate. #[serde(skip_serializing_if = "Option::is_none")] @@ -4473,7 +4657,7 @@ pub transaction_type: Option Self { - Self::default() + Self { transaction_type: None } } } /// Transaction type of the mandate. @@ -4579,7 +4763,7 @@ impl serde::Serialize } } /// If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. #[serde(skip_serializing_if = "Option::is_none")] @@ -4588,7 +4772,7 @@ pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsBancontact { } impl CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { preferred_language: None } } } /// Preferred language of the Bancontact authorization page that the customer is redirected to. @@ -4652,7 +4836,7 @@ impl serde::Serialize } } /// If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCard { /// Installment configuration for payments attempted on this invoice (Mexico Only). /// @@ -4669,13 +4853,13 @@ pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCard { } impl CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCard { pub fn new() -> Self { - Self::default() + Self { installments: None, request_three_d_secure: None } } } /// Installment configuration for payments attempted on this invoice (Mexico Only). /// /// For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCardInstallments { /// Setting to true enables installments for this invoice. /// Setting to false will prevent any selected plan from applying to a payment. @@ -4687,7 +4871,7 @@ pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCardInstallmen } impl CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsCardInstallments { pub fn new() -> Self { - Self::default() + Self { enabled: None, plan: None } } } /// The selected installment plan to use for this invoice. @@ -4872,7 +5056,7 @@ impl serde::Serialize } } /// If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -4889,11 +5073,11 @@ pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount< } impl<'a> CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -4909,7 +5093,7 @@ impl<'a> CreateInvoiceBuilderPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None } } } /// The list of permissions to request. @@ -5239,7 +5423,7 @@ impl serde::Serialize for CreateInvoiceBuilderPendingInvoiceItemsBehavior { } } /// The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderRendering { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -5253,7 +5437,7 @@ pub struct CreateInvoiceBuilderRendering { } impl CreateInvoiceBuilderRendering { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None, pdf: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -5306,7 +5490,7 @@ impl serde::Serialize for CreateInvoiceBuilderRenderingAmountTaxDisplay { } } /// Invoice pdf rendering options -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderRenderingPdf { /// Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. /// If set to `auto`, invoice PDF page size defaults to `a4` for customers with @@ -5316,7 +5500,7 @@ pub struct CreateInvoiceBuilderRenderingPdf { } impl CreateInvoiceBuilderRenderingPdf { pub fn new() -> Self { - Self::default() + Self { page_size: None } } } /// Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. @@ -5373,7 +5557,7 @@ impl serde::Serialize for CreateInvoiceBuilderRenderingPdfPageSize { /// This is a legacy field that will be removed soon. /// For details about `rendering_options`, refer to `rendering` instead. /// Options for invoice PDF rendering. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -5384,7 +5568,7 @@ pub struct CreateInvoiceBuilderRenderingOptions { } impl CreateInvoiceBuilderRenderingOptions { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -5437,7 +5621,7 @@ impl serde::Serialize for CreateInvoiceBuilderRenderingOptionsAmountTaxDisplay { } } /// Settings for the cost of shipping for this invoice. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderShippingCost<'a> { /// The ID of the shipping rate to use for this order. #[serde(skip_serializing_if = "Option::is_none")] @@ -5448,7 +5632,7 @@ pub struct CreateInvoiceBuilderShippingCost<'a> { } impl<'a> CreateInvoiceBuilderShippingCost<'a> { pub fn new() -> Self { - Self::default() + Self { shipping_rate: None, shipping_rate_data: None } } } /// Parameters to create a new ad-hoc shipping rate for this order. @@ -5498,7 +5682,7 @@ impl<'a> CreateInvoiceBuilderShippingCostShippingRateData<'a> { } /// The estimated range for how long shipping will take, meant to be displayable to the customer. /// This will appear on CheckoutSessions. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateInvoiceBuilderShippingCostShippingRateDataDeliveryEstimate { /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. #[serde(skip_serializing_if = "Option::is_none")] @@ -5509,7 +5693,7 @@ pub struct CreateInvoiceBuilderShippingCostShippingRateDataDeliveryEstimate { } impl CreateInvoiceBuilderShippingCostShippingRateDataDeliveryEstimate { pub fn new() -> Self { - Self::default() + Self { maximum: None, minimum: None } } } /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. @@ -6060,7 +6244,7 @@ impl StripeRequest for CreateInvoice<'_> { RequestBuilder::new(StripeMethod::Post, "/invoices").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListInvoiceBuilder<'a> { /// The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`. #[serde(skip_serializing_if = "Option::is_none")] @@ -6099,7 +6283,18 @@ pub struct ListInvoiceBuilder<'a> { } impl<'a> ListInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + collection_method: None, + created: None, + customer: None, + due_date: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + status: None, + subscription: None, + } } } /// You can list all invoices, or list the invoices for a specific customer. @@ -6188,7 +6383,7 @@ impl StripeRequest for ListInvoice<'_> { RequestBuilder::new(StripeMethod::Get, "/invoices").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveInvoiceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -6196,7 +6391,7 @@ pub struct RetrieveInvoiceBuilder<'a> { } impl<'a> RetrieveInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the invoice with the given ID. @@ -6274,7 +6469,7 @@ impl StripeRequest for DeleteInvoice<'_> { RequestBuilder::new(StripeMethod::Delete, format!("/invoices/{invoice}")) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FinalizeInvoiceInvoiceBuilder<'a> { /// Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. /// If `false`, the invoice's state doesn't automatically advance without an explicit action. @@ -6286,7 +6481,7 @@ pub struct FinalizeInvoiceInvoiceBuilder<'a> { } impl<'a> FinalizeInvoiceInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { auto_advance: None, expand: None } } } /// Stripe automatically finalizes drafts before sending and attempting payment on invoices. @@ -6335,7 +6530,7 @@ impl StripeRequest for FinalizeInvoiceInvoice<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SendInvoiceInvoiceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -6343,7 +6538,7 @@ pub struct SendInvoiceInvoiceBuilder<'a> { } impl<'a> SendInvoiceInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Stripe will automatically send invoices to customers according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). @@ -6390,7 +6585,7 @@ impl StripeRequest for SendInvoiceInvoice<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct MarkUncollectibleInvoiceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -6398,7 +6593,7 @@ pub struct MarkUncollectibleInvoiceBuilder<'a> { } impl<'a> MarkUncollectibleInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes. @@ -6441,7 +6636,7 @@ impl StripeRequest for MarkUncollectibleInvoice<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct VoidInvoiceInvoiceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -6449,7 +6644,7 @@ pub struct VoidInvoiceInvoiceBuilder<'a> { } impl<'a> VoidInvoiceInvoiceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Mark a finalized invoice as void. @@ -6506,7 +6701,7 @@ impl AutomaticTaxParam { Self { enabled } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct OptionalFieldsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -6529,10 +6724,10 @@ pub struct OptionalFieldsAddress<'a> { } impl<'a> OptionalFieldsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct TaxParam<'a> { /// A recent IP address of the customer used for tax reporting and tax location inference. /// Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. @@ -6542,10 +6737,10 @@ pub struct TaxParam<'a> { } impl<'a> TaxParam<'a> { pub fn new() -> Self { - Self::default() + Self { ip_address: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DiscountsDataParam<'a> { /// ID of the coupon to create a new discount for. #[serde(skip_serializing_if = "Option::is_none")] @@ -6556,7 +6751,7 @@ pub struct DiscountsDataParam<'a> { } impl<'a> DiscountsDataParam<'a> { pub fn new() -> Self { - Self::default() + Self { coupon: None, discount: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -6633,7 +6828,7 @@ impl<'a> CustomerShipping<'a> { Self { address, name, phone: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BankTransferParam<'a> { /// Configuration for eu_bank_transfer funding type. #[serde(skip_serializing_if = "Option::is_none")] @@ -6646,7 +6841,7 @@ pub struct BankTransferParam<'a> { } impl<'a> BankTransferParam<'a> { pub fn new() -> Self { - Self::default() + Self { eu_bank_transfer: None, type_: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -6664,7 +6859,7 @@ impl<'a> RecipientShippingWithOptionalFieldsAddress<'a> { Self { address, name, phone: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct InvoicePaymentMethodOptionsParam<'a> { /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. #[serde(skip_serializing_if = "Option::is_none")] @@ -6676,6 +6871,6 @@ pub struct InvoicePaymentMethodOptionsParam<'a> { } impl<'a> InvoicePaymentMethodOptionsParam<'a> { pub fn new() -> Self { - Self::default() + Self { bank_transfer: None, funding_type: None } } } diff --git a/generated/stripe_billing/src/invoice_item/requests.rs b/generated/stripe_billing/src/invoice_item/requests.rs index 8e6033242..300fdffde 100644 --- a/generated/stripe_billing/src/invoice_item/requests.rs +++ b/generated/stripe_billing/src/invoice_item/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListInvoiceItemBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -40,7 +40,16 @@ pub struct ListInvoiceItemBuilder<'a> { } impl<'a> ListInvoiceItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + customer: None, + ending_before: None, + expand: None, + invoice: None, + limit: None, + pending: None, + starting_after: None, + } } } /// Returns a list of your invoice items. @@ -477,7 +486,7 @@ impl StripeRequest for CreateInvoiceItem<'_> { RequestBuilder::new(StripeMethod::Post, "/invoiceitems").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveInvoiceItemBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -485,7 +494,7 @@ pub struct RetrieveInvoiceItemBuilder<'a> { } impl<'a> RetrieveInvoiceItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the invoice item with the given ID. @@ -528,7 +537,7 @@ impl StripeRequest for RetrieveInvoiceItem<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceItemBuilder<'a> { /// The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. /// If you want to apply a credit to the customer's account, pass a negative amount. @@ -598,7 +607,23 @@ pub struct UpdateInvoiceItemBuilder<'a> { } impl<'a> UpdateInvoiceItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + description: None, + discountable: None, + discounts: None, + expand: None, + metadata: None, + period: None, + price: None, + price_data: None, + quantity: None, + tax_behavior: None, + tax_code: None, + tax_rates: None, + unit_amount: None, + unit_amount_decimal: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -879,7 +904,7 @@ impl StripeRequest for DeleteInvoiceItem<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DiscountsDataParam<'a> { /// ID of the coupon to create a new discount for. #[serde(skip_serializing_if = "Option::is_none")] @@ -890,7 +915,7 @@ pub struct DiscountsDataParam<'a> { } impl<'a> DiscountsDataParam<'a> { pub fn new() -> Self { - Self::default() + Self { coupon: None, discount: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] diff --git a/generated/stripe_billing/src/invoice_line_item/requests.rs b/generated/stripe_billing/src/invoice_line_item/requests.rs index 876749c65..1a571ccd7 100644 --- a/generated/stripe_billing/src/invoice_line_item/requests.rs +++ b/generated/stripe_billing/src/invoice_line_item/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListInvoiceInvoiceLineItemBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListInvoiceInvoiceLineItemBuilder<'a> { } impl<'a> ListInvoiceInvoiceLineItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// When retrieving an invoice, you’ll get a **lines** property containing the total count of line items and the first handful of those items. @@ -83,7 +83,7 @@ impl StripeRequest for ListInvoiceInvoiceLineItem<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceLineItemBuilder<'a> { /// The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. /// If you want to apply a credit to the customer's account, pass a negative amount. @@ -141,13 +141,26 @@ pub struct UpdateInvoiceLineItemBuilder<'a> { } impl<'a> UpdateInvoiceLineItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + description: None, + discountable: None, + discounts: None, + expand: None, + metadata: None, + period: None, + price: None, + price_data: None, + quantity: None, + tax_amounts: None, + tax_rates: None, + } } } /// The coupons & existing discounts which apply to the line item. /// Item discounts are applied before invoice discounts. /// Pass an empty string to remove previously-defined discounts. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateInvoiceLineItemBuilderDiscounts<'a> { /// ID of the coupon to create a new discount for. #[serde(skip_serializing_if = "Option::is_none")] @@ -158,7 +171,7 @@ pub struct UpdateInvoiceLineItemBuilderDiscounts<'a> { } impl<'a> UpdateInvoiceLineItemBuilderDiscounts<'a> { pub fn new() -> Self { - Self::default() + Self { coupon: None, discount: None } } } /// The period associated with this invoice item. diff --git a/generated/stripe_billing/src/mod.rs b/generated/stripe_billing/src/mod.rs index 3e249c009..6e0148746 100644 --- a/generated/stripe_billing/src/mod.rs +++ b/generated/stripe_billing/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_billing/src/plan/requests.rs b/generated/stripe_billing/src/plan/requests.rs index d3618e83d..ec91a12ba 100644 --- a/generated/stripe_billing/src/plan/requests.rs +++ b/generated/stripe_billing/src/plan/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPlanBuilder<'a> { /// Only return plans that are active or inactive (e.g., pass `false` to list all inactive plans). #[serde(skip_serializing_if = "Option::is_none")] @@ -34,7 +34,15 @@ pub struct ListPlanBuilder<'a> { } impl<'a> ListPlanBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + created: None, + ending_before: None, + expand: None, + limit: None, + product: None, + starting_after: None, + } } } /// Returns a list of your plans. @@ -475,7 +483,7 @@ impl StripeRequest for CreatePlan<'_> { RequestBuilder::new(StripeMethod::Post, "/plans").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePlanBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -483,7 +491,7 @@ pub struct RetrievePlanBuilder<'a> { } impl<'a> RetrievePlanBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the plan with the given ID. @@ -525,7 +533,7 @@ impl StripeRequest for RetrievePlan<'_> { RequestBuilder::new(StripeMethod::Get, format!("/plans/{plan}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePlanBuilder<'a> { /// Whether the plan is currently available for new subscriptions. #[serde(skip_serializing_if = "Option::is_none")] @@ -552,7 +560,14 @@ pub struct UpdatePlanBuilder<'a> { } impl<'a> UpdatePlanBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + expand: None, + metadata: None, + nickname: None, + product: None, + trial_period_days: None, + } } } /// Updates the specified plan by setting the values of the parameters passed. diff --git a/generated/stripe_billing/src/portal_business_profile.rs b/generated/stripe_billing/src/portal_business_profile.rs index 3252be5c4..bf05a3c7f 100644 --- a/generated/stripe_billing/src/portal_business_profile.rs +++ b/generated/stripe_billing/src/portal_business_profile.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PortalBusinessProfile { /// The messaging shown to customers in the portal. pub headline: Option, diff --git a/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs b/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs index 1c65b58ad..ea5d9b2dc 100644 --- a/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs +++ b/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PortalFlowsAfterCompletionHostedConfirmation { /// A custom message to display to the customer after the flow is completed. pub custom_message: Option, diff --git a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs index eb869a581..f4df80016 100644 --- a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs +++ b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PortalFlowsSubscriptionUpdateConfirmDiscount { /// The ID of the coupon to apply to this subscription update. pub coupon: Option, diff --git a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs index 498cdec57..b367a1678 100644 --- a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs +++ b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PortalFlowsSubscriptionUpdateConfirmItem { /// The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. pub id: Option, diff --git a/generated/stripe_billing/src/quote/requests.rs b/generated/stripe_billing/src/quote/requests.rs index 52969967c..fd5d295fa 100644 --- a/generated/stripe_billing/src/quote/requests.rs +++ b/generated/stripe_billing/src/quote/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveQuoteBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveQuoteBuilder<'a> { } impl<'a> RetrieveQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the quote with the given ID. @@ -52,7 +52,7 @@ impl StripeRequest for RetrieveQuote<'_> { RequestBuilder::new(StripeMethod::Get, format!("/quotes/{quote}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateQuoteBuilder<'a> { /// The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. /// There cannot be any line items with recurring prices when using this field. @@ -138,7 +138,28 @@ pub struct CreateQuoteBuilder<'a> { } impl<'a> CreateQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + application_fee_amount: None, + application_fee_percent: None, + automatic_tax: None, + collection_method: None, + customer: None, + default_tax_rates: None, + description: None, + discounts: None, + expand: None, + expires_at: None, + footer: None, + from_quote: None, + header: None, + invoice_settings: None, + line_items: None, + metadata: None, + on_behalf_of: None, + subscription_data: None, + test_clock: None, + transfer_data: None, + } } } /// Clone an existing quote. @@ -159,7 +180,7 @@ impl<'a> CreateQuoteBuilderFromQuote<'a> { } /// A list of line items the customer is being quoted for. /// Each line item includes information about the product, the quantity, and the resulting cost. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateQuoteBuilderLineItems<'a> { /// The ID of the price object. One of `price` or `price_data` is required. #[serde(skip_serializing_if = "Option::is_none")] @@ -178,7 +199,7 @@ pub struct CreateQuoteBuilderLineItems<'a> { } impl<'a> CreateQuoteBuilderLineItems<'a> { pub fn new() -> Self { - Self::default() + Self { price: None, price_data: None, quantity: None, tax_rates: None } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -342,7 +363,7 @@ impl serde::Serialize for CreateQuoteBuilderLineItemsPriceDataTaxBehavior { /// When creating a subscription or subscription schedule, the specified configuration data will be used. /// There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. /// A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateQuoteBuilderSubscriptionData<'a> { /// The subscription's description, meant to be displayable to the customer. /// Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. @@ -367,7 +388,7 @@ pub struct CreateQuoteBuilderSubscriptionData<'a> { } impl<'a> CreateQuoteBuilderSubscriptionData<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, effective_date: None, metadata: None, trial_period_days: None } } } /// When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. @@ -519,7 +540,7 @@ impl StripeRequest for CreateQuote<'_> { RequestBuilder::new(StripeMethod::Post, "/quotes").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateQuoteBuilder<'a> { /// The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. /// There cannot be any line items with recurring prices when using this field. @@ -593,12 +614,31 @@ pub struct UpdateQuoteBuilder<'a> { } impl<'a> UpdateQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + application_fee_amount: None, + application_fee_percent: None, + automatic_tax: None, + collection_method: None, + customer: None, + default_tax_rates: None, + description: None, + discounts: None, + expand: None, + expires_at: None, + footer: None, + header: None, + invoice_settings: None, + line_items: None, + metadata: None, + on_behalf_of: None, + subscription_data: None, + transfer_data: None, + } } } /// A list of line items the customer is being quoted for. /// Each line item includes information about the product, the quantity, and the resulting cost. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateQuoteBuilderLineItems<'a> { /// The ID of an existing line item on the quote. #[serde(skip_serializing_if = "Option::is_none")] @@ -620,7 +660,7 @@ pub struct UpdateQuoteBuilderLineItems<'a> { } impl<'a> UpdateQuoteBuilderLineItems<'a> { pub fn new() -> Self { - Self::default() + Self { id: None, price: None, price_data: None, quantity: None, tax_rates: None } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -784,7 +824,7 @@ impl serde::Serialize for UpdateQuoteBuilderLineItemsPriceDataTaxBehavior { /// When creating a subscription or subscription schedule, the specified configuration data will be used. /// There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. /// A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateQuoteBuilderSubscriptionData<'a> { /// The subscription's description, meant to be displayable to the customer. /// Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. @@ -809,7 +849,7 @@ pub struct UpdateQuoteBuilderSubscriptionData<'a> { } impl<'a> UpdateQuoteBuilderSubscriptionData<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, effective_date: None, metadata: None, trial_period_days: None } } } /// When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. @@ -952,7 +992,7 @@ impl StripeRequest for UpdateQuote<'_> { RequestBuilder::new(StripeMethod::Post, format!("/quotes/{quote}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelQuoteBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -960,7 +1000,7 @@ pub struct CancelQuoteBuilder<'a> { } impl<'a> CancelQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Cancels the quote. @@ -1002,7 +1042,7 @@ impl StripeRequest for CancelQuote<'_> { RequestBuilder::new(StripeMethod::Post, format!("/quotes/{quote}/cancel")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FinalizeQuoteQuoteBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1014,7 +1054,7 @@ pub struct FinalizeQuoteQuoteBuilder<'a> { } impl<'a> FinalizeQuoteQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, expires_at: None } } } /// Finalizes the quote. @@ -1062,7 +1102,7 @@ impl StripeRequest for FinalizeQuoteQuote<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct AcceptQuoteBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1070,7 +1110,7 @@ pub struct AcceptQuoteBuilder<'a> { } impl<'a> AcceptQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Accepts the specified quote. @@ -1112,7 +1152,7 @@ impl StripeRequest for AcceptQuote<'_> { RequestBuilder::new(StripeMethod::Post, format!("/quotes/{quote}/accept")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListQuoteBuilder<'a> { /// The ID of the customer whose quotes will be retrieved. #[serde(skip_serializing_if = "Option::is_none")] @@ -1144,7 +1184,15 @@ pub struct ListQuoteBuilder<'a> { } impl<'a> ListQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + customer: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + status: None, + test_clock: None, + } } } /// Returns a list of your quotes. @@ -1214,7 +1262,7 @@ impl StripeRequest for ListQuote<'_> { RequestBuilder::new(StripeMethod::Get, "/quotes").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListLineItemsQuoteBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -1236,7 +1284,7 @@ pub struct ListLineItemsQuoteBuilder<'a> { } impl<'a> ListLineItemsQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// When retrieving a quote, there is an includable **line_items** property containing the first handful of those items. @@ -1295,7 +1343,7 @@ impl StripeRequest for ListLineItemsQuote<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListComputedUpfrontLineItemsQuoteBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -1317,7 +1365,7 @@ pub struct ListComputedUpfrontLineItemsQuoteBuilder<'a> { } impl<'a> ListComputedUpfrontLineItemsQuoteBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// When retrieving a quote, there is an includable **computed.upfront.line_items** property containing the first handful of those items. @@ -1390,7 +1438,7 @@ impl AutomaticTaxParam { Self { enabled } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DiscountsDataParam<'a> { /// ID of the coupon to create a new discount for. #[serde(skip_serializing_if = "Option::is_none")] @@ -1401,10 +1449,10 @@ pub struct DiscountsDataParam<'a> { } impl<'a> DiscountsDataParam<'a> { pub fn new() -> Self { - Self::default() + Self { coupon: None, discount: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct QuoteParam { /// Number of days within which a customer must pay the invoice generated by this quote. /// This value will be `null` for quotes where `collection_method=charge_automatically`. @@ -1413,7 +1461,7 @@ pub struct QuoteParam { } impl QuoteParam { pub fn new() -> Self { - Self::default() + Self { days_until_due: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] diff --git a/generated/stripe_billing/src/subscription/requests.rs b/generated/stripe_billing/src/subscription/requests.rs index 14e2c958f..1b3d2c2ca 100644 --- a/generated/stripe_billing/src/subscription/requests.rs +++ b/generated/stripe_billing/src/subscription/requests.rs @@ -77,7 +77,7 @@ impl StripeRequest for SearchSubscription<'_> { RequestBuilder::new(StripeMethod::Get, "/subscriptions/search").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListSubscriptionBuilder<'a> { /// Filter subscriptions by their automatic tax settings. #[serde(skip_serializing_if = "Option::is_none")] @@ -132,7 +132,22 @@ pub struct ListSubscriptionBuilder<'a> { } impl<'a> ListSubscriptionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + automatic_tax: None, + collection_method: None, + created: None, + current_period_end: None, + current_period_start: None, + customer: None, + ending_before: None, + expand: None, + limit: None, + plan: None, + price: None, + starting_after: None, + status: None, + test_clock: None, + } } } /// Filter subscriptions by their automatic tax settings. @@ -529,7 +544,7 @@ impl<'a> CreateSubscriptionBuilder<'a> { } /// A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. /// You may pass up to 20 items. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderAddInvoiceItems<'a> { /// The ID of the price object. #[serde(skip_serializing_if = "Option::is_none")] @@ -546,7 +561,7 @@ pub struct CreateSubscriptionBuilderAddInvoiceItems<'a> { } impl<'a> CreateSubscriptionBuilderAddInvoiceItems<'a> { pub fn new() -> Self { - Self::default() + Self { price: None, price_data: None, quantity: None, tax_rates: None } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -641,7 +656,7 @@ impl CreateSubscriptionBuilderAutomaticTax { } } /// A list of up to 20 subscription items, each with an attached price. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderItems<'a> { /// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. /// When updating, pass an empty string to remove previously-defined thresholds. @@ -673,7 +688,15 @@ pub struct CreateSubscriptionBuilderItems<'a> { } impl<'a> CreateSubscriptionBuilderItems<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_thresholds: None, + metadata: None, + plan: None, + price: None, + price_data: None, + quantity: None, + tax_rates: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -910,7 +933,7 @@ impl serde::Serialize for CreateSubscriptionBuilderPaymentBehavior { } } /// Payment settings to pass to invoices created by the subscription. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettings<'a> { /// Payment-method-specific configuration to provide to invoices created by the subscription. #[serde(skip_serializing_if = "Option::is_none")] @@ -930,11 +953,15 @@ pub struct CreateSubscriptionBuilderPaymentSettings<'a> { } impl<'a> CreateSubscriptionBuilderPaymentSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + payment_method_options: None, + payment_method_types: None, + save_default_payment_method: None, + } } } /// Payment-method-specific configuration to provide to invoices created by the subscription. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptions<'a> { /// This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. #[serde(skip_serializing_if = "Option::is_none")] @@ -958,11 +985,18 @@ pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptions<'a> { } impl<'a> CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + bancontact: None, + card: None, + customer_balance: None, + konbini: None, + us_bank_account: None, + } } } /// This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -976,11 +1010,11 @@ pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebit } impl CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, verification_method: None } } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions { /// Transaction type of the mandate. #[serde(skip_serializing_if = "Option::is_none")] @@ -989,7 +1023,7 @@ pub transaction_type: Option Self { - Self::default() + Self { transaction_type: None } } } /// Transaction type of the mandate. @@ -1096,7 +1130,7 @@ impl serde::Serialize } } /// This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. #[serde(skip_serializing_if = "Option::is_none")] @@ -1106,7 +1140,7 @@ pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsBancontac } impl CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { preferred_language: None } } } /// Preferred language of the Bancontact authorization page that the customer is redirected to. @@ -1170,7 +1204,7 @@ impl serde::Serialize } } /// This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCard<'a> { /// Configuration options for setting up an eMandate for cards issued in India. #[serde(skip_serializing_if = "Option::is_none")] @@ -1190,11 +1224,11 @@ pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCard<'a> } impl<'a> CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, network: None, request_three_d_secure: None } } } /// Configuration options for setting up an eMandate for cards issued in India. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCardMandateOptions<'a> { /// Amount to be charged for future payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -1212,7 +1246,7 @@ pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCardManda } impl<'a> CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCardMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { amount: None, amount_type: None, description: None } } } /// One of `fixed` or `maximum`. @@ -1403,7 +1437,7 @@ impl serde::Serialize } } /// This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -1415,11 +1449,11 @@ pub verification_method: Option CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -1437,7 +1471,7 @@ impl<'a> > { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None } } } /// The list of permissions to request. @@ -2179,7 +2213,7 @@ impl StripeRequest for CreateSubscription<'_> { RequestBuilder::new(StripeMethod::Post, "/subscriptions").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilder<'a> { /// A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. /// You may pass up to 20 items. @@ -2333,12 +2367,44 @@ pub struct UpdateSubscriptionBuilder<'a> { } impl<'a> UpdateSubscriptionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + add_invoice_items: None, + application_fee_percent: None, + automatic_tax: None, + billing_cycle_anchor: None, + billing_thresholds: None, + cancel_at: None, + cancel_at_period_end: None, + cancellation_details: None, + collection_method: None, + coupon: None, + days_until_due: None, + default_payment_method: None, + default_source: None, + default_tax_rates: None, + description: None, + expand: None, + items: None, + metadata: None, + off_session: None, + on_behalf_of: None, + pause_collection: None, + payment_behavior: None, + payment_settings: None, + pending_invoice_item_interval: None, + promotion_code: None, + proration_behavior: None, + proration_date: None, + transfer_data: None, + trial_end: None, + trial_from_plan: None, + trial_settings: None, + } } } /// A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. /// You may pass up to 20 items. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderAddInvoiceItems<'a> { /// The ID of the price object. #[serde(skip_serializing_if = "Option::is_none")] @@ -2355,7 +2421,7 @@ pub struct UpdateSubscriptionBuilderAddInvoiceItems<'a> { } impl<'a> UpdateSubscriptionBuilderAddInvoiceItems<'a> { pub fn new() -> Self { - Self::default() + Self { price: None, price_data: None, quantity: None, tax_rates: None } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -2498,7 +2564,7 @@ impl serde::Serialize for UpdateSubscriptionBuilderBillingCycleAnchor { } } /// Details about why this subscription was cancelled -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderCancellationDetails<'a> { /// Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. #[serde(skip_serializing_if = "Option::is_none")] @@ -2509,7 +2575,7 @@ pub struct UpdateSubscriptionBuilderCancellationDetails<'a> { } impl<'a> UpdateSubscriptionBuilderCancellationDetails<'a> { pub fn new() -> Self { - Self::default() + Self { comment: None, feedback: None } } } /// The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. @@ -2577,7 +2643,7 @@ impl serde::Serialize for UpdateSubscriptionBuilderCancellationDetailsFeedback { } } /// A list of up to 20 subscription items, each with an attached price. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderItems<'a> { /// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. /// When updating, pass an empty string to remove previously-defined thresholds. @@ -2620,7 +2686,18 @@ pub struct UpdateSubscriptionBuilderItems<'a> { } impl<'a> UpdateSubscriptionBuilderItems<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_thresholds: None, + clear_usage: None, + deleted: None, + id: None, + metadata: None, + plan: None, + price: None, + price_data: None, + quantity: None, + tax_rates: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -2917,7 +2994,7 @@ impl serde::Serialize for UpdateSubscriptionBuilderPaymentBehavior { } } /// Payment settings to pass to invoices created by the subscription. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettings<'a> { /// Payment-method-specific configuration to provide to invoices created by the subscription. #[serde(skip_serializing_if = "Option::is_none")] @@ -2937,11 +3014,15 @@ pub struct UpdateSubscriptionBuilderPaymentSettings<'a> { } impl<'a> UpdateSubscriptionBuilderPaymentSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + payment_method_options: None, + payment_method_types: None, + save_default_payment_method: None, + } } } /// Payment-method-specific configuration to provide to invoices created by the subscription. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptions<'a> { /// This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. #[serde(skip_serializing_if = "Option::is_none")] @@ -2965,11 +3046,18 @@ pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptions<'a> { } impl<'a> UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + bancontact: None, + card: None, + customer_balance: None, + konbini: None, + us_bank_account: None, + } } } /// This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -2983,11 +3071,11 @@ pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebit } impl UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebit { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, verification_method: None } } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions { /// Transaction type of the mandate. #[serde(skip_serializing_if = "Option::is_none")] @@ -2996,7 +3084,7 @@ pub transaction_type: Option Self { - Self::default() + Self { transaction_type: None } } } /// Transaction type of the mandate. @@ -3103,7 +3191,7 @@ impl serde::Serialize } } /// This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. #[serde(skip_serializing_if = "Option::is_none")] @@ -3113,7 +3201,7 @@ pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsBancontac } impl UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { preferred_language: None } } } /// Preferred language of the Bancontact authorization page that the customer is redirected to. @@ -3177,7 +3265,7 @@ impl serde::Serialize } } /// This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCard<'a> { /// Configuration options for setting up an eMandate for cards issued in India. #[serde(skip_serializing_if = "Option::is_none")] @@ -3197,11 +3285,11 @@ pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCard<'a> } impl<'a> UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, network: None, request_three_d_secure: None } } } /// Configuration options for setting up an eMandate for cards issued in India. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCardMandateOptions<'a> { /// Amount to be charged for future payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -3219,7 +3307,7 @@ pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCardManda } impl<'a> UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsCardMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { amount: None, amount_type: None, description: None } } } /// One of `fixed` or `maximum`. @@ -3410,7 +3498,7 @@ impl serde::Serialize } } /// This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -3422,11 +3510,11 @@ pub verification_method: Option UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionBuilderPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -3444,7 +3532,7 @@ impl<'a> > { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None } } } /// The list of permissions to request. @@ -4221,7 +4309,7 @@ impl StripeRequest for UpdateSubscription<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveSubscriptionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -4229,7 +4317,7 @@ pub struct RetrieveSubscriptionBuilder<'a> { } impl<'a> RetrieveSubscriptionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the subscription with the given ID. @@ -4272,7 +4360,7 @@ impl StripeRequest for RetrieveSubscription<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelSubscriptionBuilder<'a> { /// Details about why this subscription was cancelled #[serde(skip_serializing_if = "Option::is_none")] @@ -4289,11 +4377,11 @@ pub struct CancelSubscriptionBuilder<'a> { } impl<'a> CancelSubscriptionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { cancellation_details: None, expand: None, invoice_now: None, prorate: None } } } /// Details about why this subscription was cancelled -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelSubscriptionBuilderCancellationDetails<'a> { /// Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. #[serde(skip_serializing_if = "Option::is_none")] @@ -4304,7 +4392,7 @@ pub struct CancelSubscriptionBuilderCancellationDetails<'a> { } impl<'a> CancelSubscriptionBuilderCancellationDetails<'a> { pub fn new() -> Self { - Self::default() + Self { comment: None, feedback: None } } } /// The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. @@ -4442,7 +4530,7 @@ impl StripeRequest for CancelSubscription<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ResumeSubscriptionBuilder<'a> { /// Either `now` or `unchanged`. /// Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). @@ -4464,7 +4552,12 @@ pub struct ResumeSubscriptionBuilder<'a> { } impl<'a> ResumeSubscriptionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_cycle_anchor: None, + expand: None, + proration_behavior: None, + proration_date: None, + } } } /// Either `now` or `unchanged`. @@ -4668,7 +4761,7 @@ impl StripeRequest for DeleteDiscountSubscription<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BillingThresholdsParam { /// Monetary threshold that triggers the subscription to advance to a new billing period #[serde(skip_serializing_if = "Option::is_none")] @@ -4680,7 +4773,7 @@ pub struct BillingThresholdsParam { } impl BillingThresholdsParam { pub fn new() -> Self { - Self::default() + Self { amount_gte: None, reset_billing_cycle_anchor: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -4719,7 +4812,7 @@ impl<'a> TransferDataSpecs<'a> { Self { amount_percent: None, destination } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BankTransferParam<'a> { /// Configuration for eu_bank_transfer funding type. #[serde(skip_serializing_if = "Option::is_none")] @@ -4732,10 +4825,10 @@ pub struct BankTransferParam<'a> { } impl<'a> BankTransferParam<'a> { pub fn new() -> Self { - Self::default() + Self { eu_bank_transfer: None, type_: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct InvoicePaymentMethodOptionsParam<'a> { /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. #[serde(skip_serializing_if = "Option::is_none")] @@ -4747,6 +4840,6 @@ pub struct InvoicePaymentMethodOptionsParam<'a> { } impl<'a> InvoicePaymentMethodOptionsParam<'a> { pub fn new() -> Self { - Self::default() + Self { bank_transfer: None, funding_type: None } } } diff --git a/generated/stripe_billing/src/subscription_item/requests.rs b/generated/stripe_billing/src/subscription_item/requests.rs index 4e805a05f..f8e82e126 100644 --- a/generated/stripe_billing/src/subscription_item/requests.rs +++ b/generated/stripe_billing/src/subscription_item/requests.rs @@ -81,7 +81,7 @@ impl StripeRequest for ListSubscriptionItem<'_> { RequestBuilder::new(StripeMethod::Get, "/subscription_items").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveSubscriptionItemBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -89,7 +89,7 @@ pub struct RetrieveSubscriptionItemBuilder<'a> { } impl<'a> RetrieveSubscriptionItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the subscription item with the given ID. @@ -583,7 +583,7 @@ impl StripeRequest for CreateSubscriptionItem<'_> { RequestBuilder::new(StripeMethod::Post, "/subscription_items").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionItemBuilder<'a> { /// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. /// When updating, pass an empty string to remove previously-defined thresholds. @@ -649,7 +649,20 @@ pub struct UpdateSubscriptionItemBuilder<'a> { } impl<'a> UpdateSubscriptionItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_thresholds: None, + expand: None, + metadata: None, + off_session: None, + payment_behavior: None, + plan: None, + price: None, + price_data: None, + proration_behavior: None, + proration_date: None, + quantity: None, + tax_rates: None, + } } } /// Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. @@ -1031,7 +1044,7 @@ impl StripeRequest for UpdateSubscriptionItem<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DeleteSubscriptionItemBuilder { /// Delete all usage for the given subscription item. /// Allowed only when the current plan's `usage_type` is `metered`. @@ -1048,7 +1061,7 @@ pub struct DeleteSubscriptionItemBuilder { } impl DeleteSubscriptionItemBuilder { pub fn new() -> Self { - Self::default() + Self { clear_usage: None, proration_behavior: None, proration_date: None } } } /// Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. @@ -1155,7 +1168,7 @@ impl StripeRequest for DeleteSubscriptionItem<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UsageRecordSummariesSubscriptionItemBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -1177,7 +1190,7 @@ pub struct UsageRecordSummariesSubscriptionItemBuilder<'a> { } impl<'a> UsageRecordSummariesSubscriptionItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// For the specified subscription item, returns a list of summary objects. diff --git a/generated/stripe_billing/src/subscription_schedule/requests.rs b/generated/stripe_billing/src/subscription_schedule/requests.rs index 4bf667803..3330e7b43 100644 --- a/generated/stripe_billing/src/subscription_schedule/requests.rs +++ b/generated/stripe_billing/src/subscription_schedule/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListSubscriptionScheduleBuilder<'a> { /// Only return subscription schedules that were created canceled the given date interval. #[serde(skip_serializing_if = "Option::is_none")] @@ -42,7 +42,18 @@ pub struct ListSubscriptionScheduleBuilder<'a> { } impl<'a> ListSubscriptionScheduleBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + canceled_at: None, + completed_at: None, + created: None, + customer: None, + ending_before: None, + expand: None, + limit: None, + released_at: None, + scheduled: None, + starting_after: None, + } } } /// Retrieves the list of your subscription schedules. @@ -127,7 +138,7 @@ impl StripeRequest for ListSubscriptionSchedule<'_> { RequestBuilder::new(StripeMethod::Get, "/subscription_schedules").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionScheduleBuilder<'a> { /// The identifier of the customer to create the subscription schedule for. #[serde(skip_serializing_if = "Option::is_none")] @@ -168,11 +179,20 @@ pub struct CreateSubscriptionScheduleBuilder<'a> { } impl<'a> CreateSubscriptionScheduleBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + customer: None, + default_settings: None, + end_behavior: None, + expand: None, + from_subscription: None, + metadata: None, + phases: None, + start_date: None, + } } } /// Object representing the subscription schedule's default settings. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionScheduleBuilderDefaultSettings<'a> { /// A non-negative decimal between 0 and 100, with at most two decimal places. /// This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. @@ -220,7 +240,18 @@ pub struct CreateSubscriptionScheduleBuilderDefaultSettings<'a> { } impl<'a> CreateSubscriptionScheduleBuilderDefaultSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + application_fee_percent: None, + automatic_tax: None, + billing_cycle_anchor: None, + billing_thresholds: None, + collection_method: None, + default_payment_method: None, + description: None, + invoice_settings: None, + on_behalf_of: None, + transfer_data: None, + } } } /// Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. @@ -442,7 +473,7 @@ impl<'a> CreateSubscriptionScheduleBuilderPhases<'a> { } /// A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. /// You may pass up to 20 items. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionScheduleBuilderPhasesAddInvoiceItems<'a> { /// The ID of the price object. #[serde(skip_serializing_if = "Option::is_none")] @@ -459,7 +490,7 @@ pub struct CreateSubscriptionScheduleBuilderPhasesAddInvoiceItems<'a> { } impl<'a> CreateSubscriptionScheduleBuilderPhasesAddInvoiceItems<'a> { pub fn new() -> Self { - Self::default() + Self { price: None, price_data: None, quantity: None, tax_rates: None } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -648,7 +679,7 @@ impl serde::Serialize for CreateSubscriptionScheduleBuilderPhasesCollectionMetho } } /// List of configuration items, each with an attached price, to apply during this phase of the subscription schedule. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSubscriptionScheduleBuilderPhasesItems<'a> { /// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. /// When updating, pass an empty string to remove previously-defined thresholds. @@ -681,7 +712,15 @@ pub struct CreateSubscriptionScheduleBuilderPhasesItems<'a> { } impl<'a> CreateSubscriptionScheduleBuilderPhasesItems<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_thresholds: None, + metadata: None, + plan: None, + price: None, + price_data: None, + quantity: None, + tax_rates: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -986,7 +1025,7 @@ impl StripeRequest for CreateSubscriptionSchedule<'_> { RequestBuilder::new(StripeMethod::Post, "/subscription_schedules").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveSubscriptionScheduleBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -994,7 +1033,7 @@ pub struct RetrieveSubscriptionScheduleBuilder<'a> { } impl<'a> RetrieveSubscriptionScheduleBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing subscription schedule. @@ -1038,7 +1077,7 @@ impl StripeRequest for RetrieveSubscriptionSchedule<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionScheduleBuilder<'a> { /// Object representing the subscription schedule's default settings. #[serde(skip_serializing_if = "Option::is_none")] @@ -1070,11 +1109,18 @@ pub struct UpdateSubscriptionScheduleBuilder<'a> { } impl<'a> UpdateSubscriptionScheduleBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + default_settings: None, + end_behavior: None, + expand: None, + metadata: None, + phases: None, + proration_behavior: None, + } } } /// Object representing the subscription schedule's default settings. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionScheduleBuilderDefaultSettings<'a> { /// A non-negative decimal between 0 and 100, with at most two decimal places. /// This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. @@ -1122,7 +1168,18 @@ pub struct UpdateSubscriptionScheduleBuilderDefaultSettings<'a> { } impl<'a> UpdateSubscriptionScheduleBuilderDefaultSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + application_fee_percent: None, + automatic_tax: None, + billing_cycle_anchor: None, + billing_thresholds: None, + collection_method: None, + default_payment_method: None, + description: None, + invoice_settings: None, + on_behalf_of: None, + transfer_data: None, + } } } /// Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. @@ -1350,7 +1407,7 @@ impl<'a> UpdateSubscriptionScheduleBuilderPhases<'a> { } /// A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. /// You may pass up to 20 items. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionScheduleBuilderPhasesAddInvoiceItems<'a> { /// The ID of the price object. #[serde(skip_serializing_if = "Option::is_none")] @@ -1367,7 +1424,7 @@ pub struct UpdateSubscriptionScheduleBuilderPhasesAddInvoiceItems<'a> { } impl<'a> UpdateSubscriptionScheduleBuilderPhasesAddInvoiceItems<'a> { pub fn new() -> Self { - Self::default() + Self { price: None, price_data: None, quantity: None, tax_rates: None } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -1564,7 +1621,7 @@ pub enum UpdateSubscriptionScheduleBuilderPhasesEndDate { Now, } /// List of configuration items, each with an attached price, to apply during this phase of the subscription schedule. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSubscriptionScheduleBuilderPhasesItems<'a> { /// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. /// When updating, pass an empty string to remove previously-defined thresholds. @@ -1597,7 +1654,15 @@ pub struct UpdateSubscriptionScheduleBuilderPhasesItems<'a> { } impl<'a> UpdateSubscriptionScheduleBuilderPhasesItems<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_thresholds: None, + metadata: None, + plan: None, + price: None, + price_data: None, + quantity: None, + tax_rates: None, + } } } /// Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. @@ -1954,7 +2019,7 @@ impl StripeRequest for UpdateSubscriptionSchedule<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelSubscriptionScheduleBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1970,7 +2035,7 @@ pub struct CancelSubscriptionScheduleBuilder<'a> { } impl<'a> CancelSubscriptionScheduleBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, invoice_now: None, prorate: None } } } /// Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). @@ -2027,7 +2092,7 @@ impl StripeRequest for CancelSubscriptionSchedule<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReleaseSubscriptionScheduleBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -2038,7 +2103,7 @@ pub struct ReleaseSubscriptionScheduleBuilder<'a> { } impl<'a> ReleaseSubscriptionScheduleBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, preserve_cancel_date: None } } } /// Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. @@ -2102,7 +2167,7 @@ impl AutomaticTaxConfig { Self { enabled } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BillingThresholdsParam { /// Monetary threshold that triggers the subscription to advance to a new billing period #[serde(skip_serializing_if = "Option::is_none")] @@ -2114,10 +2179,10 @@ pub struct BillingThresholdsParam { } impl BillingThresholdsParam { pub fn new() -> Self { - Self::default() + Self { amount_gte: None, reset_billing_cycle_anchor: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SubscriptionScheduleDefaultSettingsParam { /// Number of days within which a customer must pay invoices generated by this subscription schedule. /// This value will be `null` for subscription schedules where `collection_method=charge_automatically`. @@ -2126,7 +2191,7 @@ pub struct SubscriptionScheduleDefaultSettingsParam { } impl SubscriptionScheduleDefaultSettingsParam { pub fn new() -> Self { - Self::default() + Self { days_until_due: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -2144,7 +2209,7 @@ impl<'a> TransferDataSpecs<'a> { Self { amount_percent: None, destination } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct InvoiceSettings { /// Number of days within which a customer must pay invoices generated by this subscription schedule. /// This value will be `null` for subscription schedules where `billing=charge_automatically`. @@ -2153,7 +2218,7 @@ pub struct InvoiceSettings { } impl InvoiceSettings { pub fn new() -> Self { - Self::default() + Self { days_until_due: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] diff --git a/generated/stripe_billing/src/tax_id/requests.rs b/generated/stripe_billing/src/tax_id/requests.rs index cdf265724..ed4af6831 100644 --- a/generated/stripe_billing/src/tax_id/requests.rs +++ b/generated/stripe_billing/src/tax_id/requests.rs @@ -304,7 +304,7 @@ impl StripeRequest for CreateCustomerTaxId<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTaxIdBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -312,7 +312,7 @@ pub struct RetrieveTaxIdBuilder<'a> { } impl<'a> RetrieveTaxIdBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the `tax_id` object with the given identifier. @@ -357,7 +357,7 @@ impl StripeRequest for RetrieveTaxId<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCustomerTaxIdBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -379,7 +379,7 @@ pub struct ListCustomerTaxIdBuilder<'a> { } impl<'a> ListCustomerTaxIdBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of tax IDs for a customer. diff --git a/generated/stripe_billing/src/test_helpers_test_clock/requests.rs b/generated/stripe_billing/src/test_helpers_test_clock/requests.rs index 2e58c6547..869e15b0a 100644 --- a/generated/stripe_billing/src/test_helpers_test_clock/requests.rs +++ b/generated/stripe_billing/src/test_helpers_test_clock/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTestHelpersTestClockBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveTestHelpersTestClockBuilder<'a> { } impl<'a> RetrieveTestHelpersTestClockBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a test clock. @@ -208,7 +208,7 @@ impl StripeRequest for AdvanceTestHelpersTestClock<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTestHelpersTestClockBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -230,7 +230,7 @@ pub struct ListTestHelpersTestClockBuilder<'a> { } impl<'a> ListTestHelpersTestClockBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of your test clocks. diff --git a/generated/stripe_billing/src/usage_record_summary/requests.rs b/generated/stripe_billing/src/usage_record_summary/requests.rs index b3dc8e0f2..0d69ecb57 100644 --- a/generated/stripe_billing/src/usage_record_summary/requests.rs +++ b/generated/stripe_billing/src/usage_record_summary/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListSubscriptionItemUsageRecordSummaryBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListSubscriptionItemUsageRecordSummaryBuilder<'a> { } impl<'a> ListSubscriptionItemUsageRecordSummaryBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// For the specified subscription item, returns a list of summary objects. diff --git a/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs b/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs index 59a1eee71..584faddde 100644 --- a/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs +++ b/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutAcssDebitMandateOptions { /// A URL for custom mandate text #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs index 68061a1ca..3edd7493a 100644 --- a/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutAcssDebitPaymentMethodOptions { /// Currency supported by the bank account. Returned when the Session is in `setup` mode. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs b/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs index 80604c1c6..c6b18b770 100644 --- a/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutAffirmPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs index c61d395ef..bee67617d 100644 --- a/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutAfterpayClearpayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs index 6d3b2d22f..02ee9eab4 100644 --- a/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutAlipayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs index 4f9c61203..dad100a7e 100644 --- a/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutAuBecsDebitPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs index b0f75f13d..929106575 100644 --- a/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutBacsDebitPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs b/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs index 314fae8b3..73fab162d 100644 --- a/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutBancontactPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_card_installments_options.rs b/generated/stripe_checkout/src/checkout_card_installments_options.rs index 369b58057..6be1d7e21 100644 --- a/generated/stripe_checkout/src/checkout_card_installments_options.rs +++ b/generated/stripe_checkout/src/checkout_card_installments_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutCardInstallmentsOptions { /// Indicates if installments are enabled #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_checkout/src/checkout_card_payment_method_options.rs b/generated/stripe_checkout/src/checkout_card_payment_method_options.rs index 9ffb49170..75a4d622b 100644 --- a/generated/stripe_checkout/src/checkout_card_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_card_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutCardPaymentMethodOptions { #[serde(skip_serializing_if = "Option::is_none")] pub installments: Option, diff --git a/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs b/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs index 46f388cf5..41b4462f1 100644 --- a/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutCashappPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs b/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs index 3641e961b..946910753 100644 --- a/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutCustomerBalanceBankTransferPaymentMethodOptions { #[serde(skip_serializing_if = "Option::is_none")] pub eu_bank_transfer: Option, diff --git a/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs b/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs index 19bab27af..8643abfa4 100644 --- a/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutCustomerBalancePaymentMethodOptions { #[serde(skip_serializing_if = "Option::is_none")] pub bank_transfer: diff --git a/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs b/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs index 41fe0654f..dee08c6c7 100644 --- a/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutEpsPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs b/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs index 62c72842b..bbb88b51a 100644 --- a/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutFpxPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs index be0f793b1..adca85542 100644 --- a/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutGiropayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs index 45c3689b4..cf3663a5d 100644 --- a/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutGrabPayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs b/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs index e65a3ade5..e167de870 100644 --- a/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutIdealPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs b/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs index 9b679b237..11a834040 100644 --- a/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutKlarnaPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs b/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs index 987398a44..be9efb92f 100644 --- a/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutKonbiniPaymentMethodOptions { /// The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. /// For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. diff --git a/generated/stripe_checkout/src/checkout_link_payment_method_options.rs b/generated/stripe_checkout/src/checkout_link_payment_method_options.rs index f10f8db36..79af302c2 100644 --- a/generated/stripe_checkout/src/checkout_link_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_link_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutLinkPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs b/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs index b981d386d..811b6557d 100644 --- a/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutP24PaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs b/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs index ec18d8378..d8d874095 100644 --- a/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutPaynowPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs b/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs index 38778a97b..0fd5e7f7e 100644 --- a/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutPaypalPaymentMethodOptions { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs b/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs index e36949e64..480ead03b 100644 --- a/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutPixPaymentMethodOptions { /// The number of seconds after which Pix payment will expire. pub expires_after_seconds: Option, diff --git a/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs index a780a71df..dd5ba539d 100644 --- a/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutRevolutPayPaymentMethodOptions {} diff --git a/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs index 363e0f3a6..69743c016 100644 --- a/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutSepaDebitPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_session/requests.rs b/generated/stripe_checkout/src/checkout_session/requests.rs index 5f18ef09a..8d447be19 100644 --- a/generated/stripe_checkout/src/checkout_session/requests.rs +++ b/generated/stripe_checkout/src/checkout_session/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCheckoutSessionBuilder<'a> { /// Only return the Checkout Sessions for the Customer specified. #[serde(skip_serializing_if = "Option::is_none")] @@ -42,7 +42,18 @@ pub struct ListCheckoutSessionBuilder<'a> { } impl<'a> ListCheckoutSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + customer: None, + customer_details: None, + ending_before: None, + expand: None, + limit: None, + payment_intent: None, + payment_link: None, + starting_after: None, + status: None, + subscription: None, + } } } /// Only return the Checkout Sessions for the Customer details specified. @@ -141,7 +152,7 @@ impl StripeRequest for ListCheckoutSession<'_> { RequestBuilder::new(StripeMethod::Get, "/checkout/sessions").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCheckoutSessionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -149,7 +160,7 @@ pub struct RetrieveCheckoutSessionBuilder<'a> { } impl<'a> RetrieveCheckoutSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a Session object. @@ -192,7 +203,7 @@ impl StripeRequest for RetrieveCheckoutSession<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilder<'a> { /// Configure actions after a Checkout Session has expired. #[serde(skip_serializing_if = "Option::is_none")] @@ -389,11 +400,50 @@ pub struct CreateCheckoutSessionBuilder<'a> { } impl<'a> CreateCheckoutSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + after_expiration: None, + allow_promotion_codes: None, + automatic_tax: None, + billing_address_collection: None, + cancel_url: None, + client_reference_id: None, + consent_collection: None, + currency: None, + custom_fields: None, + custom_text: None, + customer: None, + customer_creation: None, + customer_email: None, + customer_update: None, + discounts: None, + expand: None, + expires_at: None, + invoice_creation: None, + line_items: None, + locale: None, + metadata: None, + mode: None, + payment_intent_data: None, + payment_method_collection: None, + payment_method_configuration: None, + payment_method_options: None, + payment_method_types: None, + phone_number_collection: None, + redirect_on_completion: None, + return_url: None, + setup_intent_data: None, + shipping_address_collection: None, + shipping_options: None, + submit_type: None, + subscription_data: None, + success_url: None, + tax_id_collection: None, + ui_mode: None, + } } } /// Configure actions after a Checkout Session has expired. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderAfterExpiration { /// Configure a Checkout Session that can be used to recover an expired session. #[serde(skip_serializing_if = "Option::is_none")] @@ -401,7 +451,7 @@ pub struct CreateCheckoutSessionBuilderAfterExpiration { } impl CreateCheckoutSessionBuilderAfterExpiration { pub fn new() -> Self { - Self::default() + Self { recovery: None } } } /// Configure a Checkout Session that can be used to recover an expired session. @@ -432,7 +482,7 @@ impl CreateCheckoutSessionBuilderAutomaticTax { } } /// Configure fields for the Checkout Session to gather active consent from customers. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderConsentCollection { /// If set to `auto`, enables the collection of customer consent for promotional communications. /// The Checkout. @@ -447,7 +497,7 @@ pub struct CreateCheckoutSessionBuilderConsentCollection { } impl CreateCheckoutSessionBuilderConsentCollection { pub fn new() -> Self { - Self::default() + Self { promotions: None, terms_of_service: None } } } /// If set to `auto`, enables the collection of customer consent for promotional communications. @@ -664,7 +714,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderCustomFieldsLabelType { } } /// Configuration for `type=numeric` fields. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderCustomFieldsNumeric { /// The maximum character length constraint for the customer's input. #[serde(skip_serializing_if = "Option::is_none")] @@ -675,11 +725,11 @@ pub struct CreateCheckoutSessionBuilderCustomFieldsNumeric { } impl CreateCheckoutSessionBuilderCustomFieldsNumeric { pub fn new() -> Self { - Self::default() + Self { maximum_length: None, minimum_length: None } } } /// Configuration for `type=text` fields. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderCustomFieldsText { /// The maximum character length constraint for the customer's input. #[serde(skip_serializing_if = "Option::is_none")] @@ -690,7 +740,7 @@ pub struct CreateCheckoutSessionBuilderCustomFieldsText { } impl CreateCheckoutSessionBuilderCustomFieldsText { pub fn new() -> Self { - Self::default() + Self { maximum_length: None, minimum_length: None } } } /// The type of the field. @@ -743,7 +793,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderCustomFieldsType { } } /// Display additional text for your customers using custom text. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderCustomText<'a> { /// Custom text that should be displayed alongside shipping address collection. #[serde(skip_serializing_if = "Option::is_none")] @@ -757,7 +807,7 @@ pub struct CreateCheckoutSessionBuilderCustomText<'a> { } impl<'a> CreateCheckoutSessionBuilderCustomText<'a> { pub fn new() -> Self { - Self::default() + Self { shipping_address: None, submit: None, terms_of_service_acceptance: None } } } /// Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation. @@ -817,7 +867,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderCustomerCreation { } /// Controls what fields on Customer can be updated by the Checkout Session. /// Can only be provided when `customer` is provided. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderCustomerUpdate { /// Describes whether Checkout saves the billing address onto `customer.address`. /// To always collect a full billing address, use `billing_address_collection`. Defaults to `never`. @@ -833,7 +883,7 @@ pub struct CreateCheckoutSessionBuilderCustomerUpdate { } impl CreateCheckoutSessionBuilderCustomerUpdate { pub fn new() -> Self { - Self::default() + Self { address: None, name: None, shipping: None } } } /// Describes whether Checkout saves the billing address onto `customer.address`. @@ -977,7 +1027,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderCustomerUpdateShipping { } } /// The coupon or promotion code to apply to this Session. Currently, only up to one may be specified. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderDiscounts<'a> { /// The ID of the coupon to apply to this Session. #[serde(skip_serializing_if = "Option::is_none")] @@ -988,7 +1038,7 @@ pub struct CreateCheckoutSessionBuilderDiscounts<'a> { } impl<'a> CreateCheckoutSessionBuilderDiscounts<'a> { pub fn new() -> Self { - Self::default() + Self { coupon: None, promotion_code: None } } } /// Generate a post-purchase Invoice for one-time payments. @@ -1006,7 +1056,7 @@ impl<'a> CreateCheckoutSessionBuilderInvoiceCreation<'a> { } } /// Parameters passed when creating invoices for payment-mode Checkout Sessions. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderInvoiceCreationInvoiceData<'a> { /// The account tax IDs associated with the invoice. #[serde(skip_serializing_if = "Option::is_none")] @@ -1034,7 +1084,14 @@ pub struct CreateCheckoutSessionBuilderInvoiceCreationInvoiceData<'a> { } impl<'a> CreateCheckoutSessionBuilderInvoiceCreationInvoiceData<'a> { pub fn new() -> Self { - Self::default() + Self { + account_tax_ids: None, + custom_fields: None, + description: None, + footer: None, + metadata: None, + rendering_options: None, + } } } /// Default custom fields to be displayed on invoices for this customer. @@ -1051,7 +1108,7 @@ impl<'a> CreateCheckoutSessionBuilderInvoiceCreationInvoiceDataCustomFields<'a> } } /// Default options for invoice PDF rendering for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderInvoiceCreationInvoiceDataRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -1064,7 +1121,7 @@ pub struct CreateCheckoutSessionBuilderInvoiceCreationInvoiceDataRenderingOption } impl CreateCheckoutSessionBuilderInvoiceCreationInvoiceDataRenderingOptions { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -1131,7 +1188,7 @@ impl serde::Serialize /// /// For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. /// Line items with one-time Prices will be on the initial invoice only. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderLineItems<'a> { /// When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout. #[serde(skip_serializing_if = "Option::is_none")] @@ -1158,7 +1215,14 @@ pub struct CreateCheckoutSessionBuilderLineItems<'a> { } impl<'a> CreateCheckoutSessionBuilderLineItems<'a> { pub fn new() -> Self { - Self::default() + Self { + adjustable_quantity: None, + dynamic_tax_rates: None, + price: None, + price_data: None, + quantity: None, + tax_rates: None, + } } } /// When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout. @@ -1375,7 +1439,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderLineItemsPriceDataTaxBehav } } /// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentIntentData<'a> { /// The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. /// The amount of the application fee collected will be capped at the total payment amount. @@ -1448,7 +1512,20 @@ pub struct CreateCheckoutSessionBuilderPaymentIntentData<'a> { } impl<'a> CreateCheckoutSessionBuilderPaymentIntentData<'a> { pub fn new() -> Self { - Self::default() + Self { + application_fee_amount: None, + capture_method: None, + description: None, + metadata: None, + on_behalf_of: None, + receipt_email: None, + setup_future_usage: None, + shipping: None, + statement_descriptor: None, + statement_descriptor_suffix: None, + transfer_data: None, + transfer_group: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -1688,7 +1765,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodCollection { } } /// Payment-method-specific configuration. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptions<'a> { /// contains details about the ACSS Debit payment method options. #[serde(skip_serializing_if = "Option::is_none")] @@ -1781,11 +1858,41 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptions<'a> { } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + affirm: None, + afterpay_clearpay: None, + alipay: None, + au_becs_debit: None, + bacs_debit: None, + bancontact: None, + boleto: None, + card: None, + cashapp: None, + customer_balance: None, + eps: None, + fpx: None, + giropay: None, + grabpay: None, + ideal: None, + klarna: None, + konbini: None, + link: None, + oxxo: None, + p24: None, + paynow: None, + paypal: None, + pix: None, + revolut_pay: None, + sepa_debit: None, + sofort: None, + us_bank_account: None, + wechat_pay: None, + } } } /// contains details about the ACSS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAcssDebit<'a> { /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. /// Must be a [supported currency](https://stripe.com/docs/currencies). @@ -1812,7 +1919,12 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAcssDebit<'a> { } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptionsAcssDebit<'a> { pub fn new() -> Self { - Self::default() + Self { + currency: None, + mandate_options: None, + setup_future_usage: None, + verification_method: None, + } } } /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -1864,7 +1976,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsAcssDe } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { /// A URL for custom mandate text to render during confirmation step. /// The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,. @@ -1894,7 +2006,13 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAcssDebitMandateOptio } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_mandate_url: None, + default_for: None, + interval_description: None, + payment_schedule: None, + transaction_type: None, + } } } /// List of Stripe products where this mandate can be selected automatically. @@ -2181,7 +2299,7 @@ impl serde::Serialize } } /// contains details about the Affirm payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAffirm { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2195,7 +2313,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAffirm { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsAffirm { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2247,7 +2365,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsAffirm } } /// contains details about the Afterpay Clearpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAfterpayClearpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2261,7 +2379,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAfterpayClearpay { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsAfterpayClearpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2321,7 +2439,7 @@ impl serde::Serialize } } /// contains details about the Alipay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAlipay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2335,7 +2453,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAlipay { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsAlipay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2387,7 +2505,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsAlipay } } /// contains details about the AU Becs Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAuBecsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2401,7 +2519,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsAuBecsDebit { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsAuBecsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2461,7 +2579,7 @@ impl serde::Serialize } } /// contains details about the Bacs Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsBacsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2475,7 +2593,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsBacsDebit { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsBacsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2539,7 +2657,7 @@ impl serde::Serialize } } /// contains details about the Bancontact payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsBancontact { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2553,7 +2671,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsBancontact { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2613,7 +2731,7 @@ impl serde::Serialize } } /// contains details about the Boleto payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsBoleto { /// The number of calendar days before a Boleto voucher expires. /// For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. @@ -2631,7 +2749,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsBoleto { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsBoleto { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2689,7 +2807,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsBoleto } } /// contains details about the Card payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCard<'a> { /// Installment options for card payments #[serde(skip_serializing_if = "Option::is_none")] @@ -2718,11 +2836,16 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCard<'a> { } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { + installments: None, + setup_future_usage: None, + statement_descriptor_suffix_kana: None, + statement_descriptor_suffix_kanji: None, + } } } /// Installment options for card payments -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCardInstallments { /// Setting to true enables installments for this Checkout Session. /// Setting to false will prevent any installment plan from applying to a payment. @@ -2731,7 +2854,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCardInstallments { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsCardInstallments { pub fn new() -> Self { - Self::default() + Self { enabled: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2786,7 +2909,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsCardSe } } /// contains details about the Cashapp Pay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCashapp { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2800,7 +2923,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCashapp { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsCashapp { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2858,7 +2981,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsCashap } } /// contains details about the Customer Balance payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCustomerBalance<'a> { /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. #[serde(skip_serializing_if = "Option::is_none")] @@ -2881,7 +3004,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsCustomerBalance<'a> { } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptionsCustomerBalance<'a> { pub fn new() -> Self { - Self::default() + Self { bank_transfer: None, funding_type: None, setup_future_usage: None } } } /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. @@ -3161,7 +3284,7 @@ impl serde::Serialize } } /// contains details about the EPS payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsEps { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3175,7 +3298,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsEps { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsEps { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3227,7 +3350,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsEpsSet } } /// contains details about the FPX payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsFpx { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3241,7 +3364,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsFpx { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsFpx { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3293,7 +3416,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsFpxSet } } /// contains details about the Giropay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsGiropay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3307,7 +3430,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsGiropay { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsGiropay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3359,7 +3482,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsGiropa } } /// contains details about the Grabpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsGrabpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3373,7 +3496,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsGrabpay { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsGrabpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3425,7 +3548,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsGrabpa } } /// contains details about the Ideal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsIdeal { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3439,7 +3562,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsIdeal { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsIdeal { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3491,7 +3614,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsIdealS } } /// contains details about the Klarna payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsKlarna { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3505,7 +3628,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsKlarna { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsKlarna { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3557,7 +3680,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsKlarna } } /// contains details about the Konbini payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsKonbini { /// The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. /// For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. @@ -3576,7 +3699,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsKonbini { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsKonbini { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3628,7 +3751,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsKonbin } } /// contains details about the Link payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsLink { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3642,7 +3765,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsLink { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsLink { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3697,7 +3820,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsLinkSe } } /// contains details about the OXXO payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsOxxo { /// The number of calendar days before an OXXO voucher expires. /// For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -3715,7 +3838,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsOxxo { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsOxxo { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3767,7 +3890,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsOxxoSe } } /// contains details about the P24 payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsP24 { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3784,7 +3907,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsP24 { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsP24 { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None, tos_shown_and_accepted: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3836,7 +3959,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsP24Set } } /// contains details about the PayNow payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsPaynow { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3850,7 +3973,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsPaynow { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsPaynow { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3902,7 +4025,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsPaynow } } /// contains details about the PayPal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsPaypal<'a> { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] @@ -3932,7 +4055,13 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsPaypal<'a> { } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptionsPaypal<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + preferred_locale: None, + reference: None, + risk_correlation_id: None, + setup_future_usage: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -4139,7 +4268,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsPaypal } } /// contains details about the Pix payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsPix { /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. /// Defaults to 86400 seconds. @@ -4148,11 +4277,11 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsPix { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsPix { pub fn new() -> Self { - Self::default() + Self { expires_after_seconds: None } } } /// contains details about the RevolutPay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsRevolutPay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4166,7 +4295,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsRevolutPay { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsRevolutPay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4229,7 +4358,7 @@ impl serde::Serialize } } /// contains details about the Sepa Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsSepaDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4243,7 +4372,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsSepaDebit { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsSepaDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4307,7 +4436,7 @@ impl serde::Serialize } } /// contains details about the Sofort payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsSofort { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4321,7 +4450,7 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsSofort { } impl CreateCheckoutSessionBuilderPaymentMethodOptionsSofort { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4373,7 +4502,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderPaymentMethodOptionsSofort } } /// contains details about the Us Bank Account payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -4396,11 +4525,11 @@ pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsUsBankAccount<'a> { } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, setup_future_usage: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -4414,7 +4543,7 @@ pub prefetch: Option<&'a [CreateCheckoutSessionBuilderPaymentMethodOptionsUsBank } impl<'a> CreateCheckoutSessionBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None } } } /// The list of permissions to request. @@ -4939,7 +5068,7 @@ impl CreateCheckoutSessionBuilderPhoneNumberCollection { } } /// A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderSetupIntentData<'a> { /// An arbitrary string attached to the object. Often useful for displaying to users. #[serde(skip_serializing_if = "Option::is_none")] @@ -4956,7 +5085,7 @@ pub struct CreateCheckoutSessionBuilderSetupIntentData<'a> { } impl<'a> CreateCheckoutSessionBuilderSetupIntentData<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, metadata: None, on_behalf_of: None } } } /// When set, provides configuration for Checkout to collect a shipping address from a customer. @@ -5733,7 +5862,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderShippingAddressCollectionA } } /// The shipping rate options to apply to this Session. Up to a maximum of 5. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderShippingOptions<'a> { /// The ID of the Shipping Rate to use for this shipping option. #[serde(skip_serializing_if = "Option::is_none")] @@ -5744,7 +5873,7 @@ pub struct CreateCheckoutSessionBuilderShippingOptions<'a> { } impl<'a> CreateCheckoutSessionBuilderShippingOptions<'a> { pub fn new() -> Self { - Self::default() + Self { shipping_rate: None, shipping_rate_data: None } } } /// Parameters to be passed to Shipping Rate creation for this shipping option @@ -5797,7 +5926,7 @@ impl<'a> CreateCheckoutSessionBuilderShippingOptionsShippingRateData<'a> { } /// The estimated range for how long shipping will take, meant to be displayable to the customer. /// This will appear on CheckoutSessions. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderShippingOptionsShippingRateDataDeliveryEstimate { /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. #[serde(skip_serializing_if = "Option::is_none")] @@ -5810,7 +5939,7 @@ pub struct CreateCheckoutSessionBuilderShippingOptionsShippingRateDataDeliveryEs } impl CreateCheckoutSessionBuilderShippingOptionsShippingRateDataDeliveryEstimate { pub fn new() -> Self { - Self::default() + Self { maximum: None, minimum: None } } } /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. @@ -6158,7 +6287,7 @@ impl serde::Serialize for CreateCheckoutSessionBuilderShippingOptionsShippingRat } } /// A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCheckoutSessionBuilderSubscriptionData<'a> { /// A non-negative decimal between 0 and 100, with at most two decimal places. /// This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. @@ -6210,7 +6339,19 @@ pub struct CreateCheckoutSessionBuilderSubscriptionData<'a> { } impl<'a> CreateCheckoutSessionBuilderSubscriptionData<'a> { pub fn new() -> Self { - Self::default() + Self { + application_fee_percent: None, + billing_cycle_anchor: None, + default_tax_rates: None, + description: None, + metadata: None, + on_behalf_of: None, + proration_behavior: None, + transfer_data: None, + trial_end: None, + trial_period_days: None, + trial_settings: None, + } } } /// Determines how to handle prorations resulting from the `billing_cycle_anchor`. @@ -6653,7 +6794,7 @@ impl StripeRequest for CreateCheckoutSession<'_> { RequestBuilder::new(StripeMethod::Post, "/checkout/sessions").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListLineItemsCheckoutSessionBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -6675,7 +6816,7 @@ pub struct ListLineItemsCheckoutSessionBuilder<'a> { } impl<'a> ListLineItemsCheckoutSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// When retrieving a Checkout Session, there is an includable **line_items** property containing the first handful of those items. @@ -6734,7 +6875,7 @@ impl StripeRequest for ListLineItemsCheckoutSession<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ExpireCheckoutSessionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -6742,7 +6883,7 @@ pub struct ExpireCheckoutSessionBuilder<'a> { } impl<'a> ExpireCheckoutSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// A Session can be expired when it is in one of these statuses: `open` diff --git a/generated/stripe_checkout/src/checkout_session_payment_method_options.rs b/generated/stripe_checkout/src/checkout_session_payment_method_options.rs index ca92e35c9..4a3fed065 100644 --- a/generated/stripe_checkout/src/checkout_session_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_session_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutSessionPaymentMethodOptions { #[serde(skip_serializing_if = "Option::is_none")] pub acss_debit: Option, diff --git a/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs b/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs index c8a6453f7..2204edf29 100644 --- a/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutSofortPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs b/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs index 8c7dec25b..81b0f50e4 100644 --- a/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CheckoutUsBankAccountPaymentMethodOptions { #[serde(skip_serializing_if = "Option::is_none")] pub financial_connections: Option, diff --git a/generated/stripe_checkout/src/mod.rs b/generated/stripe_checkout/src/mod.rs index 4fb8b07bc..50d5d679f 100644 --- a/generated/stripe_checkout/src/mod.rs +++ b/generated/stripe_checkout/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs index 8556d7c03..3b75922ae 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionAfterExpiration { /// When set, configuration used to recover the Checkout Session on expiry. pub recovery: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs index 2f784f268..3dd94f500 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionConsent { /// If `opt_in`, the customer consents to receiving promotional communications /// from the merchant about this Checkout Session. diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs index f0ed7b0a1..3a1416413 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionConsentCollection { /// If set to `auto`, enables the collection of customer consent for promotional communications. /// The Checkout. diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs index 74e41bf6e..84ecab392 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionCustomFieldsNumeric { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs index 48f5a6e6c..7653ff155 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionCustomFieldsText { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs index 6a5c4d221..447dcfb9b 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionCustomText { /// Custom text that should be displayed alongside shipping address collection. pub shipping_address: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs index de0be4e3c..d16c86956 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionCustomerDetails { /// The customer's address after a completed Checkout Session. /// Note: This property is populated only for sessions on or after March 30, 2022. diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs index ede351ff0..e49c72e7f 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentPagesCheckoutSessionInvoiceSettings { /// The account tax IDs associated with the invoice. pub account_tax_ids: Option>>, diff --git a/generated/stripe_connect/src/account/requests.rs b/generated/stripe_connect/src/account/requests.rs index 63360dabf..0a01667b0 100644 --- a/generated/stripe_connect/src/account/requests.rs +++ b/generated/stripe_connect/src/account/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveForMyAccountAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveForMyAccountAccountBuilder<'a> { } impl<'a> RetrieveForMyAccountAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an account. @@ -50,7 +50,7 @@ impl StripeRequest for RetrieveForMyAccountAccount<'_> { RequestBuilder::new(StripeMethod::Get, "/account").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -58,7 +58,7 @@ pub struct RetrieveAccountBuilder<'a> { } impl<'a> RetrieveAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an account. @@ -100,7 +100,7 @@ impl StripeRequest for RetrieveAccount<'_> { RequestBuilder::new(StripeMethod::Get, format!("/accounts/{account}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilder<'a> { /// An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account. #[serde(skip_serializing_if = "Option::is_none")] @@ -162,11 +162,26 @@ pub struct UpdateAccountBuilder<'a> { } impl<'a> UpdateAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_token: None, + business_profile: None, + business_type: None, + capabilities: None, + company: None, + default_currency: None, + documents: None, + email: None, + expand: None, + external_account: None, + individual: None, + metadata: None, + settings: None, + tos_acceptance: None, + } } } /// Information about the company or business. This field is available for any `business_type`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderCompany<'a> { /// The company's primary address. #[serde(skip_serializing_if = "Option::is_none")] @@ -235,11 +250,31 @@ pub struct UpdateAccountBuilderCompany<'a> { } impl<'a> UpdateAccountBuilderCompany<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + address_kana: None, + address_kanji: None, + directors_provided: None, + executives_provided: None, + export_license_id: None, + export_purpose_code: None, + name: None, + name_kana: None, + name_kanji: None, + owners_provided: None, + ownership_declaration: None, + phone: None, + registration_number: None, + structure: None, + tax_id: None, + tax_id_registrar: None, + vat_id: None, + verification: None, + } } } /// The Kana variation of the company's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderCompanyAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -265,11 +300,19 @@ pub struct UpdateAccountBuilderCompanyAddressKana<'a> { } impl<'a> UpdateAccountBuilderCompanyAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the company's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderCompanyAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -295,7 +338,15 @@ pub struct UpdateAccountBuilderCompanyAddressKanji<'a> { } impl<'a> UpdateAccountBuilderCompanyAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The category identifying the legal structure of the company or legal entity. @@ -411,7 +462,7 @@ impl serde::Serialize for UpdateAccountBuilderCompanyStructure { } /// Information about the person represented by the account. /// This field is null unless `business_type` is set to `individual`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderIndividual<'a> { /// The individual's primary address. #[serde(skip_serializing_if = "Option::is_none")] @@ -489,11 +540,34 @@ pub struct UpdateAccountBuilderIndividual<'a> { } impl<'a> UpdateAccountBuilderIndividual<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + address_kana: None, + address_kanji: None, + dob: None, + email: None, + first_name: None, + first_name_kana: None, + first_name_kanji: None, + full_name_aliases: None, + gender: None, + id_number: None, + id_number_secondary: None, + last_name: None, + last_name_kana: None, + last_name_kanji: None, + maiden_name: None, + metadata: None, + phone: None, + political_exposure: None, + registered_address: None, + ssn_last_4: None, + verification: None, + } } } /// The Kana variation of the the individual's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderIndividualAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -519,11 +593,19 @@ pub struct UpdateAccountBuilderIndividualAddressKana<'a> { } impl<'a> UpdateAccountBuilderIndividualAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the the individual's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderIndividualAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -549,7 +631,15 @@ pub struct UpdateAccountBuilderIndividualAddressKanji<'a> { } impl<'a> UpdateAccountBuilderIndividualAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. @@ -599,7 +689,7 @@ impl serde::Serialize for UpdateAccountBuilderIndividualPoliticalExposure { } } /// Options for customizing how the account functions within Stripe. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderSettings<'a> { /// Settings specific to Bacs Direct Debit payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -625,11 +715,19 @@ pub struct UpdateAccountBuilderSettings<'a> { } impl<'a> UpdateAccountBuilderSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + bacs_debit_payments: None, + branding: None, + card_issuing: None, + card_payments: None, + payments: None, + payouts: None, + treasury: None, + } } } /// Settings specific to the account's payouts. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderSettingsPayouts<'a> { /// A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. /// For details, see [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances). @@ -646,12 +744,12 @@ pub struct UpdateAccountBuilderSettingsPayouts<'a> { } impl<'a> UpdateAccountBuilderSettingsPayouts<'a> { pub fn new() -> Self { - Self::default() + Self { debit_negative_balances: None, schedule: None, statement_descriptor: None } } } /// Details on when funds from charges are available, and when they are paid out to an external account. /// For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBuilderSettingsPayoutsSchedule { /// The number of days charge funds are held before being paid out. /// May also be set to `minimum`, representing the lowest available value for the account country. @@ -677,7 +775,7 @@ pub struct UpdateAccountBuilderSettingsPayoutsSchedule { } impl UpdateAccountBuilderSettingsPayoutsSchedule { pub fn new() -> Self { - Self::default() + Self { delay_days: None, interval: None, monthly_anchor: None, weekly_anchor: None } } } /// The number of days charge funds are held before being paid out. @@ -925,7 +1023,7 @@ impl StripeRequest for UpdateAccount<'_> { RequestBuilder::new(StripeMethod::Post, format!("/accounts/{account}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListAccountBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -949,7 +1047,7 @@ pub struct ListAccountBuilder<'a> { } impl<'a> ListAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { created: None, ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). @@ -1010,7 +1108,7 @@ impl StripeRequest for ListAccount<'_> { RequestBuilder::new(StripeMethod::Get, "/accounts").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilder<'a> { /// An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account. #[serde(skip_serializing_if = "Option::is_none")] @@ -1082,11 +1180,28 @@ pub struct CreateAccountBuilder<'a> { } impl<'a> CreateAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_token: None, + business_profile: None, + business_type: None, + capabilities: None, + company: None, + country: None, + default_currency: None, + documents: None, + email: None, + expand: None, + external_account: None, + individual: None, + metadata: None, + settings: None, + tos_acceptance: None, + type_: None, + } } } /// Information about the company or business. This field is available for any `business_type`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderCompany<'a> { /// The company's primary address. #[serde(skip_serializing_if = "Option::is_none")] @@ -1155,11 +1270,31 @@ pub struct CreateAccountBuilderCompany<'a> { } impl<'a> CreateAccountBuilderCompany<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + address_kana: None, + address_kanji: None, + directors_provided: None, + executives_provided: None, + export_license_id: None, + export_purpose_code: None, + name: None, + name_kana: None, + name_kanji: None, + owners_provided: None, + ownership_declaration: None, + phone: None, + registration_number: None, + structure: None, + tax_id: None, + tax_id_registrar: None, + vat_id: None, + verification: None, + } } } /// The Kana variation of the company's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderCompanyAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -1185,11 +1320,19 @@ pub struct CreateAccountBuilderCompanyAddressKana<'a> { } impl<'a> CreateAccountBuilderCompanyAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the company's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderCompanyAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -1215,7 +1358,15 @@ pub struct CreateAccountBuilderCompanyAddressKanji<'a> { } impl<'a> CreateAccountBuilderCompanyAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The category identifying the legal structure of the company or legal entity. @@ -1331,7 +1482,7 @@ impl serde::Serialize for CreateAccountBuilderCompanyStructure { } /// Information about the person represented by the account. /// This field is null unless `business_type` is set to `individual`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderIndividual<'a> { /// The individual's primary address. #[serde(skip_serializing_if = "Option::is_none")] @@ -1409,11 +1560,34 @@ pub struct CreateAccountBuilderIndividual<'a> { } impl<'a> CreateAccountBuilderIndividual<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + address_kana: None, + address_kanji: None, + dob: None, + email: None, + first_name: None, + first_name_kana: None, + first_name_kanji: None, + full_name_aliases: None, + gender: None, + id_number: None, + id_number_secondary: None, + last_name: None, + last_name_kana: None, + last_name_kanji: None, + maiden_name: None, + metadata: None, + phone: None, + political_exposure: None, + registered_address: None, + ssn_last_4: None, + verification: None, + } } } /// The Kana variation of the the individual's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderIndividualAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -1439,11 +1613,19 @@ pub struct CreateAccountBuilderIndividualAddressKana<'a> { } impl<'a> CreateAccountBuilderIndividualAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the the individual's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderIndividualAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -1469,7 +1651,15 @@ pub struct CreateAccountBuilderIndividualAddressKanji<'a> { } impl<'a> CreateAccountBuilderIndividualAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. @@ -1519,7 +1709,7 @@ impl serde::Serialize for CreateAccountBuilderIndividualPoliticalExposure { } } /// Options for customizing how the account functions within Stripe. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderSettings<'a> { /// Settings specific to Bacs Direct Debit. #[serde(skip_serializing_if = "Option::is_none")] @@ -1545,11 +1735,19 @@ pub struct CreateAccountBuilderSettings<'a> { } impl<'a> CreateAccountBuilderSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + bacs_debit_payments: None, + branding: None, + card_issuing: None, + card_payments: None, + payments: None, + payouts: None, + treasury: None, + } } } /// Settings specific to the account's payouts. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderSettingsPayouts<'a> { /// A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. /// For details, see [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances). @@ -1566,12 +1764,12 @@ pub struct CreateAccountBuilderSettingsPayouts<'a> { } impl<'a> CreateAccountBuilderSettingsPayouts<'a> { pub fn new() -> Self { - Self::default() + Self { debit_negative_balances: None, schedule: None, statement_descriptor: None } } } /// Details on when funds from charges are available, and when they are paid out to an external account. /// For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountBuilderSettingsPayoutsSchedule { /// The number of days charge funds are held before being paid out. /// May also be set to `minimum`, representing the lowest available value for the account country. @@ -1597,7 +1795,7 @@ pub struct CreateAccountBuilderSettingsPayoutsSchedule { } impl CreateAccountBuilderSettingsPayoutsSchedule { pub fn new() -> Self { - Self::default() + Self { delay_days: None, interval: None, monthly_anchor: None, weekly_anchor: None } } } /// The number of days charge funds are held before being paid out. @@ -1941,7 +2139,7 @@ impl StripeRequest for RejectAccount<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonsAccountBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -1966,11 +2164,17 @@ pub struct PersonsAccountBuilder<'a> { } impl<'a> PersonsAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + ending_before: None, + expand: None, + limit: None, + relationship: None, + starting_after: None, + } } } /// Filters on the list of people returned based on the person's relationship to the account's company. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonsAccountBuilderRelationship { /// A filter on the list of people returned based on whether these people are directors of the account's company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1990,7 +2194,13 @@ pub struct PersonsAccountBuilderRelationship { } impl PersonsAccountBuilderRelationship { pub fn new() -> Self { - Self::default() + Self { + director: None, + executive: None, + legal_guardian: None, + owner: None, + representative: None, + } } } /// Returns a list of people associated with the account’s legal entity. @@ -2054,7 +2264,7 @@ impl StripeRequest for PersonsAccount<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CapabilitiesAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -2062,7 +2272,7 @@ pub struct CapabilitiesAccountBuilder<'a> { } impl<'a> CapabilitiesAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Returns a list of capabilities associated with the account. @@ -2120,7 +2330,7 @@ impl MonthlyEstimatedRevenueSpecs { Self { amount, currency } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct AddressSpecs<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -2143,10 +2353,10 @@ pub struct AddressSpecs<'a> { } impl<'a> AddressSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CapabilityParam { /// Passing true requests the capability for the account, if it is not already requested. /// A requested capability may not immediately become active. @@ -2156,10 +2366,10 @@ pub struct CapabilityParam { } impl CapabilityParam { pub fn new() -> Self { - Self::default() + Self { requested: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CompanyOwnershipDeclaration<'a> { /// The Unix timestamp marking when the beneficial owner attestation was made. #[serde(skip_serializing_if = "Option::is_none")] @@ -2173,10 +2383,10 @@ pub struct CompanyOwnershipDeclaration<'a> { } impl<'a> CompanyOwnershipDeclaration<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, user_agent: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct VerificationDocumentSpecs<'a> { /// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. /// The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -2189,10 +2399,10 @@ pub struct VerificationDocumentSpecs<'a> { } impl<'a> VerificationDocumentSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { back: None, front: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DocumentsParam<'a> { /// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. #[serde(skip_serializing_if = "Option::is_none")] @@ -2200,7 +2410,7 @@ pub struct DocumentsParam<'a> { } impl<'a> DocumentsParam<'a> { pub fn new() -> Self { - Self::default() + Self { files: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -2217,7 +2427,7 @@ impl DateOfBirthSpecs { Self { day, month, year } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationDocumentSpecs<'a> { /// The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. /// The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -2230,10 +2440,10 @@ pub struct PersonVerificationDocumentSpecs<'a> { } impl<'a> PersonVerificationDocumentSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { back: None, front: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BacsDebitPaymentsSpecs<'a> { /// The Bacs Direct Debit Display Name for this account. /// For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. @@ -2246,10 +2456,10 @@ pub struct BacsDebitPaymentsSpecs<'a> { } impl<'a> BacsDebitPaymentsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { display_name: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BrandingSettingsSpecs<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. /// Must be square and at least 128px x 128px. @@ -2268,10 +2478,10 @@ pub struct BrandingSettingsSpecs<'a> { } impl<'a> BrandingSettingsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { icon: None, logo: None, primary_color: None, secondary_color: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SettingsTermsOfServiceSpecs<'a> { /// The Unix timestamp marking when the account representative accepted the service agreement. #[serde(skip_serializing_if = "Option::is_none")] @@ -2285,10 +2495,10 @@ pub struct SettingsTermsOfServiceSpecs<'a> { } impl<'a> SettingsTermsOfServiceSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, user_agent: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DeclineChargeOnSpecs { /// Whether Stripe automatically declines charges with an incorrect ZIP or postal code. /// This setting only applies when a ZIP or postal code is provided and they fail bank verification. @@ -2301,10 +2511,10 @@ pub struct DeclineChargeOnSpecs { } impl DeclineChargeOnSpecs { pub fn new() -> Self { - Self::default() + Self { avs_failure: None, cvc_failure: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PaymentsSettingsSpecs<'a> { /// The default text that appears on credit card statements when a charge is made. /// This field prefixes any dynamic `statement_descriptor` specified on the charge. @@ -2319,10 +2529,14 @@ pub struct PaymentsSettingsSpecs<'a> { } impl<'a> PaymentsSettingsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { + statement_descriptor: None, + statement_descriptor_kana: None, + statement_descriptor_kanji: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct TosAcceptanceSpecs<'a> { /// The Unix timestamp marking when the account representative accepted their service agreement. #[serde(skip_serializing_if = "Option::is_none")] @@ -2339,10 +2553,10 @@ pub struct TosAcceptanceSpecs<'a> { } impl<'a> TosAcceptanceSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, service_agreement: None, user_agent: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BusinessProfileSpecs<'a> { /// [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). /// MCCs are used to classify businesses based on the goods or services they provide. @@ -2376,10 +2590,20 @@ pub struct BusinessProfileSpecs<'a> { } impl<'a> BusinessProfileSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { + mcc: None, + monthly_estimated_revenue: None, + name: None, + product_description: None, + support_address: None, + support_email: None, + support_phone: None, + support_url: None, + url: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CapabilitiesParam { /// The acss_debit_payments capability. #[serde(skip_serializing_if = "Option::is_none")] @@ -2495,10 +2719,48 @@ pub struct CapabilitiesParam { } impl CapabilitiesParam { pub fn new() -> Self { - Self::default() + Self { + acss_debit_payments: None, + affirm_payments: None, + afterpay_clearpay_payments: None, + au_becs_debit_payments: None, + bacs_debit_payments: None, + bancontact_payments: None, + bank_transfer_payments: None, + blik_payments: None, + boleto_payments: None, + card_issuing: None, + card_payments: None, + cartes_bancaires_payments: None, + cashapp_payments: None, + eps_payments: None, + fpx_payments: None, + giropay_payments: None, + grabpay_payments: None, + ideal_payments: None, + india_international_payments: None, + jcb_payments: None, + klarna_payments: None, + konbini_payments: None, + legacy_payments: None, + link_payments: None, + oxxo_payments: None, + p24_payments: None, + paynow_payments: None, + promptpay_payments: None, + revolut_pay_payments: None, + sepa_debit_payments: None, + sofort_payments: None, + tax_reporting_us_1099_k: None, + tax_reporting_us_1099_misc: None, + transfers: None, + treasury: None, + us_bank_account_ach_payments: None, + zip_payments: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct VerificationSpecs<'a> { /// A document verifying the business. #[serde(skip_serializing_if = "Option::is_none")] @@ -2506,10 +2768,10 @@ pub struct VerificationSpecs<'a> { } impl<'a> VerificationSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { document: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DocumentsSpecs<'a> { /// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. /// Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check. @@ -2536,10 +2798,18 @@ pub struct DocumentsSpecs<'a> { } impl<'a> DocumentsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { + bank_account_ownership_verification: None, + company_license: None, + company_memorandum_of_association: None, + company_ministerial_decree: None, + company_registration_verification: None, + company_tax_id_verification: None, + proof_of_registration: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationSpecs<'a> { /// A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. #[serde(skip_serializing_if = "Option::is_none")] @@ -2550,10 +2820,10 @@ pub struct PersonVerificationSpecs<'a> { } impl<'a> PersonVerificationSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { additional_document: None, document: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CardIssuingSettingsSpecs<'a> { /// Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/docs/issuing/connect/tos_acceptance). #[serde(skip_serializing_if = "Option::is_none")] @@ -2561,10 +2831,10 @@ pub struct CardIssuingSettingsSpecs<'a> { } impl<'a> CardIssuingSettingsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { tos_acceptance: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CardPaymentsSettingsSpecs<'a> { /// Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge. #[serde(skip_serializing_if = "Option::is_none")] @@ -2587,10 +2857,15 @@ pub struct CardPaymentsSettingsSpecs<'a> { } impl<'a> CardPaymentsSettingsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { + decline_on: None, + statement_descriptor_prefix: None, + statement_descriptor_prefix_kana: None, + statement_descriptor_prefix_kanji: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct TreasurySettingsSpecs<'a> { /// Details on the account's acceptance of the Stripe Treasury Services Agreement. #[serde(skip_serializing_if = "Option::is_none")] @@ -2598,6 +2873,6 @@ pub struct TreasurySettingsSpecs<'a> { } impl<'a> TreasurySettingsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { tos_acceptance: None } } } diff --git a/generated/stripe_connect/src/account_session/requests.rs b/generated/stripe_connect/src/account_session/requests.rs index b96271c1a..6670414e4 100644 --- a/generated/stripe_connect/src/account_session/requests.rs +++ b/generated/stripe_connect/src/account_session/requests.rs @@ -20,7 +20,7 @@ impl<'a> CreateAccountSessionBuilder<'a> { } /// Each key of the dictionary represents an embedded component, and each embedded component maps to its configuration (e.g. /// whether it has been enabled or not). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountSessionBuilderComponents { /// Configuration for the account onboarding embedded component. #[serde(skip_serializing_if = "Option::is_none")] @@ -28,7 +28,7 @@ pub struct CreateAccountSessionBuilderComponents { } impl CreateAccountSessionBuilderComponents { pub fn new() -> Self { - Self::default() + Self { account_onboarding: None } } } /// Configuration for the account onboarding embedded component. diff --git a/generated/stripe_connect/src/application_fee/requests.rs b/generated/stripe_connect/src/application_fee/requests.rs index 7ac714f89..c1d73c514 100644 --- a/generated/stripe_connect/src/application_fee/requests.rs +++ b/generated/stripe_connect/src/application_fee/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListApplicationFeeBuilder<'a> { /// Only return application fees for the charge specified by this charge ID. #[serde(skip_serializing_if = "Option::is_none")] @@ -29,7 +29,14 @@ pub struct ListApplicationFeeBuilder<'a> { } impl<'a> ListApplicationFeeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + charge: None, + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + } } } /// Returns a list of application fees you’ve previously collected. @@ -95,7 +102,7 @@ impl StripeRequest for ListApplicationFee<'_> { RequestBuilder::new(StripeMethod::Get, "/application_fees").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveApplicationFeeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -103,7 +110,7 @@ pub struct RetrieveApplicationFeeBuilder<'a> { } impl<'a> RetrieveApplicationFeeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an application fee that your account has collected. diff --git a/generated/stripe_connect/src/application_fee_refund/requests.rs b/generated/stripe_connect/src/application_fee_refund/requests.rs index 324664d6b..2e6d4ff7e 100644 --- a/generated/stripe_connect/src/application_fee_refund/requests.rs +++ b/generated/stripe_connect/src/application_fee_refund/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIdApplicationFeeRefundBuilder<'a> { /// A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. /// Can refund only up to the remaining unrefunded amount of the fee. @@ -20,7 +20,7 @@ pub struct CreateIdApplicationFeeRefundBuilder<'a> { } impl<'a> CreateIdApplicationFeeRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { amount: None, expand: None, metadata: None } } } /// Refunds an application fee that has previously been collected but not yet refunded. @@ -81,7 +81,7 @@ impl StripeRequest for CreateIdApplicationFeeRefund<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIdApplicationFeeRefundBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -103,7 +103,7 @@ pub struct ListIdApplicationFeeRefundBuilder<'a> { } impl<'a> ListIdApplicationFeeRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// You can see a list of the refunds belonging to a specific application fee. @@ -163,7 +163,7 @@ impl StripeRequest for ListIdApplicationFeeRefund<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveApplicationFeeRefundBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -171,7 +171,7 @@ pub struct RetrieveApplicationFeeRefundBuilder<'a> { } impl<'a> RetrieveApplicationFeeRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee. @@ -216,7 +216,7 @@ impl StripeRequest for RetrieveApplicationFeeRefund<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateApplicationFeeRefundBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -230,7 +230,7 @@ pub struct UpdateApplicationFeeRefundBuilder<'a> { } impl<'a> UpdateApplicationFeeRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Updates the specified application fee refund by setting the values of the parameters passed. diff --git a/generated/stripe_connect/src/capability/requests.rs b/generated/stripe_connect/src/capability/requests.rs index e999e9278..0d1e0e174 100644 --- a/generated/stripe_connect/src/capability/requests.rs +++ b/generated/stripe_connect/src/capability/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListAccountCapabilityBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct ListAccountCapabilityBuilder<'a> { } impl<'a> ListAccountCapabilityBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Returns a list of capabilities associated with the account. @@ -54,7 +54,7 @@ impl StripeRequest for ListAccountCapability<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCapabilityBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -62,7 +62,7 @@ pub struct RetrieveCapabilityBuilder<'a> { } impl<'a> RetrieveCapabilityBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves information about the specified Account Capability. @@ -110,7 +110,7 @@ impl StripeRequest for RetrieveCapability<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCapabilityBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -127,7 +127,7 @@ pub struct UpdateCapabilityBuilder<'a> { } impl<'a> UpdateCapabilityBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, requested: None } } } /// Updates an existing Account Capability. diff --git a/generated/stripe_connect/src/country_spec/requests.rs b/generated/stripe_connect/src/country_spec/requests.rs index 66f95e2fe..972d5cb13 100644 --- a/generated/stripe_connect/src/country_spec/requests.rs +++ b/generated/stripe_connect/src/country_spec/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCountrySpecBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListCountrySpecBuilder<'a> { } impl<'a> ListCountrySpecBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Lists all Country Spec objects available in the API. @@ -79,7 +79,7 @@ impl StripeRequest for ListCountrySpec<'_> { RequestBuilder::new(StripeMethod::Get, "/country_specs").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCountrySpecBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -87,7 +87,7 @@ pub struct RetrieveCountrySpecBuilder<'a> { } impl<'a> RetrieveCountrySpecBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Returns a Country Spec for a given Country code. diff --git a/generated/stripe_connect/src/external_account/requests.rs b/generated/stripe_connect/src/external_account/requests.rs index a54598ae9..42e97ab43 100644 --- a/generated/stripe_connect/src/external_account/requests.rs +++ b/generated/stripe_connect/src/external_account/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListAccountExternalAccountBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -27,7 +27,7 @@ pub struct ListAccountExternalAccountBuilder<'a> { } impl<'a> ListAccountExternalAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, object: None, starting_after: None } } } /// Filter external accounts according to a particular object type. @@ -136,7 +136,7 @@ impl StripeRequest for ListAccountExternalAccount<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveExternalAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -144,7 +144,7 @@ pub struct RetrieveExternalAccountBuilder<'a> { } impl<'a> RetrieveExternalAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieve a specified external account for a given account. @@ -264,7 +264,7 @@ impl StripeRequest for CreateAccountExternalAccount<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateExternalAccountBuilder<'a> { /// The name of the person or business that owns the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -322,7 +322,24 @@ pub struct UpdateExternalAccountBuilder<'a> { } impl<'a> UpdateExternalAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_name: None, + account_holder_type: None, + account_type: None, + address_city: None, + address_country: None, + address_line1: None, + address_line2: None, + address_state: None, + address_zip: None, + default_for_currency: None, + documents: None, + exp_month: None, + exp_year: None, + expand: None, + metadata: None, + name: None, + } } } /// The type of entity that holds the account. This can be either `individual` or `company`. @@ -426,7 +443,7 @@ impl serde::Serialize for UpdateExternalAccountBuilderAccountType { } } /// Documents that may be submitted to satisfy various informational requests. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateExternalAccountBuilderDocuments<'a> { /// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. /// Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check. @@ -436,12 +453,12 @@ pub struct UpdateExternalAccountBuilderDocuments<'a> { } impl<'a> UpdateExternalAccountBuilderDocuments<'a> { pub fn new() -> Self { - Self::default() + Self { bank_account_ownership_verification: None } } } /// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. /// Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateExternalAccountBuilderDocumentsBankAccountOwnershipVerification<'a> { /// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. #[serde(skip_serializing_if = "Option::is_none")] @@ -449,7 +466,7 @@ pub struct UpdateExternalAccountBuilderDocumentsBankAccountOwnershipVerification } impl<'a> UpdateExternalAccountBuilderDocumentsBankAccountOwnershipVerification<'a> { pub fn new() -> Self { - Self::default() + Self { files: None } } } /// Updates the metadata, account holder name, account holder type of a bank account belonging to a [Custom account](https://stripe.com/docs/connect/custom-accounts), and optionally sets it as the default for its currency. diff --git a/generated/stripe_connect/src/login_link/requests.rs b/generated/stripe_connect/src/login_link/requests.rs index 2ee12755f..bb76f3d45 100644 --- a/generated/stripe_connect/src/login_link/requests.rs +++ b/generated/stripe_connect/src/login_link/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountLoginLinkBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct CreateAccountLoginLinkBuilder<'a> { } impl<'a> CreateAccountLoginLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Creates a single-use login link for an Express account to access their Stripe dashboard. diff --git a/generated/stripe_connect/src/mod.rs b/generated/stripe_connect/src/mod.rs index ab509d759..2fe84f0ca 100644 --- a/generated/stripe_connect/src/mod.rs +++ b/generated/stripe_connect/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_connect/src/person/requests.rs b/generated/stripe_connect/src/person/requests.rs index 87f4a4c87..1d0c5db26 100644 --- a/generated/stripe_connect/src/person/requests.rs +++ b/generated/stripe_connect/src/person/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListAccountPersonBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -27,11 +27,17 @@ pub struct ListAccountPersonBuilder<'a> { } impl<'a> ListAccountPersonBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + ending_before: None, + expand: None, + limit: None, + relationship: None, + starting_after: None, + } } } /// Filters on the list of people returned based on the person's relationship to the account's company. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListAccountPersonBuilderRelationship { /// A filter on the list of people returned based on whether these people are directors of the account's company. #[serde(skip_serializing_if = "Option::is_none")] @@ -51,7 +57,13 @@ pub struct ListAccountPersonBuilderRelationship { } impl ListAccountPersonBuilderRelationship { pub fn new() -> Self { - Self::default() + Self { + director: None, + executive: None, + legal_guardian: None, + owner: None, + representative: None, + } } } /// Returns a list of people associated with the account’s legal entity. @@ -115,7 +127,7 @@ impl StripeRequest for ListAccountPerson<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePersonBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -123,7 +135,7 @@ pub struct RetrievePersonBuilder<'a> { } impl<'a> RetrievePersonBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an existing person. @@ -168,7 +180,7 @@ impl StripeRequest for RetrievePerson<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountPersonBuilder<'a> { /// Details on the legal guardian's acceptance of the required Stripe agreements. #[serde(skip_serializing_if = "Option::is_none")] @@ -265,11 +277,40 @@ pub struct CreateAccountPersonBuilder<'a> { } impl<'a> CreateAccountPersonBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_tos_acceptances: None, + address: None, + address_kana: None, + address_kanji: None, + dob: None, + documents: None, + email: None, + expand: None, + first_name: None, + first_name_kana: None, + first_name_kanji: None, + full_name_aliases: None, + gender: None, + id_number: None, + id_number_secondary: None, + last_name: None, + last_name_kana: None, + last_name_kanji: None, + maiden_name: None, + metadata: None, + nationality: None, + person_token: None, + phone: None, + political_exposure: None, + registered_address: None, + relationship: None, + ssn_last_4: None, + verification: None, + } } } /// The Kana variation of the person's address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountPersonBuilderAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -295,11 +336,19 @@ pub struct CreateAccountPersonBuilderAddressKana<'a> { } impl<'a> CreateAccountPersonBuilderAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the person's address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateAccountPersonBuilderAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -325,7 +374,15 @@ pub struct CreateAccountPersonBuilderAddressKanji<'a> { } impl<'a> CreateAccountPersonBuilderAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// Creates a new person. @@ -509,7 +566,7 @@ impl StripeRequest for CreateAccountPerson<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePersonBuilder<'a> { /// Details on the legal guardian's acceptance of the required Stripe agreements. #[serde(skip_serializing_if = "Option::is_none")] @@ -606,11 +663,40 @@ pub struct UpdatePersonBuilder<'a> { } impl<'a> UpdatePersonBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_tos_acceptances: None, + address: None, + address_kana: None, + address_kanji: None, + dob: None, + documents: None, + email: None, + expand: None, + first_name: None, + first_name_kana: None, + first_name_kanji: None, + full_name_aliases: None, + gender: None, + id_number: None, + id_number_secondary: None, + last_name: None, + last_name_kana: None, + last_name_kanji: None, + maiden_name: None, + metadata: None, + nationality: None, + person_token: None, + phone: None, + political_exposure: None, + registered_address: None, + relationship: None, + ssn_last_4: None, + verification: None, + } } } /// The Kana variation of the person's address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePersonBuilderAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -636,11 +722,19 @@ pub struct UpdatePersonBuilderAddressKana<'a> { } impl<'a> UpdatePersonBuilderAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the person's address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePersonBuilderAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -666,7 +760,15 @@ pub struct UpdatePersonBuilderAddressKanji<'a> { } impl<'a> UpdatePersonBuilderAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// Updates an existing person. @@ -888,7 +990,7 @@ impl StripeRequest for DeletePerson<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SettingsTermsOfServiceSpecs<'a> { /// The Unix timestamp marking when the account representative accepted the service agreement. #[serde(skip_serializing_if = "Option::is_none")] @@ -902,10 +1004,10 @@ pub struct SettingsTermsOfServiceSpecs<'a> { } impl<'a> SettingsTermsOfServiceSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, user_agent: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct AddressSpecs<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -928,7 +1030,7 @@ pub struct AddressSpecs<'a> { } impl<'a> AddressSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -945,7 +1047,7 @@ impl DateOfBirthSpecs { Self { day, month, year } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DocumentsParam<'a> { /// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. #[serde(skip_serializing_if = "Option::is_none")] @@ -953,10 +1055,10 @@ pub struct DocumentsParam<'a> { } impl<'a> DocumentsParam<'a> { pub fn new() -> Self { - Self::default() + Self { files: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RelationshipSpecs<'a> { /// Whether the person is a director of the account's legal entity. /// Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -986,10 +1088,18 @@ pub struct RelationshipSpecs<'a> { } impl<'a> RelationshipSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { + director: None, + executive: None, + legal_guardian: None, + owner: None, + percent_ownership: None, + representative: None, + title: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationDocumentSpecs<'a> { /// The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. /// The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1002,10 +1112,10 @@ pub struct PersonVerificationDocumentSpecs<'a> { } impl<'a> PersonVerificationDocumentSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { back: None, front: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonAdditionalTosAcceptancesSpecs<'a> { /// Details on the legal guardian's acceptance of the main Stripe service agreement. #[serde(skip_serializing_if = "Option::is_none")] @@ -1013,10 +1123,10 @@ pub struct PersonAdditionalTosAcceptancesSpecs<'a> { } impl<'a> PersonAdditionalTosAcceptancesSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { account: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonDocumentsSpecs<'a> { /// One or more documents that demonstrate proof that this person is authorized to represent the company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1030,10 +1140,10 @@ pub struct PersonDocumentsSpecs<'a> { } impl<'a> PersonDocumentsSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { company_authorization: None, passport: None, visa: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationSpecs<'a> { /// A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1044,6 +1154,6 @@ pub struct PersonVerificationSpecs<'a> { } impl<'a> PersonVerificationSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { additional_document: None, document: None } } } diff --git a/generated/stripe_connect/src/topup/requests.rs b/generated/stripe_connect/src/topup/requests.rs index db21c07bc..81c2e11d4 100644 --- a/generated/stripe_connect/src/topup/requests.rs +++ b/generated/stripe_connect/src/topup/requests.rs @@ -109,7 +109,7 @@ impl StripeRequest for CreateTopup<'_> { RequestBuilder::new(StripeMethod::Post, "/topups").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTopupBuilder<'a> { /// A positive integer representing how much to transfer. #[serde(skip_serializing_if = "Option::is_none")] @@ -142,7 +142,15 @@ pub struct ListTopupBuilder<'a> { } impl<'a> ListTopupBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + status: None, + } } } /// Only return top-ups that have the given status. @@ -265,7 +273,7 @@ impl StripeRequest for ListTopup<'_> { RequestBuilder::new(StripeMethod::Get, "/topups").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTopupBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -273,7 +281,7 @@ pub struct RetrieveTopupBuilder<'a> { } impl<'a> RetrieveTopupBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of a top-up that has previously been created. @@ -316,7 +324,7 @@ impl StripeRequest for RetrieveTopup<'_> { RequestBuilder::new(StripeMethod::Get, format!("/topups/{topup}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTopupBuilder<'a> { /// An arbitrary string attached to the object. Often useful for displaying to users. #[serde(skip_serializing_if = "Option::is_none")] @@ -333,7 +341,7 @@ pub struct UpdateTopupBuilder<'a> { } impl<'a> UpdateTopupBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, expand: None, metadata: None } } } /// Updates the metadata of a top-up. Other top-up details are not editable by design. @@ -385,7 +393,7 @@ impl StripeRequest for UpdateTopup<'_> { RequestBuilder::new(StripeMethod::Post, format!("/topups/{topup}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelTopupBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -393,7 +401,7 @@ pub struct CancelTopupBuilder<'a> { } impl<'a> CancelTopupBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Cancels a top-up. Only pending top-ups can be canceled. diff --git a/generated/stripe_connect/src/transfer/requests.rs b/generated/stripe_connect/src/transfer/requests.rs index 7372286e8..c4bee24fc 100644 --- a/generated/stripe_connect/src/transfer/requests.rs +++ b/generated/stripe_connect/src/transfer/requests.rs @@ -173,7 +173,7 @@ impl StripeRequest for CreateTransfer<'_> { RequestBuilder::new(StripeMethod::Post, "/transfers").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTransferBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -203,7 +203,15 @@ pub struct ListTransferBuilder<'a> { } impl<'a> ListTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + destination: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + transfer_group: None, + } } } /// Returns a list of existing transfers sent to connected accounts. @@ -274,7 +282,7 @@ impl StripeRequest for ListTransfer<'_> { RequestBuilder::new(StripeMethod::Get, "/transfers").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -282,7 +290,7 @@ pub struct RetrieveTransferBuilder<'a> { } impl<'a> RetrieveTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing transfer. @@ -325,7 +333,7 @@ impl StripeRequest for RetrieveTransfer<'_> { RequestBuilder::new(StripeMethod::Get, format!("/transfers/{transfer}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTransferBuilder<'a> { /// An arbitrary string attached to the object. Often useful for displaying to users. #[serde(skip_serializing_if = "Option::is_none")] @@ -342,7 +350,7 @@ pub struct UpdateTransferBuilder<'a> { } impl<'a> UpdateTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, expand: None, metadata: None } } } /// Updates the specified transfer by setting the values of the parameters passed. diff --git a/generated/stripe_connect/src/transfer_reversal/requests.rs b/generated/stripe_connect/src/transfer_reversal/requests.rs index 0cb405647..331b4ff12 100644 --- a/generated/stripe_connect/src/transfer_reversal/requests.rs +++ b/generated/stripe_connect/src/transfer_reversal/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIdTransferReversalBuilder<'a> { /// A positive integer in cents (or local equivalent) representing how much of this transfer to reverse. /// Can only reverse up to the unreversed amount remaining of the transfer. @@ -32,7 +32,13 @@ pub struct CreateIdTransferReversalBuilder<'a> { } impl<'a> CreateIdTransferReversalBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + description: None, + expand: None, + metadata: None, + refund_application_fee: None, + } } } /// When you create a new reversal, you must specify a transfer to create it on. @@ -101,7 +107,7 @@ impl StripeRequest for CreateIdTransferReversal<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIdTransferReversalBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -123,7 +129,7 @@ pub struct ListIdTransferReversalBuilder<'a> { } impl<'a> ListIdTransferReversalBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// You can see a list of the reversals belonging to a specific transfer. @@ -183,7 +189,7 @@ impl StripeRequest for ListIdTransferReversal<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTransferReversalBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -191,7 +197,7 @@ pub struct RetrieveTransferReversalBuilder<'a> { } impl<'a> RetrieveTransferReversalBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// By default, you can see the 10 most recent reversals stored directly on the transfer object, but you can also retrieve details about a specific reversal stored on the transfer. @@ -236,7 +242,7 @@ impl StripeRequest for RetrieveTransferReversal<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTransferReversalBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -250,7 +256,7 @@ pub struct UpdateTransferReversalBuilder<'a> { } impl<'a> UpdateTransferReversalBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Updates the specified reversal by setting the values of the parameters passed. diff --git a/generated/stripe_core/src/balance/requests.rs b/generated/stripe_core/src/balance/requests.rs index 60be3b303..79ee62c26 100644 --- a/generated/stripe_core/src/balance/requests.rs +++ b/generated/stripe_core/src/balance/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveForMyAccountBalanceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveForMyAccountBalanceBuilder<'a> { } impl<'a> RetrieveForMyAccountBalanceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the current account balance, based on the authentication that was used to make the request. diff --git a/generated/stripe_core/src/balance_amount_by_source_type.rs b/generated/stripe_core/src/balance_amount_by_source_type.rs index 6fbb1b6eb..e4f19fe9e 100644 --- a/generated/stripe_core/src/balance_amount_by_source_type.rs +++ b/generated/stripe_core/src/balance_amount_by_source_type.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct BalanceAmountBySourceType { /// Amount for bank account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_core/src/balance_transaction/requests.rs b/generated/stripe_core/src/balance_transaction/requests.rs index 9c60b1f3a..919f4088c 100644 --- a/generated/stripe_core/src/balance_transaction/requests.rs +++ b/generated/stripe_core/src/balance_transaction/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListBalanceTransactionBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -42,7 +42,17 @@ pub struct ListBalanceTransactionBuilder<'a> { } impl<'a> ListBalanceTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + currency: None, + ending_before: None, + expand: None, + limit: None, + payout: None, + source: None, + starting_after: None, + type_: None, + } } } /// Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). @@ -125,7 +135,7 @@ impl StripeRequest for ListBalanceTransaction<'_> { RequestBuilder::new(StripeMethod::Get, "/balance_transactions").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveBalanceTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -133,7 +143,7 @@ pub struct RetrieveBalanceTransactionBuilder<'a> { } impl<'a> RetrieveBalanceTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the balance transaction with the given ID. diff --git a/generated/stripe_core/src/cash_balance/requests.rs b/generated/stripe_core/src/cash_balance/requests.rs index fd1c79ff4..54387cafc 100644 --- a/generated/stripe_core/src/cash_balance/requests.rs +++ b/generated/stripe_core/src/cash_balance/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCashBalanceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveCashBalanceBuilder<'a> { } impl<'a> RetrieveCashBalanceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a customer’s cash balance. @@ -53,7 +53,7 @@ impl StripeRequest for RetrieveCashBalance<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCashBalanceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -64,11 +64,11 @@ pub struct UpdateCashBalanceBuilder<'a> { } impl<'a> UpdateCashBalanceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, settings: None } } } /// A hash of settings for this cash balance. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCashBalanceBuilderSettings { /// Controls how funds transferred by the customer are applied to payment intents and invoices. /// Valid options are `automatic`, `manual`, or `merchant_default`. @@ -78,7 +78,7 @@ pub struct UpdateCashBalanceBuilderSettings { } impl UpdateCashBalanceBuilderSettings { pub fn new() -> Self { - Self::default() + Self { reconciliation_mode: None } } } /// Controls how funds transferred by the customer are applied to payment intents and invoices. diff --git a/generated/stripe_core/src/charge/requests.rs b/generated/stripe_core/src/charge/requests.rs index bfe634441..f358f413c 100644 --- a/generated/stripe_core/src/charge/requests.rs +++ b/generated/stripe_core/src/charge/requests.rs @@ -77,7 +77,7 @@ impl StripeRequest for SearchCharge<'_> { RequestBuilder::new(StripeMethod::Get, "/charges/search").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListChargeBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -110,7 +110,16 @@ pub struct ListChargeBuilder<'a> { } impl<'a> ListChargeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + customer: None, + ending_before: None, + expand: None, + limit: None, + payment_intent: None, + starting_after: None, + transfer_group: None, + } } } /// Returns a list of charges you’ve previously created. @@ -186,7 +195,7 @@ impl StripeRequest for ListCharge<'_> { RequestBuilder::new(StripeMethod::Get, "/charges").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateChargeBuilder<'a> { /// Amount intended to be collected by this payment. /// A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). @@ -275,7 +284,27 @@ pub struct CreateChargeBuilder<'a> { } impl<'a> CreateChargeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + application_fee: None, + application_fee_amount: None, + capture: None, + currency: None, + customer: None, + description: None, + destination: None, + expand: None, + metadata: None, + on_behalf_of: None, + radar_options: None, + receipt_email: None, + shipping: None, + source: None, + statement_descriptor: None, + statement_descriptor_suffix: None, + transfer_data: None, + transfer_group: None, + } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -295,7 +324,7 @@ impl<'a> CreateChargeBuilderDestination<'a> { } /// Options to configure Radar. /// See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateChargeBuilderRadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -303,7 +332,7 @@ pub struct CreateChargeBuilderRadarOptions<'a> { } impl<'a> CreateChargeBuilderRadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } /// An optional dictionary including the account to automatically transfer to as part of a destination charge. @@ -451,7 +480,7 @@ impl StripeRequest for CreateCharge<'_> { RequestBuilder::new(StripeMethod::Post, "/charges").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveChargeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -459,7 +488,7 @@ pub struct RetrieveChargeBuilder<'a> { } impl<'a> RetrieveChargeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of a charge that has previously been created. @@ -503,7 +532,7 @@ impl StripeRequest for RetrieveCharge<'_> { RequestBuilder::new(StripeMethod::Get, format!("/charges/{charge}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateChargeBuilder<'a> { /// The ID of an existing customer that will be associated with this request. /// This field may only be updated if there is no existing associated customer with this charge. @@ -544,7 +573,16 @@ pub struct UpdateChargeBuilder<'a> { } impl<'a> UpdateChargeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + customer: None, + description: None, + expand: None, + fraud_details: None, + metadata: None, + receipt_email: None, + shipping: None, + transfer_group: None, + } } } /// A set of key-value pairs you can attach to a charge giving information about its riskiness. @@ -682,7 +720,7 @@ impl StripeRequest for UpdateCharge<'_> { RequestBuilder::new(StripeMethod::Post, format!("/charges/{charge}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureChargeBuilder<'a> { /// The amount to capture, which must be less than or equal to the original amount. /// Any additional amount will be automatically refunded. @@ -724,12 +762,22 @@ pub struct CaptureChargeBuilder<'a> { } impl<'a> CaptureChargeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + application_fee: None, + application_fee_amount: None, + expand: None, + receipt_email: None, + statement_descriptor: None, + statement_descriptor_suffix: None, + transfer_data: None, + transfer_group: None, + } } } /// An optional dictionary including the account to automatically transfer to as part of a destination charge. /// [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureChargeBuilderTransferData { /// The amount transferred to the destination account, if specified. /// By default, the entire charge amount is transferred to the destination account. @@ -738,7 +786,7 @@ pub struct CaptureChargeBuilderTransferData { } impl CaptureChargeBuilderTransferData { pub fn new() -> Self { - Self::default() + Self { amount: None } } } /// Capture the payment of an existing, uncaptured charge that was created with the `capture` option set to false. @@ -827,7 +875,7 @@ impl StripeRequest for CaptureCharge<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct OptionalFieldsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -850,7 +898,7 @@ pub struct OptionalFieldsAddress<'a> { } impl<'a> OptionalFieldsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] diff --git a/generated/stripe_core/src/customer/requests.rs b/generated/stripe_core/src/customer/requests.rs index 87ec2f3e6..498a122de 100644 --- a/generated/stripe_core/src/customer/requests.rs +++ b/generated/stripe_core/src/customer/requests.rs @@ -77,7 +77,7 @@ impl StripeRequest for SearchCustomer<'_> { RequestBuilder::new(StripeMethod::Get, "/customers/search").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCustomerBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -109,7 +109,15 @@ pub struct ListCustomerBuilder<'a> { } impl<'a> ListCustomerBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + email: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + test_clock: None, + } } } /// Returns a list of your customers. @@ -180,7 +188,7 @@ impl StripeRequest for ListCustomer<'_> { RequestBuilder::new(StripeMethod::Get, "/customers").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCustomerBuilder<'a> { /// The customer's address. #[serde(skip_serializing_if = "Option::is_none")] @@ -260,11 +268,35 @@ pub struct CreateCustomerBuilder<'a> { } impl<'a> CreateCustomerBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + balance: None, + cash_balance: None, + coupon: None, + description: None, + email: None, + expand: None, + invoice_prefix: None, + invoice_settings: None, + metadata: None, + name: None, + next_invoice_sequence: None, + payment_method: None, + phone: None, + preferred_locales: None, + promotion_code: None, + shipping: None, + source: None, + tax: None, + tax_exempt: None, + tax_id_data: None, + test_clock: None, + validate: None, + } } } /// Balance information and default balance settings for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCustomerBuilderCashBalance { /// Settings controlling the behavior of the customer's cash balance, /// such as reconciliation of funds received. @@ -273,12 +305,12 @@ pub struct CreateCustomerBuilderCashBalance { } impl CreateCustomerBuilderCashBalance { pub fn new() -> Self { - Self::default() + Self { settings: None } } } /// Settings controlling the behavior of the customer's cash balance, /// such as reconciliation of funds received. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCustomerBuilderCashBalanceSettings { /// Controls how funds transferred by the customer are applied to payment intents and invoices. /// Valid options are `automatic`, `manual`, or `merchant_default`. @@ -288,7 +320,7 @@ pub struct CreateCustomerBuilderCashBalanceSettings { } impl CreateCustomerBuilderCashBalanceSettings { pub fn new() -> Self { - Self::default() + Self { reconciliation_mode: None } } } /// Controls how funds transferred by the customer are applied to payment intents and invoices. @@ -343,7 +375,7 @@ impl serde::Serialize for CreateCustomerBuilderCashBalanceSettingsReconciliation } } /// Default invoice settings for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCustomerBuilderInvoiceSettings<'a> { /// Default custom fields to be displayed on invoices for this customer. /// When updating, pass an empty string to remove previously-defined fields. @@ -361,11 +393,16 @@ pub struct CreateCustomerBuilderInvoiceSettings<'a> { } impl<'a> CreateCustomerBuilderInvoiceSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_fields: None, + default_payment_method: None, + footer: None, + rendering_options: None, + } } } /// Default options for invoice PDF rendering for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCustomerBuilderInvoiceSettingsRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -377,7 +414,7 @@ pub struct CreateCustomerBuilderInvoiceSettingsRenderingOptions { } impl CreateCustomerBuilderInvoiceSettingsRenderingOptions { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -835,7 +872,7 @@ impl StripeRequest for CreateCustomer<'_> { RequestBuilder::new(StripeMethod::Post, "/customers").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCustomerBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -843,7 +880,7 @@ pub struct RetrieveCustomerBuilder<'a> { } impl<'a> RetrieveCustomerBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a Customer object. @@ -891,7 +928,7 @@ pub enum RetrieveCustomerReturned { Customer(stripe_shared::Customer), DeletedCustomer(stripe_shared::DeletedCustomer), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBuilder<'a> { /// The customer's address. #[serde(skip_serializing_if = "Option::is_none")] @@ -970,11 +1007,33 @@ pub struct UpdateCustomerBuilder<'a> { } impl<'a> UpdateCustomerBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + balance: None, + cash_balance: None, + coupon: None, + default_source: None, + description: None, + email: None, + expand: None, + invoice_prefix: None, + invoice_settings: None, + metadata: None, + name: None, + next_invoice_sequence: None, + phone: None, + preferred_locales: None, + promotion_code: None, + shipping: None, + source: None, + tax: None, + tax_exempt: None, + validate: None, + } } } /// Balance information and default balance settings for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBuilderCashBalance { /// Settings controlling the behavior of the customer's cash balance, /// such as reconciliation of funds received. @@ -983,12 +1042,12 @@ pub struct UpdateCustomerBuilderCashBalance { } impl UpdateCustomerBuilderCashBalance { pub fn new() -> Self { - Self::default() + Self { settings: None } } } /// Settings controlling the behavior of the customer's cash balance, /// such as reconciliation of funds received. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBuilderCashBalanceSettings { /// Controls how funds transferred by the customer are applied to payment intents and invoices. /// Valid options are `automatic`, `manual`, or `merchant_default`. @@ -998,7 +1057,7 @@ pub struct UpdateCustomerBuilderCashBalanceSettings { } impl UpdateCustomerBuilderCashBalanceSettings { pub fn new() -> Self { - Self::default() + Self { reconciliation_mode: None } } } /// Controls how funds transferred by the customer are applied to payment intents and invoices. @@ -1053,7 +1112,7 @@ impl serde::Serialize for UpdateCustomerBuilderCashBalanceSettingsReconciliation } } /// Default invoice settings for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBuilderInvoiceSettings<'a> { /// Default custom fields to be displayed on invoices for this customer. /// When updating, pass an empty string to remove previously-defined fields. @@ -1071,11 +1130,16 @@ pub struct UpdateCustomerBuilderInvoiceSettings<'a> { } impl<'a> UpdateCustomerBuilderInvoiceSettings<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_fields: None, + default_payment_method: None, + footer: None, + rendering_options: None, + } } } /// Default options for invoice PDF rendering for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBuilderInvoiceSettingsRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -1087,7 +1151,7 @@ pub struct UpdateCustomerBuilderInvoiceSettingsRenderingOptions { } impl UpdateCustomerBuilderInvoiceSettingsRenderingOptions { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -1324,7 +1388,7 @@ impl StripeRequest for DeleteCustomer<'_> { RequestBuilder::new(StripeMethod::Delete, format!("/customers/{customer}")) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPaymentMethodsCustomerBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -1352,7 +1416,7 @@ pub struct ListPaymentMethodsCustomerBuilder<'a> { } impl<'a> ListPaymentMethodsCustomerBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None, type_: None } } } /// An optional filter on the list, based on the object `type` field. @@ -1557,7 +1621,7 @@ impl StripeRequest for ListPaymentMethodsCustomer<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePaymentMethodCustomerBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1565,7 +1629,7 @@ pub struct RetrievePaymentMethodCustomerBuilder<'a> { } impl<'a> RetrievePaymentMethodCustomerBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a PaymentMethod object for a given Customer. @@ -1613,7 +1677,7 @@ impl StripeRequest for RetrievePaymentMethodCustomer<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BalanceTransactionsCustomerBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -1635,7 +1699,7 @@ pub struct BalanceTransactionsCustomerBuilder<'a> { } impl<'a> BalanceTransactionsCustomerBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of transactions that updated the customer’s [balances](https://stripe.com/docs/billing/customer/balance). @@ -2077,7 +2141,7 @@ impl StripeRequest for DeleteDiscountCustomer<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct OptionalFieldsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -2100,7 +2164,7 @@ pub struct OptionalFieldsAddress<'a> { } impl<'a> OptionalFieldsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -2115,7 +2179,7 @@ impl<'a> CustomFieldParams<'a> { Self { name, value } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct TaxParam<'a> { /// A recent IP address of the customer used for tax reporting and tax location inference. /// Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. @@ -2125,7 +2189,7 @@ pub struct TaxParam<'a> { } impl<'a> TaxParam<'a> { pub fn new() -> Self { - Self::default() + Self { ip_address: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] diff --git a/generated/stripe_core/src/customer_balance_transaction/requests.rs b/generated/stripe_core/src/customer_balance_transaction/requests.rs index d78113531..8ce4b8205 100644 --- a/generated/stripe_core/src/customer_balance_transaction/requests.rs +++ b/generated/stripe_core/src/customer_balance_transaction/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCustomerBalanceTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveCustomerBalanceTransactionBuilder<'a> { } impl<'a> RetrieveCustomerBalanceTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a specific customer balance transaction that updated the customer’s [balances](https://stripe.com/docs/billing/customer/balance). @@ -58,7 +58,7 @@ impl StripeRequest for RetrieveCustomerBalanceTransaction<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCustomerCustomerBalanceTransactionBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -80,7 +80,7 @@ pub struct ListCustomerCustomerBalanceTransactionBuilder<'a> { } impl<'a> ListCustomerCustomerBalanceTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of transactions that updated the customer’s [balances](https://stripe.com/docs/billing/customer/balance). @@ -228,7 +228,7 @@ impl StripeRequest for CreateCustomerCustomerBalanceTransaction<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBalanceTransactionBuilder<'a> { /// An arbitrary string attached to the object. Often useful for displaying to users. #[serde(skip_serializing_if = "Option::is_none")] @@ -245,7 +245,7 @@ pub struct UpdateCustomerBalanceTransactionBuilder<'a> { } impl<'a> UpdateCustomerBalanceTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, expand: None, metadata: None } } } /// Most credit balance transaction fields are immutable, but you may update its `description` and `metadata`. diff --git a/generated/stripe_core/src/customer_cash_balance_transaction/requests.rs b/generated/stripe_core/src/customer_cash_balance_transaction/requests.rs index dadc7b70c..6a5b10b34 100644 --- a/generated/stripe_core/src/customer_cash_balance_transaction/requests.rs +++ b/generated/stripe_core/src/customer_cash_balance_transaction/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCustomerCashBalanceTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveCustomerCashBalanceTransactionBuilder<'a> { } impl<'a> RetrieveCustomerCashBalanceTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a specific cash balance transaction, which updated the customer’s [cash balance](https://stripe.com/docs/payments/customer-balance). @@ -58,7 +58,7 @@ impl StripeRequest for RetrieveCustomerCashBalanceTransaction<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCustomerCustomerCashBalanceTransactionBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -80,7 +80,7 @@ pub struct ListCustomerCustomerCashBalanceTransactionBuilder<'a> { } impl<'a> ListCustomerCustomerCashBalanceTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of transactions that modified the customer’s [cash balance](https://stripe.com/docs/payments/customer-balance). diff --git a/generated/stripe_core/src/dispute/requests.rs b/generated/stripe_core/src/dispute/requests.rs index d249a9989..0e3d16a42 100644 --- a/generated/stripe_core/src/dispute/requests.rs +++ b/generated/stripe_core/src/dispute/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListDisputeBuilder<'a> { /// Only return disputes associated to the charge specified by this charge ID. #[serde(skip_serializing_if = "Option::is_none")] @@ -32,7 +32,15 @@ pub struct ListDisputeBuilder<'a> { } impl<'a> ListDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + charge: None, + created: None, + ending_before: None, + expand: None, + limit: None, + payment_intent: None, + starting_after: None, + } } } /// Returns a list of your disputes. @@ -102,7 +110,7 @@ impl StripeRequest for ListDispute<'_> { RequestBuilder::new(StripeMethod::Get, "/disputes").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveDisputeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -110,7 +118,7 @@ pub struct RetrieveDisputeBuilder<'a> { } impl<'a> RetrieveDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the dispute with the given ID. @@ -152,7 +160,7 @@ impl StripeRequest for RetrieveDispute<'_> { RequestBuilder::new(StripeMethod::Get, format!("/disputes/{dispute}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateDisputeBuilder<'a> { /// Evidence to upload, to respond to a dispute. /// Updating any field in the hash will submit all fields in the hash for review. @@ -176,13 +184,13 @@ pub struct UpdateDisputeBuilder<'a> { } impl<'a> UpdateDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { evidence: None, expand: None, metadata: None, submit: None } } } /// Evidence to upload, to respond to a dispute. /// Updating any field in the hash will submit all fields in the hash for review. /// The combined character count of all fields is limited to 150,000. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateDisputeBuilderEvidence<'a> { /// Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. /// This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. @@ -283,7 +291,35 @@ pub struct UpdateDisputeBuilderEvidence<'a> { } impl<'a> UpdateDisputeBuilderEvidence<'a> { pub fn new() -> Self { - Self::default() + Self { + access_activity_log: None, + billing_address: None, + cancellation_policy: None, + cancellation_policy_disclosure: None, + cancellation_rebuttal: None, + customer_communication: None, + customer_email_address: None, + customer_name: None, + customer_purchase_ip: None, + customer_signature: None, + duplicate_charge_documentation: None, + duplicate_charge_explanation: None, + duplicate_charge_id: None, + product_description: None, + receipt: None, + refund_policy: None, + refund_policy_disclosure: None, + refund_refusal_explanation: None, + service_date: None, + service_documentation: None, + shipping_address: None, + shipping_carrier: None, + shipping_date: None, + shipping_documentation: None, + shipping_tracking_number: None, + uncategorized_file: None, + uncategorized_text: None, + } } } /// When you get a dispute, contacting your customer is always the best first step. @@ -345,7 +381,7 @@ impl StripeRequest for UpdateDispute<'_> { RequestBuilder::new(StripeMethod::Post, format!("/disputes/{dispute}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CloseDisputeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -353,7 +389,7 @@ pub struct CloseDisputeBuilder<'a> { } impl<'a> CloseDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost. diff --git a/generated/stripe_core/src/event/requests.rs b/generated/stripe_core/src/event/requests.rs index b98c32e6a..decee109b 100644 --- a/generated/stripe_core/src/event/requests.rs +++ b/generated/stripe_core/src/event/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListEventBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -40,7 +40,16 @@ pub struct ListEventBuilder<'a> { } impl<'a> ListEventBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + delivery_success: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + type_: None, + types: None, + } } } /// List events, going back up to 30 days. @@ -116,7 +125,7 @@ impl StripeRequest for ListEvent<'_> { RequestBuilder::new(StripeMethod::Get, "/events").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveEventBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -124,7 +133,7 @@ pub struct RetrieveEventBuilder<'a> { } impl<'a> RetrieveEventBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an event. diff --git a/generated/stripe_core/src/file/requests.rs b/generated/stripe_core/src/file/requests.rs index 2870a0d43..0c18da2f7 100644 --- a/generated/stripe_core/src/file/requests.rs +++ b/generated/stripe_core/src/file/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListFileBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -30,7 +30,14 @@ pub struct ListFileBuilder<'a> { } impl<'a> ListFileBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + ending_before: None, + expand: None, + limit: None, + purpose: None, + starting_after: None, + } } } /// Returns a list of the files that your account has access to. @@ -96,7 +103,7 @@ impl StripeRequest for ListFile<'_> { RequestBuilder::new(StripeMethod::Get, "/files").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveFileBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -104,7 +111,7 @@ pub struct RetrieveFileBuilder<'a> { } impl<'a> RetrieveFileBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing file object. diff --git a/generated/stripe_core/src/file_link/requests.rs b/generated/stripe_core/src/file_link/requests.rs index 79521f31b..f1cd6dc00 100644 --- a/generated/stripe_core/src/file_link/requests.rs +++ b/generated/stripe_core/src/file_link/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveFileLinkBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveFileLinkBuilder<'a> { } impl<'a> RetrieveFileLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the file link with the given ID. @@ -122,7 +122,7 @@ impl StripeRequest for CreateFileLink<'_> { RequestBuilder::new(StripeMethod::Post, "/file_links").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateFileLinkBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -139,7 +139,7 @@ pub struct UpdateFileLinkBuilder<'a> { } impl<'a> UpdateFileLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, expires_at: None, metadata: None } } } /// A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately. @@ -198,7 +198,7 @@ impl StripeRequest for UpdateFileLink<'_> { RequestBuilder::new(StripeMethod::Post, format!("/file_links/{link}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListFileLinkBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -228,7 +228,15 @@ pub struct ListFileLinkBuilder<'a> { } impl<'a> ListFileLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + ending_before: None, + expand: None, + expired: None, + file: None, + limit: None, + starting_after: None, + } } } /// Returns a list of file links. diff --git a/generated/stripe_core/src/mandate/requests.rs b/generated/stripe_core/src/mandate/requests.rs index 6a89bb96f..8b7cdf889 100644 --- a/generated/stripe_core/src/mandate/requests.rs +++ b/generated/stripe_core/src/mandate/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveMandateBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveMandateBuilder<'a> { } impl<'a> RetrieveMandateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a Mandate object. diff --git a/generated/stripe_core/src/mod.rs b/generated/stripe_core/src/mod.rs index dc2ea0073..8369ea73e 100644 --- a/generated/stripe_core/src/mod.rs +++ b/generated/stripe_core/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_core/src/payment_intent/requests.rs b/generated/stripe_core/src/payment_intent/requests.rs index 33e39663f..4bb0512c2 100644 --- a/generated/stripe_core/src/payment_intent/requests.rs +++ b/generated/stripe_core/src/payment_intent/requests.rs @@ -585,7 +585,7 @@ impl<'a> CreatePaymentIntentBuilderPaymentMethodDataAuBecsDebit<'a> { } } /// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { /// Account number of the bank account that the funds will be debited from. #[serde(skip_serializing_if = "Option::is_none")] @@ -596,11 +596,11 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { pub fn new() -> Self { - Self::default() + Self { account_number: None, sort_code: None } } } /// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { /// Billing address. #[serde(skip_serializing_if = "Option::is_none")] @@ -617,11 +617,11 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } /// Billing address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -644,7 +644,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> } impl<'a> CreatePaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -659,7 +659,7 @@ impl<'a> CreatePaymentIntentBuilderPaymentMethodDataBoleto<'a> { } } /// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataEps { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -667,7 +667,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataEps { } impl CreatePaymentIntentBuilderPaymentMethodDataEps { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -970,7 +970,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodDataFpxBank { } } /// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataIdeal { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -978,7 +978,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataIdeal { } impl CreatePaymentIntentBuilderPaymentMethodDataIdeal { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -1071,7 +1071,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodDataIdealBank { } } /// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataKlarna { /// Customer's date of birth #[serde(skip_serializing_if = "Option::is_none")] @@ -1079,11 +1079,11 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataKlarna { } impl CreatePaymentIntentBuilderPaymentMethodDataKlarna { pub fn new() -> Self { - Self::default() + Self { dob: None } } } /// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataP24 { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -1091,7 +1091,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataP24 { } impl CreatePaymentIntentBuilderPaymentMethodDataP24 { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -1215,7 +1215,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodDataP24Bank { } /// Options to configure Radar. /// See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -1223,7 +1223,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } /// If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. @@ -1446,7 +1446,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodDataType { } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1467,7 +1467,13 @@ pub struct CreatePaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -1569,7 +1575,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodDataUsBankAccou } } /// Payment method-specific configuration for this PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptions<'a> { /// If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. #[serde(skip_serializing_if = "Option::is_none")] @@ -1677,11 +1683,46 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptions<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + affirm: None, + afterpay_clearpay: None, + alipay: None, + au_becs_debit: None, + bacs_debit: None, + bancontact: None, + blik: None, + boleto: None, + card: None, + card_present: None, + cashapp: None, + customer_balance: None, + eps: None, + fpx: None, + giropay: None, + grabpay: None, + ideal: None, + interac_present: None, + klarna: None, + konbini: None, + link: None, + oxxo: None, + p24: None, + paynow: None, + paypal: None, + pix: None, + promptpay: None, + revolut_pay: None, + sepa_debit: None, + sofort: None, + us_bank_account: None, + wechat_pay: None, + zip: None, + } } } /// If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -1705,11 +1746,11 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, setup_future_usage: None, verification_method: None } } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { /// A URL for custom mandate text to render during confirmation step. /// The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,. @@ -1733,7 +1774,12 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_mandate_url: None, + interval_description: None, + payment_schedule: None, + transaction_type: None, + } } } /// Payment schedule for the mandate. @@ -1959,7 +2005,7 @@ impl serde::Serialize } } /// If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -1985,7 +2031,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, preferred_locale: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -2086,7 +2132,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsAffirmSe } } /// If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -2115,7 +2161,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, reference: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -2232,7 +2278,7 @@ impl serde::Serialize } } /// If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAlipay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2248,7 +2294,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAlipay { } impl CreatePaymentIntentBuilderPaymentMethodOptionsAlipay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2305,7 +2351,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsAlipaySe } } /// If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2321,7 +2367,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { } impl CreatePaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2387,7 +2433,7 @@ impl serde::Serialize } } /// If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsBacsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -2403,7 +2449,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsBacsDebit { } impl CreatePaymentIntentBuilderPaymentMethodOptionsBacsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2463,7 +2509,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsBacsDebi } } /// If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. #[serde(skip_serializing_if = "Option::is_none")] @@ -2483,7 +2529,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsBancontact { } impl CreatePaymentIntentBuilderPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { preferred_language: None, setup_future_usage: None } } } /// Preferred language of the Bancontact authorization page that the customer is redirected to. @@ -2602,7 +2648,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsBanconta } } /// If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsBoleto { /// The number of calendar days before a Boleto voucher expires. /// For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. @@ -2622,7 +2668,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsBoleto { } impl CreatePaymentIntentBuilderPaymentMethodOptionsBoleto { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2682,7 +2728,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsBoletoSe } } /// Configuration for any card payments attempted on this PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCard<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -2765,7 +2811,22 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCard<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + cvc_token: None, + installments: None, + mandate_options: None, + moto: None, + network: None, + request_extended_authorization: None, + request_incremental_authorization: None, + request_multicapture: None, + request_overcapture: None, + request_three_d_secure: None, + setup_future_usage: None, + statement_descriptor_suffix_kana: None, + statement_descriptor_suffix_kanji: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -2818,7 +2879,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsCardCapt /// Installment configuration for payments attempted on this PaymentIntent (Mexico Only). /// /// For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCardInstallments { /// Setting to true enables installments for this PaymentIntent. /// This will cause the response to contain a list of available installment plans. @@ -2832,7 +2893,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCardInstallments { } impl CreatePaymentIntentBuilderPaymentMethodOptionsCardInstallments { pub fn new() -> Self { - Self::default() + Self { enabled: None, plan: None } } } /// The selected installment plan to use for this payment attempt. @@ -3556,7 +3617,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsCardSetu } } /// If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCashapp { /// Controls when the funds will be captured from the customer's account. /// @@ -3579,7 +3640,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCashapp { } impl CreatePaymentIntentBuilderPaymentMethodOptionsCashapp { pub fn new() -> Self { - Self::default() + Self { capture_method: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -3686,7 +3747,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsCashappS } } /// If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. #[serde(skip_serializing_if = "Option::is_none")] @@ -3711,7 +3772,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { pub fn new() -> Self { - Self::default() + Self { bank_transfer: None, funding_type: None, setup_future_usage: None } } } /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. @@ -3973,7 +4034,7 @@ impl serde::Serialize } } /// If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsEps { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -3989,7 +4050,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsEps { } impl CreatePaymentIntentBuilderPaymentMethodOptionsEps { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4043,7 +4104,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsEpsSetup } } /// If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsFpx { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4059,7 +4120,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsFpx { } impl CreatePaymentIntentBuilderPaymentMethodOptionsFpx { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4113,7 +4174,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsFpxSetup } } /// If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsGiropay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4129,7 +4190,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsGiropay { } impl CreatePaymentIntentBuilderPaymentMethodOptionsGiropay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4183,7 +4244,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsGiropayS } } /// If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsGrabpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4199,7 +4260,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsGrabpay { } impl CreatePaymentIntentBuilderPaymentMethodOptionsGrabpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4253,7 +4314,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsGrabpayS } } /// If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsIdeal { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4269,7 +4330,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsIdeal { } impl CreatePaymentIntentBuilderPaymentMethodOptionsIdeal { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4326,7 +4387,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsIdealSet } } /// If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsKlarna { /// Controls when the funds will be captured from the customer's account. /// @@ -4353,7 +4414,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsKlarna { } impl CreatePaymentIntentBuilderPaymentMethodOptionsKlarna { pub fn new() -> Self { - Self::default() + Self { capture_method: None, preferred_locale: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -4630,7 +4691,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsKlarnaSe } } /// If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { /// An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. /// Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. @@ -4663,7 +4724,13 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { pub fn new() -> Self { - Self::default() + Self { + confirmation_number: None, + expires_after_days: None, + expires_at: None, + product_description: None, + setup_future_usage: None, + } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4717,7 +4784,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsKonbiniS } } /// If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsLink<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -4743,7 +4810,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsLink<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsLink<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, persistent_token: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -4847,7 +4914,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsLinkSetu } } /// If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsOxxo { /// The number of calendar days before an OXXO voucher expires. /// For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -4867,7 +4934,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsOxxo { } impl CreatePaymentIntentBuilderPaymentMethodOptionsOxxo { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4921,7 +4988,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsOxxoSetu } } /// If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsP24 { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -4940,7 +5007,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsP24 { } impl CreatePaymentIntentBuilderPaymentMethodOptionsP24 { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None, tos_shown_and_accepted: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4994,7 +5061,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsP24Setup } } /// If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPaynow { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -5010,7 +5077,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPaynow { } impl CreatePaymentIntentBuilderPaymentMethodOptionsPaynow { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -5064,7 +5131,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsPaynowSe } } /// If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] @@ -5094,7 +5161,13 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + preferred_locale: None, + reference: None, + risk_correlation_id: None, + setup_future_usage: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -5301,7 +5374,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsPaypalSe } } /// If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPix { /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. /// Defaults to 86400 seconds. @@ -5325,7 +5398,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPix { } impl CreatePaymentIntentBuilderPaymentMethodOptionsPix { pub fn new() -> Self { - Self::default() + Self { expires_after_seconds: None, expires_at: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -5379,7 +5452,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsPixSetup } } /// If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPromptpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -5395,7 +5468,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsPromptpay { } impl CreatePaymentIntentBuilderPaymentMethodOptionsPromptpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -5449,7 +5522,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsPromptpa } } /// If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsRevolutPay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -5463,7 +5536,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsRevolutPay { } impl CreatePaymentIntentBuilderPaymentMethodOptionsRevolutPay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -5522,7 +5595,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsRevolutP } } /// If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -5541,7 +5614,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -5601,7 +5674,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsSepaDebi } } /// If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsSofort { /// Language shown to the payer on redirect. #[serde(skip_serializing_if = "Option::is_none")] @@ -5621,7 +5694,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsSofort { } impl CreatePaymentIntentBuilderPaymentMethodOptionsSofort { pub fn new() -> Self { - Self::default() + Self { preferred_language: None, setup_future_usage: None } } } /// Language shown to the payer on redirect. @@ -5739,7 +5812,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsSofortSe } } /// If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -5770,11 +5843,17 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + financial_connections: None, + networks: None, + preferred_settlement_speed: None, + setup_future_usage: None, + verification_method: None, + } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -5792,7 +5871,7 @@ pub return_url: Option<&'a str>, } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None, return_url: None } } } /// The list of permissions to request. @@ -5910,7 +5989,7 @@ impl serde::Serialize } } /// Additional fields for network related functions -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { /// Triggers validations to run across the selected networks #[serde(skip_serializing_if = "Option::is_none")] @@ -5919,7 +5998,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<' } impl<'a> CreatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { pub fn new() -> Self { - Self::default() + Self { requested: None } } } /// Triggers validations to run across the selected networks @@ -6276,7 +6355,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsWechatPa } } /// If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderPaymentMethodOptionsZip { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -6292,7 +6371,7 @@ pub struct CreatePaymentIntentBuilderPaymentMethodOptionsZip { } impl CreatePaymentIntentBuilderPaymentMethodOptionsZip { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -6347,7 +6426,7 @@ impl serde::Serialize for CreatePaymentIntentBuilderPaymentMethodOptionsZipSetup } /// Options to configure Radar. /// Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderRadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -6355,7 +6434,7 @@ pub struct CreatePaymentIntentBuilderRadarOptions<'a> { } impl<'a> CreatePaymentIntentBuilderRadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } /// Shipping information for this PaymentIntent. @@ -6382,7 +6461,7 @@ impl<'a> CreatePaymentIntentBuilderShipping<'a> { } } /// Shipping address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentIntentBuilderShippingAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -6405,7 +6484,7 @@ pub struct CreatePaymentIntentBuilderShippingAddress<'a> { } impl<'a> CreatePaymentIntentBuilderShippingAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// The parameters that you can use to automatically create a Transfer. @@ -6642,7 +6721,7 @@ impl StripeRequest for CreatePaymentIntent<'_> { RequestBuilder::new(StripeMethod::Post, "/payment_intents").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPaymentIntentBuilder<'a> { /// A filter on the list, based on the object `created` field. /// The value can be a string with an integer Unix timestamp or a dictionary with a number of different query options. @@ -6671,7 +6750,14 @@ pub struct ListPaymentIntentBuilder<'a> { } impl<'a> ListPaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + customer: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + } } } /// Returns a list of PaymentIntents. @@ -6736,7 +6822,7 @@ impl StripeRequest for ListPaymentIntent<'_> { RequestBuilder::new(StripeMethod::Get, "/payment_intents").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePaymentIntentBuilder<'a> { /// The client secret of the PaymentIntent. /// We require it if you use a publishable key to retrieve the source. @@ -6748,7 +6834,7 @@ pub struct RetrievePaymentIntentBuilder<'a> { } impl<'a> RetrievePaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { client_secret: None, expand: None } } } /// Retrieves the details of a PaymentIntent that has previously been created. @@ -6802,7 +6888,7 @@ impl StripeRequest for RetrievePaymentIntent<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilder<'a> { /// Amount intended to be collected by this PaymentIntent. /// A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). @@ -6897,7 +6983,28 @@ pub struct UpdatePaymentIntentBuilder<'a> { } impl<'a> UpdatePaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + application_fee_amount: None, + capture_method: None, + currency: None, + customer: None, + description: None, + expand: None, + metadata: None, + payment_method: None, + payment_method_configuration: None, + payment_method_data: None, + payment_method_options: None, + payment_method_types: None, + receipt_email: None, + setup_future_usage: None, + shipping: None, + statement_descriptor: None, + statement_descriptor_suffix: None, + transfer_data: None, + transfer_group: None, + } } } /// If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear @@ -7076,7 +7183,7 @@ impl<'a> UpdatePaymentIntentBuilderPaymentMethodDataAuBecsDebit<'a> { } } /// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { /// Account number of the bank account that the funds will be debited from. #[serde(skip_serializing_if = "Option::is_none")] @@ -7087,11 +7194,11 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { pub fn new() -> Self { - Self::default() + Self { account_number: None, sort_code: None } } } /// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { /// Billing address. #[serde(skip_serializing_if = "Option::is_none")] @@ -7108,11 +7215,11 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } /// Billing address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -7135,7 +7242,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> } impl<'a> UpdatePaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -7150,7 +7257,7 @@ impl<'a> UpdatePaymentIntentBuilderPaymentMethodDataBoleto<'a> { } } /// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataEps { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -7158,7 +7265,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataEps { } impl UpdatePaymentIntentBuilderPaymentMethodDataEps { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -7461,7 +7568,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodDataFpxBank { } } /// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataIdeal { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -7469,7 +7576,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataIdeal { } impl UpdatePaymentIntentBuilderPaymentMethodDataIdeal { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -7562,7 +7669,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodDataIdealBank { } } /// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataKlarna { /// Customer's date of birth #[serde(skip_serializing_if = "Option::is_none")] @@ -7570,11 +7677,11 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataKlarna { } impl UpdatePaymentIntentBuilderPaymentMethodDataKlarna { pub fn new() -> Self { - Self::default() + Self { dob: None } } } /// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataP24 { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -7582,7 +7689,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataP24 { } impl UpdatePaymentIntentBuilderPaymentMethodDataP24 { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -7706,7 +7813,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodDataP24Bank { } /// Options to configure Radar. /// See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -7714,7 +7821,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } /// If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. @@ -7937,7 +8044,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodDataType { } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -7958,7 +8065,13 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -8060,7 +8173,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodDataUsBankAccou } } /// Payment-method-specific configuration for this PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptions<'a> { /// If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. #[serde(skip_serializing_if = "Option::is_none")] @@ -8168,11 +8281,46 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptions<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + affirm: None, + afterpay_clearpay: None, + alipay: None, + au_becs_debit: None, + bacs_debit: None, + bancontact: None, + blik: None, + boleto: None, + card: None, + card_present: None, + cashapp: None, + customer_balance: None, + eps: None, + fpx: None, + giropay: None, + grabpay: None, + ideal: None, + interac_present: None, + klarna: None, + konbini: None, + link: None, + oxxo: None, + p24: None, + paynow: None, + paypal: None, + pix: None, + promptpay: None, + revolut_pay: None, + sepa_debit: None, + sofort: None, + us_bank_account: None, + wechat_pay: None, + zip: None, + } } } /// If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -8196,11 +8344,11 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, setup_future_usage: None, verification_method: None } } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { /// A URL for custom mandate text to render during confirmation step. /// The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,. @@ -8224,7 +8372,12 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_mandate_url: None, + interval_description: None, + payment_schedule: None, + transaction_type: None, + } } } /// Payment schedule for the mandate. @@ -8450,7 +8603,7 @@ impl serde::Serialize } } /// If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -8476,7 +8629,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, preferred_locale: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -8577,7 +8730,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsAffirmSe } } /// If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -8606,7 +8759,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, reference: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -8723,7 +8876,7 @@ impl serde::Serialize } } /// If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAlipay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -8739,7 +8892,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAlipay { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsAlipay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -8796,7 +8949,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsAlipaySe } } /// If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -8812,7 +8965,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -8878,7 +9031,7 @@ impl serde::Serialize } } /// If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsBacsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -8894,7 +9047,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsBacsDebit { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsBacsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -8954,7 +9107,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsBacsDebi } } /// If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. #[serde(skip_serializing_if = "Option::is_none")] @@ -8974,7 +9127,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsBancontact { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { preferred_language: None, setup_future_usage: None } } } /// Preferred language of the Bancontact authorization page that the customer is redirected to. @@ -9093,7 +9246,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsBanconta } } /// If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsBoleto { /// The number of calendar days before a Boleto voucher expires. /// For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. @@ -9113,7 +9266,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsBoleto { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsBoleto { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -9173,7 +9326,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsBoletoSe } } /// Configuration for any card payments attempted on this PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCard<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -9256,7 +9409,22 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCard<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + cvc_token: None, + installments: None, + mandate_options: None, + moto: None, + network: None, + request_extended_authorization: None, + request_incremental_authorization: None, + request_multicapture: None, + request_overcapture: None, + request_three_d_secure: None, + setup_future_usage: None, + statement_descriptor_suffix_kana: None, + statement_descriptor_suffix_kanji: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -9309,7 +9477,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsCardCapt /// Installment configuration for payments attempted on this PaymentIntent (Mexico Only). /// /// For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCardInstallments { /// Setting to true enables installments for this PaymentIntent. /// This will cause the response to contain a list of available installment plans. @@ -9323,7 +9491,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCardInstallments { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsCardInstallments { pub fn new() -> Self { - Self::default() + Self { enabled: None, plan: None } } } /// The selected installment plan to use for this payment attempt. @@ -10047,7 +10215,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsCardSetu } } /// If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCashapp { /// Controls when the funds will be captured from the customer's account. /// @@ -10070,7 +10238,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCashapp { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsCashapp { pub fn new() -> Self { - Self::default() + Self { capture_method: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -10177,7 +10345,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsCashappS } } /// If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. #[serde(skip_serializing_if = "Option::is_none")] @@ -10202,7 +10370,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { pub fn new() -> Self { - Self::default() + Self { bank_transfer: None, funding_type: None, setup_future_usage: None } } } /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. @@ -10464,7 +10632,7 @@ impl serde::Serialize } } /// If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsEps { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -10480,7 +10648,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsEps { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsEps { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -10534,7 +10702,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsEpsSetup } } /// If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsFpx { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -10550,7 +10718,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsFpx { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsFpx { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -10604,7 +10772,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsFpxSetup } } /// If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsGiropay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -10620,7 +10788,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsGiropay { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsGiropay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -10674,7 +10842,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsGiropayS } } /// If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsGrabpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -10690,7 +10858,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsGrabpay { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsGrabpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -10744,7 +10912,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsGrabpayS } } /// If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsIdeal { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -10760,7 +10928,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsIdeal { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsIdeal { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -10817,7 +10985,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsIdealSet } } /// If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsKlarna { /// Controls when the funds will be captured from the customer's account. /// @@ -10844,7 +11012,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsKlarna { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsKlarna { pub fn new() -> Self { - Self::default() + Self { capture_method: None, preferred_locale: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -11121,7 +11289,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsKlarnaSe } } /// If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { /// An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. /// Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. @@ -11154,7 +11322,13 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { pub fn new() -> Self { - Self::default() + Self { + confirmation_number: None, + expires_after_days: None, + expires_at: None, + product_description: None, + setup_future_usage: None, + } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -11208,7 +11382,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsKonbiniS } } /// If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsLink<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -11234,7 +11408,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsLink<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsLink<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, persistent_token: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -11338,7 +11512,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsLinkSetu } } /// If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsOxxo { /// The number of calendar days before an OXXO voucher expires. /// For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -11358,7 +11532,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsOxxo { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsOxxo { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -11412,7 +11586,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsOxxoSetu } } /// If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsP24 { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -11431,7 +11605,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsP24 { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsP24 { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None, tos_shown_and_accepted: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -11485,7 +11659,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsP24Setup } } /// If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPaynow { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -11501,7 +11675,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPaynow { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsPaynow { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -11555,7 +11729,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsPaynowSe } } /// If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] @@ -11585,7 +11759,13 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + preferred_locale: None, + reference: None, + risk_correlation_id: None, + setup_future_usage: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -11792,7 +11972,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsPaypalSe } } /// If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPix { /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. /// Defaults to 86400 seconds. @@ -11816,7 +11996,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPix { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsPix { pub fn new() -> Self { - Self::default() + Self { expires_after_seconds: None, expires_at: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -11870,7 +12050,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsPixSetup } } /// If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPromptpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -11886,7 +12066,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsPromptpay { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsPromptpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -11940,7 +12120,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsPromptpa } } /// If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsRevolutPay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -11954,7 +12134,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsRevolutPay { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsRevolutPay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -12013,7 +12193,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsRevolutP } } /// If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -12032,7 +12212,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -12092,7 +12272,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsSepaDebi } } /// If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsSofort { /// Language shown to the payer on redirect. #[serde(skip_serializing_if = "Option::is_none")] @@ -12112,7 +12292,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsSofort { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsSofort { pub fn new() -> Self { - Self::default() + Self { preferred_language: None, setup_future_usage: None } } } /// Language shown to the payer on redirect. @@ -12230,7 +12410,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsSofortSe } } /// If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -12261,11 +12441,17 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + financial_connections: None, + networks: None, + preferred_settlement_speed: None, + setup_future_usage: None, + verification_method: None, + } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -12283,7 +12469,7 @@ pub return_url: Option<&'a str>, } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None, return_url: None } } } /// The list of permissions to request. @@ -12401,7 +12587,7 @@ impl serde::Serialize } } /// Additional fields for network related functions -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { /// Triggers validations to run across the selected networks #[serde(skip_serializing_if = "Option::is_none")] @@ -12410,7 +12596,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<' } impl<'a> UpdatePaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { pub fn new() -> Self { - Self::default() + Self { requested: None } } } /// Triggers validations to run across the selected networks @@ -12767,7 +12953,7 @@ impl serde::Serialize for UpdatePaymentIntentBuilderPaymentMethodOptionsWechatPa } } /// If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsZip { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -12783,7 +12969,7 @@ pub struct UpdatePaymentIntentBuilderPaymentMethodOptionsZip { } impl UpdatePaymentIntentBuilderPaymentMethodOptionsZip { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -12860,7 +13046,7 @@ impl<'a> UpdatePaymentIntentBuilderShipping<'a> { } } /// Shipping address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentIntentBuilderShippingAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -12883,7 +13069,7 @@ pub struct UpdatePaymentIntentBuilderShippingAddress<'a> { } impl<'a> UpdatePaymentIntentBuilderShippingAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// Updates properties on a PaymentIntent object without confirming. @@ -13039,7 +13225,7 @@ impl StripeRequest for UpdatePaymentIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilder<'a> { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] @@ -13103,7 +13289,23 @@ pub struct ConfirmPaymentIntentBuilder<'a> { } impl<'a> ConfirmPaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + error_on_requires_action: None, + expand: None, + mandate: None, + mandate_data: None, + off_session: None, + payment_method: None, + payment_method_data: None, + payment_method_options: None, + radar_options: None, + receipt_email: None, + return_url: None, + setup_future_usage: None, + shipping: None, + use_stripe_sdk: None, + } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -13223,7 +13425,7 @@ impl<'a> ConfirmPaymentIntentBuilderClientKeyParamCustomerAcceptance<'a> { } } /// If this is a Mandate accepted online, this hash contains details about the online acceptance. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderClientKeyParamCustomerAcceptanceOnline<'a> { /// The IP address from which the Mandate was accepted by the customer. #[serde(skip_serializing_if = "Option::is_none")] @@ -13234,7 +13436,7 @@ pub struct ConfirmPaymentIntentBuilderClientKeyParamCustomerAcceptanceOnline<'a> } impl<'a> ConfirmPaymentIntentBuilderClientKeyParamCustomerAcceptanceOnline<'a> { pub fn new() -> Self { - Self::default() + Self { ip_address: None, user_agent: None } } } /// The type of customer acceptance information included with the Mandate. @@ -13465,7 +13667,7 @@ impl<'a> ConfirmPaymentIntentBuilderPaymentMethodDataAuBecsDebit<'a> { } } /// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { /// Account number of the bank account that the funds will be debited from. #[serde(skip_serializing_if = "Option::is_none")] @@ -13476,11 +13678,11 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodDataBacsDebit<'a> { pub fn new() -> Self { - Self::default() + Self { account_number: None, sort_code: None } } } /// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { /// Billing address. #[serde(skip_serializing_if = "Option::is_none")] @@ -13497,11 +13699,11 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodDataBillingDetails<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } /// Billing address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -13524,7 +13726,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodDataBillingDetailsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -13539,7 +13741,7 @@ impl<'a> ConfirmPaymentIntentBuilderPaymentMethodDataBoleto<'a> { } } /// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataEps { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -13547,7 +13749,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataEps { } impl ConfirmPaymentIntentBuilderPaymentMethodDataEps { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -13850,7 +14052,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodDataFpxBank { } } /// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataIdeal { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -13858,7 +14060,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataIdeal { } impl ConfirmPaymentIntentBuilderPaymentMethodDataIdeal { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -13951,7 +14153,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodDataIdealBank } } /// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataKlarna { /// Customer's date of birth #[serde(skip_serializing_if = "Option::is_none")] @@ -13959,11 +14161,11 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataKlarna { } impl ConfirmPaymentIntentBuilderPaymentMethodDataKlarna { pub fn new() -> Self { - Self::default() + Self { dob: None } } } /// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataP24 { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -13971,7 +14173,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataP24 { } impl ConfirmPaymentIntentBuilderPaymentMethodDataP24 { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -14095,7 +14297,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodDataP24Bank { } /// Options to configure Radar. /// See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -14103,7 +14305,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodDataRadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } /// If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. @@ -14326,7 +14528,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodDataType { } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -14347,7 +14549,13 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodDataUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -14451,7 +14659,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodDataUsBankAcco } } /// Payment method-specific configuration for this PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptions<'a> { /// If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. #[serde(skip_serializing_if = "Option::is_none")] @@ -14560,11 +14768,46 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptions<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + affirm: None, + afterpay_clearpay: None, + alipay: None, + au_becs_debit: None, + bacs_debit: None, + bancontact: None, + blik: None, + boleto: None, + card: None, + card_present: None, + cashapp: None, + customer_balance: None, + eps: None, + fpx: None, + giropay: None, + grabpay: None, + ideal: None, + interac_present: None, + klarna: None, + konbini: None, + link: None, + oxxo: None, + p24: None, + paynow: None, + paypal: None, + pix: None, + promptpay: None, + revolut_pay: None, + sepa_debit: None, + sofort: None, + us_bank_account: None, + wechat_pay: None, + zip: None, + } } } /// If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -14588,11 +14831,11 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsAcssDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, setup_future_usage: None, verification_method: None } } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { /// A URL for custom mandate text to render during confirmation step. /// The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,. @@ -14616,7 +14859,12 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOption } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_mandate_url: None, + interval_description: None, + payment_schedule: None, + transaction_type: None, + } } } /// Payment schedule for the mandate. @@ -14848,7 +15096,7 @@ impl serde::Serialize } } /// If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -14874,7 +15122,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsAffirm<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, preferred_locale: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -14975,7 +15223,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsAffirmS } } /// If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -15004,7 +15252,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsAfterpayClearpay<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, reference: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -15121,7 +15369,7 @@ impl serde::Serialize } } /// If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAlipay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -15137,7 +15385,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAlipay { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsAlipay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -15194,7 +15442,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsAlipayS } } /// If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -15210,7 +15458,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsAuBecsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -15278,7 +15526,7 @@ impl serde::Serialize } } /// If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsBacsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -15294,7 +15542,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsBacsDebit { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsBacsDebit { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -15358,7 +15606,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsBacsDeb } } /// If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. #[serde(skip_serializing_if = "Option::is_none")] @@ -15378,7 +15626,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsBancontact { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsBancontact { pub fn new() -> Self { - Self::default() + Self { preferred_language: None, setup_future_usage: None } } } /// Preferred language of the Bancontact authorization page that the customer is redirected to. @@ -15501,7 +15749,7 @@ impl serde::Serialize } } /// If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsBoleto { /// The number of calendar days before a Boleto voucher expires. /// For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. @@ -15521,7 +15769,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsBoleto { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsBoleto { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -15581,7 +15829,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsBoletoS } } /// Configuration for any card payments attempted on this PaymentIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCard<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -15664,7 +15912,22 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCard<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + cvc_token: None, + installments: None, + mandate_options: None, + moto: None, + network: None, + request_extended_authorization: None, + request_incremental_authorization: None, + request_multicapture: None, + request_overcapture: None, + request_three_d_secure: None, + setup_future_usage: None, + statement_descriptor_suffix_kana: None, + statement_descriptor_suffix_kanji: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -15717,7 +15980,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsCardCap /// Installment configuration for payments attempted on this PaymentIntent (Mexico Only). /// /// For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCardInstallments { /// Setting to true enables installments for this PaymentIntent. /// This will cause the response to contain a list of available installment plans. @@ -15731,7 +15994,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCardInstallments { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsCardInstallments { pub fn new() -> Self { - Self::default() + Self { enabled: None, plan: None } } } /// The selected installment plan to use for this payment attempt. @@ -16457,7 +16720,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsCardSet } } /// If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCashapp { /// Controls when the funds will be captured from the customer's account. /// @@ -16480,7 +16743,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCashapp { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsCashapp { pub fn new() -> Self { - Self::default() + Self { capture_method: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -16587,7 +16850,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsCashapp } } /// If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. #[serde(skip_serializing_if = "Option::is_none")] @@ -16612,7 +16875,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsCustomerBalance<'a> { pub fn new() -> Self { - Self::default() + Self { bank_transfer: None, funding_type: None, setup_future_usage: None } } } /// Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. @@ -16876,7 +17139,7 @@ impl serde::Serialize } } /// If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsEps { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -16892,7 +17155,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsEps { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsEps { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -16946,7 +17209,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsEpsSetu } } /// If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsFpx { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -16962,7 +17225,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsFpx { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsFpx { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17016,7 +17279,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsFpxSetu } } /// If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsGiropay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -17032,7 +17295,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsGiropay { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsGiropay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17086,7 +17349,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsGiropay } } /// If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsGrabpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -17102,7 +17365,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsGrabpay { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsGrabpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17156,7 +17419,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsGrabpay } } /// If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsIdeal { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -17172,7 +17435,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsIdeal { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsIdeal { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17229,7 +17492,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsIdealSe } } /// If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsKlarna { /// Controls when the funds will be captured from the customer's account. /// @@ -17256,7 +17519,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsKlarna { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsKlarna { pub fn new() -> Self { - Self::default() + Self { capture_method: None, preferred_locale: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -17533,7 +17796,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsKlarnaS } } /// If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { /// An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. /// Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. @@ -17566,7 +17829,13 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsKonbini<'a> { pub fn new() -> Self { - Self::default() + Self { + confirmation_number: None, + expires_after_days: None, + expires_at: None, + product_description: None, + setup_future_usage: None, + } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17620,7 +17889,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsKonbini } } /// If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsLink<'a> { /// Controls when the funds will be captured from the customer's account. /// @@ -17646,7 +17915,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsLink<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsLink<'a> { pub fn new() -> Self { - Self::default() + Self { capture_method: None, persistent_token: None, setup_future_usage: None } } } /// Controls when the funds will be captured from the customer's account. @@ -17750,7 +18019,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsLinkSet } } /// If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsOxxo { /// The number of calendar days before an OXXO voucher expires. /// For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -17770,7 +18039,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsOxxo { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsOxxo { pub fn new() -> Self { - Self::default() + Self { expires_after_days: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17824,7 +18093,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsOxxoSet } } /// If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsP24 { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -17843,7 +18112,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsP24 { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsP24 { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None, tos_shown_and_accepted: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17897,7 +18166,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsP24Setu } } /// If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPaynow { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -17913,7 +18182,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPaynow { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsPaynow { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -17967,7 +18236,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsPaynowS } } /// If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] @@ -17997,7 +18266,13 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsPaypal<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + preferred_locale: None, + reference: None, + risk_correlation_id: None, + setup_future_usage: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -18204,7 +18479,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsPaypalS } } /// If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPix { /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. /// Defaults to 86400 seconds. @@ -18228,7 +18503,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPix { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsPix { pub fn new() -> Self { - Self::default() + Self { expires_after_seconds: None, expires_at: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -18282,7 +18557,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsPixSetu } } /// If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPromptpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -18298,7 +18573,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsPromptpay { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsPromptpay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -18356,7 +18631,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsPromptp } } /// If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsRevolutPay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -18370,7 +18645,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsRevolutPay { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsRevolutPay { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -18431,7 +18706,7 @@ impl serde::Serialize } } /// If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -18450,7 +18725,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsSepaDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -18514,7 +18789,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsSepaDeb } } /// If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsSofort { /// Language shown to the payer on redirect. #[serde(skip_serializing_if = "Option::is_none")] @@ -18534,7 +18809,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsSofort { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsSofort { pub fn new() -> Self { - Self::default() + Self { preferred_language: None, setup_future_usage: None } } } /// Language shown to the payer on redirect. @@ -18652,7 +18927,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsSofortS } } /// If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -18685,11 +18960,17 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + financial_connections: None, + networks: None, + preferred_settlement_speed: None, + setup_future_usage: None, + verification_method: None, + } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -18707,7 +18988,7 @@ pub return_url: Option<&'a str>, } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None, return_url: None } } } /// The list of permissions to request. @@ -18825,7 +19106,7 @@ impl serde::Serialize } } /// Additional fields for network related functions -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { /// Triggers validations to run across the selected networks #[serde(skip_serializing_if = "Option::is_none")] @@ -18834,7 +19115,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks< } impl<'a> ConfirmPaymentIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { pub fn new() -> Self { - Self::default() + Self { requested: None } } } /// Triggers validations to run across the selected networks @@ -19195,7 +19476,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsWechatP } } /// If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsZip { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -19211,7 +19492,7 @@ pub struct ConfirmPaymentIntentBuilderPaymentMethodOptionsZip { } impl ConfirmPaymentIntentBuilderPaymentMethodOptionsZip { pub fn new() -> Self { - Self::default() + Self { setup_future_usage: None } } } /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -19266,7 +19547,7 @@ impl serde::Serialize for ConfirmPaymentIntentBuilderPaymentMethodOptionsZipSetu } /// Options to configure Radar. /// Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderRadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -19274,7 +19555,7 @@ pub struct ConfirmPaymentIntentBuilderRadarOptions<'a> { } impl<'a> ConfirmPaymentIntentBuilderRadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } /// Shipping information for this PaymentIntent. @@ -19301,7 +19582,7 @@ impl<'a> ConfirmPaymentIntentBuilderShipping<'a> { } } /// Shipping address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmPaymentIntentBuilderShippingAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -19324,7 +19605,7 @@ pub struct ConfirmPaymentIntentBuilderShippingAddress<'a> { } impl<'a> ConfirmPaymentIntentBuilderShippingAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// Confirm that your customer intends to pay with current or provided @@ -19478,7 +19759,7 @@ impl StripeRequest for ConfirmPaymentIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelPaymentIntentBuilder<'a> { /// Reason for canceling this PaymentIntent. /// Possible values are: `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`. @@ -19490,7 +19771,7 @@ pub struct CancelPaymentIntentBuilder<'a> { } impl<'a> CancelPaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { cancellation_reason: None, expand: None } } } /// Reason for canceling this PaymentIntent. @@ -19602,7 +19883,7 @@ impl StripeRequest for CancelPaymentIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CapturePaymentIntentBuilder<'a> { /// The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. /// Any additional amount is automatically refunded. @@ -19645,7 +19926,16 @@ pub struct CapturePaymentIntentBuilder<'a> { } impl<'a> CapturePaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount_to_capture: None, + application_fee_amount: None, + expand: None, + final_capture: None, + metadata: None, + statement_descriptor: None, + statement_descriptor_suffix: None, + transfer_data: None, + } } } /// Capture the funds of an existing uncaptured PaymentIntent when its status is `requires_capture`. @@ -19862,7 +20152,7 @@ impl StripeRequest for IncrementAuthorizationPaymentIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct VerifyMicrodepositsPaymentIntentBuilder<'a> { /// Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -19876,7 +20166,7 @@ pub struct VerifyMicrodepositsPaymentIntentBuilder<'a> { } impl<'a> VerifyMicrodepositsPaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { amounts: None, descriptor_code: None, expand: None } } } /// Verifies microdeposits on a PaymentIntent object. @@ -19932,7 +20222,7 @@ impl StripeRequest for VerifyMicrodepositsPaymentIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ApplyCustomerBalancePaymentIntentBuilder<'a> { /// Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. /// @@ -19953,7 +20243,7 @@ pub struct ApplyCustomerBalancePaymentIntentBuilder<'a> { } impl<'a> ApplyCustomerBalancePaymentIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { amount: None, currency: None, expand: None } } } /// Manually reconcile the remaining amount for a `customer_balance` PaymentIntent. @@ -20054,7 +20344,7 @@ impl DateOfBirth { Self { day, month, year } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PaymentIntentPaymentMethodOptionsParam<'a> { /// The 6-digit BLIK code that a customer has generated using their banking application. /// Can only be set on confirmation. @@ -20063,10 +20353,10 @@ pub struct PaymentIntentPaymentMethodOptionsParam<'a> { } impl<'a> PaymentIntentPaymentMethodOptionsParam<'a> { pub fn new() -> Self { - Self::default() + Self { code: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PaymentMethodOptionsParam { /// Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity). #[serde(skip_serializing_if = "Option::is_none")] @@ -20078,7 +20368,10 @@ pub struct PaymentMethodOptionsParam { } impl PaymentMethodOptionsParam { pub fn new() -> Self { - Self::default() + Self { + request_extended_authorization: None, + request_incremental_authorization_support: None, + } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -20092,7 +20385,7 @@ impl<'a> EuBankTransferParams<'a> { Self { country } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct TransferDataUpdateParams { /// The amount that will be transferred automatically when a charge succeeds. #[serde(skip_serializing_if = "Option::is_none")] @@ -20100,6 +20393,6 @@ pub struct TransferDataUpdateParams { } impl TransferDataUpdateParams { pub fn new() -> Self { - Self::default() + Self { amount: None } } } diff --git a/generated/stripe_core/src/payment_source/requests.rs b/generated/stripe_core/src/payment_source/requests.rs index 05bfbecf4..abc56db72 100644 --- a/generated/stripe_core/src/payment_source/requests.rs +++ b/generated/stripe_core/src/payment_source/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCustomerPaymentSourceBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -27,7 +27,7 @@ pub struct ListCustomerPaymentSourceBuilder<'a> { } impl<'a> ListCustomerPaymentSourceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, object: None, starting_after: None } } } /// List sources for a specified customer. @@ -90,7 +90,7 @@ impl StripeRequest for ListCustomerPaymentSource<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePaymentSourceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -98,7 +98,7 @@ pub struct RetrievePaymentSourceBuilder<'a> { } impl<'a> RetrievePaymentSourceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieve a specified source for a given customer. diff --git a/generated/stripe_core/src/payout/requests.rs b/generated/stripe_core/src/payout/requests.rs index 18a1eb637..9fe595738 100644 --- a/generated/stripe_core/src/payout/requests.rs +++ b/generated/stripe_core/src/payout/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePayoutBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrievePayoutBuilder<'a> { } impl<'a> RetrievePayoutBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing payout. @@ -54,7 +54,7 @@ impl StripeRequest for RetrievePayout<'_> { RequestBuilder::new(StripeMethod::Get, format!("/payouts/{payout}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPayoutBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub arrival_date: Option, @@ -86,7 +86,16 @@ pub struct ListPayoutBuilder<'a> { } impl<'a> ListPayoutBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + arrival_date: None, + created: None, + destination: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + status: None, + } } } /// Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. @@ -392,7 +401,7 @@ impl StripeRequest for CreatePayout<'_> { RequestBuilder::new(StripeMethod::Post, "/payouts").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePayoutBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -406,7 +415,7 @@ pub struct UpdatePayoutBuilder<'a> { } impl<'a> UpdatePayoutBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Updates the specified payout by setting the values of the parameters you pass. @@ -455,7 +464,7 @@ impl StripeRequest for UpdatePayout<'_> { RequestBuilder::new(StripeMethod::Post, format!("/payouts/{payout}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelPayoutBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -463,7 +472,7 @@ pub struct CancelPayoutBuilder<'a> { } impl<'a> CancelPayoutBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// You can cancel a previously created payout if it hasn’t been paid out yet. @@ -508,7 +517,7 @@ impl StripeRequest for CancelPayout<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReversePayoutBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -522,7 +531,7 @@ pub struct ReversePayoutBuilder<'a> { } impl<'a> ReversePayoutBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Reverses a payout by debiting the destination bank account. diff --git a/generated/stripe_core/src/refund/requests.rs b/generated/stripe_core/src/refund/requests.rs index f59f7ec03..88a8cb1fa 100644 --- a/generated/stripe_core/src/refund/requests.rs +++ b/generated/stripe_core/src/refund/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListRefundBuilder<'a> { /// Only return refunds for the charge specified by this charge ID. #[serde(skip_serializing_if = "Option::is_none")] @@ -32,7 +32,15 @@ pub struct ListRefundBuilder<'a> { } impl<'a> ListRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + charge: None, + created: None, + ending_before: None, + expand: None, + limit: None, + payment_intent: None, + starting_after: None, + } } } /// Returns a list of all refunds you created. @@ -103,7 +111,7 @@ impl StripeRequest for ListRefund<'_> { RequestBuilder::new(StripeMethod::Get, "/refunds").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateRefundBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub amount: Option, @@ -155,7 +163,20 @@ pub struct CreateRefundBuilder<'a> { } impl<'a> CreateRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + charge: None, + currency: None, + customer: None, + expand: None, + instructions_email: None, + metadata: None, + origin: None, + payment_intent: None, + reason: None, + refund_application_fee: None, + reverse_transfer: None, + } } } /// Origin of the refund @@ -354,7 +375,7 @@ impl StripeRequest for CreateRefund<'_> { RequestBuilder::new(StripeMethod::Post, "/refunds").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveRefundBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -362,7 +383,7 @@ pub struct RetrieveRefundBuilder<'a> { } impl<'a> RetrieveRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing refund. @@ -404,7 +425,7 @@ impl StripeRequest for RetrieveRefund<'_> { RequestBuilder::new(StripeMethod::Get, format!("/refunds/{refund}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateRefundBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -418,7 +439,7 @@ pub struct UpdateRefundBuilder<'a> { } impl<'a> UpdateRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Updates the refund that you specify by setting the values of the passed parameters. @@ -468,7 +489,7 @@ impl StripeRequest for UpdateRefund<'_> { RequestBuilder::new(StripeMethod::Post, format!("/refunds/{refund}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelRefundBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -476,7 +497,7 @@ pub struct CancelRefundBuilder<'a> { } impl<'a> CancelRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Cancels a refund with a status of `requires_action`. @@ -522,7 +543,7 @@ impl StripeRequest for CancelRefund<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ExpireRefundBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -530,7 +551,7 @@ pub struct ExpireRefundBuilder<'a> { } impl<'a> ExpireRefundBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Expire a refund with a status of `requires_action`. diff --git a/generated/stripe_core/src/setup_intent/requests.rs b/generated/stripe_core/src/setup_intent/requests.rs index d2e2aa256..3ba066004 100644 --- a/generated/stripe_core/src/setup_intent/requests.rs +++ b/generated/stripe_core/src/setup_intent/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilder<'a> { /// If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. /// @@ -85,7 +85,27 @@ pub struct CreateSetupIntentBuilder<'a> { } impl<'a> CreateSetupIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + attach_to_self: None, + automatic_payment_methods: None, + confirm: None, + customer: None, + description: None, + expand: None, + flow_directions: None, + mandate_data: None, + metadata: None, + on_behalf_of: None, + payment_method: None, + payment_method_configuration: None, + payment_method_data: None, + payment_method_options: None, + payment_method_types: None, + return_url: None, + single_use: None, + usage: None, + use_stripe_sdk: None, + } } } /// When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters. @@ -412,7 +432,7 @@ impl<'a> CreateSetupIntentBuilderPaymentMethodDataAuBecsDebit<'a> { } } /// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { /// Account number of the bank account that the funds will be debited from. #[serde(skip_serializing_if = "Option::is_none")] @@ -423,7 +443,7 @@ pub struct CreateSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { } impl<'a> CreateSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { pub fn new() -> Self { - Self::default() + Self { account_number: None, sort_code: None } } } /// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -438,7 +458,7 @@ impl<'a> CreateSetupIntentBuilderPaymentMethodDataBoleto<'a> { } } /// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodDataEps { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -446,7 +466,7 @@ pub struct CreateSetupIntentBuilderPaymentMethodDataEps { } impl CreateSetupIntentBuilderPaymentMethodDataEps { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -748,7 +768,7 @@ impl serde::Serialize for CreateSetupIntentBuilderPaymentMethodDataFpxBank { } } /// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodDataIdeal { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -756,7 +776,7 @@ pub struct CreateSetupIntentBuilderPaymentMethodDataIdeal { } impl CreateSetupIntentBuilderPaymentMethodDataIdeal { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -849,7 +869,7 @@ impl serde::Serialize for CreateSetupIntentBuilderPaymentMethodDataIdealBank { } } /// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodDataKlarna { /// Customer's date of birth #[serde(skip_serializing_if = "Option::is_none")] @@ -857,11 +877,11 @@ pub struct CreateSetupIntentBuilderPaymentMethodDataKlarna { } impl CreateSetupIntentBuilderPaymentMethodDataKlarna { pub fn new() -> Self { - Self::default() + Self { dob: None } } } /// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodDataP24 { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -869,7 +889,7 @@ pub struct CreateSetupIntentBuilderPaymentMethodDataP24 { } impl CreateSetupIntentBuilderPaymentMethodDataP24 { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -1211,7 +1231,7 @@ impl serde::Serialize for CreateSetupIntentBuilderPaymentMethodDataType { } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1232,7 +1252,13 @@ pub struct CreateSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { } impl<'a> CreateSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -1328,7 +1354,7 @@ impl serde::Serialize for CreateSetupIntentBuilderPaymentMethodDataUsBankAccount } } /// Payment method-specific configuration for this SetupIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptions<'a> { /// If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options. #[serde(skip_serializing_if = "Option::is_none")] @@ -1351,11 +1377,18 @@ pub struct CreateSetupIntentBuilderPaymentMethodOptions<'a> { } impl<'a> CreateSetupIntentBuilderPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + card: None, + link: None, + paypal: None, + sepa_debit: None, + us_bank_account: None, + } } } /// If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. /// Must be a [supported currency](https://stripe.com/docs/currencies). @@ -1372,7 +1405,7 @@ pub struct CreateSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { } impl<'a> CreateSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { pub fn new() -> Self { - Self::default() + Self { currency: None, mandate_options: None, verification_method: None } } } /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -1423,7 +1456,7 @@ impl serde::Serialize for CreateSetupIntentBuilderPaymentMethodOptionsAcssDebitC } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { /// A URL for custom mandate text to render during confirmation step. /// The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,. @@ -1449,7 +1482,13 @@ pub struct CreateSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<' } impl<'a> CreateSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_mandate_url: None, + default_for: None, + interval_description: None, + payment_schedule: None, + transaction_type: None, + } } } /// List of Stripe products where this mandate can be selected automatically. @@ -1667,7 +1706,7 @@ impl serde::Serialize for CreateSetupIntentBuilderPaymentMethodOptionsAcssDebitV } } /// Configuration for any card setup attempted on this SetupIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptionsCard<'a> { /// Configuration options for setting up an eMandate for cards issued in India. #[serde(skip_serializing_if = "Option::is_none")] @@ -1693,7 +1732,7 @@ pub struct CreateSetupIntentBuilderPaymentMethodOptionsCard<'a> { } impl<'a> CreateSetupIntentBuilderPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, moto: None, network: None, request_three_d_secure: None } } } /// Configuration options for setting up an eMandate for cards issued in India. @@ -2041,7 +2080,7 @@ impl serde::Serialize for CreateSetupIntentBuilderPaymentMethodOptionsCardReques } } /// If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -2049,11 +2088,11 @@ pub struct CreateSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { } impl<'a> CreateSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None } } } /// If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -2069,11 +2108,11 @@ pub struct CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { } impl<'a> CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, networks: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -2091,7 +2130,7 @@ pub return_url: Option<&'a str>, } impl<'a> CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None, return_url: None } } } /// The list of permissions to request. @@ -2208,7 +2247,7 @@ impl serde::Serialize } } /// Additional fields for network related functions -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { /// Triggers validations to run across the selected networks #[serde(skip_serializing_if = "Option::is_none")] @@ -2217,7 +2256,7 @@ pub struct CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> } impl<'a> CreateSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { pub fn new() -> Self { - Self::default() + Self { requested: None } } } /// Triggers validations to run across the selected networks @@ -2537,7 +2576,7 @@ impl StripeRequest for CreateSetupIntent<'_> { RequestBuilder::new(StripeMethod::Post, "/setup_intents").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListSetupIntentBuilder<'a> { /// If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. /// @@ -2575,7 +2614,16 @@ pub struct ListSetupIntentBuilder<'a> { } impl<'a> ListSetupIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + attach_to_self: None, + created: None, + customer: None, + ending_before: None, + expand: None, + limit: None, + payment_method: None, + starting_after: None, + } } } /// Returns a list of SetupIntents. @@ -2650,7 +2698,7 @@ impl StripeRequest for ListSetupIntent<'_> { RequestBuilder::new(StripeMethod::Get, "/setup_intents").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveSetupIntentBuilder<'a> { /// The client secret of the SetupIntent. /// We require this string if you use a publishable key to retrieve the SetupIntent. @@ -2662,7 +2710,7 @@ pub struct RetrieveSetupIntentBuilder<'a> { } impl<'a> RetrieveSetupIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { client_secret: None, expand: None } } } /// Retrieves the details of a SetupIntent that has previously been created. @@ -2716,7 +2764,7 @@ impl StripeRequest for RetrieveSetupIntent<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilder<'a> { /// If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. /// @@ -2769,7 +2817,19 @@ pub struct UpdateSetupIntentBuilder<'a> { } impl<'a> UpdateSetupIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + attach_to_self: None, + customer: None, + description: None, + expand: None, + flow_directions: None, + metadata: None, + payment_method: None, + payment_method_configuration: None, + payment_method_data: None, + payment_method_options: None, + payment_method_types: None, + } } } /// When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method). @@ -2947,7 +3007,7 @@ impl<'a> UpdateSetupIntentBuilderPaymentMethodDataAuBecsDebit<'a> { } } /// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { /// Account number of the bank account that the funds will be debited from. #[serde(skip_serializing_if = "Option::is_none")] @@ -2958,7 +3018,7 @@ pub struct UpdateSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { } impl<'a> UpdateSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { pub fn new() -> Self { - Self::default() + Self { account_number: None, sort_code: None } } } /// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -2973,7 +3033,7 @@ impl<'a> UpdateSetupIntentBuilderPaymentMethodDataBoleto<'a> { } } /// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodDataEps { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -2981,7 +3041,7 @@ pub struct UpdateSetupIntentBuilderPaymentMethodDataEps { } impl UpdateSetupIntentBuilderPaymentMethodDataEps { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -3283,7 +3343,7 @@ impl serde::Serialize for UpdateSetupIntentBuilderPaymentMethodDataFpxBank { } } /// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodDataIdeal { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -3291,7 +3351,7 @@ pub struct UpdateSetupIntentBuilderPaymentMethodDataIdeal { } impl UpdateSetupIntentBuilderPaymentMethodDataIdeal { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -3384,7 +3444,7 @@ impl serde::Serialize for UpdateSetupIntentBuilderPaymentMethodDataIdealBank { } } /// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodDataKlarna { /// Customer's date of birth #[serde(skip_serializing_if = "Option::is_none")] @@ -3392,11 +3452,11 @@ pub struct UpdateSetupIntentBuilderPaymentMethodDataKlarna { } impl UpdateSetupIntentBuilderPaymentMethodDataKlarna { pub fn new() -> Self { - Self::default() + Self { dob: None } } } /// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodDataP24 { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -3404,7 +3464,7 @@ pub struct UpdateSetupIntentBuilderPaymentMethodDataP24 { } impl UpdateSetupIntentBuilderPaymentMethodDataP24 { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -3746,7 +3806,7 @@ impl serde::Serialize for UpdateSetupIntentBuilderPaymentMethodDataType { } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -3767,7 +3827,13 @@ pub struct UpdateSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { } impl<'a> UpdateSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -3863,7 +3929,7 @@ impl serde::Serialize for UpdateSetupIntentBuilderPaymentMethodDataUsBankAccount } } /// Payment method-specific configuration for this SetupIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptions<'a> { /// If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options. #[serde(skip_serializing_if = "Option::is_none")] @@ -3886,11 +3952,18 @@ pub struct UpdateSetupIntentBuilderPaymentMethodOptions<'a> { } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + card: None, + link: None, + paypal: None, + sepa_debit: None, + us_bank_account: None, + } } } /// If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. /// Must be a [supported currency](https://stripe.com/docs/currencies). @@ -3907,7 +3980,7 @@ pub struct UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { pub fn new() -> Self { - Self::default() + Self { currency: None, mandate_options: None, verification_method: None } } } /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -3958,7 +4031,7 @@ impl serde::Serialize for UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebitC } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { /// A URL for custom mandate text to render during confirmation step. /// The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,. @@ -3984,7 +4057,13 @@ pub struct UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<' } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_mandate_url: None, + default_for: None, + interval_description: None, + payment_schedule: None, + transaction_type: None, + } } } /// List of Stripe products where this mandate can be selected automatically. @@ -4202,7 +4281,7 @@ impl serde::Serialize for UpdateSetupIntentBuilderPaymentMethodOptionsAcssDebitV } } /// Configuration for any card setup attempted on this SetupIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptionsCard<'a> { /// Configuration options for setting up an eMandate for cards issued in India. #[serde(skip_serializing_if = "Option::is_none")] @@ -4228,7 +4307,7 @@ pub struct UpdateSetupIntentBuilderPaymentMethodOptionsCard<'a> { } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, moto: None, network: None, request_three_d_secure: None } } } /// Configuration options for setting up an eMandate for cards issued in India. @@ -4576,7 +4655,7 @@ impl serde::Serialize for UpdateSetupIntentBuilderPaymentMethodOptionsCardReques } } /// If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -4584,11 +4663,11 @@ pub struct UpdateSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None } } } /// If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -4604,11 +4683,11 @@ pub struct UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, networks: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -4626,7 +4705,7 @@ pub return_url: Option<&'a str>, } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None, return_url: None } } } /// The list of permissions to request. @@ -4743,7 +4822,7 @@ impl serde::Serialize } } /// Additional fields for network related functions -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { /// Triggers validations to run across the selected networks #[serde(skip_serializing_if = "Option::is_none")] @@ -4752,7 +4831,7 @@ pub struct UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> } impl<'a> UpdateSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { pub fn new() -> Self { - Self::default() + Self { requested: None } } } /// Triggers validations to run across the selected networks @@ -4965,7 +5044,7 @@ impl StripeRequest for UpdateSetupIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -4993,7 +5072,15 @@ pub struct ConfirmSetupIntentBuilder<'a> { } impl<'a> ConfirmSetupIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + expand: None, + mandate_data: None, + payment_method: None, + payment_method_data: None, + payment_method_options: None, + return_url: None, + use_stripe_sdk: None, + } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -5113,7 +5200,7 @@ impl<'a> ConfirmSetupIntentBuilderClientKeyParamCustomerAcceptance<'a> { } } /// If this is a Mandate accepted online, this hash contains details about the online acceptance. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderClientKeyParamCustomerAcceptanceOnline<'a> { /// The IP address from which the Mandate was accepted by the customer. #[serde(skip_serializing_if = "Option::is_none")] @@ -5124,7 +5211,7 @@ pub struct ConfirmSetupIntentBuilderClientKeyParamCustomerAcceptanceOnline<'a> { } impl<'a> ConfirmSetupIntentBuilderClientKeyParamCustomerAcceptanceOnline<'a> { pub fn new() -> Self { - Self::default() + Self { ip_address: None, user_agent: None } } } /// The type of customer acceptance information included with the Mandate. @@ -5345,7 +5432,7 @@ impl<'a> ConfirmSetupIntentBuilderPaymentMethodDataAuBecsDebit<'a> { } } /// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { /// Account number of the bank account that the funds will be debited from. #[serde(skip_serializing_if = "Option::is_none")] @@ -5356,7 +5443,7 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { } impl<'a> ConfirmSetupIntentBuilderPaymentMethodDataBacsDebit<'a> { pub fn new() -> Self { - Self::default() + Self { account_number: None, sort_code: None } } } /// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -5371,7 +5458,7 @@ impl<'a> ConfirmSetupIntentBuilderPaymentMethodDataBoleto<'a> { } } /// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodDataEps { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -5379,7 +5466,7 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodDataEps { } impl ConfirmSetupIntentBuilderPaymentMethodDataEps { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -5681,7 +5768,7 @@ impl serde::Serialize for ConfirmSetupIntentBuilderPaymentMethodDataFpxBank { } } /// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodDataIdeal { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -5689,7 +5776,7 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodDataIdeal { } impl ConfirmSetupIntentBuilderPaymentMethodDataIdeal { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -5782,7 +5869,7 @@ impl serde::Serialize for ConfirmSetupIntentBuilderPaymentMethodDataIdealBank { } } /// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodDataKlarna { /// Customer's date of birth #[serde(skip_serializing_if = "Option::is_none")] @@ -5790,11 +5877,11 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodDataKlarna { } impl ConfirmSetupIntentBuilderPaymentMethodDataKlarna { pub fn new() -> Self { - Self::default() + Self { dob: None } } } /// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodDataP24 { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -5802,7 +5889,7 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodDataP24 { } impl ConfirmSetupIntentBuilderPaymentMethodDataP24 { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -6144,7 +6231,7 @@ impl serde::Serialize for ConfirmSetupIntentBuilderPaymentMethodDataType { } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -6165,7 +6252,13 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { } impl<'a> ConfirmSetupIntentBuilderPaymentMethodDataUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -6265,7 +6358,7 @@ impl serde::Serialize for ConfirmSetupIntentBuilderPaymentMethodDataUsBankAccoun } } /// Payment method-specific configuration for this SetupIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptions<'a> { /// If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options. #[serde(skip_serializing_if = "Option::is_none")] @@ -6288,11 +6381,18 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodOptions<'a> { } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + card: None, + link: None, + paypal: None, + sepa_debit: None, + us_bank_account: None, + } } } /// If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. /// Must be a [supported currency](https://stripe.com/docs/currencies). @@ -6309,7 +6409,7 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebit<'a> { pub fn new() -> Self { - Self::default() + Self { currency: None, mandate_options: None, verification_method: None } } } /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -6360,7 +6460,7 @@ impl serde::Serialize for ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebit } } /// Additional fields for Mandate creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { /// A URL for custom mandate text to render during confirmation step. /// The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,. @@ -6387,7 +6487,13 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions< } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebitMandateOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + custom_mandate_url: None, + default_for: None, + interval_description: None, + payment_schedule: None, + transaction_type: None, + } } } /// List of Stripe products where this mandate can be selected automatically. @@ -6609,7 +6715,7 @@ impl serde::Serialize for ConfirmSetupIntentBuilderPaymentMethodOptionsAcssDebit } } /// Configuration for any card setup attempted on this SetupIntent. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsCard<'a> { /// Configuration options for setting up an eMandate for cards issued in India. #[serde(skip_serializing_if = "Option::is_none")] @@ -6636,7 +6742,7 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsCard<'a> { } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptionsCard<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None, moto: None, network: None, request_three_d_secure: None } } } /// Configuration options for setting up an eMandate for cards issued in India. @@ -6986,7 +7092,7 @@ impl serde::Serialize for ConfirmSetupIntentBuilderPaymentMethodOptionsCardReque } } /// If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { /// Additional fields for Mandate creation #[serde(skip_serializing_if = "Option::is_none")] @@ -6994,11 +7100,11 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptionsSepaDebit<'a> { pub fn new() -> Self { - Self::default() + Self { mandate_options: None } } } /// If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { /// Additional fields for Financial Connections Session creation #[serde(skip_serializing_if = "Option::is_none")] @@ -7014,11 +7120,11 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { financial_connections: None, networks: None, verification_method: None } } } /// Additional fields for Financial Connections Session creation -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { /// The list of permissions to request. /// If this parameter is passed, the `payment_method` permission must be included. @@ -7036,7 +7142,7 @@ pub return_url: Option<&'a str>, } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccountFinancialConnections<'a> { pub fn new() -> Self { - Self::default() + Self { permissions: None, prefetch: None, return_url: None } } } /// The list of permissions to request. @@ -7153,7 +7259,7 @@ impl serde::Serialize } } /// Additional fields for network related functions -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { /// Triggers validations to run across the selected networks #[serde(skip_serializing_if = "Option::is_none")] @@ -7162,7 +7268,7 @@ pub struct ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a } impl<'a> ConfirmSetupIntentBuilderPaymentMethodOptionsUsBankAccountNetworks<'a> { pub fn new() -> Self { - Self::default() + Self { requested: None } } } /// Triggers validations to run across the selected networks @@ -7365,7 +7471,7 @@ impl StripeRequest for ConfirmSetupIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelSetupIntentBuilder<'a> { /// Reason for canceling this SetupIntent. /// Possible values are: `abandoned`, `requested_by_customer`, or `duplicate`. @@ -7377,7 +7483,7 @@ pub struct CancelSetupIntentBuilder<'a> { } impl<'a> CancelSetupIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { cancellation_reason: None, expand: None } } } /// You can cancel a SetupIntent object when it’s in one of these statuses: `requires_payment_method`, `requires_confirmation`, or `requires_action`. @@ -7431,7 +7537,7 @@ impl StripeRequest for CancelSetupIntent<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct VerifyMicrodepositsSetupIntentBuilder<'a> { /// Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -7445,7 +7551,7 @@ pub struct VerifyMicrodepositsSetupIntentBuilder<'a> { } impl<'a> VerifyMicrodepositsSetupIntentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { amounts: None, descriptor_code: None, expand: None } } } /// Verifies microdeposits on a SetupIntent object. @@ -7532,7 +7638,7 @@ impl<'a> PaymentMethodParam<'a> { Self { account_number, institution_number, transit_number } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BillingDetailsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -7555,7 +7661,7 @@ pub struct BillingDetailsAddress<'a> { } impl<'a> BillingDetailsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -7572,7 +7678,7 @@ impl DateOfBirth { Self { day, month, year } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -7580,10 +7686,10 @@ pub struct RadarOptions<'a> { } impl<'a> RadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SetupIntentPaymentMethodOptionsParam<'a> { /// \[Deprecated\] This is a legacy parameter that no longer has any function. #[serde(skip_serializing_if = "Option::is_none")] @@ -7591,10 +7697,10 @@ pub struct SetupIntentPaymentMethodOptionsParam<'a> { } impl<'a> SetupIntentPaymentMethodOptionsParam<'a> { pub fn new() -> Self { - Self::default() + Self { persistent_token: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PaymentMethodOptionsParam<'a> { /// The PayPal Billing Agreement ID (BAID). /// This is an ID generated by PayPal which represents the mandate between the merchant and the customer. @@ -7603,10 +7709,10 @@ pub struct PaymentMethodOptionsParam<'a> { } impl<'a> PaymentMethodOptionsParam<'a> { pub fn new() -> Self { - Self::default() + Self { billing_agreement_id: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BillingDetailsInnerParams<'a> { /// Billing address. #[serde(skip_serializing_if = "Option::is_none")] @@ -7623,6 +7729,6 @@ pub struct BillingDetailsInnerParams<'a> { } impl<'a> BillingDetailsInnerParams<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } diff --git a/generated/stripe_core/src/token/requests.rs b/generated/stripe_core/src/token/requests.rs index 943d035d3..dbb48a7be 100644 --- a/generated/stripe_core/src/token/requests.rs +++ b/generated/stripe_core/src/token/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTokenBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveTokenBuilder<'a> { } impl<'a> RetrieveTokenBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the token with the given ID. @@ -52,7 +52,7 @@ impl StripeRequest for RetrieveToken<'_> { RequestBuilder::new(StripeMethod::Get, format!("/tokens/{token}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilder<'a> { /// Information for the account this token represents. #[serde(skip_serializing_if = "Option::is_none")] @@ -85,11 +85,20 @@ pub struct CreateTokenBuilder<'a> { } impl<'a> CreateTokenBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account: None, + bank_account: None, + card: None, + customer: None, + cvc_update: None, + expand: None, + person: None, + pii: None, + } } } /// Information for the account this token represents. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccount<'a> { /// The business type. #[serde(skip_serializing_if = "Option::is_none")] @@ -107,7 +116,7 @@ pub struct CreateTokenBuilderAccount<'a> { } impl<'a> CreateTokenBuilderAccount<'a> { pub fn new() -> Self { - Self::default() + Self { business_type: None, company: None, individual: None, tos_shown_and_accepted: None } } } /// The business type. @@ -163,7 +172,7 @@ impl serde::Serialize for CreateTokenBuilderAccountBusinessType { } } /// Information about the company or business. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountCompany<'a> { /// The company's primary address. #[serde(skip_serializing_if = "Option::is_none")] @@ -235,11 +244,32 @@ pub struct CreateTokenBuilderAccountCompany<'a> { } impl<'a> CreateTokenBuilderAccountCompany<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + address_kana: None, + address_kanji: None, + directors_provided: None, + executives_provided: None, + export_license_id: None, + export_purpose_code: None, + name: None, + name_kana: None, + name_kanji: None, + owners_provided: None, + ownership_declaration: None, + ownership_declaration_shown_and_signed: None, + phone: None, + registration_number: None, + structure: None, + tax_id: None, + tax_id_registrar: None, + vat_id: None, + verification: None, + } } } /// The Kana variation of the company's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountCompanyAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -265,11 +295,19 @@ pub struct CreateTokenBuilderAccountCompanyAddressKana<'a> { } impl<'a> CreateTokenBuilderAccountCompanyAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the company's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountCompanyAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -295,11 +333,19 @@ pub struct CreateTokenBuilderAccountCompanyAddressKanji<'a> { } impl<'a> CreateTokenBuilderAccountCompanyAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountCompanyOwnershipDeclaration<'a> { /// The Unix timestamp marking when the beneficial owner attestation was made. #[serde(skip_serializing_if = "Option::is_none")] @@ -313,7 +359,7 @@ pub struct CreateTokenBuilderAccountCompanyOwnershipDeclaration<'a> { } impl<'a> CreateTokenBuilderAccountCompanyOwnershipDeclaration<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, user_agent: None } } } /// The category identifying the legal structure of the company or legal entity. @@ -428,7 +474,7 @@ impl serde::Serialize for CreateTokenBuilderAccountCompanyStructure { } } /// Information on the verification state of the company. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountCompanyVerification<'a> { /// A document verifying the business. #[serde(skip_serializing_if = "Option::is_none")] @@ -436,11 +482,11 @@ pub struct CreateTokenBuilderAccountCompanyVerification<'a> { } impl<'a> CreateTokenBuilderAccountCompanyVerification<'a> { pub fn new() -> Self { - Self::default() + Self { document: None } } } /// A document verifying the business. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountCompanyVerificationDocument<'a> { /// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. /// The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -453,11 +499,11 @@ pub struct CreateTokenBuilderAccountCompanyVerificationDocument<'a> { } impl<'a> CreateTokenBuilderAccountCompanyVerificationDocument<'a> { pub fn new() -> Self { - Self::default() + Self { back: None, front: None } } } /// Information about the person represented by the account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountIndividual<'a> { /// The individual's primary address. #[serde(skip_serializing_if = "Option::is_none")] @@ -535,11 +581,34 @@ pub struct CreateTokenBuilderAccountIndividual<'a> { } impl<'a> CreateTokenBuilderAccountIndividual<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + address_kana: None, + address_kanji: None, + dob: None, + email: None, + first_name: None, + first_name_kana: None, + first_name_kanji: None, + full_name_aliases: None, + gender: None, + id_number: None, + id_number_secondary: None, + last_name: None, + last_name_kana: None, + last_name_kanji: None, + maiden_name: None, + metadata: None, + phone: None, + political_exposure: None, + registered_address: None, + ssn_last_4: None, + verification: None, + } } } /// The Kana variation of the the individual's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountIndividualAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -565,11 +634,19 @@ pub struct CreateTokenBuilderAccountIndividualAddressKana<'a> { } impl<'a> CreateTokenBuilderAccountIndividualAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the the individual's primary address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderAccountIndividualAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -595,7 +672,15 @@ pub struct CreateTokenBuilderAccountIndividualAddressKanji<'a> { } impl<'a> CreateTokenBuilderAccountIndividualAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. @@ -868,7 +953,7 @@ impl<'a> CreateTokenBuilderCvcUpdate<'a> { } } /// Information for the person this token represents. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPerson<'a> { /// Details on the legal guardian's acceptance of the required Stripe agreements. #[serde(skip_serializing_if = "Option::is_none")] @@ -959,11 +1044,38 @@ pub struct CreateTokenBuilderPerson<'a> { } impl<'a> CreateTokenBuilderPerson<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_tos_acceptances: None, + address: None, + address_kana: None, + address_kanji: None, + dob: None, + documents: None, + email: None, + first_name: None, + first_name_kana: None, + first_name_kanji: None, + full_name_aliases: None, + gender: None, + id_number: None, + id_number_secondary: None, + last_name: None, + last_name_kana: None, + last_name_kanji: None, + maiden_name: None, + metadata: None, + nationality: None, + phone: None, + political_exposure: None, + registered_address: None, + relationship: None, + ssn_last_4: None, + verification: None, + } } } /// Details on the legal guardian's acceptance of the required Stripe agreements. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPersonAdditionalTosAcceptances<'a> { /// Details on the legal guardian's acceptance of the main Stripe service agreement. #[serde(skip_serializing_if = "Option::is_none")] @@ -971,11 +1083,11 @@ pub struct CreateTokenBuilderPersonAdditionalTosAcceptances<'a> { } impl<'a> CreateTokenBuilderPersonAdditionalTosAcceptances<'a> { pub fn new() -> Self { - Self::default() + Self { account: None } } } /// Details on the legal guardian's acceptance of the main Stripe service agreement. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPersonAdditionalTosAcceptancesAccount<'a> { /// The Unix timestamp marking when the account representative accepted the service agreement. #[serde(skip_serializing_if = "Option::is_none")] @@ -989,11 +1101,11 @@ pub struct CreateTokenBuilderPersonAdditionalTosAcceptancesAccount<'a> { } impl<'a> CreateTokenBuilderPersonAdditionalTosAcceptancesAccount<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, user_agent: None } } } /// The Kana variation of the person's address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPersonAddressKana<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -1019,11 +1131,19 @@ pub struct CreateTokenBuilderPersonAddressKana<'a> { } impl<'a> CreateTokenBuilderPersonAddressKana<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// The Kanji variation of the person's address (Japan only). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPersonAddressKanji<'a> { /// City or ward. #[serde(skip_serializing_if = "Option::is_none")] @@ -1049,11 +1169,19 @@ pub struct CreateTokenBuilderPersonAddressKanji<'a> { } impl<'a> CreateTokenBuilderPersonAddressKanji<'a> { pub fn new() -> Self { - Self::default() + Self { + city: None, + country: None, + line1: None, + line2: None, + postal_code: None, + state: None, + town: None, + } } } /// Documents that may be submitted to satisfy various informational requests. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPersonDocuments<'a> { /// One or more documents that demonstrate proof that this person is authorized to represent the company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1067,11 +1195,11 @@ pub struct CreateTokenBuilderPersonDocuments<'a> { } impl<'a> CreateTokenBuilderPersonDocuments<'a> { pub fn new() -> Self { - Self::default() + Self { company_authorization: None, passport: None, visa: None } } } /// The relationship that this person has with the account's legal entity. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPersonRelationship<'a> { /// Whether the person is a director of the account's legal entity. /// Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -1101,11 +1229,19 @@ pub struct CreateTokenBuilderPersonRelationship<'a> { } impl<'a> CreateTokenBuilderPersonRelationship<'a> { pub fn new() -> Self { - Self::default() + Self { + director: None, + executive: None, + legal_guardian: None, + owner: None, + percent_ownership: None, + representative: None, + title: None, + } } } /// The PII this token represents. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTokenBuilderPii<'a> { /// The `id_number` for the PII, in string form. #[serde(skip_serializing_if = "Option::is_none")] @@ -1113,7 +1249,7 @@ pub struct CreateTokenBuilderPii<'a> { } impl<'a> CreateTokenBuilderPii<'a> { pub fn new() -> Self { - Self::default() + Self { id_number: None } } } /// Creates a single-use token that represents a bank account’s details. @@ -1192,7 +1328,7 @@ impl StripeRequest for CreateToken<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct AddressSpecs<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -1215,7 +1351,7 @@ pub struct AddressSpecs<'a> { } impl<'a> AddressSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -1232,7 +1368,7 @@ impl DateOfBirthSpecs { Self { day, month, year } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationDocumentSpecs<'a> { /// The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. /// The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1245,10 +1381,10 @@ pub struct PersonVerificationDocumentSpecs<'a> { } impl<'a> PersonVerificationDocumentSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { back: None, front: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DocumentsParam<'a> { /// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. #[serde(skip_serializing_if = "Option::is_none")] @@ -1256,10 +1392,10 @@ pub struct DocumentsParam<'a> { } impl<'a> DocumentsParam<'a> { pub fn new() -> Self { - Self::default() + Self { files: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationSpecs<'a> { /// A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1270,6 +1406,6 @@ pub struct PersonVerificationSpecs<'a> { } impl<'a> PersonVerificationSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { additional_document: None, document: None } } } diff --git a/generated/stripe_fraud/src/mod.rs b/generated/stripe_fraud/src/mod.rs index a578f3a4e..d6cd774b0 100644 --- a/generated/stripe_fraud/src/mod.rs +++ b/generated/stripe_fraud/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_fraud/src/radar_early_fraud_warning/requests.rs b/generated/stripe_fraud/src/radar_early_fraud_warning/requests.rs index fe520d712..dcd023d8f 100644 --- a/generated/stripe_fraud/src/radar_early_fraud_warning/requests.rs +++ b/generated/stripe_fraud/src/radar_early_fraud_warning/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListRadarEarlyFraudWarningBuilder<'a> { /// Only return early fraud warnings for the charge specified by this charge ID. #[serde(skip_serializing_if = "Option::is_none")] @@ -30,7 +30,14 @@ pub struct ListRadarEarlyFraudWarningBuilder<'a> { } impl<'a> ListRadarEarlyFraudWarningBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + charge: None, + ending_before: None, + expand: None, + limit: None, + payment_intent: None, + starting_after: None, + } } } /// Returns a list of early fraud warnings. @@ -95,7 +102,7 @@ impl StripeRequest for ListRadarEarlyFraudWarning<'_> { RequestBuilder::new(StripeMethod::Get, "/radar/early_fraud_warnings").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveRadarEarlyFraudWarningBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -103,7 +110,7 @@ pub struct RetrieveRadarEarlyFraudWarningBuilder<'a> { } impl<'a> RetrieveRadarEarlyFraudWarningBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an early fraud warning that has previously been created. diff --git a/generated/stripe_fraud/src/radar_value_list/requests.rs b/generated/stripe_fraud/src/radar_value_list/requests.rs index 05774e737..4eb267bd2 100644 --- a/generated/stripe_fraud/src/radar_value_list/requests.rs +++ b/generated/stripe_fraud/src/radar_value_list/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListRadarValueListBuilder<'a> { /// The alias used to reference the value list when writing rules. #[serde(skip_serializing_if = "Option::is_none")] @@ -32,7 +32,15 @@ pub struct ListRadarValueListBuilder<'a> { } impl<'a> ListRadarValueListBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + alias: None, + contains: None, + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + } } } /// Returns a list of `ValueList` objects. @@ -103,7 +111,7 @@ impl StripeRequest for ListRadarValueList<'_> { RequestBuilder::new(StripeMethod::Get, "/radar/value_lists").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveRadarValueListBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -111,7 +119,7 @@ pub struct RetrieveRadarValueListBuilder<'a> { } impl<'a> RetrieveRadarValueListBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a `ValueList` object. @@ -227,7 +235,7 @@ impl StripeRequest for CreateRadarValueList<'_> { RequestBuilder::new(StripeMethod::Post, "/radar/value_lists").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateRadarValueListBuilder<'a> { /// The name of the value list for use in rules. #[serde(skip_serializing_if = "Option::is_none")] @@ -247,7 +255,7 @@ pub struct UpdateRadarValueListBuilder<'a> { } impl<'a> UpdateRadarValueListBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { alias: None, expand: None, metadata: None, name: None } } } /// Updates a `ValueList` object by setting the values of the parameters passed. diff --git a/generated/stripe_fraud/src/radar_value_list_item/requests.rs b/generated/stripe_fraud/src/radar_value_list_item/requests.rs index 820bdfb5f..d25448e70 100644 --- a/generated/stripe_fraud/src/radar_value_list_item/requests.rs +++ b/generated/stripe_fraud/src/radar_value_list_item/requests.rs @@ -105,7 +105,7 @@ impl StripeRequest for ListRadarValueListItem<'_> { RequestBuilder::new(StripeMethod::Get, "/radar/value_list_items").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveRadarValueListItemBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -113,7 +113,7 @@ pub struct RetrieveRadarValueListItemBuilder<'a> { } impl<'a> RetrieveRadarValueListItemBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a `ValueListItem` object. diff --git a/generated/stripe_fraud/src/review/requests.rs b/generated/stripe_fraud/src/review/requests.rs index 11ee60189..7f12333d6 100644 --- a/generated/stripe_fraud/src/review/requests.rs +++ b/generated/stripe_fraud/src/review/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListReviewBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -26,7 +26,7 @@ pub struct ListReviewBuilder<'a> { } impl<'a> ListReviewBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { created: None, ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of `Review` objects that have `open` set to `true`. @@ -87,7 +87,7 @@ impl StripeRequest for ListReview<'_> { RequestBuilder::new(StripeMethod::Get, "/reviews").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveReviewBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -95,7 +95,7 @@ pub struct RetrieveReviewBuilder<'a> { } impl<'a> RetrieveReviewBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a `Review` object. @@ -137,7 +137,7 @@ impl StripeRequest for RetrieveReview<'_> { RequestBuilder::new(StripeMethod::Get, format!("/reviews/{review}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ApproveReviewBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -145,7 +145,7 @@ pub struct ApproveReviewBuilder<'a> { } impl<'a> ApproveReviewBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Approves a `Review` object, closing it and removing it from the list of reviews. diff --git a/generated/stripe_issuing/src/issuing_authorization/requests.rs b/generated/stripe_issuing/src/issuing_authorization/requests.rs index 9aaa5c7a5..139687cec 100644 --- a/generated/stripe_issuing/src/issuing_authorization/requests.rs +++ b/generated/stripe_issuing/src/issuing_authorization/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIssuingAuthorizationBuilder<'a> { /// Only return authorizations that belong to the given card. #[serde(skip_serializing_if = "Option::is_none")] @@ -36,7 +36,16 @@ pub struct ListIssuingAuthorizationBuilder<'a> { } impl<'a> ListIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + card: None, + cardholder: None, + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + status: None, + } } } /// Returns a list of Issuing `Authorization` objects. @@ -112,7 +121,7 @@ impl StripeRequest for ListIssuingAuthorization<'_> { RequestBuilder::new(StripeMethod::Get, "/issuing/authorizations").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIssuingAuthorizationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -120,7 +129,7 @@ pub struct RetrieveIssuingAuthorizationBuilder<'a> { } impl<'a> RetrieveIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an Issuing `Authorization` object. @@ -163,7 +172,7 @@ impl StripeRequest for RetrieveIssuingAuthorization<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingAuthorizationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -177,7 +186,7 @@ pub struct UpdateIssuingAuthorizationBuilder<'a> { } impl<'a> UpdateIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Updates the specified Issuing `Authorization` object by setting the values of the parameters passed. @@ -226,7 +235,7 @@ impl StripeRequest for UpdateIssuingAuthorization<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ApproveIssuingAuthorizationBuilder<'a> { /// If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. /// Must be positive (use [`decline`](https://stripe.com/docs/api/issuing/authorizations/decline) to decline an authorization request). @@ -244,7 +253,7 @@ pub struct ApproveIssuingAuthorizationBuilder<'a> { } impl<'a> ApproveIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { amount: None, expand: None, metadata: None } } } /// \[Deprecated\] Approves a pending Issuing `Authorization` object. @@ -304,7 +313,7 @@ impl StripeRequest for ApproveIssuingAuthorization<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DeclineIssuingAuthorizationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -318,7 +327,7 @@ pub struct DeclineIssuingAuthorizationBuilder<'a> { } impl<'a> DeclineIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// \[Deprecated\] Declines a pending Issuing `Authorization` object. @@ -432,7 +441,7 @@ impl<'a> CreateIssuingAuthorizationBuilder<'a> { } /// Detailed breakdown of amount components. /// These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingAuthorizationBuilderAmountDetails { /// The ATM withdrawal fee. #[serde(skip_serializing_if = "Option::is_none")] @@ -443,11 +452,11 @@ pub struct CreateIssuingAuthorizationBuilderAmountDetails { } impl CreateIssuingAuthorizationBuilderAmountDetails { pub fn new() -> Self { - Self::default() + Self { atm_fee: None, cashback_amount: None } } } /// Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingAuthorizationBuilderMerchantData<'a> { /// A categorization of the seller's type of business. /// See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. @@ -481,7 +490,17 @@ pub struct CreateIssuingAuthorizationBuilderMerchantData<'a> { } impl<'a> CreateIssuingAuthorizationBuilderMerchantData<'a> { pub fn new() -> Self { - Self::default() + Self { + category: None, + city: None, + country: None, + name: None, + network_id: None, + postal_code: None, + state: None, + terminal_id: None, + url: None, + } } } /// A categorization of the seller's type of business. @@ -1504,7 +1523,7 @@ impl serde::Serialize for CreateIssuingAuthorizationBuilderMerchantDataCategory } } /// Details about the authorization, such as identifiers, set by the card network. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingAuthorizationBuilderNetworkData<'a> { /// Identifier assigned to the acquirer by the card network. #[serde(skip_serializing_if = "Option::is_none")] @@ -1512,11 +1531,11 @@ pub struct CreateIssuingAuthorizationBuilderNetworkData<'a> { } impl<'a> CreateIssuingAuthorizationBuilderNetworkData<'a> { pub fn new() -> Self { - Self::default() + Self { acquiring_institution_id: None } } } /// Verifications that Stripe performed on information that the cardholder provided to the merchant. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingAuthorizationBuilderVerificationData { /// Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`. #[serde(skip_serializing_if = "Option::is_none")] @@ -1542,7 +1561,14 @@ pub struct CreateIssuingAuthorizationBuilderVerificationData { } impl CreateIssuingAuthorizationBuilderVerificationData { pub fn new() -> Self { - Self::default() + Self { + address_line1_check: None, + address_postal_code_check: None, + authentication_exemption: None, + cvc_check: None, + expiry_check: None, + three_d_secure: None, + } } } /// Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`. @@ -2141,7 +2167,7 @@ impl StripeRequest for IncrementIssuingAuthorization<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReverseIssuingAuthorizationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -2154,7 +2180,7 @@ pub struct ReverseIssuingAuthorizationBuilder<'a> { } impl<'a> ReverseIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, reverse_amount: None } } } /// Reverse a test-mode Authorization. @@ -2205,7 +2231,7 @@ impl StripeRequest for ReverseIssuingAuthorization<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ExpireIssuingAuthorizationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -2213,7 +2239,7 @@ pub struct ExpireIssuingAuthorizationBuilder<'a> { } impl<'a> ExpireIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Expire a test-mode Authorization. @@ -2259,7 +2285,7 @@ impl StripeRequest for ExpireIssuingAuthorization<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureIssuingAuthorizationBuilder<'a> { /// The amount to capture from the authorization. /// If not provided, the full amount of the authorization will be captured. @@ -2280,11 +2306,16 @@ pub struct CaptureIssuingAuthorizationBuilder<'a> { } impl<'a> CaptureIssuingAuthorizationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_amount: None, + close_authorization: None, + expand: None, + purchase_details: None, + } } } /// Additional purchase information that is optionally provided by the merchant. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureIssuingAuthorizationBuilderPurchaseDetails<'a> { /// Information about the flight that was purchased with this transaction. #[serde(skip_serializing_if = "Option::is_none")] @@ -2304,11 +2335,11 @@ pub struct CaptureIssuingAuthorizationBuilderPurchaseDetails<'a> { } impl<'a> CaptureIssuingAuthorizationBuilderPurchaseDetails<'a> { pub fn new() -> Self { - Self::default() + Self { flight: None, fuel: None, lodging: None, receipt: None, reference: None } } } /// Information about the flight that was purchased with this transaction. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsFlight<'a> { /// The time that the flight departed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2328,11 +2359,17 @@ pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsFlight<'a> { } impl<'a> CaptureIssuingAuthorizationBuilderPurchaseDetailsFlight<'a> { pub fn new() -> Self { - Self::default() + Self { + departure_at: None, + passenger_name: None, + refundable: None, + segments: None, + travel_agency: None, + } } } /// The legs of the trip. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsFlightSegments<'a> { /// The three-letter IATA airport code of the flight's destination. #[serde(skip_serializing_if = "Option::is_none")] @@ -2355,11 +2392,18 @@ pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsFlightSegments<'a> { } impl<'a> CaptureIssuingAuthorizationBuilderPurchaseDetailsFlightSegments<'a> { pub fn new() -> Self { - Self::default() + Self { + arrival_airport_code: None, + carrier: None, + departure_airport_code: None, + flight_number: None, + service_class: None, + stopover_allowed: None, + } } } /// Information about fuel that was purchased with this transaction. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsFuel<'a> { /// The type of fuel that was purchased. /// One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`. @@ -2378,7 +2422,7 @@ pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsFuel<'a> { } impl<'a> CaptureIssuingAuthorizationBuilderPurchaseDetailsFuel<'a> { pub fn new() -> Self { - Self::default() + Self { type_: None, unit: None, unit_cost_decimal: None, volume_decimal: None } } } /// The type of fuel that was purchased. @@ -2484,7 +2528,7 @@ impl serde::Serialize for CaptureIssuingAuthorizationBuilderPurchaseDetailsFuelU } } /// Information about lodging that was purchased with this transaction. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsLodging { /// The time of checking into the lodging. #[serde(skip_serializing_if = "Option::is_none")] @@ -2495,11 +2539,11 @@ pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsLodging { } impl CaptureIssuingAuthorizationBuilderPurchaseDetailsLodging { pub fn new() -> Self { - Self::default() + Self { check_in_at: None, nights: None } } } /// The line items in the purchase. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsReceipt<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<&'a str>, @@ -2512,7 +2556,7 @@ pub struct CaptureIssuingAuthorizationBuilderPurchaseDetailsReceipt<'a> { } impl<'a> CaptureIssuingAuthorizationBuilderPurchaseDetailsReceipt<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, quantity: None, total: None, unit_cost: None } } } /// Capture a test-mode authorization. diff --git a/generated/stripe_issuing/src/issuing_card/requests.rs b/generated/stripe_issuing/src/issuing_card/requests.rs index 8219e2d72..29a4e3c8b 100644 --- a/generated/stripe_issuing/src/issuing_card/requests.rs +++ b/generated/stripe_issuing/src/issuing_card/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIssuingCardBuilder<'a> { /// Only return cards belonging to the Cardholder with the provided ID. #[serde(skip_serializing_if = "Option::is_none")] @@ -46,7 +46,19 @@ pub struct ListIssuingCardBuilder<'a> { } impl<'a> ListIssuingCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + cardholder: None, + created: None, + ending_before: None, + exp_month: None, + exp_year: None, + expand: None, + last4: None, + limit: None, + starting_after: None, + status: None, + type_: None, + } } } /// Returns a list of Issuing `Card` objects. @@ -255,7 +267,7 @@ impl<'a> CreateIssuingCardBuilderShippingAddress<'a> { } } /// Customs information for the shipment. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingCardBuilderShippingCustoms<'a> { /// The Economic Operators Registration and Identification (EORI) number to use for Customs. /// Required for bulk shipments to Europe. @@ -264,7 +276,7 @@ pub struct CreateIssuingCardBuilderShippingCustoms<'a> { } impl<'a> CreateIssuingCardBuilderShippingCustoms<'a> { pub fn new() -> Self { - Self::default() + Self { eori_number: None } } } /// Shipment service. @@ -364,7 +376,7 @@ impl serde::Serialize for CreateIssuingCardBuilderShippingType { } /// Rules that control spending for this card. /// Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingCardBuilderSpendingControls<'a> { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. @@ -382,7 +394,7 @@ pub struct CreateIssuingCardBuilderSpendingControls<'a> { } impl<'a> CreateIssuingCardBuilderSpendingControls<'a> { pub fn new() -> Self { - Self::default() + Self { allowed_categories: None, blocked_categories: None, spending_limits: None } } } /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. @@ -3662,7 +3674,7 @@ impl StripeRequest for CreateIssuingCard<'_> { RequestBuilder::new(StripeMethod::Post, "/issuing/cards").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIssuingCardBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -3670,7 +3682,7 @@ pub struct RetrieveIssuingCardBuilder<'a> { } impl<'a> RetrieveIssuingCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an Issuing `Card` object. @@ -3712,7 +3724,7 @@ impl StripeRequest for RetrieveIssuingCard<'_> { RequestBuilder::new(StripeMethod::Get, format!("/issuing/cards/{card}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingCardBuilder<'a> { /// Reason why the `status` of this card is `canceled`. #[serde(skip_serializing_if = "Option::is_none")] @@ -3742,7 +3754,14 @@ pub struct UpdateIssuingCardBuilder<'a> { } impl<'a> UpdateIssuingCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + cancellation_reason: None, + expand: None, + metadata: None, + pin: None, + spending_controls: None, + status: None, + } } } /// Reason why the `status` of this card is `canceled`. @@ -3792,7 +3811,7 @@ impl serde::Serialize for UpdateIssuingCardBuilderCancellationReason { } } /// The desired new PIN for this card. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingCardBuilderPin<'a> { /// The card's desired new PIN, encrypted under Stripe's public key. #[serde(skip_serializing_if = "Option::is_none")] @@ -3800,12 +3819,12 @@ pub struct UpdateIssuingCardBuilderPin<'a> { } impl<'a> UpdateIssuingCardBuilderPin<'a> { pub fn new() -> Self { - Self::default() + Self { encrypted_number: None } } } /// Rules that control spending for this card. /// Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingCardBuilderSpendingControls<'a> { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. @@ -3823,7 +3842,7 @@ pub struct UpdateIssuingCardBuilderSpendingControls<'a> { } impl<'a> UpdateIssuingCardBuilderSpendingControls<'a> { pub fn new() -> Self { - Self::default() + Self { allowed_categories: None, blocked_categories: None, spending_limits: None } } } /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. @@ -7043,7 +7062,7 @@ impl StripeRequest for UpdateIssuingCard<'_> { RequestBuilder::new(StripeMethod::Post, format!("/issuing/cards/{card}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DeliverCardIssuingCardBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -7051,7 +7070,7 @@ pub struct DeliverCardIssuingCardBuilder<'a> { } impl<'a> DeliverCardIssuingCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Updates the shipping status of the specified Issuing `Card` object to `delivered`. @@ -7097,7 +7116,7 @@ impl StripeRequest for DeliverCardIssuingCard<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ShipCardIssuingCardBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -7105,7 +7124,7 @@ pub struct ShipCardIssuingCardBuilder<'a> { } impl<'a> ShipCardIssuingCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Updates the shipping status of the specified Issuing `Card` object to `shipped`. @@ -7151,7 +7170,7 @@ impl StripeRequest for ShipCardIssuingCard<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReturnCardIssuingCardBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -7159,7 +7178,7 @@ pub struct ReturnCardIssuingCardBuilder<'a> { } impl<'a> ReturnCardIssuingCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Updates the shipping status of the specified Issuing `Card` object to `returned`. @@ -7205,7 +7224,7 @@ impl StripeRequest for ReturnCardIssuingCard<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FailCardIssuingCardBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -7213,7 +7232,7 @@ pub struct FailCardIssuingCardBuilder<'a> { } impl<'a> FailCardIssuingCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Updates the shipping status of the specified Issuing `Card` object to `failure`. diff --git a/generated/stripe_issuing/src/issuing_cardholder/requests.rs b/generated/stripe_issuing/src/issuing_cardholder/requests.rs index 921ff23eb..882ba9429 100644 --- a/generated/stripe_issuing/src/issuing_cardholder/requests.rs +++ b/generated/stripe_issuing/src/issuing_cardholder/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIssuingCardholderBuilder<'a> { /// Only return cardholders that were created during the given date interval. #[serde(skip_serializing_if = "Option::is_none")] @@ -40,7 +40,17 @@ pub struct ListIssuingCardholderBuilder<'a> { } impl<'a> ListIssuingCardholderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + email: None, + ending_before: None, + expand: None, + limit: None, + phone_number: None, + starting_after: None, + status: None, + type_: None, + } } } /// Returns a list of Issuing `Cardholder` objects. @@ -192,7 +202,7 @@ impl<'a> CreateIssuingCardholderBuilder<'a> { } /// Rules that control spending across this cardholder's cards. /// Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingCardholderBuilderSpendingControls<'a> { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. @@ -216,7 +226,12 @@ pub struct CreateIssuingCardholderBuilderSpendingControls<'a> { } impl<'a> CreateIssuingCardholderBuilderSpendingControls<'a> { pub fn new() -> Self { - Self::default() + Self { + allowed_categories: None, + blocked_categories: None, + spending_limits: None, + spending_limits_currency: None, + } } } /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. @@ -3500,7 +3515,7 @@ impl StripeRequest for CreateIssuingCardholder<'_> { RequestBuilder::new(StripeMethod::Post, "/issuing/cardholders").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIssuingCardholderBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -3508,7 +3523,7 @@ pub struct RetrieveIssuingCardholderBuilder<'a> { } impl<'a> RetrieveIssuingCardholderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an Issuing `Cardholder` object. @@ -3551,7 +3566,7 @@ impl StripeRequest for RetrieveIssuingCardholder<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingCardholderBuilder<'a> { /// The cardholder's billing address. #[serde(skip_serializing_if = "Option::is_none")] @@ -3594,12 +3609,23 @@ pub struct UpdateIssuingCardholderBuilder<'a> { } impl<'a> UpdateIssuingCardholderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + billing: None, + company: None, + email: None, + expand: None, + individual: None, + metadata: None, + phone_number: None, + preferred_locales: None, + spending_controls: None, + status: None, + } } } /// Rules that control spending across this cardholder's cards. /// Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingCardholderBuilderSpendingControls<'a> { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. @@ -3623,7 +3649,12 @@ pub struct UpdateIssuingCardholderBuilderSpendingControls<'a> { } impl<'a> UpdateIssuingCardholderBuilderSpendingControls<'a> { pub fn new() -> Self { - Self::default() + Self { + allowed_categories: None, + blocked_categories: None, + spending_limits: None, + spending_limits_currency: None, + } } } /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. @@ -6934,7 +6965,7 @@ impl<'a> RequiredAddress<'a> { Self { city, country, line1, line2: None, postal_code, state: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CompanyParam<'a> { /// The entity's business ID number. #[serde(skip_serializing_if = "Option::is_none")] @@ -6942,10 +6973,10 @@ pub struct CompanyParam<'a> { } impl<'a> CompanyParam<'a> { pub fn new() -> Self { - Self::default() + Self { tax_id: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct TermsAcceptanceParam<'a> { /// The Unix timestamp marking when the cardholder accepted the Authorized User Terms. /// Required for Celtic Spend Card users. @@ -6961,7 +6992,7 @@ pub struct TermsAcceptanceParam<'a> { } impl<'a> TermsAcceptanceParam<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, user_agent: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -6978,7 +7009,7 @@ impl DateOfBirthSpecs { Self { day, month, year } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationDocumentParam<'a> { /// The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. #[serde(skip_serializing_if = "Option::is_none")] @@ -6989,7 +7020,7 @@ pub struct PersonVerificationDocumentParam<'a> { } impl<'a> PersonVerificationDocumentParam<'a> { pub fn new() -> Self { - Self::default() + Self { back: None, front: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -7002,7 +7033,7 @@ impl<'a> BillingSpecs<'a> { Self { address } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CardIssuingParam<'a> { /// Information about cardholder acceptance of [Authorized User Terms](https://stripe.com/docs/issuing/cards). #[serde(skip_serializing_if = "Option::is_none")] @@ -7010,10 +7041,10 @@ pub struct CardIssuingParam<'a> { } impl<'a> CardIssuingParam<'a> { pub fn new() -> Self { - Self::default() + Self { user_terms_acceptance: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PersonVerificationParam<'a> { /// An identifying document, either a passport or local ID card. #[serde(skip_serializing_if = "Option::is_none")] @@ -7021,10 +7052,10 @@ pub struct PersonVerificationParam<'a> { } impl<'a> PersonVerificationParam<'a> { pub fn new() -> Self { - Self::default() + Self { document: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct IndividualParam<'a> { /// Information related to the card_issuing program for this cardholder. #[serde(skip_serializing_if = "Option::is_none")] @@ -7048,6 +7079,12 @@ pub struct IndividualParam<'a> { } impl<'a> IndividualParam<'a> { pub fn new() -> Self { - Self::default() + Self { + card_issuing: None, + dob: None, + first_name: None, + last_name: None, + verification: None, + } } } diff --git a/generated/stripe_issuing/src/issuing_dispute/requests.rs b/generated/stripe_issuing/src/issuing_dispute/requests.rs index c690328c6..78df9ca08 100644 --- a/generated/stripe_issuing/src/issuing_dispute/requests.rs +++ b/generated/stripe_issuing/src/issuing_dispute/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIssuingDisputeBuilder<'a> { /// Select Issuing disputes that were created during the given date interval. #[serde(skip_serializing_if = "Option::is_none")] @@ -33,7 +33,15 @@ pub struct ListIssuingDisputeBuilder<'a> { } impl<'a> ListIssuingDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + status: None, + transaction: None, + } } } /// Returns a list of Issuing `Dispute` objects. @@ -104,7 +112,7 @@ impl StripeRequest for ListIssuingDispute<'_> { RequestBuilder::new(StripeMethod::Get, "/issuing/disputes").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingDisputeBuilder<'a> { /// The dispute amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). /// If not set, defaults to the full transaction amount. @@ -132,11 +140,18 @@ pub struct CreateIssuingDisputeBuilder<'a> { } impl<'a> CreateIssuingDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + evidence: None, + expand: None, + metadata: None, + transaction: None, + treasury: None, + } } } /// Evidence provided for the dispute. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingDisputeBuilderEvidence<'a> { /// Evidence provided when `reason` is 'canceled'. #[serde(skip_serializing_if = "Option::is_none")] @@ -166,11 +181,20 @@ pub struct CreateIssuingDisputeBuilderEvidence<'a> { } impl<'a> CreateIssuingDisputeBuilderEvidence<'a> { pub fn new() -> Self { - Self::default() + Self { + canceled: None, + duplicate: None, + fraudulent: None, + merchandise_not_as_described: None, + not_received: None, + other: None, + reason: None, + service_not_as_described: None, + } } } /// Evidence provided when `reason` is 'canceled'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingDisputeBuilderEvidenceCanceled<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -205,7 +229,18 @@ pub struct CreateIssuingDisputeBuilderEvidenceCanceled<'a> { } impl<'a> CreateIssuingDisputeBuilderEvidenceCanceled<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + canceled_at: None, + cancellation_policy_provided: None, + cancellation_reason: None, + expected_at: None, + explanation: None, + product_description: None, + product_type: None, + return_status: None, + returned_at: None, + } } } /// Whether the product was a merchandise or service. @@ -301,7 +336,7 @@ impl serde::Serialize for CreateIssuingDisputeBuilderEvidenceCanceledReturnStatu } } /// Evidence provided when `reason` is 'merchandise_not_as_described'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingDisputeBuilderEvidenceMerchandiseNotAsDescribed<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -325,7 +360,14 @@ pub struct CreateIssuingDisputeBuilderEvidenceMerchandiseNotAsDescribed<'a> { } impl<'a> CreateIssuingDisputeBuilderEvidenceMerchandiseNotAsDescribed<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + explanation: None, + received_at: None, + return_description: None, + return_status: None, + returned_at: None, + } } } /// Result of cardholder's attempt to return the product. @@ -379,7 +421,7 @@ impl serde::Serialize for CreateIssuingDisputeBuilderEvidenceMerchandiseNotAsDes } } /// Evidence provided when `reason` is 'not_received'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingDisputeBuilderEvidenceNotReceived<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -399,7 +441,13 @@ pub struct CreateIssuingDisputeBuilderEvidenceNotReceived<'a> { } impl<'a> CreateIssuingDisputeBuilderEvidenceNotReceived<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + expected_at: None, + explanation: None, + product_description: None, + product_type: None, + } } } /// Whether the product was a merchandise or service. @@ -449,7 +497,7 @@ impl serde::Serialize for CreateIssuingDisputeBuilderEvidenceNotReceivedProductT } } /// Evidence provided when `reason` is 'other'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIssuingDisputeBuilderEvidenceOther<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -466,7 +514,12 @@ pub struct CreateIssuingDisputeBuilderEvidenceOther<'a> { } impl<'a> CreateIssuingDisputeBuilderEvidenceOther<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + explanation: None, + product_description: None, + product_type: None, + } } } /// Whether the product was a merchandise or service. @@ -652,7 +705,7 @@ impl StripeRequest for CreateIssuingDispute<'_> { RequestBuilder::new(StripeMethod::Post, "/issuing/disputes").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingDisputeBuilder<'a> { /// The dispute amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). #[serde(skip_serializing_if = "Option::is_none")] @@ -672,11 +725,11 @@ pub struct UpdateIssuingDisputeBuilder<'a> { } impl<'a> UpdateIssuingDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { amount: None, evidence: None, expand: None, metadata: None } } } /// Evidence provided for the dispute. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingDisputeBuilderEvidence<'a> { /// Evidence provided when `reason` is 'canceled'. #[serde(skip_serializing_if = "Option::is_none")] @@ -706,11 +759,20 @@ pub struct UpdateIssuingDisputeBuilderEvidence<'a> { } impl<'a> UpdateIssuingDisputeBuilderEvidence<'a> { pub fn new() -> Self { - Self::default() + Self { + canceled: None, + duplicate: None, + fraudulent: None, + merchandise_not_as_described: None, + not_received: None, + other: None, + reason: None, + service_not_as_described: None, + } } } /// Evidence provided when `reason` is 'canceled'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingDisputeBuilderEvidenceCanceled<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -745,7 +807,18 @@ pub struct UpdateIssuingDisputeBuilderEvidenceCanceled<'a> { } impl<'a> UpdateIssuingDisputeBuilderEvidenceCanceled<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + canceled_at: None, + cancellation_policy_provided: None, + cancellation_reason: None, + expected_at: None, + explanation: None, + product_description: None, + product_type: None, + return_status: None, + returned_at: None, + } } } /// Whether the product was a merchandise or service. @@ -841,7 +914,7 @@ impl serde::Serialize for UpdateIssuingDisputeBuilderEvidenceCanceledReturnStatu } } /// Evidence provided when `reason` is 'merchandise_not_as_described'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingDisputeBuilderEvidenceMerchandiseNotAsDescribed<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -865,7 +938,14 @@ pub struct UpdateIssuingDisputeBuilderEvidenceMerchandiseNotAsDescribed<'a> { } impl<'a> UpdateIssuingDisputeBuilderEvidenceMerchandiseNotAsDescribed<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + explanation: None, + received_at: None, + return_description: None, + return_status: None, + returned_at: None, + } } } /// Result of cardholder's attempt to return the product. @@ -919,7 +999,7 @@ impl serde::Serialize for UpdateIssuingDisputeBuilderEvidenceMerchandiseNotAsDes } } /// Evidence provided when `reason` is 'not_received'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingDisputeBuilderEvidenceNotReceived<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -939,7 +1019,13 @@ pub struct UpdateIssuingDisputeBuilderEvidenceNotReceived<'a> { } impl<'a> UpdateIssuingDisputeBuilderEvidenceNotReceived<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + expected_at: None, + explanation: None, + product_description: None, + product_type: None, + } } } /// Whether the product was a merchandise or service. @@ -989,7 +1075,7 @@ impl serde::Serialize for UpdateIssuingDisputeBuilderEvidenceNotReceivedProductT } } /// Evidence provided when `reason` is 'other'. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingDisputeBuilderEvidenceOther<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -1006,7 +1092,12 @@ pub struct UpdateIssuingDisputeBuilderEvidenceOther<'a> { } impl<'a> UpdateIssuingDisputeBuilderEvidenceOther<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + explanation: None, + product_description: None, + product_type: None, + } } } /// Whether the product was a merchandise or service. @@ -1173,7 +1264,7 @@ impl StripeRequest for UpdateIssuingDispute<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIssuingDisputeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1181,7 +1272,7 @@ pub struct RetrieveIssuingDisputeBuilder<'a> { } impl<'a> RetrieveIssuingDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an Issuing `Dispute` object. @@ -1224,7 +1315,7 @@ impl StripeRequest for RetrieveIssuingDispute<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SubmitIssuingDisputeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1238,7 +1329,7 @@ pub struct SubmitIssuingDisputeBuilder<'a> { } impl<'a> SubmitIssuingDisputeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Submits an Issuing `Dispute` to the card network. @@ -1289,7 +1380,7 @@ impl StripeRequest for SubmitIssuingDispute<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct Duplicate<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -1313,10 +1404,17 @@ pub struct Duplicate<'a> { } impl<'a> Duplicate<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + card_statement: None, + cash_receipt: None, + check_image: None, + explanation: None, + original_transaction: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct Fraudulent<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -1327,10 +1425,10 @@ pub struct Fraudulent<'a> { } impl<'a> Fraudulent<'a> { pub fn new() -> Self { - Self::default() + Self { additional_documentation: None, explanation: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ServiceNotAsDescribed<'a> { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. #[serde(skip_serializing_if = "Option::is_none")] @@ -1350,6 +1448,12 @@ pub struct ServiceNotAsDescribed<'a> { } impl<'a> ServiceNotAsDescribed<'a> { pub fn new() -> Self { - Self::default() + Self { + additional_documentation: None, + canceled_at: None, + cancellation_reason: None, + explanation: None, + received_at: None, + } } } diff --git a/generated/stripe_issuing/src/issuing_token/requests.rs b/generated/stripe_issuing/src/issuing_token/requests.rs index c060c1367..ebdf1fadd 100644 --- a/generated/stripe_issuing/src/issuing_token/requests.rs +++ b/generated/stripe_issuing/src/issuing_token/requests.rs @@ -105,7 +105,7 @@ impl StripeRequest for ListIssuingToken<'_> { RequestBuilder::new(StripeMethod::Get, "/issuing/tokens").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIssuingTokenBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -113,7 +113,7 @@ pub struct RetrieveIssuingTokenBuilder<'a> { } impl<'a> RetrieveIssuingTokenBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an Issuing `Token` object. diff --git a/generated/stripe_issuing/src/issuing_transaction/requests.rs b/generated/stripe_issuing/src/issuing_transaction/requests.rs index 50cfd512e..c535035cf 100644 --- a/generated/stripe_issuing/src/issuing_transaction/requests.rs +++ b/generated/stripe_issuing/src/issuing_transaction/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIssuingTransactionBuilder<'a> { /// Only return transactions that belong to the given card. #[serde(skip_serializing_if = "Option::is_none")] @@ -37,7 +37,16 @@ pub struct ListIssuingTransactionBuilder<'a> { } impl<'a> ListIssuingTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + card: None, + cardholder: None, + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + type_: None, + } } } /// Returns a list of Issuing `Transaction` objects. @@ -113,7 +122,7 @@ impl StripeRequest for ListIssuingTransaction<'_> { RequestBuilder::new(StripeMethod::Get, "/issuing/transactions").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIssuingTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -121,7 +130,7 @@ pub struct RetrieveIssuingTransactionBuilder<'a> { } impl<'a> RetrieveIssuingTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an Issuing `Transaction` object. @@ -164,7 +173,7 @@ impl StripeRequest for RetrieveIssuingTransaction<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIssuingTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -178,7 +187,7 @@ pub struct UpdateIssuingTransactionBuilder<'a> { } impl<'a> UpdateIssuingTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None } } } /// Updates the specified Issuing `Transaction` object by setting the values of the parameters passed. @@ -263,7 +272,7 @@ impl<'a> CreateForceCaptureIssuingTransactionBuilder<'a> { } } /// Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateForceCaptureIssuingTransactionBuilderMerchantData<'a> { /// A categorization of the seller's type of business. /// See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. @@ -297,7 +306,17 @@ pub struct CreateForceCaptureIssuingTransactionBuilderMerchantData<'a> { } impl<'a> CreateForceCaptureIssuingTransactionBuilderMerchantData<'a> { pub fn new() -> Self { - Self::default() + Self { + category: None, + city: None, + country: None, + name: None, + network_id: None, + postal_code: None, + state: None, + terminal_id: None, + url: None, + } } } /// A categorization of the seller's type of business. @@ -1320,7 +1339,7 @@ impl serde::Serialize for CreateForceCaptureIssuingTransactionBuilderMerchantDat } } /// Additional purchase information that is optionally provided by the merchant. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateForceCaptureIssuingTransactionBuilderPurchaseDetails<'a> { /// Information about the flight that was purchased with this transaction. #[serde(skip_serializing_if = "Option::is_none")] @@ -1340,11 +1359,11 @@ pub struct CreateForceCaptureIssuingTransactionBuilderPurchaseDetails<'a> { } impl<'a> CreateForceCaptureIssuingTransactionBuilderPurchaseDetails<'a> { pub fn new() -> Self { - Self::default() + Self { flight: None, fuel: None, lodging: None, receipt: None, reference: None } } } /// Information about fuel that was purchased with this transaction. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateForceCaptureIssuingTransactionBuilderPurchaseDetailsFuel<'a> { /// The type of fuel that was purchased. /// One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`. @@ -1363,7 +1382,7 @@ pub struct CreateForceCaptureIssuingTransactionBuilderPurchaseDetailsFuel<'a> { } impl<'a> CreateForceCaptureIssuingTransactionBuilderPurchaseDetailsFuel<'a> { pub fn new() -> Self { - Self::default() + Self { type_: None, unit: None, unit_cost_decimal: None, volume_decimal: None } } } /// The type of fuel that was purchased. @@ -1566,7 +1585,7 @@ impl<'a> CreateUnlinkedRefundIssuingTransactionBuilder<'a> { } } /// Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateUnlinkedRefundIssuingTransactionBuilderMerchantData<'a> { /// A categorization of the seller's type of business. /// See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. @@ -1600,7 +1619,17 @@ pub struct CreateUnlinkedRefundIssuingTransactionBuilderMerchantData<'a> { } impl<'a> CreateUnlinkedRefundIssuingTransactionBuilderMerchantData<'a> { pub fn new() -> Self { - Self::default() + Self { + category: None, + city: None, + country: None, + name: None, + network_id: None, + postal_code: None, + state: None, + terminal_id: None, + url: None, + } } } /// A categorization of the seller's type of business. @@ -2623,7 +2652,7 @@ impl serde::Serialize for CreateUnlinkedRefundIssuingTransactionBuilderMerchantD } } /// Additional purchase information that is optionally provided by the merchant. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateUnlinkedRefundIssuingTransactionBuilderPurchaseDetails<'a> { /// Information about the flight that was purchased with this transaction. #[serde(skip_serializing_if = "Option::is_none")] @@ -2643,11 +2672,11 @@ pub struct CreateUnlinkedRefundIssuingTransactionBuilderPurchaseDetails<'a> { } impl<'a> CreateUnlinkedRefundIssuingTransactionBuilderPurchaseDetails<'a> { pub fn new() -> Self { - Self::default() + Self { flight: None, fuel: None, lodging: None, receipt: None, reference: None } } } /// Information about fuel that was purchased with this transaction. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateUnlinkedRefundIssuingTransactionBuilderPurchaseDetailsFuel<'a> { /// The type of fuel that was purchased. /// One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`. @@ -2666,7 +2695,7 @@ pub struct CreateUnlinkedRefundIssuingTransactionBuilderPurchaseDetailsFuel<'a> } impl<'a> CreateUnlinkedRefundIssuingTransactionBuilderPurchaseDetailsFuel<'a> { pub fn new() -> Self { - Self::default() + Self { type_: None, unit: None, unit_cost_decimal: None, volume_decimal: None } } } /// The type of fuel that was purchased. @@ -2833,7 +2862,7 @@ impl StripeRequest for CreateUnlinkedRefundIssuingTransaction<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RefundIssuingTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -2845,7 +2874,7 @@ pub struct RefundIssuingTransactionBuilder<'a> { } impl<'a> RefundIssuingTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, refund_amount: None } } } /// Refund a test-mode Transaction. @@ -2897,7 +2926,7 @@ impl StripeRequest for RefundIssuingTransaction<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FlightSegmentSpecs<'a> { /// The three-letter IATA airport code of the flight's destination. #[serde(skip_serializing_if = "Option::is_none")] @@ -2920,10 +2949,17 @@ pub struct FlightSegmentSpecs<'a> { } impl<'a> FlightSegmentSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { + arrival_airport_code: None, + carrier: None, + departure_airport_code: None, + flight_number: None, + service_class: None, + stopover_allowed: None, + } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct LodgingSpecs { /// The time of checking into the lodging. #[serde(skip_serializing_if = "Option::is_none")] @@ -2934,10 +2970,10 @@ pub struct LodgingSpecs { } impl LodgingSpecs { pub fn new() -> Self { - Self::default() + Self { check_in_at: None, nights: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReceiptSpecs<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<&'a str>, @@ -2950,10 +2986,10 @@ pub struct ReceiptSpecs<'a> { } impl<'a> ReceiptSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, quantity: None, total: None, unit_cost: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FlightSpecs<'a> { /// The time that the flight departed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2973,6 +3009,12 @@ pub struct FlightSpecs<'a> { } impl<'a> FlightSpecs<'a> { pub fn new() -> Self { - Self::default() + Self { + departure_at: None, + passenger_name: None, + refundable: None, + segments: None, + travel_agency: None, + } } } diff --git a/generated/stripe_issuing/src/mod.rs b/generated/stripe_issuing/src/mod.rs index 4d3172cd4..0a60f78dd 100644 --- a/generated/stripe_issuing/src/mod.rs +++ b/generated/stripe_issuing/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_misc/src/apple_pay_domain/requests.rs b/generated/stripe_misc/src/apple_pay_domain/requests.rs index 9011881a1..f040f4add 100644 --- a/generated/stripe_misc/src/apple_pay_domain/requests.rs +++ b/generated/stripe_misc/src/apple_pay_domain/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListApplePayDomainBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<&'a str>, @@ -26,7 +26,13 @@ pub struct ListApplePayDomainBuilder<'a> { } impl<'a> ListApplePayDomainBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + domain_name: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + } } } /// List apple pay domains. @@ -135,7 +141,7 @@ impl StripeRequest for CreateApplePayDomain<'_> { RequestBuilder::new(StripeMethod::Post, "/apple_pay/domains").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveApplePayDomainBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -143,7 +149,7 @@ pub struct RetrieveApplePayDomainBuilder<'a> { } impl<'a> RetrieveApplePayDomainBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieve an apple pay domain. diff --git a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs index b7d15dbe1..6aa302a34 100644 --- a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs +++ b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct BankConnectionsResourceBalanceApiResourceCashBalance { /// The funds available to the account holder. Typically this is the current balance less any holds. /// diff --git a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs index e021be313..517eb589c 100644 --- a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs +++ b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct BankConnectionsResourceBalanceApiResourceCreditBalance { /// The credit that has been used by the account holder. /// diff --git a/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs b/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs index 6e0c82fac..7a1a17007 100644 --- a/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs +++ b/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct BankConnectionsResourceLinkAccountSessionFilters { /// List of countries from which to filter accounts. pub countries: Option>, diff --git a/generated/stripe_misc/src/ephemeral_key/requests.rs b/generated/stripe_misc/src/ephemeral_key/requests.rs index 6762d55ff..d6021f9da 100644 --- a/generated/stripe_misc/src/ephemeral_key/requests.rs +++ b/generated/stripe_misc/src/ephemeral_key/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateEphemeralKeyBuilder<'a> { /// The ID of the Customer you'd like to modify using the resulting ephemeral key. #[serde(skip_serializing_if = "Option::is_none")] @@ -22,7 +22,13 @@ pub struct CreateEphemeralKeyBuilder<'a> { } impl<'a> CreateEphemeralKeyBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + customer: None, + expand: None, + issuing_card: None, + nonce: None, + verification_session: None, + } } } /// Creates a short-lived API key for a given resource. @@ -82,7 +88,7 @@ impl StripeRequest for CreateEphemeralKey<'_> { RequestBuilder::new(StripeMethod::Post, "/ephemeral_keys").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DeleteEphemeralKeyBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -90,7 +96,7 @@ pub struct DeleteEphemeralKeyBuilder<'a> { } impl<'a> DeleteEphemeralKeyBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Invalidates a short-lived API key for a given resource. diff --git a/generated/stripe_misc/src/exchange_rate/requests.rs b/generated/stripe_misc/src/exchange_rate/requests.rs index 9410acabb..e3992ba2d 100644 --- a/generated/stripe_misc/src/exchange_rate/requests.rs +++ b/generated/stripe_misc/src/exchange_rate/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListExchangeRateBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is the currency that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListExchangeRateBuilder<'a> { } impl<'a> ListExchangeRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of objects that contain the rates at which foreign currencies are converted to one another. @@ -80,7 +80,7 @@ impl StripeRequest for ListExchangeRate<'_> { RequestBuilder::new(StripeMethod::Get, "/exchange_rates").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveExchangeRateBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -88,7 +88,7 @@ pub struct RetrieveExchangeRateBuilder<'a> { } impl<'a> RetrieveExchangeRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the exchange rates from the given currency to every supported currency. diff --git a/generated/stripe_misc/src/financial_connections_account/requests.rs b/generated/stripe_misc/src/financial_connections_account/requests.rs index 86e804f8c..e663f6819 100644 --- a/generated/stripe_misc/src/financial_connections_account/requests.rs +++ b/generated/stripe_misc/src/financial_connections_account/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListFinancialConnectionsAccountBuilder<'a> { /// If present, only return accounts that belong to the specified account holder. /// `account_holder[customer]` and `account_holder[account]` are mutually exclusive. @@ -31,12 +31,19 @@ pub struct ListFinancialConnectionsAccountBuilder<'a> { } impl<'a> ListFinancialConnectionsAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder: None, + ending_before: None, + expand: None, + limit: None, + session: None, + starting_after: None, + } } } /// If present, only return accounts that belong to the specified account holder. /// `account_holder[customer]` and `account_holder[account]` are mutually exclusive. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListFinancialConnectionsAccountBuilderAccountHolder<'a> { /// The ID of the Stripe account whose accounts will be retrieved. #[serde(skip_serializing_if = "Option::is_none")] @@ -47,7 +54,7 @@ pub struct ListFinancialConnectionsAccountBuilderAccountHolder<'a> { } impl<'a> ListFinancialConnectionsAccountBuilderAccountHolder<'a> { pub fn new() -> Self { - Self::default() + Self { account: None, customer: None } } } /// Returns a list of Financial Connections `Account` objects. @@ -115,7 +122,7 @@ impl StripeRequest for ListFinancialConnectionsAccount<'_> { RequestBuilder::new(StripeMethod::Get, "/financial_connections/accounts").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveFinancialConnectionsAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -123,7 +130,7 @@ pub struct RetrieveFinancialConnectionsAccountBuilder<'a> { } impl<'a> RetrieveFinancialConnectionsAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an Financial Connections `Account`. @@ -359,7 +366,7 @@ impl StripeRequest for RefreshFinancialConnectionsAccount<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DisconnectFinancialConnectionsAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -367,7 +374,7 @@ pub struct DisconnectFinancialConnectionsAccountBuilder<'a> { } impl<'a> DisconnectFinancialConnectionsAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Disables your access to a Financial Connections `Account`. diff --git a/generated/stripe_misc/src/financial_connections_session/requests.rs b/generated/stripe_misc/src/financial_connections_session/requests.rs index 02d69a6fe..0f25b9e39 100644 --- a/generated/stripe_misc/src/financial_connections_session/requests.rs +++ b/generated/stripe_misc/src/financial_connections_session/requests.rs @@ -175,7 +175,7 @@ impl StripeRequest for CreateFinancialConnectionsSession<'_> { RequestBuilder::new(StripeMethod::Post, "/financial_connections/sessions").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveFinancialConnectionsSessionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -183,7 +183,7 @@ pub struct RetrieveFinancialConnectionsSessionBuilder<'a> { } impl<'a> RetrieveFinancialConnectionsSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of a Financial Connections `Session` diff --git a/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs b/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs index f4f1483b3..79bde96da 100644 --- a/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs +++ b/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct FinancialReportingFinanceReportRunRunParameters { /// The set of output columns requested for inclusion in the report run. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs b/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs index 340c8ae4b..5fe677d81 100644 --- a/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs +++ b/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs @@ -1,5 +1,5 @@ /// Point in Time -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoDataDocumentReportDateOfBirth { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs b/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs index a30a7654a..a86fb63ce 100644 --- a/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs +++ b/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs @@ -1,5 +1,5 @@ /// Point in Time -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoDataDocumentReportExpirationDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs b/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs index 950ee2a7e..527b28c68 100644 --- a/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs +++ b/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs @@ -1,5 +1,5 @@ /// Point in Time -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoDataDocumentReportIssuedDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_id_number_report_date.rs b/generated/stripe_misc/src/gelato_data_id_number_report_date.rs index e7c4d2c8d..1bcd564ce 100644 --- a/generated/stripe_misc/src/gelato_data_id_number_report_date.rs +++ b/generated/stripe_misc/src/gelato_data_id_number_report_date.rs @@ -1,5 +1,5 @@ /// Point in Time -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoDataIdNumberReportDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs b/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs index 06b4a0298..0131943e9 100644 --- a/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs +++ b/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs @@ -1,5 +1,5 @@ /// Point in Time -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoDataVerifiedOutputsDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_document_report_error.rs b/generated/stripe_misc/src/gelato_document_report_error.rs index cb6845bcf..ced4b25b3 100644 --- a/generated/stripe_misc/src/gelato_document_report_error.rs +++ b/generated/stripe_misc/src/gelato_document_report_error.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoDocumentReportError { /// A short machine-readable string giving the reason for the verification failure. pub code: Option, diff --git a/generated/stripe_misc/src/gelato_id_number_report_error.rs b/generated/stripe_misc/src/gelato_id_number_report_error.rs index 409b95f04..49a2875cc 100644 --- a/generated/stripe_misc/src/gelato_id_number_report_error.rs +++ b/generated/stripe_misc/src/gelato_id_number_report_error.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoIdNumberReportError { /// A short machine-readable string giving the reason for the verification failure. pub code: Option, diff --git a/generated/stripe_misc/src/gelato_report_document_options.rs b/generated/stripe_misc/src/gelato_report_document_options.rs index d64cf9535..f2789e93e 100644 --- a/generated/stripe_misc/src/gelato_report_document_options.rs +++ b/generated/stripe_misc/src/gelato_report_document_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoReportDocumentOptions { /// Array of strings of allowed identity document types. /// If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. diff --git a/generated/stripe_misc/src/gelato_report_id_number_options.rs b/generated/stripe_misc/src/gelato_report_id_number_options.rs index 469d8e9a1..074a90079 100644 --- a/generated/stripe_misc/src/gelato_report_id_number_options.rs +++ b/generated/stripe_misc/src/gelato_report_id_number_options.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoReportIdNumberOptions {} diff --git a/generated/stripe_misc/src/gelato_selfie_report_error.rs b/generated/stripe_misc/src/gelato_selfie_report_error.rs index 068e3dd79..421d8d7b0 100644 --- a/generated/stripe_misc/src/gelato_selfie_report_error.rs +++ b/generated/stripe_misc/src/gelato_selfie_report_error.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoSelfieReportError { /// A short machine-readable string giving the reason for the verification failure. pub code: Option, diff --git a/generated/stripe_misc/src/gelato_session_document_options.rs b/generated/stripe_misc/src/gelato_session_document_options.rs index ca96e161a..8a19785ae 100644 --- a/generated/stripe_misc/src/gelato_session_document_options.rs +++ b/generated/stripe_misc/src/gelato_session_document_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoSessionDocumentOptions { /// Array of strings of allowed identity document types. /// If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. diff --git a/generated/stripe_misc/src/gelato_session_id_number_options.rs b/generated/stripe_misc/src/gelato_session_id_number_options.rs index 2e402a477..c6e5facdc 100644 --- a/generated/stripe_misc/src/gelato_session_id_number_options.rs +++ b/generated/stripe_misc/src/gelato_session_id_number_options.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoSessionIdNumberOptions {} diff --git a/generated/stripe_misc/src/gelato_session_last_error.rs b/generated/stripe_misc/src/gelato_session_last_error.rs index bc2802fa4..7f5819e92 100644 --- a/generated/stripe_misc/src/gelato_session_last_error.rs +++ b/generated/stripe_misc/src/gelato_session_last_error.rs @@ -1,5 +1,5 @@ /// Shows last VerificationSession error -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoSessionLastError { /// A short machine-readable string giving the reason for the verification or user-session failure. pub code: Option, diff --git a/generated/stripe_misc/src/gelato_verification_report_options.rs b/generated/stripe_misc/src/gelato_verification_report_options.rs index 84bb33614..021607bf7 100644 --- a/generated/stripe_misc/src/gelato_verification_report_options.rs +++ b/generated/stripe_misc/src/gelato_verification_report_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoVerificationReportOptions { #[serde(skip_serializing_if = "Option::is_none")] pub document: Option, diff --git a/generated/stripe_misc/src/gelato_verification_session_options.rs b/generated/stripe_misc/src/gelato_verification_session_options.rs index fdce179be..7db7e7194 100644 --- a/generated/stripe_misc/src/gelato_verification_session_options.rs +++ b/generated/stripe_misc/src/gelato_verification_session_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoVerificationSessionOptions { #[serde(skip_serializing_if = "Option::is_none")] pub document: Option, diff --git a/generated/stripe_misc/src/gelato_verified_outputs.rs b/generated/stripe_misc/src/gelato_verified_outputs.rs index 74d0960aa..fea2e8634 100644 --- a/generated/stripe_misc/src/gelato_verified_outputs.rs +++ b/generated/stripe_misc/src/gelato_verified_outputs.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct GelatoVerifiedOutputs { /// The user's verified address. pub address: Option, diff --git a/generated/stripe_misc/src/identity_verification_report/requests.rs b/generated/stripe_misc/src/identity_verification_report/requests.rs index a9de60d8e..9d2f392ce 100644 --- a/generated/stripe_misc/src/identity_verification_report/requests.rs +++ b/generated/stripe_misc/src/identity_verification_report/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIdentityVerificationReportBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveIdentityVerificationReportBuilder<'a> { } impl<'a> RetrieveIdentityVerificationReportBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves an existing VerificationReport @@ -53,7 +53,7 @@ impl StripeRequest for RetrieveIdentityVerificationReport<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIdentityVerificationReportBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -85,7 +85,15 @@ pub struct ListIdentityVerificationReportBuilder<'a> { } impl<'a> ListIdentityVerificationReportBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + type_: None, + verification_session: None, + } } } /// List all verification reports. diff --git a/generated/stripe_misc/src/identity_verification_session/requests.rs b/generated/stripe_misc/src/identity_verification_session/requests.rs index 0b95a69cf..0ff527513 100644 --- a/generated/stripe_misc/src/identity_verification_session/requests.rs +++ b/generated/stripe_misc/src/identity_verification_session/requests.rs @@ -29,7 +29,7 @@ impl<'a> CreateIdentityVerificationSessionBuilder<'a> { } } /// A set of options for the session’s verification checks. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIdentityVerificationSessionBuilderOptions<'a> { /// Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document). #[serde(skip_serializing_if = "Option::is_none")] @@ -37,11 +37,11 @@ pub struct CreateIdentityVerificationSessionBuilderOptions<'a> { } impl<'a> CreateIdentityVerificationSessionBuilderOptions<'a> { pub fn new() -> Self { - Self::default() + Self { document: None } } } /// Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateIdentityVerificationSessionBuilderOptionsDocument<'a> { /// Array of strings of allowed identity document types. /// If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. @@ -61,7 +61,12 @@ pub struct CreateIdentityVerificationSessionBuilderOptionsDocument<'a> { } impl<'a> CreateIdentityVerificationSessionBuilderOptionsDocument<'a> { pub fn new() -> Self { - Self::default() + Self { + allowed_types: None, + require_id_number: None, + require_live_capture: None, + require_matching_selfie: None, + } } } /// Array of strings of allowed identity document types. @@ -172,7 +177,7 @@ impl StripeRequest for CreateIdentityVerificationSession<'_> { RequestBuilder::new(StripeMethod::Post, "/identity/verification_sessions").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveIdentityVerificationSessionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -180,7 +185,7 @@ pub struct RetrieveIdentityVerificationSessionBuilder<'a> { } impl<'a> RetrieveIdentityVerificationSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of a VerificationSession that was previously created. @@ -226,7 +231,7 @@ impl StripeRequest for RetrieveIdentityVerificationSession<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListIdentityVerificationSessionBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -254,7 +259,14 @@ pub struct ListIdentityVerificationSessionBuilder<'a> { } impl<'a> ListIdentityVerificationSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + created: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + status: None, + } } } /// Returns a list of VerificationSessions @@ -319,7 +331,7 @@ impl StripeRequest for ListIdentityVerificationSession<'_> { RequestBuilder::new(StripeMethod::Get, "/identity/verification_sessions").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelIdentityVerificationSessionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -327,7 +339,7 @@ pub struct CancelIdentityVerificationSessionBuilder<'a> { } impl<'a> CancelIdentityVerificationSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// A VerificationSession object can be canceled when it is in `requires_input` [status](https://stripe.com/docs/identity/how-sessions-work). @@ -377,7 +389,7 @@ impl StripeRequest for CancelIdentityVerificationSession<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RedactIdentityVerificationSessionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -385,7 +397,7 @@ pub struct RedactIdentityVerificationSessionBuilder<'a> { } impl<'a> RedactIdentityVerificationSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Redact a VerificationSession to remove all collected information from Stripe. This will redact @@ -450,7 +462,7 @@ impl StripeRequest for RedactIdentityVerificationSession<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIdentityVerificationSessionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -471,11 +483,11 @@ pub struct UpdateIdentityVerificationSessionBuilder<'a> { } impl<'a> UpdateIdentityVerificationSessionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, metadata: None, options: None, type_: None } } } /// A set of options for the session’s verification checks. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIdentityVerificationSessionBuilderOptions<'a> { /// Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document). #[serde(skip_serializing_if = "Option::is_none")] @@ -483,11 +495,11 @@ pub struct UpdateIdentityVerificationSessionBuilderOptions<'a> { } impl<'a> UpdateIdentityVerificationSessionBuilderOptions<'a> { pub fn new() -> Self { - Self::default() + Self { document: None } } } /// Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateIdentityVerificationSessionBuilderOptionsDocument<'a> { /// Array of strings of allowed identity document types. /// If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. @@ -507,7 +519,12 @@ pub struct UpdateIdentityVerificationSessionBuilderOptionsDocument<'a> { } impl<'a> UpdateIdentityVerificationSessionBuilderOptionsDocument<'a> { pub fn new() -> Self { - Self::default() + Self { + allowed_types: None, + require_id_number: None, + require_live_capture: None, + require_matching_selfie: None, + } } } /// Array of strings of allowed identity document types. diff --git a/generated/stripe_misc/src/mod.rs b/generated/stripe_misc/src/mod.rs index 7f42727bd..50a55d112 100644 --- a/generated/stripe_misc/src/mod.rs +++ b/generated/stripe_misc/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_misc/src/reporting_report_run/requests.rs b/generated/stripe_misc/src/reporting_report_run/requests.rs index 293847938..40101a0bf 100644 --- a/generated/stripe_misc/src/reporting_report_run/requests.rs +++ b/generated/stripe_misc/src/reporting_report_run/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveReportingReportRunBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveReportingReportRunBuilder<'a> { } impl<'a> RetrieveReportingReportRunBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing Report Run. @@ -72,7 +72,7 @@ impl<'a> CreateReportingReportRunBuilder<'a> { } /// Parameters specifying how the report should be run. /// Different Report Types have different required and optional parameters, listed in the [API Access to Reports](https://stripe.com/docs/reporting/statements/api) documentation. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateReportingReportRunBuilderParameters<'a> { /// The set of report columns to include in the report output. /// If omitted, the Report Type is run with its default column set. @@ -105,7 +105,16 @@ pub struct CreateReportingReportRunBuilderParameters<'a> { } impl<'a> CreateReportingReportRunBuilderParameters<'a> { pub fn new() -> Self { - Self::default() + Self { + columns: None, + connected_account: None, + currency: None, + interval_end: None, + interval_start: None, + payout: None, + reporting_category: None, + timezone: None, + } } } /// Category of balance transactions to be included in the report run. @@ -2144,7 +2153,7 @@ impl StripeRequest for CreateReportingReportRun<'_> { RequestBuilder::new(StripeMethod::Post, "/reporting/report_runs").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListReportingReportRunBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -2168,7 +2177,7 @@ pub struct ListReportingReportRunBuilder<'a> { } impl<'a> ListReportingReportRunBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { created: None, ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of Report Runs, with the most recent appearing first. diff --git a/generated/stripe_misc/src/reporting_report_type/requests.rs b/generated/stripe_misc/src/reporting_report_type/requests.rs index 71fa8d5f8..33d9f45d4 100644 --- a/generated/stripe_misc/src/reporting_report_type/requests.rs +++ b/generated/stripe_misc/src/reporting_report_type/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveReportingReportTypeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveReportingReportTypeBuilder<'a> { } impl<'a> RetrieveReportingReportTypeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of a Report Type. @@ -54,7 +54,7 @@ impl StripeRequest for RetrieveReportingReportType<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListReportingReportTypeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -62,7 +62,7 @@ pub struct ListReportingReportTypeBuilder<'a> { } impl<'a> ListReportingReportTypeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Returns a full list of Report Types. diff --git a/generated/stripe_misc/src/scheduled_query_run/requests.rs b/generated/stripe_misc/src/scheduled_query_run/requests.rs index e9da47e69..549e28d78 100644 --- a/generated/stripe_misc/src/scheduled_query_run/requests.rs +++ b/generated/stripe_misc/src/scheduled_query_run/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListScheduledQueryRunBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListScheduledQueryRunBuilder<'a> { } impl<'a> ListScheduledQueryRunBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of scheduled query runs. @@ -79,7 +79,7 @@ impl StripeRequest for ListScheduledQueryRun<'_> { RequestBuilder::new(StripeMethod::Get, "/sigma/scheduled_query_runs").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveScheduledQueryRunBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -87,7 +87,7 @@ pub struct RetrieveScheduledQueryRunBuilder<'a> { } impl<'a> RetrieveScheduledQueryRunBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an scheduled query run. diff --git a/generated/stripe_misc/src/tax_calculation/requests.rs b/generated/stripe_misc/src/tax_calculation/requests.rs index a87026aab..7596d30a8 100644 --- a/generated/stripe_misc/src/tax_calculation/requests.rs +++ b/generated/stripe_misc/src/tax_calculation/requests.rs @@ -45,7 +45,7 @@ impl<'a> CreateTaxCalculationBuilder<'a> { } } /// Details about the customer, including address and tax IDs. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTaxCalculationBuilderCustomerDetails<'a> { /// The customer's postal address (for example, home or business location). #[serde(skip_serializing_if = "Option::is_none")] @@ -67,7 +67,13 @@ pub struct CreateTaxCalculationBuilderCustomerDetails<'a> { } impl<'a> CreateTaxCalculationBuilderCustomerDetails<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + address_source: None, + ip_address: None, + tax_ids: None, + taxability_override: None, + } } } /// The customer's postal address (for example, home or business location). @@ -540,7 +546,7 @@ impl serde::Serialize for CreateTaxCalculationBuilderLineItemsTaxBehavior { } } /// Shipping cost details to be used for the calculation. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTaxCalculationBuilderShippingCost<'a> { /// A positive integer in cents representing the shipping charge. /// If `tax_behavior=inclusive`, then this amount includes taxes. @@ -563,7 +569,7 @@ pub struct CreateTaxCalculationBuilderShippingCost<'a> { } impl<'a> CreateTaxCalculationBuilderShippingCost<'a> { pub fn new() -> Self { - Self::default() + Self { amount: None, shipping_rate: None, tax_behavior: None, tax_code: None } } } /// Specifies whether the `amount` includes taxes. @@ -680,7 +686,7 @@ impl StripeRequest for CreateTaxCalculation<'_> { RequestBuilder::new(StripeMethod::Post, "/tax/calculations").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListLineItemsTaxCalculationBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -702,7 +708,7 @@ pub struct ListLineItemsTaxCalculationBuilder<'a> { } impl<'a> ListLineItemsTaxCalculationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Retrieves the line items of a persisted tax calculation as a collection. diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs index aae0c58f1..cd96d90b4 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TaxProductRegistrationsResourceCountryOptions { #[serde(skip_serializing_if = "Option::is_none")] pub ae: Option, diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs index c883b10f6..0bc5a274b 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TaxProductResourceTaxSettingsDefaults { /// Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. /// If the item's price has a tax behavior set, it will take precedence over the default tax behavior. diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs index f31f4308f..3c40d2c0b 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TaxProductResourceTaxSettingsStatusDetails { #[serde(skip_serializing_if = "Option::is_none")] pub active: Option, diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs index f55dff9ac..b0a7179b7 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TaxProductResourceTaxSettingsStatusDetailsResourceActive {} diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs index 4aa35d5b8..7c480dd31 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TaxProductResourceTaxSettingsStatusDetailsResourcePending { /// The list of missing fields that are required to perform calculations. /// It includes the entry `head_office` when the status is `pending`. diff --git a/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs b/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs index fee5e9769..471a082e3 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TaxProductResourceTaxTransactionResourceReversal { /// The `id` of the reversed `Transaction` object. pub original_transaction: Option, diff --git a/generated/stripe_misc/src/tax_registration/requests.rs b/generated/stripe_misc/src/tax_registration/requests.rs index b552f4e26..a0a04b086 100644 --- a/generated/stripe_misc/src/tax_registration/requests.rs +++ b/generated/stripe_misc/src/tax_registration/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTaxRegistrationBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -27,7 +27,7 @@ pub struct ListTaxRegistrationBuilder<'a> { } impl<'a> ListTaxRegistrationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None, status: None } } } /// The status of the Tax Registration. @@ -175,7 +175,7 @@ pub enum CreateTaxRegistrationBuilderActiveFrom { Timestamp(stripe_types::Timestamp), } /// Specific options for a registration in the specified `country`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTaxRegistrationBuilderCountryOptions<'a> { /// Options for the registration in AE. #[serde(skip_serializing_if = "Option::is_none")] @@ -327,7 +327,57 @@ pub struct CreateTaxRegistrationBuilderCountryOptions<'a> { } impl<'a> CreateTaxRegistrationBuilderCountryOptions<'a> { pub fn new() -> Self { - Self::default() + Self { + ae: None, + at: None, + au: None, + be: None, + bg: None, + ca: None, + ch: None, + cl: None, + co: None, + cy: None, + cz: None, + de: None, + dk: None, + ee: None, + es: None, + fi: None, + fr: None, + gb: None, + gr: None, + hr: None, + hu: None, + id: None, + ie: None, + is: None, + it: None, + jp: None, + kr: None, + lt: None, + lu: None, + lv: None, + mt: None, + mx: None, + my: None, + nl: None, + no: None, + nz: None, + pl: None, + pt: None, + ro: None, + sa: None, + se: None, + sg: None, + si: None, + sk: None, + th: None, + tr: None, + us: None, + vn: None, + za: None, + } } } /// Options for the registration in AE. @@ -5077,7 +5127,7 @@ impl StripeRequest for CreateTaxRegistration<'_> { RequestBuilder::new(StripeMethod::Post, "/tax/registrations").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTaxRegistrationBuilder<'a> { /// Time at which the registration becomes active. /// It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch. @@ -5094,7 +5144,7 @@ pub struct UpdateTaxRegistrationBuilder<'a> { } impl<'a> UpdateTaxRegistrationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { active_from: None, expand: None, expires_at: None } } } /// Time at which the registration becomes active. diff --git a/generated/stripe_misc/src/tax_settings/requests.rs b/generated/stripe_misc/src/tax_settings/requests.rs index 3bafdfccf..fa1274828 100644 --- a/generated/stripe_misc/src/tax_settings/requests.rs +++ b/generated/stripe_misc/src/tax_settings/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveForMyAccountTaxSettingsBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveForMyAccountTaxSettingsBuilder<'a> { } impl<'a> RetrieveForMyAccountTaxSettingsBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves Tax `Settings` for a merchant. @@ -50,7 +50,7 @@ impl StripeRequest for RetrieveForMyAccountTaxSettings<'_> { RequestBuilder::new(StripeMethod::Get, "/tax/settings").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTaxSettingsBuilder<'a> { /// Default configuration to be used on Stripe Tax calculations. #[serde(skip_serializing_if = "Option::is_none")] @@ -64,11 +64,11 @@ pub struct UpdateTaxSettingsBuilder<'a> { } impl<'a> UpdateTaxSettingsBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { defaults: None, expand: None, head_office: None } } } /// Default configuration to be used on Stripe Tax calculations. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTaxSettingsBuilderDefaults<'a> { /// Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. /// One of inclusive, exclusive, or inferred_by_currency. @@ -81,7 +81,7 @@ pub struct UpdateTaxSettingsBuilderDefaults<'a> { } impl<'a> UpdateTaxSettingsBuilderDefaults<'a> { pub fn new() -> Self { - Self::default() + Self { tax_behavior: None, tax_code: None } } } /// Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. @@ -147,7 +147,7 @@ impl<'a> UpdateTaxSettingsBuilderHeadOffice<'a> { } } /// The location of the business for tax purposes. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTaxSettingsBuilderHeadOfficeAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -171,7 +171,7 @@ pub struct UpdateTaxSettingsBuilderHeadOfficeAddress<'a> { } impl<'a> UpdateTaxSettingsBuilderHeadOfficeAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// Updates Tax `Settings` parameters used in tax calculations. diff --git a/generated/stripe_misc/src/tax_transaction/requests.rs b/generated/stripe_misc/src/tax_transaction/requests.rs index b8ec4e84a..4b18ce89b 100644 --- a/generated/stripe_misc/src/tax_transaction/requests.rs +++ b/generated/stripe_misc/src/tax_transaction/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTaxTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveTaxTransactionBuilder<'a> { } impl<'a> RetrieveTaxTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a Tax `Transaction` object. @@ -326,7 +326,7 @@ impl StripeRequest for CreateFromCalculationTaxTransaction<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListLineItemsTaxTransactionBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -348,7 +348,7 @@ pub struct ListLineItemsTaxTransactionBuilder<'a> { } impl<'a> ListLineItemsTaxTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Retrieves the line items of a committed standalone transaction as a collection. diff --git a/generated/stripe_misc/src/webhook_endpoint/requests.rs b/generated/stripe_misc/src/webhook_endpoint/requests.rs index 8e5085229..6e54e2802 100644 --- a/generated/stripe_misc/src/webhook_endpoint/requests.rs +++ b/generated/stripe_misc/src/webhook_endpoint/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListWebhookEndpointBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListWebhookEndpointBuilder<'a> { } impl<'a> ListWebhookEndpointBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of your webhook endpoints. @@ -79,7 +79,7 @@ impl StripeRequest for ListWebhookEndpoint<'_> { RequestBuilder::new(StripeMethod::Get, "/webhook_endpoints").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveWebhookEndpointBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -87,7 +87,7 @@ pub struct RetrieveWebhookEndpointBuilder<'a> { } impl<'a> RetrieveWebhookEndpointBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the webhook endpoint with the given ID. @@ -975,7 +975,7 @@ impl StripeRequest for CreateWebhookEndpoint<'_> { RequestBuilder::new(StripeMethod::Post, "/webhook_endpoints").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateWebhookEndpointBuilder<'a> { /// An optional description of what the webhook is used for. #[serde(skip_serializing_if = "Option::is_none")] @@ -1002,7 +1002,14 @@ pub struct UpdateWebhookEndpointBuilder<'a> { } impl<'a> UpdateWebhookEndpointBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + description: None, + disabled: None, + enabled_events: None, + expand: None, + metadata: None, + url: None, + } } } /// The list of events to enable for this endpoint. diff --git a/generated/stripe_payment/src/bank_account/requests.rs b/generated/stripe_payment/src/bank_account/requests.rs index 7d515c030..a94cd8eb5 100644 --- a/generated/stripe_payment/src/bank_account/requests.rs +++ b/generated/stripe_payment/src/bank_account/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBankAccountBuilder<'a> { /// The name of the person or business that owns the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -51,7 +51,22 @@ pub struct UpdateCustomerBankAccountBuilder<'a> { } impl<'a> UpdateCustomerBankAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_name: None, + account_holder_type: None, + address_city: None, + address_country: None, + address_line1: None, + address_line2: None, + address_state: None, + address_zip: None, + exp_month: None, + exp_year: None, + expand: None, + metadata: None, + name: None, + owner: None, + } } } /// The type of entity that holds the account. This can be either `individual` or `company`. @@ -100,7 +115,7 @@ impl serde::Serialize for UpdateCustomerBankAccountBuilderAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBankAccountBuilderOwner<'a> { /// Owner's address. #[serde(skip_serializing_if = "Option::is_none")] @@ -117,11 +132,11 @@ pub struct UpdateCustomerBankAccountBuilderOwner<'a> { } impl<'a> UpdateCustomerBankAccountBuilderOwner<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } /// Owner's address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerBankAccountBuilderOwnerAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -144,7 +159,7 @@ pub struct UpdateCustomerBankAccountBuilderOwnerAddress<'a> { } impl<'a> UpdateCustomerBankAccountBuilderOwnerAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// Update a specified source for a given customer. @@ -267,7 +282,7 @@ pub enum UpdateCustomerBankAccountReturned { #[serde(rename = "source")] Source(stripe_shared::Source), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DeleteCustomerBankAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -275,7 +290,7 @@ pub struct DeleteCustomerBankAccountBuilder<'a> { } impl<'a> DeleteCustomerBankAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Delete a specified source for a given customer. @@ -326,7 +341,7 @@ pub enum DeleteCustomerBankAccountReturned { PaymentSource(stripe_shared::PaymentSource), DeletedPaymentSource(stripe_shared::DeletedPaymentSource), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct VerifyBankAccountBuilder<'a> { /// Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -337,7 +352,7 @@ pub struct VerifyBankAccountBuilder<'a> { } impl<'a> VerifyBankAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { amounts: None, expand: None } } } /// Verify a specified bank account for a given customer. @@ -390,7 +405,7 @@ impl StripeRequest for VerifyBankAccount<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBankAccountBuilder<'a> { /// The name of the person or business that owns the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -448,7 +463,24 @@ pub struct UpdateAccountBankAccountBuilder<'a> { } impl<'a> UpdateAccountBankAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_name: None, + account_holder_type: None, + account_type: None, + address_city: None, + address_country: None, + address_line1: None, + address_line2: None, + address_state: None, + address_zip: None, + default_for_currency: None, + documents: None, + exp_month: None, + exp_year: None, + expand: None, + metadata: None, + name: None, + } } } /// The type of entity that holds the account. This can be either `individual` or `company`. @@ -552,7 +584,7 @@ impl serde::Serialize for UpdateAccountBankAccountBuilderAccountType { } } /// Documents that may be submitted to satisfy various informational requests. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBankAccountBuilderDocuments<'a> { /// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. /// Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check. @@ -562,12 +594,12 @@ pub struct UpdateAccountBankAccountBuilderDocuments<'a> { } impl<'a> UpdateAccountBankAccountBuilderDocuments<'a> { pub fn new() -> Self { - Self::default() + Self { bank_account_ownership_verification: None } } } /// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. /// Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountBankAccountBuilderDocumentsBankAccountOwnershipVerification<'a> { /// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. #[serde(skip_serializing_if = "Option::is_none")] @@ -575,7 +607,7 @@ pub struct UpdateAccountBankAccountBuilderDocumentsBankAccountOwnershipVerificat } impl<'a> UpdateAccountBankAccountBuilderDocumentsBankAccountOwnershipVerification<'a> { pub fn new() -> Self { - Self::default() + Self { files: None } } } /// Updates the metadata, account holder name, account holder type of a bank account belonging to a [Custom account](https://stripe.com/docs/connect/custom-accounts), and optionally sets it as the default for its currency. diff --git a/generated/stripe_payment/src/card/requests.rs b/generated/stripe_payment/src/card/requests.rs index de3d27685..a5d212bb7 100644 --- a/generated/stripe_payment/src/card/requests.rs +++ b/generated/stripe_payment/src/card/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerCardBuilder<'a> { /// The name of the person or business that owns the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -51,7 +51,22 @@ pub struct UpdateCustomerCardBuilder<'a> { } impl<'a> UpdateCustomerCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_name: None, + account_holder_type: None, + address_city: None, + address_country: None, + address_line1: None, + address_line2: None, + address_state: None, + address_zip: None, + exp_month: None, + exp_year: None, + expand: None, + metadata: None, + name: None, + owner: None, + } } } /// The type of entity that holds the account. This can be either `individual` or `company`. @@ -100,7 +115,7 @@ impl serde::Serialize for UpdateCustomerCardBuilderAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerCardBuilderOwner<'a> { /// Owner's address. #[serde(skip_serializing_if = "Option::is_none")] @@ -117,11 +132,11 @@ pub struct UpdateCustomerCardBuilderOwner<'a> { } impl<'a> UpdateCustomerCardBuilderOwner<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } /// Owner's address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCustomerCardBuilderOwnerAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -144,7 +159,7 @@ pub struct UpdateCustomerCardBuilderOwnerAddress<'a> { } impl<'a> UpdateCustomerCardBuilderOwnerAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// Update a specified source for a given customer. @@ -267,7 +282,7 @@ pub enum UpdateCustomerCardReturned { #[serde(rename = "source")] Source(stripe_shared::Source), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DeleteCustomerCardBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -275,7 +290,7 @@ pub struct DeleteCustomerCardBuilder<'a> { } impl<'a> DeleteCustomerCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Delete a specified source for a given customer. @@ -326,7 +341,7 @@ pub enum DeleteCustomerCardReturned { PaymentSource(stripe_shared::PaymentSource), DeletedPaymentSource(stripe_shared::DeletedPaymentSource), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountCardBuilder<'a> { /// The name of the person or business that owns the bank account. #[serde(skip_serializing_if = "Option::is_none")] @@ -384,7 +399,24 @@ pub struct UpdateAccountCardBuilder<'a> { } impl<'a> UpdateAccountCardBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_name: None, + account_holder_type: None, + account_type: None, + address_city: None, + address_country: None, + address_line1: None, + address_line2: None, + address_state: None, + address_zip: None, + default_for_currency: None, + documents: None, + exp_month: None, + exp_year: None, + expand: None, + metadata: None, + name: None, + } } } /// The type of entity that holds the account. This can be either `individual` or `company`. @@ -488,7 +520,7 @@ impl serde::Serialize for UpdateAccountCardBuilderAccountType { } } /// Documents that may be submitted to satisfy various informational requests. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountCardBuilderDocuments<'a> { /// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. /// Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check. @@ -498,12 +530,12 @@ pub struct UpdateAccountCardBuilderDocuments<'a> { } impl<'a> UpdateAccountCardBuilderDocuments<'a> { pub fn new() -> Self { - Self::default() + Self { bank_account_ownership_verification: None } } } /// One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. /// Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateAccountCardBuilderDocumentsBankAccountOwnershipVerification<'a> { /// One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. #[serde(skip_serializing_if = "Option::is_none")] @@ -511,7 +543,7 @@ pub struct UpdateAccountCardBuilderDocumentsBankAccountOwnershipVerification<'a> } impl<'a> UpdateAccountCardBuilderDocumentsBankAccountOwnershipVerification<'a> { pub fn new() -> Self { - Self::default() + Self { files: None } } } /// Updates the metadata, account holder name, account holder type of a bank account belonging to a [Custom account](https://stripe.com/docs/connect/custom-accounts), and optionally sets it as the default for its currency. diff --git a/generated/stripe_payment/src/mod.rs b/generated/stripe_payment/src/mod.rs index 30d4db627..cafb3bf6b 100644 --- a/generated/stripe_payment/src/mod.rs +++ b/generated/stripe_payment/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_payment/src/payment_link/requests.rs b/generated/stripe_payment/src/payment_link/requests.rs index 6bbb0fa22..39ccaa4d4 100644 --- a/generated/stripe_payment/src/payment_link/requests.rs +++ b/generated/stripe_payment/src/payment_link/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPaymentLinkBuilder<'a> { /// Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links). #[serde(skip_serializing_if = "Option::is_none")] @@ -27,7 +27,7 @@ pub struct ListPaymentLinkBuilder<'a> { } impl<'a> ListPaymentLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { active: None, ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of your payment links. @@ -87,7 +87,7 @@ impl StripeRequest for ListPaymentLink<'_> { RequestBuilder::new(StripeMethod::Get, "/payment_links").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePaymentLinkBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -95,7 +95,7 @@ pub struct RetrievePaymentLinkBuilder<'a> { } impl<'a> RetrievePaymentLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieve a payment link. @@ -138,7 +138,7 @@ impl StripeRequest for RetrievePaymentLink<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListLineItemsPaymentLinkBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -160,7 +160,7 @@ pub struct ListLineItemsPaymentLinkBuilder<'a> { } impl<'a> ListLineItemsPaymentLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// When retrieving a payment link, there is an includable **line_items** property containing the first handful of those items. @@ -417,7 +417,7 @@ impl serde::Serialize for CreatePaymentLinkBuilderAfterCompletionType { } } /// Configure fields to gather active consent from customers. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderConsentCollection { /// If set to `auto`, enables the collection of customer consent for promotional communications. /// The Checkout. @@ -432,7 +432,7 @@ pub struct CreatePaymentLinkBuilderConsentCollection { } impl CreatePaymentLinkBuilderConsentCollection { pub fn new() -> Self { - Self::default() + Self { promotions: None, terms_of_service: None } } } /// If set to `auto`, enables the collection of customer consent for promotional communications. @@ -624,7 +624,7 @@ impl serde::Serialize for CreatePaymentLinkBuilderCustomFieldsLabelType { } } /// Configuration for `type=numeric` fields. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderCustomFieldsNumeric { /// The maximum character length constraint for the customer's input. #[serde(skip_serializing_if = "Option::is_none")] @@ -635,11 +635,11 @@ pub struct CreatePaymentLinkBuilderCustomFieldsNumeric { } impl CreatePaymentLinkBuilderCustomFieldsNumeric { pub fn new() -> Self { - Self::default() + Self { maximum_length: None, minimum_length: None } } } /// Configuration for `type=text` fields. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderCustomFieldsText { /// The maximum character length constraint for the customer's input. #[serde(skip_serializing_if = "Option::is_none")] @@ -650,7 +650,7 @@ pub struct CreatePaymentLinkBuilderCustomFieldsText { } impl CreatePaymentLinkBuilderCustomFieldsText { pub fn new() -> Self { - Self::default() + Self { maximum_length: None, minimum_length: None } } } /// The type of the field. @@ -763,7 +763,7 @@ impl<'a> CreatePaymentLinkBuilderInvoiceCreation<'a> { } } /// Invoice PDF configuration. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderInvoiceCreationInvoiceData<'a> { /// The account tax IDs associated with the invoice. #[serde(skip_serializing_if = "Option::is_none")] @@ -790,11 +790,18 @@ pub struct CreatePaymentLinkBuilderInvoiceCreationInvoiceData<'a> { } impl<'a> CreatePaymentLinkBuilderInvoiceCreationInvoiceData<'a> { pub fn new() -> Self { - Self::default() + Self { + account_tax_ids: None, + custom_fields: None, + description: None, + footer: None, + metadata: None, + rendering_options: None, + } } } /// Default options for invoice PDF rendering for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderInvoiceCreationInvoiceDataRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -806,7 +813,7 @@ pub struct CreatePaymentLinkBuilderInvoiceCreationInvoiceDataRenderingOptions { } impl CreatePaymentLinkBuilderInvoiceCreationInvoiceDataRenderingOptions { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -885,7 +892,7 @@ impl<'a> CreatePaymentLinkBuilderLineItems<'a> { } } /// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderPaymentIntentData<'a> { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] @@ -924,7 +931,14 @@ pub struct CreatePaymentLinkBuilderPaymentIntentData<'a> { } impl<'a> CreatePaymentLinkBuilderPaymentIntentData<'a> { pub fn new() -> Self { - Self::default() + Self { + capture_method: None, + description: None, + metadata: None, + setup_future_usage: None, + statement_descriptor: None, + statement_descriptor_suffix: None, + } } } /// Controls when the funds will be captured from the customer's account. @@ -1871,7 +1885,7 @@ impl serde::Serialize for CreatePaymentLinkBuilderShippingAddressCollectionAllow } } /// The shipping rate options to apply to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderShippingOptions<'a> { /// The ID of the Shipping Rate to use for this shipping option. #[serde(skip_serializing_if = "Option::is_none")] @@ -1879,12 +1893,12 @@ pub struct CreatePaymentLinkBuilderShippingOptions<'a> { } impl<'a> CreatePaymentLinkBuilderShippingOptions<'a> { pub fn new() -> Self { - Self::default() + Self { shipping_rate: None } } } /// When creating a subscription, the specified configuration data will be used. /// There must be at least one line item with a recurring price to use `subscription_data`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentLinkBuilderSubscriptionData<'a> { /// The subscription's description, meant to be displayable to the customer. /// Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. @@ -1902,7 +1916,7 @@ pub struct CreatePaymentLinkBuilderSubscriptionData<'a> { } impl<'a> CreatePaymentLinkBuilderSubscriptionData<'a> { pub fn new() -> Self { - Self::default() + Self { description: None, metadata: None, trial_period_days: None } } } /// Controls tax ID collection during checkout. @@ -2135,7 +2149,7 @@ impl StripeRequest for CreatePaymentLink<'_> { RequestBuilder::new(StripeMethod::Post, "/payment_links").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentLinkBuilder<'a> { /// Whether the payment link's `url` is active. /// If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated. @@ -2206,7 +2220,25 @@ pub struct UpdatePaymentLinkBuilder<'a> { } impl<'a> UpdatePaymentLinkBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + after_completion: None, + allow_promotion_codes: None, + automatic_tax: None, + billing_address_collection: None, + custom_fields: None, + custom_text: None, + customer_creation: None, + expand: None, + invoice_creation: None, + line_items: None, + metadata: None, + payment_intent_data: None, + payment_method_collection: None, + payment_method_types: None, + shipping_address_collection: None, + subscription_data: None, + } } } /// Behavior after the purchase is complete. @@ -2366,7 +2398,7 @@ impl serde::Serialize for UpdatePaymentLinkBuilderCustomFieldsLabelType { } } /// Configuration for `type=numeric` fields. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentLinkBuilderCustomFieldsNumeric { /// The maximum character length constraint for the customer's input. #[serde(skip_serializing_if = "Option::is_none")] @@ -2377,11 +2409,11 @@ pub struct UpdatePaymentLinkBuilderCustomFieldsNumeric { } impl UpdatePaymentLinkBuilderCustomFieldsNumeric { pub fn new() -> Self { - Self::default() + Self { maximum_length: None, minimum_length: None } } } /// Configuration for `type=text` fields. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentLinkBuilderCustomFieldsText { /// The maximum character length constraint for the customer's input. #[serde(skip_serializing_if = "Option::is_none")] @@ -2392,7 +2424,7 @@ pub struct UpdatePaymentLinkBuilderCustomFieldsText { } impl UpdatePaymentLinkBuilderCustomFieldsText { pub fn new() -> Self { - Self::default() + Self { maximum_length: None, minimum_length: None } } } /// The type of the field. @@ -2505,7 +2537,7 @@ impl<'a> UpdatePaymentLinkBuilderInvoiceCreation<'a> { } } /// Invoice PDF configuration. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentLinkBuilderInvoiceCreationInvoiceData<'a> { /// The account tax IDs associated with the invoice. #[serde(skip_serializing_if = "Option::is_none")] @@ -2532,11 +2564,18 @@ pub struct UpdatePaymentLinkBuilderInvoiceCreationInvoiceData<'a> { } impl<'a> UpdatePaymentLinkBuilderInvoiceCreationInvoiceData<'a> { pub fn new() -> Self { - Self::default() + Self { + account_tax_ids: None, + custom_fields: None, + description: None, + footer: None, + metadata: None, + rendering_options: None, + } } } /// Default options for invoice PDF rendering for this customer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentLinkBuilderInvoiceCreationInvoiceDataRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. /// One of `exclude_tax` or `include_inclusive_tax`. @@ -2548,7 +2587,7 @@ pub struct UpdatePaymentLinkBuilderInvoiceCreationInvoiceDataRenderingOptions { } impl UpdatePaymentLinkBuilderInvoiceCreationInvoiceDataRenderingOptions { pub fn new() -> Self { - Self::default() + Self { amount_tax_display: None } } } /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. @@ -2628,7 +2667,7 @@ impl<'a> UpdatePaymentLinkBuilderLineItems<'a> { } } /// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentLinkBuilderPaymentIntentData<'a> { /// An arbitrary string attached to the object. Often useful for displaying to users. #[serde(skip_serializing_if = "Option::is_none")] @@ -2650,7 +2689,12 @@ pub struct UpdatePaymentLinkBuilderPaymentIntentData<'a> { } impl<'a> UpdatePaymentLinkBuilderPaymentIntentData<'a> { pub fn new() -> Self { - Self::default() + Self { + description: None, + metadata: None, + statement_descriptor: None, + statement_descriptor_suffix: None, + } } } /// Specify whether Checkout should collect a payment method. @@ -3479,7 +3523,7 @@ impl serde::Serialize for UpdatePaymentLinkBuilderShippingAddressCollectionAllow } /// When creating a subscription, the specified configuration data will be used. /// There must be at least one line item with a recurring price to use `subscription_data`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentLinkBuilderSubscriptionData<'a> { /// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. /// Unlike object-level metadata, this field is declarative. @@ -3489,7 +3533,7 @@ pub struct UpdatePaymentLinkBuilderSubscriptionData<'a> { } impl<'a> UpdatePaymentLinkBuilderSubscriptionData<'a> { pub fn new() -> Self { - Self::default() + Self { metadata: None } } } /// Updates a payment link. @@ -3643,7 +3687,7 @@ impl StripeRequest for UpdatePaymentLink<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct AfterCompletionConfirmationPageParams<'a> { /// A custom message to display to the customer after the purchase is complete. #[serde(skip_serializing_if = "Option::is_none")] @@ -3651,7 +3695,7 @@ pub struct AfterCompletionConfirmationPageParams<'a> { } impl<'a> AfterCompletionConfirmationPageParams<'a> { pub fn new() -> Self { - Self::default() + Self { custom_message: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -3740,7 +3784,7 @@ impl<'a> CustomFieldDropdownParam<'a> { Self { options } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CustomTextParam<'a> { /// Custom text that should be displayed alongside shipping address collection. #[serde(skip_serializing_if = "Option::is_none")] @@ -3754,6 +3798,6 @@ pub struct CustomTextParam<'a> { } impl<'a> CustomTextParam<'a> { pub fn new() -> Self { - Self::default() + Self { shipping_address: None, submit: None, terms_of_service_acceptance: None } } } diff --git a/generated/stripe_payment/src/payment_method/requests.rs b/generated/stripe_payment/src/payment_method/requests.rs index d75b7698e..890e001c6 100644 --- a/generated/stripe_payment/src/payment_method/requests.rs +++ b/generated/stripe_payment/src/payment_method/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilder<'a> { /// If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -137,7 +137,48 @@ pub struct CreatePaymentMethodBuilder<'a> { } impl<'a> CreatePaymentMethodBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + affirm: None, + afterpay_clearpay: None, + alipay: None, + au_becs_debit: None, + bacs_debit: None, + bancontact: None, + billing_details: None, + blik: None, + boleto: None, + card: None, + cashapp: None, + customer: None, + customer_balance: None, + eps: None, + expand: None, + fpx: None, + giropay: None, + grabpay: None, + ideal: None, + interac_present: None, + klarna: None, + konbini: None, + link: None, + metadata: None, + oxxo: None, + p24: None, + payment_method: None, + paynow: None, + paypal: None, + pix: None, + promptpay: None, + radar_options: None, + revolut_pay: None, + sepa_debit: None, + sofort: None, + type_: None, + us_bank_account: None, + wechat_pay: None, + zip: None, + } } } /// If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. @@ -173,7 +214,7 @@ impl<'a> CreatePaymentMethodBuilderAuBecsDebit<'a> { } } /// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilderBacsDebit<'a> { /// Account number of the bank account that the funds will be debited from. #[serde(skip_serializing_if = "Option::is_none")] @@ -184,7 +225,7 @@ pub struct CreatePaymentMethodBuilderBacsDebit<'a> { } impl<'a> CreatePaymentMethodBuilderBacsDebit<'a> { pub fn new() -> Self { - Self::default() + Self { account_number: None, sort_code: None } } } /// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -244,7 +285,7 @@ impl<'a> CreatePaymentMethodBuilderTokenParams<'a> { } } /// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilderEps { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -252,7 +293,7 @@ pub struct CreatePaymentMethodBuilderEps { } impl CreatePaymentMethodBuilderEps { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -554,7 +595,7 @@ impl serde::Serialize for CreatePaymentMethodBuilderFpxBank { } } /// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilderIdeal { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -562,7 +603,7 @@ pub struct CreatePaymentMethodBuilderIdeal { } impl CreatePaymentMethodBuilderIdeal { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -655,7 +696,7 @@ impl serde::Serialize for CreatePaymentMethodBuilderIdealBank { } } /// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilderKlarna { /// Customer's date of birth #[serde(skip_serializing_if = "Option::is_none")] @@ -663,7 +704,7 @@ pub struct CreatePaymentMethodBuilderKlarna { } impl CreatePaymentMethodBuilderKlarna { pub fn new() -> Self { - Self::default() + Self { dob: None } } } /// Customer's date of birth @@ -682,7 +723,7 @@ impl CreatePaymentMethodBuilderKlarnaDob { } } /// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilderP24 { /// The customer's bank. #[serde(skip_serializing_if = "Option::is_none")] @@ -690,7 +731,7 @@ pub struct CreatePaymentMethodBuilderP24 { } impl CreatePaymentMethodBuilderP24 { pub fn new() -> Self { - Self::default() + Self { bank: None } } } /// The customer's bank. @@ -814,7 +855,7 @@ impl serde::Serialize for CreatePaymentMethodBuilderP24Bank { } /// Options to configure Radar. /// See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilderRadarOptions<'a> { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] @@ -822,7 +863,7 @@ pub struct CreatePaymentMethodBuilderRadarOptions<'a> { } impl<'a> CreatePaymentMethodBuilderRadarOptions<'a> { pub fn new() -> Self { - Self::default() + Self { session: None } } } /// If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. @@ -1048,7 +1089,7 @@ impl serde::Serialize for CreatePaymentMethodBuilderType { } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodBuilderUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -1068,7 +1109,13 @@ pub struct CreatePaymentMethodBuilderUsBankAccount<'a> { } impl<'a> CreatePaymentMethodBuilderUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -1407,7 +1454,7 @@ impl StripeRequest for CreatePaymentMethod<'_> { RequestBuilder::new(StripeMethod::Post, "/payment_methods").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePaymentMethodBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1415,7 +1462,7 @@ pub struct RetrievePaymentMethodBuilder<'a> { } impl<'a> RetrievePaymentMethodBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a PaymentMethod object attached to the StripeAccount. @@ -1459,7 +1506,7 @@ impl StripeRequest for RetrievePaymentMethod<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodBuilder<'a> { /// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. #[serde(skip_serializing_if = "Option::is_none")] @@ -1485,11 +1532,18 @@ pub struct UpdatePaymentMethodBuilder<'a> { } impl<'a> UpdatePaymentMethodBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + billing_details: None, + card: None, + expand: None, + link: None, + metadata: None, + us_bank_account: None, + } } } /// If this is a `card` PaymentMethod, this hash contains the user's card details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodBuilderCard { /// Two-digit number representing the card's expiration month. #[serde(skip_serializing_if = "Option::is_none")] @@ -1500,11 +1554,11 @@ pub struct UpdatePaymentMethodBuilderCard { } impl UpdatePaymentMethodBuilderCard { pub fn new() -> Self { - Self::default() + Self { exp_month: None, exp_year: None } } } /// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodBuilderUsBankAccount { /// Bank account type. #[serde(skip_serializing_if = "Option::is_none")] @@ -1512,7 +1566,7 @@ pub struct UpdatePaymentMethodBuilderUsBankAccount { } impl UpdatePaymentMethodBuilderUsBankAccount { pub fn new() -> Self { - Self::default() + Self { account_holder_type: None } } } /// Bank account type. @@ -1629,7 +1683,7 @@ impl StripeRequest for UpdatePaymentMethod<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPaymentMethodBuilder<'a> { /// The ID of the customer whose PaymentMethods will be retrieved. #[serde(skip_serializing_if = "Option::is_none")] @@ -1660,7 +1714,14 @@ pub struct ListPaymentMethodBuilder<'a> { } impl<'a> ListPaymentMethodBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + customer: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + type_: None, + } } } /// An optional filter on the list, based on the object `type` field. @@ -1934,7 +1995,7 @@ impl StripeRequest for AttachPaymentMethod<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DetachPaymentMethodBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1942,7 +2003,7 @@ pub struct DetachPaymentMethodBuilder<'a> { } impl<'a> DetachPaymentMethodBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Detaches a PaymentMethod object from a Customer. @@ -1987,7 +2048,7 @@ impl StripeRequest for DetachPaymentMethod<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BillingDetailsAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -2010,10 +2071,10 @@ pub struct BillingDetailsAddress<'a> { } impl<'a> BillingDetailsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct BillingDetailsInnerParams<'a> { /// Billing address. #[serde(skip_serializing_if = "Option::is_none")] @@ -2030,6 +2091,6 @@ pub struct BillingDetailsInnerParams<'a> { } impl<'a> BillingDetailsInnerParams<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } diff --git a/generated/stripe_payment/src/payment_method_configuration/requests.rs b/generated/stripe_payment/src/payment_method_configuration/requests.rs index 76213e222..41568ba6f 100644 --- a/generated/stripe_payment/src/payment_method_configuration/requests.rs +++ b/generated/stripe_payment/src/payment_method_configuration/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPaymentMethodConfigurationBuilder<'a> { /// The Connect application to filter by. #[serde(skip_serializing_if = "Option::is_none")] @@ -13,7 +13,7 @@ pub struct ListPaymentMethodConfigurationBuilder<'a> { } impl<'a> ListPaymentMethodConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { application: None, expand: None } } } /// List payment method configurations @@ -58,7 +58,7 @@ impl StripeRequest for ListPaymentMethodConfiguration<'_> { RequestBuilder::new(StripeMethod::Get, "/payment_method_configurations").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePaymentMethodConfigurationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -66,7 +66,7 @@ pub struct RetrievePaymentMethodConfigurationBuilder<'a> { } impl<'a> RetrievePaymentMethodConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieve payment method configuration @@ -112,7 +112,7 @@ impl StripeRequest for RetrievePaymentMethodConfiguration<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilder<'a> { /// Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability. #[serde(skip_serializing_if = "Option::is_none")] @@ -278,11 +278,48 @@ pub struct UpdatePaymentMethodConfigurationBuilder<'a> { } impl<'a> UpdatePaymentMethodConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + active: None, + affirm: None, + afterpay_clearpay: None, + alipay: None, + apple_pay: None, + apple_pay_later: None, + au_becs_debit: None, + bacs_debit: None, + bancontact: None, + blik: None, + boleto: None, + card: None, + cartes_bancaires: None, + cashapp: None, + eps: None, + expand: None, + fpx: None, + giropay: None, + google_pay: None, + grabpay: None, + ideal: None, + jcb: None, + klarna: None, + konbini: None, + link: None, + name: None, + oxxo: None, + p24: None, + paynow: None, + paypal: None, + promptpay: None, + sepa_debit: None, + sofort: None, + us_bank_account: None, + wechat_pay: None, + } } } /// Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAcssDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -291,11 +328,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderAcssDebit { } impl UpdatePaymentMethodConfigurationBuilderAcssDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAcssDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -304,7 +341,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderAcssDebitDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderAcssDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -367,7 +404,7 @@ impl serde::Serialize /// [Affirm](https://www.affirm.com/) gives your customers a way to split purchases over a series of payments. /// Depending on the purchase, they can pay with four interest-free payments (Split Pay) or pay over a longer term (Installments), which might include interest. /// Check this [page](https://stripe.com/docs/payments/affirm) for more details like country availability. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAffirm { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -375,11 +412,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderAffirm { } impl UpdatePaymentMethodConfigurationBuilderAffirm { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAffirmDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -388,7 +425,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderAffirmDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderAffirmDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -446,7 +483,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderAffirmDisplayPr } /// Afterpay gives your customers a way to pay for purchases in installments, check this [page](https://stripe.com/docs/payments/afterpay-clearpay) for more details like country availability. /// Afterpay is particularly popular among businesses selling fashion, beauty, and sports products. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAfterpayClearpay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -455,11 +492,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderAfterpayClearpay { } impl UpdatePaymentMethodConfigurationBuilderAfterpayClearpay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAfterpayClearpayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -468,7 +505,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderAfterpayClearpayDisplayPrefere } impl UpdatePaymentMethodConfigurationBuilderAfterpayClearpayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -532,7 +569,7 @@ impl serde::Serialize /// Alipay users can pay on the web or on a mobile device using login credentials or their Alipay app. /// Alipay has a low dispute rate and reduces fraud by authenticating payments using the customer's login credentials. /// Check this [page](https://stripe.com/docs/payments/alipay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAlipay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -540,11 +577,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderAlipay { } impl UpdatePaymentMethodConfigurationBuilderAlipay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAlipayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -553,7 +590,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderAlipayDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderAlipayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -612,7 +649,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderAlipayDisplayPr /// Stripe users can accept [Apple Pay](/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. /// There are no additional fees to process Apple Pay payments, and the [pricing](/pricing) is the same as other card transactions. /// Check this [page](https://stripe.com/docs/apple-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderApplePay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -621,11 +658,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderApplePay { } impl UpdatePaymentMethodConfigurationBuilderApplePay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderApplePayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -634,7 +671,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderApplePayDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderApplePayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -695,7 +732,7 @@ impl serde::Serialize } } /// Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderApplePayLater { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -704,11 +741,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderApplePayLater { } impl UpdatePaymentMethodConfigurationBuilderApplePayLater { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderApplePayLaterDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -717,7 +754,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderApplePayLaterDisplayPreference } impl UpdatePaymentMethodConfigurationBuilderApplePayLaterDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -779,7 +816,7 @@ impl serde::Serialize } /// Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with an Australian bank account. /// Check this [page](https://stripe.com/docs/payments/au-becs-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAuBecsDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -788,11 +825,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderAuBecsDebit { } impl UpdatePaymentMethodConfigurationBuilderAuBecsDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderAuBecsDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -801,7 +838,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderAuBecsDebitDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderAuBecsDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -862,7 +899,7 @@ impl serde::Serialize } } /// Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK bank account, check this [page](https://stripe.com/docs/payments/payment-methods/bacs-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBacsDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -871,11 +908,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderBacsDebit { } impl UpdatePaymentMethodConfigurationBuilderBacsDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBacsDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -884,7 +921,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderBacsDebitDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderBacsDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -947,7 +984,7 @@ impl serde::Serialize /// Bancontact is the most popular online payment method in Belgium, with over 15 million cards in circulation. /// [Customers](https://stripe.com/docs/api/customers) use a Bancontact card or mobile app linked to a Belgian bank account to make online payments that are secure, guaranteed, and confirmed immediately. /// Check this [page](https://stripe.com/docs/payments/bancontact) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBancontact { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -956,11 +993,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderBancontact { } impl UpdatePaymentMethodConfigurationBuilderBancontact { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBancontactDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -969,7 +1006,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderBancontactDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderBancontactDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1032,7 +1069,7 @@ impl serde::Serialize /// BLIK is a [single use](https://stripe.com/docs/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. /// When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. /// Check this [page](https://stripe.com/docs/payments/blik) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBlik { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1040,11 +1077,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderBlik { } impl UpdatePaymentMethodConfigurationBuilderBlik { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBlikDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1052,7 +1089,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderBlikDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderBlikDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1106,7 +1143,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderBlikDisplayPref } /// Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. /// Check this [page](https://stripe.com/docs/payments/boleto) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBoleto { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1114,11 +1151,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderBoleto { } impl UpdatePaymentMethodConfigurationBuilderBoleto { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderBoletoDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1127,7 +1164,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderBoletoDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderBoletoDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1185,7 +1222,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderBoletoDisplayPr } /// Cards are a popular way for consumers and businesses to pay online or in person. /// Stripe supports global and local card networks. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderCard { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1193,11 +1230,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderCard { } impl UpdatePaymentMethodConfigurationBuilderCard { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderCardDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1205,7 +1242,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderCardDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderCardDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1260,7 +1297,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderCardDisplayPref /// Cartes Bancaires is France's local card network. /// More than 95% of these cards are co-branded with either Visa or Mastercard, meaning you can process these cards over either Cartes Bancaires or the Visa or Mastercard networks. /// Check this [page](https://stripe.com/docs/payments/cartes-bancaires) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderCartesBancaires { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1269,11 +1306,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderCartesBancaires { } impl UpdatePaymentMethodConfigurationBuilderCartesBancaires { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderCartesBancairesDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1282,7 +1319,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderCartesBancairesDisplayPreferen } impl UpdatePaymentMethodConfigurationBuilderCartesBancairesDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1344,7 +1381,7 @@ impl serde::Serialize } /// Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. /// Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderCashapp { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1352,11 +1389,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderCashapp { } impl UpdatePaymentMethodConfigurationBuilderCashapp { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderCashappDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1365,7 +1402,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderCashappDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderCashappDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1426,7 +1463,7 @@ impl serde::Serialize /// EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. /// EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. /// Check this [page](https://stripe.com/docs/payments/eps) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderEps { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1434,11 +1471,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderEps { } impl UpdatePaymentMethodConfigurationBuilderEps { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderEpsDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1446,7 +1483,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderEpsDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderEpsDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1502,7 +1539,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderEpsDisplayPrefe /// Bank Negara Malaysia (BNM), the Central Bank of Malaysia, and eleven other major Malaysian financial institutions are members of the PayNet Group, which owns and operates FPX. /// It is one of the most popular online payment methods in Malaysia, with nearly 90 million transactions in 2018 according to BNM. /// Check this [page](https://stripe.com/docs/payments/fpx) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderFpx { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1510,11 +1547,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderFpx { } impl UpdatePaymentMethodConfigurationBuilderFpx { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderFpxDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1522,7 +1559,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderFpxDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderFpxDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1579,7 +1616,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderFpxDisplayPrefe /// Depending on their bank, customers confirm payments on giropay using a second factor of authentication or a PIN. /// giropay accounts for 10% of online checkouts in Germany. /// Check this [page](https://stripe.com/docs/payments/giropay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderGiropay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1587,11 +1624,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderGiropay { } impl UpdatePaymentMethodConfigurationBuilderGiropay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderGiropayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1600,7 +1637,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderGiropayDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderGiropayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1661,7 +1698,7 @@ impl serde::Serialize /// Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. /// Use the Google Pay API to request any credit or debit card stored in your customer's Google account. /// Check this [page](https://stripe.com/docs/google-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderGooglePay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1670,11 +1707,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderGooglePay { } impl UpdatePaymentMethodConfigurationBuilderGooglePay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderGooglePayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1683,7 +1720,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderGooglePayDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderGooglePayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1746,7 +1783,7 @@ impl serde::Serialize /// GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). /// GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. /// Check this [page](https://stripe.com/docs/payments/grabpay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderGrabpay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1754,11 +1791,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderGrabpay { } impl UpdatePaymentMethodConfigurationBuilderGrabpay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderGrabpayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1767,7 +1804,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderGrabpayDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderGrabpayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1828,7 +1865,7 @@ impl serde::Serialize /// iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. /// All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. /// Check this [page](https://stripe.com/docs/payments/ideal) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderIdeal { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1836,11 +1873,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderIdeal { } impl UpdatePaymentMethodConfigurationBuilderIdeal { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderIdealDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1848,7 +1885,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderIdealDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderIdealDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1903,7 +1940,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderIdealDisplayPre /// JCB is a credit card company based in Japan. /// JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. /// Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderJcb { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1911,11 +1948,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderJcb { } impl UpdatePaymentMethodConfigurationBuilderJcb { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderJcbDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -1923,7 +1960,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderJcbDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderJcbDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -1979,7 +2016,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderJcbDisplayPrefe /// Available payment options vary depending on the customer's billing address and the transaction amount. /// These payment options make it convenient for customers to purchase items in all price ranges. /// Check this [page](https://stripe.com/docs/payments/klarna) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderKlarna { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -1987,11 +2024,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderKlarna { } impl UpdatePaymentMethodConfigurationBuilderKlarna { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderKlarnaDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2000,7 +2037,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderKlarnaDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderKlarnaDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2058,7 +2095,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderKlarnaDisplayPr } /// Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. /// Check this [page](https://stripe.com/docs/payments/konbini) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderKonbini { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2066,11 +2103,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderKonbini { } impl UpdatePaymentMethodConfigurationBuilderKonbini { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderKonbiniDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2079,7 +2116,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderKonbiniDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderKonbiniDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2139,7 +2176,7 @@ impl serde::Serialize } /// [Link](https://stripe.com/docs/payments/link) is a payment method network. /// With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderLink { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2147,11 +2184,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderLink { } impl UpdatePaymentMethodConfigurationBuilderLink { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderLinkDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2159,7 +2196,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderLinkDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderLinkDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2214,7 +2251,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderLinkDisplayPref /// OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. /// OXXO allows customers to pay bills and online purchases in-store with cash. /// Check this [page](https://stripe.com/docs/payments/oxxo) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderOxxo { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2222,11 +2259,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderOxxo { } impl UpdatePaymentMethodConfigurationBuilderOxxo { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderOxxoDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2234,7 +2271,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderOxxoDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderOxxoDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2289,7 +2326,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderOxxoDisplayPref /// Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. /// Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. /// Check this [page](https://stripe.com/docs/payments/p24) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderP24 { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2297,11 +2334,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderP24 { } impl UpdatePaymentMethodConfigurationBuilderP24 { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderP24DisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2309,7 +2346,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderP24DisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderP24DisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2363,7 +2400,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderP24DisplayPrefe } /// PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. /// Check this [page](https://stripe.com/docs/payments/paynow) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderPaynow { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2371,11 +2408,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderPaynow { } impl UpdatePaymentMethodConfigurationBuilderPaynow { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderPaynowDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2384,7 +2421,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderPaynowDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderPaynowDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2442,7 +2479,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderPaynowDisplayPr } /// PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. /// Check this [page](https://stripe.com/docs/payments/paypal) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderPaypal { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2450,11 +2487,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderPaypal { } impl UpdatePaymentMethodConfigurationBuilderPaypal { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderPaypalDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2463,7 +2500,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderPaypalDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderPaypalDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2521,7 +2558,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderPaypalDisplayPr } /// PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. /// Check this [page](https://stripe.com/docs/payments/promptpay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderPromptpay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2530,11 +2567,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderPromptpay { } impl UpdatePaymentMethodConfigurationBuilderPromptpay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderPromptpayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2543,7 +2580,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderPromptpayDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderPromptpayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2605,7 +2642,7 @@ impl serde::Serialize } /// The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. /// SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderSepaDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2614,11 +2651,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderSepaDebit { } impl UpdatePaymentMethodConfigurationBuilderSepaDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderSepaDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2627,7 +2664,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderSepaDebitDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderSepaDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2689,7 +2726,7 @@ impl serde::Serialize } /// Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. /// Check this [page](https://stripe.com/docs/payments/sofort) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderSofort { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2697,11 +2734,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderSofort { } impl UpdatePaymentMethodConfigurationBuilderSofort { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderSofortDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2710,7 +2747,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderSofortDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderSofortDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2768,7 +2805,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBuilderSofortDisplayPr } /// Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. /// Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderUsBankAccount { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2777,11 +2814,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderUsBankAccount { } impl UpdatePaymentMethodConfigurationBuilderUsBankAccount { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderUsBankAccountDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2790,7 +2827,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderUsBankAccountDisplayPreference } impl UpdatePaymentMethodConfigurationBuilderUsBankAccountDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -2854,7 +2891,7 @@ impl serde::Serialize /// Chinese consumers can use WeChat Pay to pay for goods and services inside of businesses' apps and websites. /// WeChat Pay users buy most frequently in gaming, e-commerce, travel, online education, and food/nutrition. /// Check this [page](https://stripe.com/docs/payments/wechat-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderWechatPay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -2863,11 +2900,11 @@ pub struct UpdatePaymentMethodConfigurationBuilderWechatPay { } impl UpdatePaymentMethodConfigurationBuilderWechatPay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodConfigurationBuilderWechatPayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -2876,7 +2913,7 @@ pub struct UpdatePaymentMethodConfigurationBuilderWechatPayDisplayPreference { } impl UpdatePaymentMethodConfigurationBuilderWechatPayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3190,7 +3227,7 @@ impl StripeRequest for UpdatePaymentMethodConfiguration<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilder<'a> { /// Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability. #[serde(skip_serializing_if = "Option::is_none")] @@ -3356,11 +3393,48 @@ pub struct CreatePaymentMethodConfigurationBuilder<'a> { } impl<'a> CreatePaymentMethodConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + acss_debit: None, + affirm: None, + afterpay_clearpay: None, + alipay: None, + apple_pay: None, + apple_pay_later: None, + au_becs_debit: None, + bacs_debit: None, + bancontact: None, + blik: None, + boleto: None, + card: None, + cartes_bancaires: None, + cashapp: None, + eps: None, + expand: None, + fpx: None, + giropay: None, + google_pay: None, + grabpay: None, + ideal: None, + jcb: None, + klarna: None, + konbini: None, + link: None, + name: None, + oxxo: None, + p24: None, + parent: None, + paynow: None, + paypal: None, + promptpay: None, + sepa_debit: None, + sofort: None, + us_bank_account: None, + wechat_pay: None, + } } } /// Canadian pre-authorized debit payments, check this [page](https://stripe.com/docs/payments/acss-debit) for more details like country availability. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAcssDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3369,11 +3443,11 @@ pub struct CreatePaymentMethodConfigurationBuilderAcssDebit { } impl CreatePaymentMethodConfigurationBuilderAcssDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAcssDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3382,7 +3456,7 @@ pub struct CreatePaymentMethodConfigurationBuilderAcssDebitDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderAcssDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3445,7 +3519,7 @@ impl serde::Serialize /// [Affirm](https://www.affirm.com/) gives your customers a way to split purchases over a series of payments. /// Depending on the purchase, they can pay with four interest-free payments (Split Pay) or pay over a longer term (Installments), which might include interest. /// Check this [page](https://stripe.com/docs/payments/affirm) for more details like country availability. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAffirm { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3453,11 +3527,11 @@ pub struct CreatePaymentMethodConfigurationBuilderAffirm { } impl CreatePaymentMethodConfigurationBuilderAffirm { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAffirmDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3466,7 +3540,7 @@ pub struct CreatePaymentMethodConfigurationBuilderAffirmDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderAffirmDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3524,7 +3598,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderAffirmDisplayPr } /// Afterpay gives your customers a way to pay for purchases in installments, check this [page](https://stripe.com/docs/payments/afterpay-clearpay) for more details like country availability. /// Afterpay is particularly popular among businesses selling fashion, beauty, and sports products. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAfterpayClearpay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3533,11 +3607,11 @@ pub struct CreatePaymentMethodConfigurationBuilderAfterpayClearpay { } impl CreatePaymentMethodConfigurationBuilderAfterpayClearpay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAfterpayClearpayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3546,7 +3620,7 @@ pub struct CreatePaymentMethodConfigurationBuilderAfterpayClearpayDisplayPrefere } impl CreatePaymentMethodConfigurationBuilderAfterpayClearpayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3610,7 +3684,7 @@ impl serde::Serialize /// Alipay users can pay on the web or on a mobile device using login credentials or their Alipay app. /// Alipay has a low dispute rate and reduces fraud by authenticating payments using the customer's login credentials. /// Check this [page](https://stripe.com/docs/payments/alipay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAlipay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3618,11 +3692,11 @@ pub struct CreatePaymentMethodConfigurationBuilderAlipay { } impl CreatePaymentMethodConfigurationBuilderAlipay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAlipayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3631,7 +3705,7 @@ pub struct CreatePaymentMethodConfigurationBuilderAlipayDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderAlipayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3690,7 +3764,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderAlipayDisplayPr /// Stripe users can accept [Apple Pay](/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. /// There are no additional fees to process Apple Pay payments, and the [pricing](/pricing) is the same as other card transactions. /// Check this [page](https://stripe.com/docs/apple-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderApplePay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3699,11 +3773,11 @@ pub struct CreatePaymentMethodConfigurationBuilderApplePay { } impl CreatePaymentMethodConfigurationBuilderApplePay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderApplePayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3712,7 +3786,7 @@ pub struct CreatePaymentMethodConfigurationBuilderApplePayDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderApplePayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3773,7 +3847,7 @@ impl serde::Serialize } } /// Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderApplePayLater { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3782,11 +3856,11 @@ pub struct CreatePaymentMethodConfigurationBuilderApplePayLater { } impl CreatePaymentMethodConfigurationBuilderApplePayLater { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderApplePayLaterDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3795,7 +3869,7 @@ pub struct CreatePaymentMethodConfigurationBuilderApplePayLaterDisplayPreference } impl CreatePaymentMethodConfigurationBuilderApplePayLaterDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3857,7 +3931,7 @@ impl serde::Serialize } /// Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with an Australian bank account. /// Check this [page](https://stripe.com/docs/payments/au-becs-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAuBecsDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3866,11 +3940,11 @@ pub struct CreatePaymentMethodConfigurationBuilderAuBecsDebit { } impl CreatePaymentMethodConfigurationBuilderAuBecsDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderAuBecsDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3879,7 +3953,7 @@ pub struct CreatePaymentMethodConfigurationBuilderAuBecsDebitDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderAuBecsDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -3940,7 +4014,7 @@ impl serde::Serialize } } /// Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK bank account, check this [page](https://stripe.com/docs/payments/payment-methods/bacs-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBacsDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -3949,11 +4023,11 @@ pub struct CreatePaymentMethodConfigurationBuilderBacsDebit { } impl CreatePaymentMethodConfigurationBuilderBacsDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBacsDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -3962,7 +4036,7 @@ pub struct CreatePaymentMethodConfigurationBuilderBacsDebitDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderBacsDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4025,7 +4099,7 @@ impl serde::Serialize /// Bancontact is the most popular online payment method in Belgium, with over 15 million cards in circulation. /// [Customers](https://stripe.com/docs/api/customers) use a Bancontact card or mobile app linked to a Belgian bank account to make online payments that are secure, guaranteed, and confirmed immediately. /// Check this [page](https://stripe.com/docs/payments/bancontact) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBancontact { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4034,11 +4108,11 @@ pub struct CreatePaymentMethodConfigurationBuilderBancontact { } impl CreatePaymentMethodConfigurationBuilderBancontact { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBancontactDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4047,7 +4121,7 @@ pub struct CreatePaymentMethodConfigurationBuilderBancontactDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderBancontactDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4110,7 +4184,7 @@ impl serde::Serialize /// BLIK is a [single use](https://stripe.com/docs/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. /// When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. /// Check this [page](https://stripe.com/docs/payments/blik) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBlik { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4118,11 +4192,11 @@ pub struct CreatePaymentMethodConfigurationBuilderBlik { } impl CreatePaymentMethodConfigurationBuilderBlik { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBlikDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4130,7 +4204,7 @@ pub struct CreatePaymentMethodConfigurationBuilderBlikDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderBlikDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4184,7 +4258,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderBlikDisplayPref } /// Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. /// Check this [page](https://stripe.com/docs/payments/boleto) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBoleto { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4192,11 +4266,11 @@ pub struct CreatePaymentMethodConfigurationBuilderBoleto { } impl CreatePaymentMethodConfigurationBuilderBoleto { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderBoletoDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4205,7 +4279,7 @@ pub struct CreatePaymentMethodConfigurationBuilderBoletoDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderBoletoDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4263,7 +4337,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderBoletoDisplayPr } /// Cards are a popular way for consumers and businesses to pay online or in person. /// Stripe supports global and local card networks. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderCard { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4271,11 +4345,11 @@ pub struct CreatePaymentMethodConfigurationBuilderCard { } impl CreatePaymentMethodConfigurationBuilderCard { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderCardDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4283,7 +4357,7 @@ pub struct CreatePaymentMethodConfigurationBuilderCardDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderCardDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4338,7 +4412,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderCardDisplayPref /// Cartes Bancaires is France's local card network. /// More than 95% of these cards are co-branded with either Visa or Mastercard, meaning you can process these cards over either Cartes Bancaires or the Visa or Mastercard networks. /// Check this [page](https://stripe.com/docs/payments/cartes-bancaires) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderCartesBancaires { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4347,11 +4421,11 @@ pub struct CreatePaymentMethodConfigurationBuilderCartesBancaires { } impl CreatePaymentMethodConfigurationBuilderCartesBancaires { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderCartesBancairesDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4360,7 +4434,7 @@ pub struct CreatePaymentMethodConfigurationBuilderCartesBancairesDisplayPreferen } impl CreatePaymentMethodConfigurationBuilderCartesBancairesDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4422,7 +4496,7 @@ impl serde::Serialize } /// Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. /// Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderCashapp { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4430,11 +4504,11 @@ pub struct CreatePaymentMethodConfigurationBuilderCashapp { } impl CreatePaymentMethodConfigurationBuilderCashapp { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderCashappDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4443,7 +4517,7 @@ pub struct CreatePaymentMethodConfigurationBuilderCashappDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderCashappDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4504,7 +4578,7 @@ impl serde::Serialize /// EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. /// EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. /// Check this [page](https://stripe.com/docs/payments/eps) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderEps { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4512,11 +4586,11 @@ pub struct CreatePaymentMethodConfigurationBuilderEps { } impl CreatePaymentMethodConfigurationBuilderEps { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderEpsDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4524,7 +4598,7 @@ pub struct CreatePaymentMethodConfigurationBuilderEpsDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderEpsDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4580,7 +4654,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderEpsDisplayPrefe /// Bank Negara Malaysia (BNM), the Central Bank of Malaysia, and eleven other major Malaysian financial institutions are members of the PayNet Group, which owns and operates FPX. /// It is one of the most popular online payment methods in Malaysia, with nearly 90 million transactions in 2018 according to BNM. /// Check this [page](https://stripe.com/docs/payments/fpx) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderFpx { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4588,11 +4662,11 @@ pub struct CreatePaymentMethodConfigurationBuilderFpx { } impl CreatePaymentMethodConfigurationBuilderFpx { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderFpxDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4600,7 +4674,7 @@ pub struct CreatePaymentMethodConfigurationBuilderFpxDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderFpxDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4657,7 +4731,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderFpxDisplayPrefe /// Depending on their bank, customers confirm payments on giropay using a second factor of authentication or a PIN. /// giropay accounts for 10% of online checkouts in Germany. /// Check this [page](https://stripe.com/docs/payments/giropay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderGiropay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4665,11 +4739,11 @@ pub struct CreatePaymentMethodConfigurationBuilderGiropay { } impl CreatePaymentMethodConfigurationBuilderGiropay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderGiropayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4678,7 +4752,7 @@ pub struct CreatePaymentMethodConfigurationBuilderGiropayDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderGiropayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4739,7 +4813,7 @@ impl serde::Serialize /// Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. /// Use the Google Pay API to request any credit or debit card stored in your customer's Google account. /// Check this [page](https://stripe.com/docs/google-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderGooglePay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4748,11 +4822,11 @@ pub struct CreatePaymentMethodConfigurationBuilderGooglePay { } impl CreatePaymentMethodConfigurationBuilderGooglePay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderGooglePayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4761,7 +4835,7 @@ pub struct CreatePaymentMethodConfigurationBuilderGooglePayDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderGooglePayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4824,7 +4898,7 @@ impl serde::Serialize /// GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). /// GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. /// Check this [page](https://stripe.com/docs/payments/grabpay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderGrabpay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4832,11 +4906,11 @@ pub struct CreatePaymentMethodConfigurationBuilderGrabpay { } impl CreatePaymentMethodConfigurationBuilderGrabpay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderGrabpayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4845,7 +4919,7 @@ pub struct CreatePaymentMethodConfigurationBuilderGrabpayDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderGrabpayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4906,7 +4980,7 @@ impl serde::Serialize /// iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. /// All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. /// Check this [page](https://stripe.com/docs/payments/ideal) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderIdeal { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4914,11 +4988,11 @@ pub struct CreatePaymentMethodConfigurationBuilderIdeal { } impl CreatePaymentMethodConfigurationBuilderIdeal { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderIdealDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -4926,7 +5000,7 @@ pub struct CreatePaymentMethodConfigurationBuilderIdealDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderIdealDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -4981,7 +5055,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderIdealDisplayPre /// JCB is a credit card company based in Japan. /// JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. /// Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderJcb { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -4989,11 +5063,11 @@ pub struct CreatePaymentMethodConfigurationBuilderJcb { } impl CreatePaymentMethodConfigurationBuilderJcb { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderJcbDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5001,7 +5075,7 @@ pub struct CreatePaymentMethodConfigurationBuilderJcbDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderJcbDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5057,7 +5131,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderJcbDisplayPrefe /// Available payment options vary depending on the customer's billing address and the transaction amount. /// These payment options make it convenient for customers to purchase items in all price ranges. /// Check this [page](https://stripe.com/docs/payments/klarna) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderKlarna { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5065,11 +5139,11 @@ pub struct CreatePaymentMethodConfigurationBuilderKlarna { } impl CreatePaymentMethodConfigurationBuilderKlarna { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderKlarnaDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5078,7 +5152,7 @@ pub struct CreatePaymentMethodConfigurationBuilderKlarnaDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderKlarnaDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5136,7 +5210,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderKlarnaDisplayPr } /// Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. /// Check this [page](https://stripe.com/docs/payments/konbini) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderKonbini { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5144,11 +5218,11 @@ pub struct CreatePaymentMethodConfigurationBuilderKonbini { } impl CreatePaymentMethodConfigurationBuilderKonbini { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderKonbiniDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5157,7 +5231,7 @@ pub struct CreatePaymentMethodConfigurationBuilderKonbiniDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderKonbiniDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5217,7 +5291,7 @@ impl serde::Serialize } /// [Link](https://stripe.com/docs/payments/link) is a payment method network. /// With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderLink { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5225,11 +5299,11 @@ pub struct CreatePaymentMethodConfigurationBuilderLink { } impl CreatePaymentMethodConfigurationBuilderLink { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderLinkDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5237,7 +5311,7 @@ pub struct CreatePaymentMethodConfigurationBuilderLinkDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderLinkDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5292,7 +5366,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderLinkDisplayPref /// OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. /// OXXO allows customers to pay bills and online purchases in-store with cash. /// Check this [page](https://stripe.com/docs/payments/oxxo) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderOxxo { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5300,11 +5374,11 @@ pub struct CreatePaymentMethodConfigurationBuilderOxxo { } impl CreatePaymentMethodConfigurationBuilderOxxo { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderOxxoDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5312,7 +5386,7 @@ pub struct CreatePaymentMethodConfigurationBuilderOxxoDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderOxxoDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5367,7 +5441,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderOxxoDisplayPref /// Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. /// Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. /// Check this [page](https://stripe.com/docs/payments/p24) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderP24 { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5375,11 +5449,11 @@ pub struct CreatePaymentMethodConfigurationBuilderP24 { } impl CreatePaymentMethodConfigurationBuilderP24 { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderP24DisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5387,7 +5461,7 @@ pub struct CreatePaymentMethodConfigurationBuilderP24DisplayPreference { } impl CreatePaymentMethodConfigurationBuilderP24DisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5441,7 +5515,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderP24DisplayPrefe } /// PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. /// Check this [page](https://stripe.com/docs/payments/paynow) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderPaynow { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5449,11 +5523,11 @@ pub struct CreatePaymentMethodConfigurationBuilderPaynow { } impl CreatePaymentMethodConfigurationBuilderPaynow { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderPaynowDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5462,7 +5536,7 @@ pub struct CreatePaymentMethodConfigurationBuilderPaynowDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderPaynowDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5520,7 +5594,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderPaynowDisplayPr } /// PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. /// Check this [page](https://stripe.com/docs/payments/paypal) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderPaypal { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5528,11 +5602,11 @@ pub struct CreatePaymentMethodConfigurationBuilderPaypal { } impl CreatePaymentMethodConfigurationBuilderPaypal { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderPaypalDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5541,7 +5615,7 @@ pub struct CreatePaymentMethodConfigurationBuilderPaypalDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderPaypalDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5599,7 +5673,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderPaypalDisplayPr } /// PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. /// Check this [page](https://stripe.com/docs/payments/promptpay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderPromptpay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5608,11 +5682,11 @@ pub struct CreatePaymentMethodConfigurationBuilderPromptpay { } impl CreatePaymentMethodConfigurationBuilderPromptpay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderPromptpayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5621,7 +5695,7 @@ pub struct CreatePaymentMethodConfigurationBuilderPromptpayDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderPromptpayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5683,7 +5757,7 @@ impl serde::Serialize } /// The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. /// SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderSepaDebit { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5692,11 +5766,11 @@ pub struct CreatePaymentMethodConfigurationBuilderSepaDebit { } impl CreatePaymentMethodConfigurationBuilderSepaDebit { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderSepaDebitDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5705,7 +5779,7 @@ pub struct CreatePaymentMethodConfigurationBuilderSepaDebitDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderSepaDebitDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5767,7 +5841,7 @@ impl serde::Serialize } /// Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. /// Check this [page](https://stripe.com/docs/payments/sofort) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderSofort { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5775,11 +5849,11 @@ pub struct CreatePaymentMethodConfigurationBuilderSofort { } impl CreatePaymentMethodConfigurationBuilderSofort { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderSofortDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5788,7 +5862,7 @@ pub struct CreatePaymentMethodConfigurationBuilderSofortDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderSofortDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5846,7 +5920,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBuilderSofortDisplayPr } /// Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. /// Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderUsBankAccount { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5855,11 +5929,11 @@ pub struct CreatePaymentMethodConfigurationBuilderUsBankAccount { } impl CreatePaymentMethodConfigurationBuilderUsBankAccount { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderUsBankAccountDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5868,7 +5942,7 @@ pub struct CreatePaymentMethodConfigurationBuilderUsBankAccountDisplayPreference } impl CreatePaymentMethodConfigurationBuilderUsBankAccountDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. @@ -5932,7 +6006,7 @@ impl serde::Serialize /// Chinese consumers can use WeChat Pay to pay for goods and services inside of businesses' apps and websites. /// WeChat Pay users buy most frequently in gaming, e-commerce, travel, online education, and food/nutrition. /// Check this [page](https://stripe.com/docs/payments/wechat-pay) for more details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderWechatPay { /// Whether or not the payment method should be displayed. #[serde(skip_serializing_if = "Option::is_none")] @@ -5941,11 +6015,11 @@ pub struct CreatePaymentMethodConfigurationBuilderWechatPay { } impl CreatePaymentMethodConfigurationBuilderWechatPay { pub fn new() -> Self { - Self::default() + Self { display_preference: None } } } /// Whether or not the payment method should be displayed. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePaymentMethodConfigurationBuilderWechatPayDisplayPreference { /// The account's preference for whether or not to display this payment method. #[serde(skip_serializing_if = "Option::is_none")] @@ -5954,7 +6028,7 @@ pub struct CreatePaymentMethodConfigurationBuilderWechatPayDisplayPreference { } impl CreatePaymentMethodConfigurationBuilderWechatPayDisplayPreference { pub fn new() -> Self { - Self::default() + Self { preference: None } } } /// The account's preference for whether or not to display this payment method. diff --git a/generated/stripe_payment/src/payment_method_domain/requests.rs b/generated/stripe_payment/src/payment_method_domain/requests.rs index 73b036733..cef1fc626 100644 --- a/generated/stripe_payment/src/payment_method_domain/requests.rs +++ b/generated/stripe_payment/src/payment_method_domain/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePaymentMethodDomainBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrievePaymentMethodDomainBuilder<'a> { } impl<'a> RetrievePaymentMethodDomainBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing payment method domain. @@ -56,7 +56,7 @@ impl StripeRequest for RetrievePaymentMethodDomain<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPaymentMethodDomainBuilder<'a> { /// The domain name that this payment method domain object represents. #[serde(skip_serializing_if = "Option::is_none")] @@ -85,7 +85,14 @@ pub struct ListPaymentMethodDomainBuilder<'a> { } impl<'a> ListPaymentMethodDomainBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + domain_name: None, + enabled: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + } } } /// Lists the details of existing payment method domains. @@ -209,7 +216,7 @@ impl StripeRequest for CreatePaymentMethodDomain<'_> { RequestBuilder::new(StripeMethod::Post, "/payment_method_domains").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePaymentMethodDomainBuilder<'a> { /// Whether this payment method domain is enabled. /// If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements. @@ -221,7 +228,7 @@ pub struct UpdatePaymentMethodDomainBuilder<'a> { } impl<'a> UpdatePaymentMethodDomainBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { enabled: None, expand: None } } } /// Updates an existing payment method domain. @@ -272,7 +279,7 @@ impl StripeRequest for UpdatePaymentMethodDomain<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ValidatePaymentMethodDomainBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -280,7 +287,7 @@ pub struct ValidatePaymentMethodDomainBuilder<'a> { } impl<'a> ValidatePaymentMethodDomainBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Some payment methods such as Apple Pay require additional steps to verify a domain. diff --git a/generated/stripe_payment/src/source/requests.rs b/generated/stripe_payment/src/source/requests.rs index 9d6012245..3b47e7fce 100644 --- a/generated/stripe_payment/src/source/requests.rs +++ b/generated/stripe_payment/src/source/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct DetachSourceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct DetachSourceBuilder<'a> { } impl<'a> DetachSourceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Delete a specified source for a given customer. @@ -61,7 +61,7 @@ pub enum DetachSourceReturned { PaymentSource(stripe_shared::PaymentSource), DeletedPaymentSource(stripe_shared::DeletedPaymentSource), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveSourceBuilder<'a> { /// The client secret of the source. Required if a publishable key is used to retrieve the source. #[serde(skip_serializing_if = "Option::is_none")] @@ -72,7 +72,7 @@ pub struct RetrieveSourceBuilder<'a> { } impl<'a> RetrieveSourceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { client_secret: None, expand: None } } } /// Retrieves an existing source object. @@ -120,7 +120,7 @@ impl StripeRequest for RetrieveSource<'_> { RequestBuilder::new(StripeMethod::Get, format!("/sources/{source}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSourceBuilder<'a> { /// Amount associated with the source. /// This is the amount for which the source will be chargeable once ready. @@ -185,7 +185,24 @@ pub struct CreateSourceBuilder<'a> { } impl<'a> CreateSourceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + currency: None, + customer: None, + expand: None, + flow: None, + mandate: None, + metadata: None, + original_source: None, + owner: None, + receiver: None, + redirect: None, + source_order: None, + statement_descriptor: None, + token: None, + type_: None, + usage: None, + } } } /// The authentication `flow` of the source to create. @@ -243,7 +260,7 @@ impl serde::Serialize for CreateSourceBuilderFlow { } } /// Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSourceBuilderMandate<'a> { /// The parameters required to notify Stripe of a mandate acceptance or refusal by the customer. #[serde(skip_serializing_if = "Option::is_none")] @@ -265,7 +282,13 @@ pub struct CreateSourceBuilderMandate<'a> { } impl<'a> CreateSourceBuilderMandate<'a> { pub fn new() -> Self { - Self::default() + Self { + acceptance: None, + amount: None, + currency: None, + interval: None, + notification_method: None, + } } } /// The parameters required to notify Stripe of a mandate acceptance or refusal by the customer. @@ -516,7 +539,7 @@ impl serde::Serialize for CreateSourceBuilderMandateNotificationMethod { } /// Optional parameters for the receiver flow. /// Can be set only if the source is a receiver (`flow` is `receiver`). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSourceBuilderReceiver { /// The method Stripe should use to request information needed to process a refund or mispayment. /// Either `email` (an email is sent directly to the customer) or `manual` (a `source.refund_attributes_required` event is sent to your webhooks endpoint). @@ -526,7 +549,7 @@ pub struct CreateSourceBuilderReceiver { } impl CreateSourceBuilderReceiver { pub fn new() -> Self { - Self::default() + Self { refund_attributes_method: None } } } /// The method Stripe should use to request information needed to process a refund or mispayment. @@ -595,7 +618,7 @@ impl<'a> CreateSourceBuilderRedirect<'a> { } /// Information about the items and shipping associated with the source. /// Required for transactional credit (for example Klarna) sources before you can charge it. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSourceBuilderSourceOrder<'a> { /// List of items constituting the order. #[serde(skip_serializing_if = "Option::is_none")] @@ -607,11 +630,11 @@ pub struct CreateSourceBuilderSourceOrder<'a> { } impl<'a> CreateSourceBuilderSourceOrder<'a> { pub fn new() -> Self { - Self::default() + Self { items: None, shipping: None } } } /// List of items constituting the order. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateSourceBuilderSourceOrderItems<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub amount: Option, @@ -632,7 +655,14 @@ pub struct CreateSourceBuilderSourceOrderItems<'a> { } impl<'a> CreateSourceBuilderSourceOrderItems<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + currency: None, + description: None, + parent: None, + quantity: None, + type_: None, + } } } #[derive(Copy, Clone, Eq, PartialEq)] @@ -843,7 +873,7 @@ impl StripeRequest for CreateSource<'_> { RequestBuilder::new(StripeMethod::Post, "/sources").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSourceBuilder<'a> { /// Amount associated with the source. #[serde(skip_serializing_if = "Option::is_none")] @@ -870,11 +900,18 @@ pub struct UpdateSourceBuilder<'a> { } impl<'a> UpdateSourceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + expand: None, + mandate: None, + metadata: None, + owner: None, + source_order: None, + } } } /// Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSourceBuilderMandate<'a> { /// The parameters required to notify Stripe of a mandate acceptance or refusal by the customer. #[serde(skip_serializing_if = "Option::is_none")] @@ -896,7 +933,13 @@ pub struct UpdateSourceBuilderMandate<'a> { } impl<'a> UpdateSourceBuilderMandate<'a> { pub fn new() -> Self { - Self::default() + Self { + acceptance: None, + amount: None, + currency: None, + interval: None, + notification_method: None, + } } } /// The parameters required to notify Stripe of a mandate acceptance or refusal by the customer. @@ -1147,7 +1190,7 @@ impl serde::Serialize for UpdateSourceBuilderMandateNotificationMethod { } /// Information about the items and shipping associated with the source. /// Required for transactional credit (for example Klarna) sources before you can charge it. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSourceBuilderSourceOrder<'a> { /// List of items constituting the order. #[serde(skip_serializing_if = "Option::is_none")] @@ -1159,11 +1202,11 @@ pub struct UpdateSourceBuilderSourceOrder<'a> { } impl<'a> UpdateSourceBuilderSourceOrder<'a> { pub fn new() -> Self { - Self::default() + Self { items: None, shipping: None } } } /// List of items constituting the order. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateSourceBuilderSourceOrderItems<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub amount: Option, @@ -1184,7 +1227,14 @@ pub struct UpdateSourceBuilderSourceOrderItems<'a> { } impl<'a> UpdateSourceBuilderSourceOrderItems<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + currency: None, + description: None, + parent: None, + quantity: None, + type_: None, + } } } #[derive(Copy, Clone, Eq, PartialEq)] @@ -1360,7 +1410,7 @@ impl StripeRequest for VerifySource<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SourceTransactionsSourceBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -1382,7 +1432,7 @@ pub struct SourceTransactionsSourceBuilder<'a> { } impl<'a> SourceTransactionsSourceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// List source transactions for a given source. @@ -1451,7 +1501,7 @@ impl<'a> MandateOfflineAcceptanceParams<'a> { Self { contact_email } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct MandateOnlineAcceptanceParams<'a> { /// The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer. #[serde(skip_serializing_if = "Option::is_none")] @@ -1465,10 +1515,10 @@ pub struct MandateOnlineAcceptanceParams<'a> { } impl<'a> MandateOnlineAcceptanceParams<'a> { pub fn new() -> Self { - Self::default() + Self { date: None, ip: None, user_agent: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SourceAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -1491,7 +1541,7 @@ pub struct SourceAddress<'a> { } impl<'a> SourceAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] @@ -1519,7 +1569,7 @@ impl<'a> Address<'a> { Self { city: None, country: None, line1, line2: None, postal_code: None, state: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct Owner<'a> { /// Owner's address. #[serde(skip_serializing_if = "Option::is_none")] @@ -1536,7 +1586,7 @@ pub struct Owner<'a> { } impl<'a> Owner<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } #[derive(Copy, Clone, Debug, serde::Serialize)] diff --git a/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs b/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs index 6e8b5c44e..3fc3e21a3 100644 --- a/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs +++ b/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceMandateNotificationAcssDebitData { /// The statement descriptor associate with the debit. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs b/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs index 214203f0b..e9984c304 100644 --- a/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs +++ b/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceMandateNotificationBacsDebitData { /// Last 4 digits of the account number associated with the debit. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs b/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs index 1ac22700e..cad779bab 100644 --- a/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs +++ b/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceMandateNotificationSepaDebitData { /// SEPA creditor ID. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_product/src/coupon/requests.rs b/generated/stripe_product/src/coupon/requests.rs index a82b18082..f0bfab6be 100644 --- a/generated/stripe_product/src/coupon/requests.rs +++ b/generated/stripe_product/src/coupon/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListCouponBuilder<'a> { /// A filter on the list, based on the object `created` field. /// The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options. @@ -28,7 +28,7 @@ pub struct ListCouponBuilder<'a> { } impl<'a> ListCouponBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { created: None, ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of your coupons. @@ -88,7 +88,7 @@ impl StripeRequest for ListCoupon<'_> { RequestBuilder::new(StripeMethod::Get, "/coupons").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCouponBuilder<'a> { /// A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed). #[serde(skip_serializing_if = "Option::is_none")] @@ -141,11 +141,25 @@ pub struct CreateCouponBuilder<'a> { } impl<'a> CreateCouponBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount_off: None, + applies_to: None, + currency: None, + currency_options: None, + duration: None, + duration_in_months: None, + expand: None, + id: None, + max_redemptions: None, + metadata: None, + name: None, + percent_off: None, + redeem_by: None, + } } } /// A hash containing directions for what this Coupon will apply discounts to. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateCouponBuilderAppliesTo<'a> { /// An array of Product IDs that this Coupon will apply to. #[serde(skip_serializing_if = "Option::is_none")] @@ -153,7 +167,7 @@ pub struct CreateCouponBuilderAppliesTo<'a> { } impl<'a> CreateCouponBuilderAppliesTo<'a> { pub fn new() -> Self { - Self::default() + Self { products: None } } } /// You can create coupons easily via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. @@ -261,7 +275,7 @@ impl StripeRequest for CreateCoupon<'_> { RequestBuilder::new(StripeMethod::Post, "/coupons").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveCouponBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -269,7 +283,7 @@ pub struct RetrieveCouponBuilder<'a> { } impl<'a> RetrieveCouponBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the coupon with the given ID. @@ -311,7 +325,7 @@ impl StripeRequest for RetrieveCoupon<'_> { RequestBuilder::new(StripeMethod::Get, format!("/coupons/{coupon}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateCouponBuilder<'a> { /// Coupons defined in each available currency option (only supported if the coupon is amount-based). /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). @@ -334,7 +348,7 @@ pub struct UpdateCouponBuilder<'a> { } impl<'a> UpdateCouponBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { currency_options: None, expand: None, metadata: None, name: None } } } /// Updates the metadata of a coupon. diff --git a/generated/stripe_product/src/mod.rs b/generated/stripe_product/src/mod.rs index 544a4bd74..799a83ea4 100644 --- a/generated/stripe_product/src/mod.rs +++ b/generated/stripe_product/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_product/src/price/requests.rs b/generated/stripe_product/src/price/requests.rs index 0721827d0..fabf0e6a9 100644 --- a/generated/stripe_product/src/price/requests.rs +++ b/generated/stripe_product/src/price/requests.rs @@ -77,7 +77,7 @@ impl StripeRequest for SearchPrice<'_> { RequestBuilder::new(StripeMethod::Get, "/prices/search").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPriceBuilder<'a> { /// Only return prices that are active or inactive (e.g., pass `false` to list all inactive prices). #[serde(skip_serializing_if = "Option::is_none")] @@ -122,11 +122,23 @@ pub struct ListPriceBuilder<'a> { } impl<'a> ListPriceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + created: None, + currency: None, + ending_before: None, + expand: None, + limit: None, + lookup_keys: None, + product: None, + recurring: None, + starting_after: None, + type_: None, + } } } /// Only return prices with these recurring fields. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPriceBuilderRecurring { /// Filter by billing frequency. Either `day`, `week`, `month` or `year`. #[serde(skip_serializing_if = "Option::is_none")] @@ -137,7 +149,7 @@ pub struct ListPriceBuilderRecurring { } impl ListPriceBuilderRecurring { pub fn new() -> Self { - Self::default() + Self { interval: None, usage_type: None } } } /// Filter by billing frequency. Either `day`, `week`, `month` or `year`. @@ -432,7 +444,7 @@ impl<'a> CreatePriceBuilder<'a> { } /// Prices defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). -#[derive(Clone, Debug, Default, serde::Serialize)] +#[derive(Clone, Debug, serde::Serialize)] pub struct CreatePriceBuilderCurrencyOptions { /// When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. #[serde(skip_serializing_if = "Option::is_none")] @@ -458,7 +470,13 @@ pub struct CreatePriceBuilderCurrencyOptions { } impl CreatePriceBuilderCurrencyOptions { pub fn new() -> Self { - Self::default() + Self { + custom_unit_amount: None, + tax_behavior: None, + tiers: None, + unit_amount: None, + unit_amount_decimal: None, + } } } /// Each element represents a pricing tier. @@ -981,7 +999,7 @@ impl StripeRequest for CreatePrice<'_> { RequestBuilder::new(StripeMethod::Post, "/prices").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePriceBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -989,7 +1007,7 @@ pub struct RetrievePriceBuilder<'a> { } impl<'a> RetrievePriceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the price with the given ID. @@ -1031,7 +1049,7 @@ impl StripeRequest for RetrievePrice<'_> { RequestBuilder::new(StripeMethod::Get, format!("/prices/{price}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePriceBuilder<'a> { /// Whether the price can be used for new purchases. Defaults to `true`. #[serde(skip_serializing_if = "Option::is_none")] @@ -1070,12 +1088,21 @@ pub struct UpdatePriceBuilder<'a> { } impl<'a> UpdatePriceBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + currency_options: None, + expand: None, + lookup_key: None, + metadata: None, + nickname: None, + tax_behavior: None, + transfer_lookup_key: None, + } } } /// Prices defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). -#[derive(Clone, Debug, Default, serde::Serialize)] +#[derive(Clone, Debug, serde::Serialize)] pub struct UpdatePriceBuilderCurrencyOptions { /// When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. #[serde(skip_serializing_if = "Option::is_none")] @@ -1101,7 +1128,13 @@ pub struct UpdatePriceBuilderCurrencyOptions { } impl UpdatePriceBuilderCurrencyOptions { pub fn new() -> Self { - Self::default() + Self { + custom_unit_amount: None, + tax_behavior: None, + tiers: None, + unit_amount: None, + unit_amount_decimal: None, + } } } /// Each element represents a pricing tier. diff --git a/generated/stripe_product/src/product/requests.rs b/generated/stripe_product/src/product/requests.rs index 8e2343136..35b941d58 100644 --- a/generated/stripe_product/src/product/requests.rs +++ b/generated/stripe_product/src/product/requests.rs @@ -215,7 +215,7 @@ impl<'a> CreateProductBuilderDefaultPriceData<'a> { } /// Prices defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). -#[derive(Clone, Debug, Default, serde::Serialize)] +#[derive(Clone, Debug, serde::Serialize)] pub struct CreateProductBuilderDefaultPriceDataCurrencyOptions { /// When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. #[serde(skip_serializing_if = "Option::is_none")] @@ -242,7 +242,13 @@ pub struct CreateProductBuilderDefaultPriceDataCurrencyOptions { } impl CreateProductBuilderDefaultPriceDataCurrencyOptions { pub fn new() -> Self { - Self::default() + Self { + custom_unit_amount: None, + tax_behavior: None, + tiers: None, + unit_amount: None, + unit_amount_decimal: None, + } } } /// When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. @@ -592,7 +598,7 @@ impl StripeRequest for CreateProduct<'_> { RequestBuilder::new(StripeMethod::Post, "/products").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveProductBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -600,7 +606,7 @@ pub struct RetrieveProductBuilder<'a> { } impl<'a> RetrieveProductBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing product. @@ -643,7 +649,7 @@ impl StripeRequest for RetrieveProduct<'_> { RequestBuilder::new(StripeMethod::Get, format!("/products/{id}")).query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateProductBuilder<'a> { /// Whether the product is available for purchase. #[serde(skip_serializing_if = "Option::is_none")] @@ -703,7 +709,22 @@ pub struct UpdateProductBuilder<'a> { } impl<'a> UpdateProductBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + default_price: None, + description: None, + expand: None, + features: None, + images: None, + metadata: None, + name: None, + package_dimensions: None, + shippable: None, + statement_descriptor: None, + tax_code: None, + unit_label: None, + url: None, + } } } /// Updates the specific product by setting the values of the parameters passed. @@ -811,7 +832,7 @@ impl StripeRequest for UpdateProduct<'_> { RequestBuilder::new(StripeMethod::Post, format!("/products/{id}")).form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListProductBuilder<'a> { /// Only return products that are active or inactive (e.g., pass `false` to list all inactive products). #[serde(skip_serializing_if = "Option::is_none")] @@ -853,7 +874,18 @@ pub struct ListProductBuilder<'a> { } impl<'a> ListProductBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + created: None, + ending_before: None, + expand: None, + ids: None, + limit: None, + shippable: None, + starting_after: None, + type_: None, + url: None, + } } } /// Returns a list of your products. diff --git a/generated/stripe_product/src/promotion_code/requests.rs b/generated/stripe_product/src/promotion_code/requests.rs index 6c0b9e890..862b2c20a 100644 --- a/generated/stripe_product/src/promotion_code/requests.rs +++ b/generated/stripe_product/src/promotion_code/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrievePromotionCodeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrievePromotionCodeBuilder<'a> { } impl<'a> RetrievePromotionCodeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the promotion code with the given ID. @@ -107,7 +107,7 @@ impl<'a> CreatePromotionCodeBuilder<'a> { } } /// Settings that restrict the redemption of the promotion code. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreatePromotionCodeBuilderRestrictions<'a> { /// Promotion codes defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). @@ -126,7 +126,12 @@ pub struct CreatePromotionCodeBuilderRestrictions<'a> { } impl<'a> CreatePromotionCodeBuilderRestrictions<'a> { pub fn new() -> Self { - Self::default() + Self { + currency_options: None, + first_time_transaction: None, + minimum_amount: None, + minimum_amount_currency: None, + } } } /// A promotion code points to a coupon. @@ -205,7 +210,7 @@ impl StripeRequest for CreatePromotionCode<'_> { RequestBuilder::new(StripeMethod::Post, "/promotion_codes").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePromotionCodeBuilder<'a> { /// Whether the promotion code is currently active. /// A promotion code can only be reactivated when the coupon is still valid and the promotion code is otherwise redeemable. @@ -226,11 +231,11 @@ pub struct UpdatePromotionCodeBuilder<'a> { } impl<'a> UpdatePromotionCodeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { active: None, expand: None, metadata: None, restrictions: None } } } /// Settings that restrict the redemption of the promotion code. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdatePromotionCodeBuilderRestrictions<'a> { /// Promotion codes defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). @@ -240,7 +245,7 @@ pub struct UpdatePromotionCodeBuilderRestrictions<'a> { } impl<'a> UpdatePromotionCodeBuilderRestrictions<'a> { pub fn new() -> Self { - Self::default() + Self { currency_options: None } } } /// Updates the specified promotion code by setting the values of the parameters passed. @@ -302,7 +307,7 @@ impl StripeRequest for UpdatePromotionCode<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListPromotionCodeBuilder<'a> { /// Filter promotion codes by whether they are active. #[serde(skip_serializing_if = "Option::is_none")] @@ -340,7 +345,17 @@ pub struct ListPromotionCodeBuilder<'a> { } impl<'a> ListPromotionCodeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + code: None, + coupon: None, + created: None, + customer: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + } } } /// Returns a list of your promotion codes. @@ -421,7 +436,7 @@ impl StripeRequest for ListPromotionCode<'_> { } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CurrencyOption { /// Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). #[serde(skip_serializing_if = "Option::is_none")] @@ -429,6 +444,6 @@ pub struct CurrencyOption { } impl CurrencyOption { pub fn new() -> Self { - Self::default() + Self { minimum_amount: None } } } diff --git a/generated/stripe_product/src/shipping_rate/requests.rs b/generated/stripe_product/src/shipping_rate/requests.rs index 5edd2b57b..47c3274ea 100644 --- a/generated/stripe_product/src/shipping_rate/requests.rs +++ b/generated/stripe_product/src/shipping_rate/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListShippingRateBuilder<'a> { /// Only return shipping rates that are active or inactive. #[serde(skip_serializing_if = "Option::is_none")] @@ -34,7 +34,15 @@ pub struct ListShippingRateBuilder<'a> { } impl<'a> ListShippingRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + created: None, + currency: None, + ending_before: None, + expand: None, + limit: None, + starting_after: None, + } } } /// Returns a list of your shipping rates. @@ -104,7 +112,7 @@ impl StripeRequest for ListShippingRate<'_> { RequestBuilder::new(StripeMethod::Get, "/shipping_rates").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveShippingRateBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -112,7 +120,7 @@ pub struct RetrieveShippingRateBuilder<'a> { } impl<'a> RetrieveShippingRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Returns the shipping rate object with the given ID. @@ -205,7 +213,7 @@ impl<'a> CreateShippingRateBuilder<'a> { } /// The estimated range for how long shipping will take, meant to be displayable to the customer. /// This will appear on CheckoutSessions. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateShippingRateBuilderDeliveryEstimate { /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. #[serde(skip_serializing_if = "Option::is_none")] @@ -216,7 +224,7 @@ pub struct CreateShippingRateBuilderDeliveryEstimate { } impl CreateShippingRateBuilderDeliveryEstimate { pub fn new() -> Self { - Self::default() + Self { maximum: None, minimum: None } } } /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. @@ -464,7 +472,7 @@ impl StripeRequest for CreateShippingRate<'_> { RequestBuilder::new(StripeMethod::Post, "/shipping_rates").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateShippingRateBuilder<'a> { /// Whether the shipping rate can be used for new purchases. Defaults to `true`. #[serde(skip_serializing_if = "Option::is_none")] @@ -488,11 +496,11 @@ pub struct UpdateShippingRateBuilder<'a> { } impl<'a> UpdateShippingRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { active: None, expand: None, fixed_amount: None, metadata: None, tax_behavior: None } } } /// Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateShippingRateBuilderFixedAmount<'a> { /// Shipping rates defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). @@ -506,12 +514,12 @@ pub struct UpdateShippingRateBuilderFixedAmount<'a> { } impl<'a> UpdateShippingRateBuilderFixedAmount<'a> { pub fn new() -> Self { - Self::default() + Self { currency_options: None } } } /// Shipping rates defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateShippingRateBuilderFixedAmountCurrencyOptions { /// A non-negative integer in cents representing how much to charge. #[serde(skip_serializing_if = "Option::is_none")] @@ -523,7 +531,7 @@ pub struct UpdateShippingRateBuilderFixedAmountCurrencyOptions { } impl UpdateShippingRateBuilderFixedAmountCurrencyOptions { pub fn new() -> Self { - Self::default() + Self { amount: None, tax_behavior: None } } } /// Updates an existing shipping rate object. diff --git a/generated/stripe_product/src/tax_code/requests.rs b/generated/stripe_product/src/tax_code/requests.rs index 5e225ae67..e360dbd6d 100644 --- a/generated/stripe_product/src/tax_code/requests.rs +++ b/generated/stripe_product/src/tax_code/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTaxCodeBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -24,7 +24,7 @@ pub struct ListTaxCodeBuilder<'a> { } impl<'a> ListTaxCodeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations. @@ -79,7 +79,7 @@ impl StripeRequest for ListTaxCode<'_> { RequestBuilder::new(StripeMethod::Get, "/tax_codes").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTaxCodeBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -87,7 +87,7 @@ pub struct RetrieveTaxCodeBuilder<'a> { } impl<'a> RetrieveTaxCodeBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing tax code. diff --git a/generated/stripe_product/src/tax_rate/requests.rs b/generated/stripe_product/src/tax_rate/requests.rs index 26e61a849..f2d61a5b2 100644 --- a/generated/stripe_product/src/tax_rate/requests.rs +++ b/generated/stripe_product/src/tax_rate/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTaxRateBuilder<'a> { /// Optional flag to filter by tax rates that are either active or inactive (archived). #[serde(skip_serializing_if = "Option::is_none")] @@ -33,7 +33,15 @@ pub struct ListTaxRateBuilder<'a> { } impl<'a> ListTaxRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + created: None, + ending_before: None, + expand: None, + inclusive: None, + limit: None, + starting_after: None, + } } } /// Returns a list of your tax rates. @@ -104,7 +112,7 @@ impl StripeRequest for ListTaxRate<'_> { RequestBuilder::new(StripeMethod::Get, "/tax_rates").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTaxRateBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -112,7 +120,7 @@ pub struct RetrieveTaxRateBuilder<'a> { } impl<'a> RetrieveTaxRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a tax rate with the given ID @@ -284,7 +292,7 @@ impl StripeRequest for CreateTaxRate<'_> { RequestBuilder::new(StripeMethod::Post, "/tax_rates").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTaxRateBuilder<'a> { /// Flag determining whether the tax rate is active or inactive (archived). /// Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. @@ -324,7 +332,17 @@ pub struct UpdateTaxRateBuilder<'a> { } impl<'a> UpdateTaxRateBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + active: None, + country: None, + description: None, + display_name: None, + expand: None, + jurisdiction: None, + metadata: None, + state: None, + tax_type: None, + } } } /// Updates an existing tax rate. diff --git a/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs b/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs index a7f6c20ad..c821ed99c 100644 --- a/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs +++ b/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountBacsDebitPaymentsSettings { /// The Bacs Direct Debit display name for this account. /// For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. diff --git a/generated/stripe_shared/src/account_branding_settings.rs b/generated/stripe_shared/src/account_branding_settings.rs index 8836a20c5..fd1afd596 100644 --- a/generated/stripe_shared/src/account_branding_settings.rs +++ b/generated/stripe_shared/src/account_branding_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountBrandingSettings { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. /// Must be square and at least 128px x 128px. diff --git a/generated/stripe_shared/src/account_business_profile.rs b/generated/stripe_shared/src/account_business_profile.rs index 5e485c9d3..bfd041fbc 100644 --- a/generated/stripe_shared/src/account_business_profile.rs +++ b/generated/stripe_shared/src/account_business_profile.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountBusinessProfile { /// [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). /// MCCs are used to classify businesses based on the goods or services they provide. diff --git a/generated/stripe_shared/src/account_capabilities.rs b/generated/stripe_shared/src/account_capabilities.rs index d59459d9d..9db3c8823 100644 --- a/generated/stripe_shared/src/account_capabilities.rs +++ b/generated/stripe_shared/src/account_capabilities.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountCapabilities { /// The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/account_card_issuing_settings.rs b/generated/stripe_shared/src/account_card_issuing_settings.rs index 7c781fa69..d857d6c54 100644 --- a/generated/stripe_shared/src/account_card_issuing_settings.rs +++ b/generated/stripe_shared/src/account_card_issuing_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountCardIssuingSettings { #[serde(skip_serializing_if = "Option::is_none")] pub tos_acceptance: Option, diff --git a/generated/stripe_shared/src/account_card_payments_settings.rs b/generated/stripe_shared/src/account_card_payments_settings.rs index 13dbad24a..f62026fe0 100644 --- a/generated/stripe_shared/src/account_card_payments_settings.rs +++ b/generated/stripe_shared/src/account_card_payments_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountCardPaymentsSettings { #[serde(skip_serializing_if = "Option::is_none")] pub decline_on: Option, diff --git a/generated/stripe_shared/src/account_dashboard_settings.rs b/generated/stripe_shared/src/account_dashboard_settings.rs index 59f2808aa..bb1e7213a 100644 --- a/generated/stripe_shared/src/account_dashboard_settings.rs +++ b/generated/stripe_shared/src/account_dashboard_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountDashboardSettings { /// The display name for this account. /// This is used on the Stripe Dashboard to differentiate between accounts. diff --git a/generated/stripe_shared/src/account_future_requirements.rs b/generated/stripe_shared/src/account_future_requirements.rs index 2edb3fecc..b44c574ae 100644 --- a/generated/stripe_shared/src/account_future_requirements.rs +++ b/generated/stripe_shared/src/account_future_requirements.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountFutureRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/account_payments_settings.rs b/generated/stripe_shared/src/account_payments_settings.rs index a7567f7fc..3a9b21e27 100644 --- a/generated/stripe_shared/src/account_payments_settings.rs +++ b/generated/stripe_shared/src/account_payments_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountPaymentsSettings { /// The default text that appears on credit card statements when a charge is made. /// This field prefixes any dynamic `statement_descriptor` specified on the charge. diff --git a/generated/stripe_shared/src/account_requirements.rs b/generated/stripe_shared/src/account_requirements.rs index 0aa4c8a44..90bcb87cc 100644 --- a/generated/stripe_shared/src/account_requirements.rs +++ b/generated/stripe_shared/src/account_requirements.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs b/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs index 9da113cc0..b4524b253 100644 --- a/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs +++ b/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountSepaDebitPaymentsSettings { /// SEPA creditor identifier that identifies the company making the payment. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/account_terms_of_service.rs b/generated/stripe_shared/src/account_terms_of_service.rs index a096416f5..9edf784bc 100644 --- a/generated/stripe_shared/src/account_terms_of_service.rs +++ b/generated/stripe_shared/src/account_terms_of_service.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountTermsOfService { /// The Unix timestamp marking when the account representative accepted the service agreement. pub date: Option, diff --git a/generated/stripe_shared/src/account_tos_acceptance.rs b/generated/stripe_shared/src/account_tos_acceptance.rs index 9874a88f7..8bf5f1a43 100644 --- a/generated/stripe_shared/src/account_tos_acceptance.rs +++ b/generated/stripe_shared/src/account_tos_acceptance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountTosAcceptance { /// The Unix timestamp marking when the account representative accepted their service agreement #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/account_treasury_settings.rs b/generated/stripe_shared/src/account_treasury_settings.rs index 37f832a0e..f76874eae 100644 --- a/generated/stripe_shared/src/account_treasury_settings.rs +++ b/generated/stripe_shared/src/account_treasury_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct AccountTreasurySettings { #[serde(skip_serializing_if = "Option::is_none")] pub tos_acceptance: Option, diff --git a/generated/stripe_shared/src/address.rs b/generated/stripe_shared/src/address.rs index 9aaf337bf..62074757c 100644 --- a/generated/stripe_shared/src/address.rs +++ b/generated/stripe_shared/src/address.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct Address { /// City, district, suburb, town, or village. pub city: Option, diff --git a/generated/stripe_shared/src/billing_details.rs b/generated/stripe_shared/src/billing_details.rs index 39da030a3..9b8759e29 100644 --- a/generated/stripe_shared/src/billing_details.rs +++ b/generated/stripe_shared/src/billing_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct BillingDetails { /// Billing address. pub address: Option, diff --git a/generated/stripe_shared/src/cancellation_details.rs b/generated/stripe_shared/src/cancellation_details.rs index 977140f99..7a4bdafe6 100644 --- a/generated/stripe_shared/src/cancellation_details.rs +++ b/generated/stripe_shared/src/cancellation_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CancellationDetails { /// Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. pub comment: Option, diff --git a/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs b/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs index de88385d1..cf5ee90f5 100644 --- a/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs +++ b/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CardIssuingAccountTermsOfService { /// The Unix timestamp marking when the account representative accepted the service agreement. pub date: Option, diff --git a/generated/stripe_shared/src/card_mandate_payment_method_details.rs b/generated/stripe_shared/src/card_mandate_payment_method_details.rs index 715b901ed..08c7274ed 100644 --- a/generated/stripe_shared/src/card_mandate_payment_method_details.rs +++ b/generated/stripe_shared/src/card_mandate_payment_method_details.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CardMandatePaymentMethodDetails {} diff --git a/generated/stripe_shared/src/charge_fraud_details.rs b/generated/stripe_shared/src/charge_fraud_details.rs index e1de5731d..e9eb45b06 100644 --- a/generated/stripe_shared/src/charge_fraud_details.rs +++ b/generated/stripe_shared/src/charge_fraud_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct ChargeFraudDetails { /// Assessments from Stripe. If set, the value is `fraudulent`. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/currency_option.rs b/generated/stripe_shared/src/currency_option.rs index cee2cd55b..baff71864 100644 --- a/generated/stripe_shared/src/currency_option.rs +++ b/generated/stripe_shared/src/currency_option.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CurrencyOption { /// When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. pub custom_unit_amount: Option, diff --git a/generated/stripe_shared/src/custom_unit_amount.rs b/generated/stripe_shared/src/custom_unit_amount.rs index 6fd2c00df..4f51ce16e 100644 --- a/generated/stripe_shared/src/custom_unit_amount.rs +++ b/generated/stripe_shared/src/custom_unit_amount.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CustomUnitAmount { /// The maximum unit amount the customer can specify for this item. pub maximum: Option, diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs index 47a2dd437..6b16c6c39 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer { /// The BIC of the bank of the sender of the funding. diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs index 8ecb631c8..97edb6852 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer { /// The last 4 digits of the account number of the sender of the funding. diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs index 694874cb8..fce644165 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer { /// The name of the bank of the sender of the funding. diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs index f675d01a1..28a3f1682 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer { /// The banking network used for this funding. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/dispute_evidence.rs b/generated/stripe_shared/src/dispute_evidence.rs index 9437e4a8f..8eacbea5a 100644 --- a/generated/stripe_shared/src/dispute_evidence.rs +++ b/generated/stripe_shared/src/dispute_evidence.rs @@ -1,5 +1,5 @@ /// For more details see <>. -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct DisputeEvidence { /// Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. /// This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. diff --git a/generated/stripe_shared/src/external_account_requirements.rs b/generated/stripe_shared/src/external_account_requirements.rs index 2cc4aa592..da4bbc0a0 100644 --- a/generated/stripe_shared/src/external_account_requirements.rs +++ b/generated/stripe_shared/src/external_account_requirements.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct ExternalAccountRequirements { /// Fields that need to be collected to keep the external account enabled. /// If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled. diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs index a50e1be8d..d7259e7e5 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs @@ -1,5 +1,5 @@ /// Zengin Records contain Japan bank account details per the Zengin format. -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct FundingInstructionsBankTransferZenginRecord { /// The account holder name pub account_holder_name: Option, diff --git a/generated/stripe_shared/src/invoice_installments_card.rs b/generated/stripe_shared/src/invoice_installments_card.rs index eb15116d7..c08bdef38 100644 --- a/generated/stripe_shared/src/invoice_installments_card.rs +++ b/generated/stripe_shared/src/invoice_installments_card.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceInstallmentsCard { /// Whether Installments are enabled for this Invoice. pub enabled: Option, diff --git a/generated/stripe_shared/src/invoice_mandate_options_card.rs b/generated/stripe_shared/src/invoice_mandate_options_card.rs index 8ec277463..4be0a9d86 100644 --- a/generated/stripe_shared/src/invoice_mandate_options_card.rs +++ b/generated/stripe_shared/src/invoice_mandate_options_card.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceMandateOptionsCard { /// Amount to be charged for future payments. pub amount: Option, diff --git a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs index d4bbc066f..b946b1850 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsAcssDebit { #[serde(skip_serializing_if = "Option::is_none")] pub mandate_options: Option, diff --git a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs index b26bf2259..b326ce129 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsAcssDebitMandateOptions { /// Transaction type of the mandate. pub transaction_type: Option, diff --git a/generated/stripe_shared/src/invoice_payment_method_options_card.rs b/generated/stripe_shared/src/invoice_payment_method_options_card.rs index 1fa5ef9a0..818aad343 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_card.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_card.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsCard { #[serde(skip_serializing_if = "Option::is_none")] pub installments: Option, diff --git a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs index 940dc6b7b..0c95748d0 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsCustomerBalance { #[serde(skip_serializing_if = "Option::is_none")] pub bank_transfer: diff --git a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs index 156446afc..72d044d16 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsCustomerBalanceBankTransfer { #[serde(skip_serializing_if = "Option::is_none")] pub eu_bank_transfer: diff --git a/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs b/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs index 676a93018..2fb2fc43c 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsKonbini {} diff --git a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs index c02b52ea5..fa8f4eb9f 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsUsBankAccount { #[serde(skip_serializing_if = "Option::is_none")] pub financial_connections: diff --git a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs index 201857a94..7a046d833 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions { /// The list of permissions to request. The `payment_method` permission must be included. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/invoice_rendering_pdf.rs b/generated/stripe_shared/src/invoice_rendering_pdf.rs index 5ede36ef1..ab733bf64 100644 --- a/generated/stripe_shared/src/invoice_rendering_pdf.rs +++ b/generated/stripe_shared/src/invoice_rendering_pdf.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceRenderingPdf { /// Page size of invoice pdf. /// Options include a4, letter, and auto. diff --git a/generated/stripe_shared/src/invoice_setting_customer_setting.rs b/generated/stripe_shared/src/invoice_setting_customer_setting.rs index 4af0fd658..9c81cc010 100644 --- a/generated/stripe_shared/src/invoice_setting_customer_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_customer_setting.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceSettingCustomerSetting { /// Default custom fields to be displayed on invoices for this customer. pub custom_fields: Option>, diff --git a/generated/stripe_shared/src/invoice_setting_quote_setting.rs b/generated/stripe_shared/src/invoice_setting_quote_setting.rs index 86123d9b1..fa9c26b3e 100644 --- a/generated/stripe_shared/src/invoice_setting_quote_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_quote_setting.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceSettingQuoteSetting { /// Number of days within which a customer must pay invoices generated by this quote. /// This value will be `null` for quotes where `collection_method=charge_automatically`. diff --git a/generated/stripe_shared/src/invoice_setting_rendering_options.rs b/generated/stripe_shared/src/invoice_setting_rendering_options.rs index 152f5561f..135c9b671 100644 --- a/generated/stripe_shared/src/invoice_setting_rendering_options.rs +++ b/generated/stripe_shared/src/invoice_setting_rendering_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceSettingRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. pub amount_tax_display: Option, diff --git a/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs b/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs index b33d06c39..280f41d74 100644 --- a/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceSettingSubscriptionSchedulePhaseSetting { /// Number of days within which a customer must pay invoices generated by this subscription schedule. /// This value will be `null` for subscription schedules where `billing=charge_automatically`. diff --git a/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs b/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs index 60b97ac43..5a42a5b1f 100644 --- a/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoiceSettingSubscriptionScheduleSetting { /// Number of days within which a customer must pay invoices generated by this subscription schedule. /// This value will be `null` for subscription schedules where `billing=charge_automatically`. diff --git a/generated/stripe_shared/src/invoices_invoice_rendering.rs b/generated/stripe_shared/src/invoices_invoice_rendering.rs index 4197addf4..b3fb60e57 100644 --- a/generated/stripe_shared/src/invoices_invoice_rendering.rs +++ b/generated/stripe_shared/src/invoices_invoice_rendering.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicesInvoiceRendering { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. pub amount_tax_display: Option, diff --git a/generated/stripe_shared/src/invoices_payment_method_options.rs b/generated/stripe_shared/src/invoices_payment_method_options.rs index 899acde20..ec12098a6 100644 --- a/generated/stripe_shared/src/invoices_payment_method_options.rs +++ b/generated/stripe_shared/src/invoices_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicesPaymentMethodOptions { /// If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. pub acss_debit: Option, diff --git a/generated/stripe_shared/src/invoices_payment_settings.rs b/generated/stripe_shared/src/invoices_payment_settings.rs index 848654db7..028464971 100644 --- a/generated/stripe_shared/src/invoices_payment_settings.rs +++ b/generated/stripe_shared/src/invoices_payment_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicesPaymentSettings { /// ID of the mandate to be used for this invoice. /// It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set. diff --git a/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs b/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs index ff08c0c51..e289803fe 100644 --- a/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs +++ b/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicesResourceLineItemsProrationDetails { /// For a credit proration `line_item`, the original debit line_items to which the credit proration applies. pub credited_items: Option, diff --git a/generated/stripe_shared/src/invoices_status_transitions.rs b/generated/stripe_shared/src/invoices_status_transitions.rs index 6f9935f05..57c0fd45a 100644 --- a/generated/stripe_shared/src/invoices_status_transitions.rs +++ b/generated/stripe_shared/src/invoices_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct InvoicesStatusTransitions { /// The time that the invoice draft was finalized. pub finalized_at: Option, diff --git a/generated/stripe_shared/src/issuing_authorization_amount_details.rs b/generated/stripe_shared/src/issuing_authorization_amount_details.rs index f4d63c2f2..fc206ed07 100644 --- a/generated/stripe_shared/src/issuing_authorization_amount_details.rs +++ b/generated/stripe_shared/src/issuing_authorization_amount_details.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingAuthorizationAmountDetails { /// The fee charged by the ATM for the cash withdrawal. pub atm_fee: Option, diff --git a/generated/stripe_shared/src/issuing_authorization_network_data.rs b/generated/stripe_shared/src/issuing_authorization_network_data.rs index dae11162c..718656920 100644 --- a/generated/stripe_shared/src/issuing_authorization_network_data.rs +++ b/generated/stripe_shared/src/issuing_authorization_network_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingAuthorizationNetworkData { /// Identifier assigned to the acquirer by the card network. /// Sometimes this value is not provided by the network; in this case, the value will be `null`. diff --git a/generated/stripe_shared/src/issuing_card_authorization_controls.rs b/generated/stripe_shared/src/issuing_card_authorization_controls.rs index f1428a4e5..f1fdae5a0 100644 --- a/generated/stripe_shared/src/issuing_card_authorization_controls.rs +++ b/generated/stripe_shared/src/issuing_card_authorization_controls.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardAuthorizationControls { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. diff --git a/generated/stripe_shared/src/issuing_card_shipping_customs.rs b/generated/stripe_shared/src/issuing_card_shipping_customs.rs index 71c6bc68e..de2838789 100644 --- a/generated/stripe_shared/src/issuing_card_shipping_customs.rs +++ b/generated/stripe_shared/src/issuing_card_shipping_customs.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardShippingCustoms { /// A registration number used for customs in Europe. /// See [](https://www.gov.uk/eori) for the UK and [](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU. diff --git a/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs b/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs index 735bb61f0..7b5a3639e 100644 --- a/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs +++ b/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderAuthorizationControls { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. diff --git a/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs b/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs index ffea23dca..f2f45c0c2 100644 --- a/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs +++ b/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderCardIssuing { /// Information about cardholder acceptance of [Authorized User Terms](https://stripe.com/docs/issuing/cards). pub user_terms_acceptance: Option, diff --git a/generated/stripe_shared/src/issuing_cardholder_id_document.rs b/generated/stripe_shared/src/issuing_cardholder_id_document.rs index aad29b05d..8162a2d31 100644 --- a/generated/stripe_shared/src/issuing_cardholder_id_document.rs +++ b/generated/stripe_shared/src/issuing_cardholder_id_document.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderIdDocument { /// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. pub back: Option>, diff --git a/generated/stripe_shared/src/issuing_cardholder_individual.rs b/generated/stripe_shared/src/issuing_cardholder_individual.rs index e674d554e..16f72bc1f 100644 --- a/generated/stripe_shared/src/issuing_cardholder_individual.rs +++ b/generated/stripe_shared/src/issuing_cardholder_individual.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderIndividual { /// Information related to the card_issuing program for this cardholder. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs b/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs index 285ff4d68..bf79b5a3a 100644 --- a/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs +++ b/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderIndividualDob { /// The day of birth, between 1 and 31. pub day: Option, diff --git a/generated/stripe_shared/src/issuing_cardholder_requirements.rs b/generated/stripe_shared/src/issuing_cardholder_requirements.rs index 68ba85718..f185f5015 100644 --- a/generated/stripe_shared/src/issuing_cardholder_requirements.rs +++ b/generated/stripe_shared/src/issuing_cardholder_requirements.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderRequirements { /// If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. pub disabled_reason: Option, diff --git a/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs b/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs index 7bcad9ecd..2fff90b17 100644 --- a/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs +++ b/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderUserTermsAcceptance { /// The Unix timestamp marking when the cardholder accepted the Authorized User Terms. /// Required for Celtic Spend Card users. diff --git a/generated/stripe_shared/src/issuing_cardholder_verification.rs b/generated/stripe_shared/src/issuing_cardholder_verification.rs index 4fabd9d05..6f69d3e3e 100644 --- a/generated/stripe_shared/src/issuing_cardholder_verification.rs +++ b/generated/stripe_shared/src/issuing_cardholder_verification.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingCardholderVerification { /// An identifying document, either a passport or local ID card. pub document: Option, diff --git a/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs b/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs index f060bf7a0..7a5c2724c 100644 --- a/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingDisputeCanceledEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs b/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs index 816a47a52..86eee85ae 100644 --- a/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingDisputeDuplicateEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs b/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs index 36058d9c0..c43046b14 100644 --- a/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingDisputeFraudulentEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs b/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs index 8760b0584..6c6688948 100644 --- a/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingDisputeMerchandiseNotAsDescribedEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs b/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs index 8ba8e1c1f..b32bddc17 100644 --- a/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingDisputeNotReceivedEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_other_evidence.rs b/generated/stripe_shared/src/issuing_dispute_other_evidence.rs index 471711d49..bc62dc6c1 100644 --- a/generated/stripe_shared/src/issuing_dispute_other_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_other_evidence.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingDisputeOtherEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs b/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs index 1ce6c4f88..4f75308b3 100644 --- a/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingDisputeServiceNotAsDescribedEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_network_token_device.rs b/generated/stripe_shared/src/issuing_network_token_device.rs index b241db65d..18e6472f5 100644 --- a/generated/stripe_shared/src/issuing_network_token_device.rs +++ b/generated/stripe_shared/src/issuing_network_token_device.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingNetworkTokenDevice { /// An obfuscated ID derived from the device ID. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs b/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs index 567fe061a..9362ec187 100644 --- a/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs +++ b/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingNetworkTokenWalletProvider { /// The wallet provider-given account ID of the digital wallet the token belongs to. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/issuing_transaction_amount_details.rs b/generated/stripe_shared/src/issuing_transaction_amount_details.rs index 8c5db148b..a710df718 100644 --- a/generated/stripe_shared/src/issuing_transaction_amount_details.rs +++ b/generated/stripe_shared/src/issuing_transaction_amount_details.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionAmountDetails { /// The fee charged by the ATM for the cash withdrawal. pub atm_fee: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_flight_data.rs b/generated/stripe_shared/src/issuing_transaction_flight_data.rs index 17c546ad4..3286aa3bb 100644 --- a/generated/stripe_shared/src/issuing_transaction_flight_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_flight_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionFlightData { /// The time that the flight departed. pub departure_at: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs b/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs index 18571a91d..da42e7ad8 100644 --- a/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs +++ b/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionFlightDataLeg { /// The three-letter IATA airport code of the flight's destination. pub arrival_airport_code: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_lodging_data.rs b/generated/stripe_shared/src/issuing_transaction_lodging_data.rs index cc69c37f7..114cac193 100644 --- a/generated/stripe_shared/src/issuing_transaction_lodging_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_lodging_data.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionLodgingData { /// The time of checking into the lodging. pub check_in_at: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_network_data.rs b/generated/stripe_shared/src/issuing_transaction_network_data.rs index 4f36934ff..72cff01f4 100644 --- a/generated/stripe_shared/src/issuing_transaction_network_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_network_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionNetworkData { /// A code created by Stripe which is shared with the merchant to validate the authorization. /// This field will be populated if the authorization message was approved. diff --git a/generated/stripe_shared/src/issuing_transaction_purchase_details.rs b/generated/stripe_shared/src/issuing_transaction_purchase_details.rs index 354982a88..b70f21499 100644 --- a/generated/stripe_shared/src/issuing_transaction_purchase_details.rs +++ b/generated/stripe_shared/src/issuing_transaction_purchase_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionPurchaseDetails { /// Information about the flight that was purchased with this transaction. pub flight: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_receipt_data.rs b/generated/stripe_shared/src/issuing_transaction_receipt_data.rs index e16f7d813..60d9ba7dd 100644 --- a/generated/stripe_shared/src/issuing_transaction_receipt_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_receipt_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionReceiptData { /// The description of the item. The maximum length of this field is 26 characters. pub description: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_treasury.rs b/generated/stripe_shared/src/issuing_transaction_treasury.rs index e48dad849..d07bc0140 100644 --- a/generated/stripe_shared/src/issuing_transaction_treasury.rs +++ b/generated/stripe_shared/src/issuing_transaction_treasury.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct IssuingTransactionTreasury { /// The Treasury [ReceivedCredit](https://stripe.com/docs/api/treasury/received_credits) representing this Issuing transaction if it is a refund. pub received_credit: Option, diff --git a/generated/stripe_shared/src/legal_entity_company.rs b/generated/stripe_shared/src/legal_entity_company.rs index 5790e7253..af439950c 100644 --- a/generated/stripe_shared/src/legal_entity_company.rs +++ b/generated/stripe_shared/src/legal_entity_company.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct LegalEntityCompany { #[serde(skip_serializing_if = "Option::is_none")] pub address: Option, diff --git a/generated/stripe_shared/src/legal_entity_company_verification_document.rs b/generated/stripe_shared/src/legal_entity_company_verification_document.rs index 6e9e6b843..003723237 100644 --- a/generated/stripe_shared/src/legal_entity_company_verification_document.rs +++ b/generated/stripe_shared/src/legal_entity_company_verification_document.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct LegalEntityCompanyVerificationDocument { /// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. pub back: Option>, diff --git a/generated/stripe_shared/src/legal_entity_dob.rs b/generated/stripe_shared/src/legal_entity_dob.rs index 44dc0a314..daef2a950 100644 --- a/generated/stripe_shared/src/legal_entity_dob.rs +++ b/generated/stripe_shared/src/legal_entity_dob.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct LegalEntityDob { /// The day of birth, between 1 and 31. pub day: Option, diff --git a/generated/stripe_shared/src/legal_entity_japan_address.rs b/generated/stripe_shared/src/legal_entity_japan_address.rs index 38fd816e7..53034f339 100644 --- a/generated/stripe_shared/src/legal_entity_japan_address.rs +++ b/generated/stripe_shared/src/legal_entity_japan_address.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct LegalEntityJapanAddress { /// City/Ward. pub city: Option, diff --git a/generated/stripe_shared/src/legal_entity_person_verification_document.rs b/generated/stripe_shared/src/legal_entity_person_verification_document.rs index 24e4bc03e..918fc2c99 100644 --- a/generated/stripe_shared/src/legal_entity_person_verification_document.rs +++ b/generated/stripe_shared/src/legal_entity_person_verification_document.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct LegalEntityPersonVerificationDocument { /// The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. pub back: Option>, diff --git a/generated/stripe_shared/src/legal_entity_ubo_declaration.rs b/generated/stripe_shared/src/legal_entity_ubo_declaration.rs index 1db87525d..899940913 100644 --- a/generated/stripe_shared/src/legal_entity_ubo_declaration.rs +++ b/generated/stripe_shared/src/legal_entity_ubo_declaration.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct LegalEntityUboDeclaration { /// The Unix timestamp marking when the beneficial owner attestation was made. pub date: Option, diff --git a/generated/stripe_shared/src/linked_account_options_us_bank_account.rs b/generated/stripe_shared/src/linked_account_options_us_bank_account.rs index a1dd03857..90a7bf7f7 100644 --- a/generated/stripe_shared/src/linked_account_options_us_bank_account.rs +++ b/generated/stripe_shared/src/linked_account_options_us_bank_account.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct LinkedAccountOptionsUsBankAccount { /// The list of permissions to request. The `payment_method` permission must be included. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/mandate_cashapp.rs b/generated/stripe_shared/src/mandate_cashapp.rs index e28fa9bba..c5cfaff03 100644 --- a/generated/stripe_shared/src/mandate_cashapp.rs +++ b/generated/stripe_shared/src/mandate_cashapp.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct MandateCashapp {} diff --git a/generated/stripe_shared/src/mandate_link.rs b/generated/stripe_shared/src/mandate_link.rs index 9b0fc2773..087806293 100644 --- a/generated/stripe_shared/src/mandate_link.rs +++ b/generated/stripe_shared/src/mandate_link.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct MandateLink {} diff --git a/generated/stripe_shared/src/mandate_multi_use.rs b/generated/stripe_shared/src/mandate_multi_use.rs index f214a7fec..914a3265f 100644 --- a/generated/stripe_shared/src/mandate_multi_use.rs +++ b/generated/stripe_shared/src/mandate_multi_use.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct MandateMultiUse {} diff --git a/generated/stripe_shared/src/mandate_paypal.rs b/generated/stripe_shared/src/mandate_paypal.rs index 82b4a1e93..c00c6d7dc 100644 --- a/generated/stripe_shared/src/mandate_paypal.rs +++ b/generated/stripe_shared/src/mandate_paypal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct MandatePaypal { /// The PayPal Billing Agreement ID (BAID). /// This is an ID generated by PayPal which represents the mandate between the merchant and the customer. diff --git a/generated/stripe_shared/src/mandate_us_bank_account.rs b/generated/stripe_shared/src/mandate_us_bank_account.rs index 97864d49b..da714508a 100644 --- a/generated/stripe_shared/src/mandate_us_bank_account.rs +++ b/generated/stripe_shared/src/mandate_us_bank_account.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct MandateUsBankAccount {} diff --git a/generated/stripe_shared/src/mod.rs b/generated/stripe_shared/src/mod.rs index fddb9eb7f..12c238ad8 100644 --- a/generated/stripe_shared/src/mod.rs +++ b/generated/stripe_shared/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_shared/src/notification_event_request.rs b/generated/stripe_shared/src/notification_event_request.rs index a4b778196..2cc3f847e 100644 --- a/generated/stripe_shared/src/notification_event_request.rs +++ b/generated/stripe_shared/src/notification_event_request.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct NotificationEventRequest { /// ID of the API request that caused the event. /// If null, the event was automatic (e.g., Stripe's automatic subscription handling). diff --git a/generated/stripe_shared/src/offline_acceptance.rs b/generated/stripe_shared/src/offline_acceptance.rs index b83820747..1f340e52e 100644 --- a/generated/stripe_shared/src/offline_acceptance.rs +++ b/generated/stripe_shared/src/offline_acceptance.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct OfflineAcceptance {} diff --git a/generated/stripe_shared/src/online_acceptance.rs b/generated/stripe_shared/src/online_acceptance.rs index e8a780018..04449de9c 100644 --- a/generated/stripe_shared/src/online_acceptance.rs +++ b/generated/stripe_shared/src/online_acceptance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct OnlineAcceptance { /// The customer accepts the mandate from this IP address. pub ip_address: Option, diff --git a/generated/stripe_shared/src/payment_flows_amount_details.rs b/generated/stripe_shared/src/payment_flows_amount_details.rs index 0ba1b5d1e..14b1acad4 100644 --- a/generated/stripe_shared/src/payment_flows_amount_details.rs +++ b/generated/stripe_shared/src/payment_flows_amount_details.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentFlowsAmountDetails { #[serde(skip_serializing_if = "Option::is_none")] pub tip: Option, diff --git a/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs b/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs index 9bb050a35..dddde1a90 100644 --- a/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs +++ b/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentFlowsAmountDetailsResourceTip { /// Portion of the amount that corresponds to a tip. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs b/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs index 07be5f69a..1276951c9 100644 --- a/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs +++ b/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentFlowsAutomaticPaymentMethodsSetupIntent { /// Controls whether this SetupIntent will accept redirect-based payment methods. /// diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs index 2262cd443..1888364fb 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentFlowsPrivatePaymentMethodsAlipay {} diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs index 01119c284..c3d6d439d 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentFlowsPrivatePaymentMethodsAlipayDetails { /// Uniquely identifies this particular Alipay account. /// You can use this attribute to check whether two Alipay accounts are the same. diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs index fe0a52dbf..02d5e989b 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentFlowsPrivatePaymentMethodsKlarnaDob { /// The day of birth, between 1 and 31. pub day: Option, diff --git a/generated/stripe_shared/src/payment_intent_card_processing.rs b/generated/stripe_shared/src/payment_intent_card_processing.rs index 1ba024f23..218ab8440 100644 --- a/generated/stripe_shared/src/payment_intent_card_processing.rs +++ b/generated/stripe_shared/src/payment_intent_card_processing.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentCardProcessing { #[serde(skip_serializing_if = "Option::is_none")] pub customer_notification: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs b/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs index 220cc2b67..a3fab05fe 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentNextActionAlipayHandleRedirect { /// The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App. pub native_data: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_boleto.rs b/generated/stripe_shared/src/payment_intent_next_action_boleto.rs index ef085d4d4..cdcbd3f64 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_boleto.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_boleto.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentNextActionBoleto { /// The timestamp after which the boleto expires. pub expires_at: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs b/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs index 531e79d8c..9582e5bc3 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentNextActionCardAwaitNotification { /// The time that payment will be attempted. /// If customer approval is required, they need to provide approval before this time. diff --git a/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs b/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs index f20f9d0a3..63c5ebbc9 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentNextActionDisplayOxxoDetails { /// The timestamp after which the OXXO voucher expires. pub expires_after: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs b/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs index ccfd9ceb3..4f3043e5f 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentNextActionKonbiniStores { /// FamilyMart instruction details. pub familymart: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs index 91b3cb5bf..9977d1903 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentNextActionPixDisplayQrCode { /// The raw data string used to generate QR code, it should be used together with QR code library. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs b/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs index 4dcdf5e6c..0759c9f9f 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentNextActionRedirectToUrl { /// If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. pub return_url: Option, diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options.rs b/generated/stripe_shared/src/payment_intent_payment_method_options.rs index ac66d4008..8270ac434 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptions { #[serde(skip_serializing_if = "Option::is_none")] pub acss_debit: Option, diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs index 59efe0767..1f3f6e6bc 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsAcssDebit { #[serde(skip_serializing_if = "Option::is_none")] pub mandate_options: diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs index 01b55cf62..42c77a2e5 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsAuBecsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs index 13284bb18..866a2ffee 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsBlik {} diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs index 80d7df686..24f8dcc46 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsCard { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs index f6d8fd7a8..63784007e 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsEps { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs index b9c971f7e..310fbd850 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsLink { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs index 0a743d280..b5ac812c5 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit { /// A URL for custom mandate text #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs index 7571f1f03..076b8a1cd 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit {} diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs index c12599aab..dd0005019 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsSepaDebit { #[serde(skip_serializing_if = "Option::is_none")] pub mandate_options: diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs index 3e09d315c..87a3d3b12 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentPaymentMethodOptionsUsBankAccount { #[serde(skip_serializing_if = "Option::is_none")] pub financial_connections: Option, diff --git a/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs b/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs index 46b5848f9..226820a57 100644 --- a/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs +++ b/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentIntentProcessingCustomerNotification { /// Whether customer approval has been requested for this payment. /// For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank. diff --git a/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs b/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs index e49274d09..da8715e13 100644 --- a/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs +++ b/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentLinksResourceCompletionBehaviorConfirmationPage { /// The custom message that is displayed to the customer after the purchase is complete. pub custom_message: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_consent_collection.rs b/generated/stripe_shared/src/payment_links_resource_consent_collection.rs index e881f9942..297a2efe7 100644 --- a/generated/stripe_shared/src/payment_links_resource_consent_collection.rs +++ b/generated/stripe_shared/src/payment_links_resource_consent_collection.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentLinksResourceConsentCollection { /// If set to `auto`, enables the collection of customer consent for promotional communications. pub promotions: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs index 991942e28..2f54b54b0 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentLinksResourceCustomFieldsNumeric { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs index 2bc876ea7..92a61c95d 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentLinksResourceCustomFieldsText { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_text.rs b/generated/stripe_shared/src/payment_links_resource_custom_text.rs index 39640bd69..3d595274d 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_text.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_text.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentLinksResourceCustomText { /// Custom text that should be displayed alongside shipping address collection. pub shipping_address: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs b/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs index b8a2170fd..fd4c476a5 100644 --- a/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs +++ b/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentLinksResourceInvoiceSettings { /// The account tax IDs associated with the invoice. pub account_tax_ids: Option>>, diff --git a/generated/stripe_shared/src/payment_method_acss_debit.rs b/generated/stripe_shared/src/payment_method_acss_debit.rs index cf687891c..69c6b0aa9 100644 --- a/generated/stripe_shared/src/payment_method_acss_debit.rs +++ b/generated/stripe_shared/src/payment_method_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodAcssDebit { /// Name of the bank associated with the bank account. pub bank_name: Option, diff --git a/generated/stripe_shared/src/payment_method_affirm.rs b/generated/stripe_shared/src/payment_method_affirm.rs index 21482a272..6478586bc 100644 --- a/generated/stripe_shared/src/payment_method_affirm.rs +++ b/generated/stripe_shared/src/payment_method_affirm.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodAffirm {} diff --git a/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs b/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs index 4a9cbd897..c9ffaa586 100644 --- a/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs +++ b/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodAfterpayClearpay {} diff --git a/generated/stripe_shared/src/payment_method_au_becs_debit.rs b/generated/stripe_shared/src/payment_method_au_becs_debit.rs index a25c416ee..e9aba566a 100644 --- a/generated/stripe_shared/src/payment_method_au_becs_debit.rs +++ b/generated/stripe_shared/src/payment_method_au_becs_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodAuBecsDebit { /// Six-digit number identifying bank and branch associated with this bank account. pub bsb_number: Option, diff --git a/generated/stripe_shared/src/payment_method_bacs_debit.rs b/generated/stripe_shared/src/payment_method_bacs_debit.rs index fe3ee850c..ce56d093a 100644 --- a/generated/stripe_shared/src/payment_method_bacs_debit.rs +++ b/generated/stripe_shared/src/payment_method_bacs_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodBacsDebit { /// Uniquely identifies this particular bank account. /// You can use this attribute to check whether two bank accounts are the same. diff --git a/generated/stripe_shared/src/payment_method_bancontact.rs b/generated/stripe_shared/src/payment_method_bancontact.rs index 8c7d8a5b9..fb06b8679 100644 --- a/generated/stripe_shared/src/payment_method_bancontact.rs +++ b/generated/stripe_shared/src/payment_method_bancontact.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodBancontact {} diff --git a/generated/stripe_shared/src/payment_method_blik.rs b/generated/stripe_shared/src/payment_method_blik.rs index f89a95af6..a50220530 100644 --- a/generated/stripe_shared/src/payment_method_blik.rs +++ b/generated/stripe_shared/src/payment_method_blik.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodBlik {} diff --git a/generated/stripe_shared/src/payment_method_card_checks.rs b/generated/stripe_shared/src/payment_method_card_checks.rs index 4d44d424b..0a78b85d4 100644 --- a/generated/stripe_shared/src/payment_method_card_checks.rs +++ b/generated/stripe_shared/src/payment_method_card_checks.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardChecks { /// If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs b/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs index e96dafb68..012c32997 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardWalletAmexExpressCheckout {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs b/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs index 9948e0e45..13c3812f3 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardWalletApplePay {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs b/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs index c7282dd73..a8ccaf6b5 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardWalletGooglePay {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_link.rs b/generated/stripe_shared/src/payment_method_card_wallet_link.rs index ba0b9d736..32b42c3fc 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_link.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_link.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardWalletLink {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs b/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs index 281b61fb8..33f7cfa8a 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardWalletMasterpass { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs b/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs index e015c6843..846e3299c 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardWalletSamsungPay {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs b/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs index ff4dfe3ec..30341fef1 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCardWalletVisaCheckout { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_cashapp.rs b/generated/stripe_shared/src/payment_method_cashapp.rs index f2d838cc6..b9642631a 100644 --- a/generated/stripe_shared/src/payment_method_cashapp.rs +++ b/generated/stripe_shared/src/payment_method_cashapp.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCashapp { /// A unique and immutable identifier assigned by Cash App to every buyer. pub buyer_id: Option, diff --git a/generated/stripe_shared/src/payment_method_customer_balance.rs b/generated/stripe_shared/src/payment_method_customer_balance.rs index 6e1cd2152..4059dcac7 100644 --- a/generated/stripe_shared/src/payment_method_customer_balance.rs +++ b/generated/stripe_shared/src/payment_method_customer_balance.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodCustomerBalance {} diff --git a/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs b/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs index be72e0222..431073a8c 100644 --- a/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs +++ b/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsAchCreditTransfer { /// Account number to transfer funds to. pub account_number: Option, diff --git a/generated/stripe_shared/src/payment_method_details_ach_debit.rs b/generated/stripe_shared/src/payment_method_details_ach_debit.rs index 1e41479cc..06c8544f8 100644 --- a/generated/stripe_shared/src/payment_method_details_ach_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_ach_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsAchDebit { /// Type of entity that holds the account. This can be either `individual` or `company`. pub account_holder_type: Option, diff --git a/generated/stripe_shared/src/payment_method_details_acss_debit.rs b/generated/stripe_shared/src/payment_method_details_acss_debit.rs index c9f1f96f3..2be7bdcee 100644 --- a/generated/stripe_shared/src/payment_method_details_acss_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsAcssDebit { /// Name of the bank associated with the bank account. pub bank_name: Option, diff --git a/generated/stripe_shared/src/payment_method_details_affirm.rs b/generated/stripe_shared/src/payment_method_details_affirm.rs index e88966e31..355771fe4 100644 --- a/generated/stripe_shared/src/payment_method_details_affirm.rs +++ b/generated/stripe_shared/src/payment_method_details_affirm.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsAffirm {} diff --git a/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs b/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs index a03a3296f..aff54deb1 100644 --- a/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs +++ b/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsAfterpayClearpay { /// The Afterpay order ID associated with this payment intent. pub order_id: Option, diff --git a/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs b/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs index bd8d92351..a67940126 100644 --- a/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsAuBecsDebit { /// Bank-State-Branch number of the bank account. pub bsb_number: Option, diff --git a/generated/stripe_shared/src/payment_method_details_bacs_debit.rs b/generated/stripe_shared/src/payment_method_details_bacs_debit.rs index 9d0e77bfe..265e1cde0 100644 --- a/generated/stripe_shared/src/payment_method_details_bacs_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_bacs_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsBacsDebit { /// Uniquely identifies this particular bank account. /// You can use this attribute to check whether two bank accounts are the same. diff --git a/generated/stripe_shared/src/payment_method_details_bancontact.rs b/generated/stripe_shared/src/payment_method_details_bancontact.rs index f0948896c..a6c5b0f4e 100644 --- a/generated/stripe_shared/src/payment_method_details_bancontact.rs +++ b/generated/stripe_shared/src/payment_method_details_bancontact.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsBancontact { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_details_blik.rs b/generated/stripe_shared/src/payment_method_details_blik.rs index d19223ff9..2c2e5a87d 100644 --- a/generated/stripe_shared/src/payment_method_details_blik.rs +++ b/generated/stripe_shared/src/payment_method_details_blik.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsBlik {} diff --git a/generated/stripe_shared/src/payment_method_details_card_checks.rs b/generated/stripe_shared/src/payment_method_details_card_checks.rs index 3f0d16aff..8cb524316 100644 --- a/generated/stripe_shared/src/payment_method_details_card_checks.rs +++ b/generated/stripe_shared/src/payment_method_details_card_checks.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardChecks { /// If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/payment_method_details_card_installments.rs b/generated/stripe_shared/src/payment_method_details_card_installments.rs index 45ddbf0f4..6804cbecd 100644 --- a/generated/stripe_shared/src/payment_method_details_card_installments.rs +++ b/generated/stripe_shared/src/payment_method_details_card_installments.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardInstallments { /// Installment plan selected for the payment. pub plan: Option, diff --git a/generated/stripe_shared/src/payment_method_details_card_present_offline.rs b/generated/stripe_shared/src/payment_method_details_card_present_offline.rs index 1a9cfb636..da36488a2 100644 --- a/generated/stripe_shared/src/payment_method_details_card_present_offline.rs +++ b/generated/stripe_shared/src/payment_method_details_card_present_offline.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardPresentOffline { /// Time at which the payment was collected while offline pub stored_at: Option, diff --git a/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs b/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs index d7cea8ddb..e7f7b8786 100644 --- a/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs +++ b/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardPresentReceipt { /// The type of account being debited or credited #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs index d6bb316e9..373ef81e2 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardWalletAmexExpressCheckout {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs index 7acbfb6e3..f5881b2f2 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardWalletApplePay {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs index 6695fbe5f..e7a2599ca 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardWalletGooglePay {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs index 873024f1d..f485f2953 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardWalletLink {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs index dec58d814..d057b94fc 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardWalletMasterpass { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs index cca8ef217..f32eb0b44 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardWalletSamsungPay {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs index 902c15c77..c3d4eb720 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCardWalletVisaCheckout { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_details_cashapp.rs b/generated/stripe_shared/src/payment_method_details_cashapp.rs index 86783959f..2322401af 100644 --- a/generated/stripe_shared/src/payment_method_details_cashapp.rs +++ b/generated/stripe_shared/src/payment_method_details_cashapp.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCashapp { /// A unique and immutable identifier assigned by Cash App to every buyer. pub buyer_id: Option, diff --git a/generated/stripe_shared/src/payment_method_details_customer_balance.rs b/generated/stripe_shared/src/payment_method_details_customer_balance.rs index 14673643c..130d5f543 100644 --- a/generated/stripe_shared/src/payment_method_details_customer_balance.rs +++ b/generated/stripe_shared/src/payment_method_details_customer_balance.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsCustomerBalance {} diff --git a/generated/stripe_shared/src/payment_method_details_eps.rs b/generated/stripe_shared/src/payment_method_details_eps.rs index d70131a36..3e5f4b013 100644 --- a/generated/stripe_shared/src/payment_method_details_eps.rs +++ b/generated/stripe_shared/src/payment_method_details_eps.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsEps { /// The customer's bank. /// Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. diff --git a/generated/stripe_shared/src/payment_method_details_giropay.rs b/generated/stripe_shared/src/payment_method_details_giropay.rs index 0c8a75eb6..ffa50f752 100644 --- a/generated/stripe_shared/src/payment_method_details_giropay.rs +++ b/generated/stripe_shared/src/payment_method_details_giropay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsGiropay { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_details_grabpay.rs b/generated/stripe_shared/src/payment_method_details_grabpay.rs index d96f85e85..daea8dd28 100644 --- a/generated/stripe_shared/src/payment_method_details_grabpay.rs +++ b/generated/stripe_shared/src/payment_method_details_grabpay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsGrabpay { /// Unique transaction id generated by GrabPay pub transaction_id: Option, diff --git a/generated/stripe_shared/src/payment_method_details_ideal.rs b/generated/stripe_shared/src/payment_method_details_ideal.rs index 9c116f4cf..ef25e172c 100644 --- a/generated/stripe_shared/src/payment_method_details_ideal.rs +++ b/generated/stripe_shared/src/payment_method_details_ideal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsIdeal { /// The customer's bank. /// Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. diff --git a/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs b/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs index 96061144e..25e79315f 100644 --- a/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs +++ b/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsInteracPresentReceipt { /// The type of account being debited or credited #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_details_klarna.rs b/generated/stripe_shared/src/payment_method_details_klarna.rs index 47d911fbe..aee0b9217 100644 --- a/generated/stripe_shared/src/payment_method_details_klarna.rs +++ b/generated/stripe_shared/src/payment_method_details_klarna.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsKlarna { /// The Klarna payment method used for this transaction. /// Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` diff --git a/generated/stripe_shared/src/payment_method_details_konbini.rs b/generated/stripe_shared/src/payment_method_details_konbini.rs index 8c4c05f1b..2c929f2fd 100644 --- a/generated/stripe_shared/src/payment_method_details_konbini.rs +++ b/generated/stripe_shared/src/payment_method_details_konbini.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsKonbini { /// If the payment succeeded, this contains the details of the convenience store where the payment was completed. pub store: Option, diff --git a/generated/stripe_shared/src/payment_method_details_konbini_store.rs b/generated/stripe_shared/src/payment_method_details_konbini_store.rs index 5817a7f7c..1988bd5c4 100644 --- a/generated/stripe_shared/src/payment_method_details_konbini_store.rs +++ b/generated/stripe_shared/src/payment_method_details_konbini_store.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsKonbiniStore { /// The name of the convenience store chain where the payment was completed. pub chain: Option, diff --git a/generated/stripe_shared/src/payment_method_details_link.rs b/generated/stripe_shared/src/payment_method_details_link.rs index 987e76d1d..7fa09a06b 100644 --- a/generated/stripe_shared/src/payment_method_details_link.rs +++ b/generated/stripe_shared/src/payment_method_details_link.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsLink { /// Two-letter ISO code representing the funding source country beneath the Link payment. /// You could use this attribute to get a sense of international fees. diff --git a/generated/stripe_shared/src/payment_method_details_multibanco.rs b/generated/stripe_shared/src/payment_method_details_multibanco.rs index 3bf8acff6..354a93f2b 100644 --- a/generated/stripe_shared/src/payment_method_details_multibanco.rs +++ b/generated/stripe_shared/src/payment_method_details_multibanco.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsMultibanco { /// Entity number associated with this Multibanco payment. pub entity: Option, diff --git a/generated/stripe_shared/src/payment_method_details_oxxo.rs b/generated/stripe_shared/src/payment_method_details_oxxo.rs index 01e27e1a3..f3eec64b0 100644 --- a/generated/stripe_shared/src/payment_method_details_oxxo.rs +++ b/generated/stripe_shared/src/payment_method_details_oxxo.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsOxxo { /// OXXO reference number pub number: Option, diff --git a/generated/stripe_shared/src/payment_method_details_p24.rs b/generated/stripe_shared/src/payment_method_details_p24.rs index b105ebf3a..7b268cff2 100644 --- a/generated/stripe_shared/src/payment_method_details_p24.rs +++ b/generated/stripe_shared/src/payment_method_details_p24.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsP24 { /// The customer's bank. /// Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. diff --git a/generated/stripe_shared/src/payment_method_details_paynow.rs b/generated/stripe_shared/src/payment_method_details_paynow.rs index 7dbf13243..f29a400cb 100644 --- a/generated/stripe_shared/src/payment_method_details_paynow.rs +++ b/generated/stripe_shared/src/payment_method_details_paynow.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsPaynow { /// Reference number associated with this PayNow payment pub reference: Option, diff --git a/generated/stripe_shared/src/payment_method_details_paypal.rs b/generated/stripe_shared/src/payment_method_details_paypal.rs index c08a36ed2..24c3ca560 100644 --- a/generated/stripe_shared/src/payment_method_details_paypal.rs +++ b/generated/stripe_shared/src/payment_method_details_paypal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsPaypal { /// Owner's email. Values are provided by PayPal directly /// (if supported) at the time of authorization or settlement. They cannot be set or mutated. diff --git a/generated/stripe_shared/src/payment_method_details_pix.rs b/generated/stripe_shared/src/payment_method_details_pix.rs index a92189d86..36577c3ca 100644 --- a/generated/stripe_shared/src/payment_method_details_pix.rs +++ b/generated/stripe_shared/src/payment_method_details_pix.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsPix { /// Unique transaction id generated by BCB #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_details_promptpay.rs b/generated/stripe_shared/src/payment_method_details_promptpay.rs index 44b0d772e..2bce2d058 100644 --- a/generated/stripe_shared/src/payment_method_details_promptpay.rs +++ b/generated/stripe_shared/src/payment_method_details_promptpay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsPromptpay { /// Bill reference generated by PromptPay pub reference: Option, diff --git a/generated/stripe_shared/src/payment_method_details_revolut_pay.rs b/generated/stripe_shared/src/payment_method_details_revolut_pay.rs index 8207d189c..d06b931f2 100644 --- a/generated/stripe_shared/src/payment_method_details_revolut_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_revolut_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsRevolutPay {} diff --git a/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs b/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs index 008b614cc..872050ce8 100644 --- a/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs +++ b/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsSepaCreditTransfer { /// Name of the bank associated with the bank account. pub bank_name: Option, diff --git a/generated/stripe_shared/src/payment_method_details_sepa_debit.rs b/generated/stripe_shared/src/payment_method_details_sepa_debit.rs index 8a79283c1..0f355a835 100644 --- a/generated/stripe_shared/src/payment_method_details_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_sepa_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsSepaDebit { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_details_sofort.rs b/generated/stripe_shared/src/payment_method_details_sofort.rs index db61df3b6..8febc95d3 100644 --- a/generated/stripe_shared/src/payment_method_details_sofort.rs +++ b/generated/stripe_shared/src/payment_method_details_sofort.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsSofort { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_details_stripe_account.rs b/generated/stripe_shared/src/payment_method_details_stripe_account.rs index 730157405..6e60e73d8 100644 --- a/generated/stripe_shared/src/payment_method_details_stripe_account.rs +++ b/generated/stripe_shared/src/payment_method_details_stripe_account.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsStripeAccount {} diff --git a/generated/stripe_shared/src/payment_method_details_us_bank_account.rs b/generated/stripe_shared/src/payment_method_details_us_bank_account.rs index a73587c8b..e99deee31 100644 --- a/generated/stripe_shared/src/payment_method_details_us_bank_account.rs +++ b/generated/stripe_shared/src/payment_method_details_us_bank_account.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsUsBankAccount { /// Account holder type: individual or company. pub account_holder_type: Option, diff --git a/generated/stripe_shared/src/payment_method_details_wechat.rs b/generated/stripe_shared/src/payment_method_details_wechat.rs index 33dbea74d..f20bec3fe 100644 --- a/generated/stripe_shared/src/payment_method_details_wechat.rs +++ b/generated/stripe_shared/src/payment_method_details_wechat.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsWechat {} diff --git a/generated/stripe_shared/src/payment_method_details_wechat_pay.rs b/generated/stripe_shared/src/payment_method_details_wechat_pay.rs index ab0737345..22b52fafc 100644 --- a/generated/stripe_shared/src/payment_method_details_wechat_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_wechat_pay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsWechatPay { /// Uniquely identifies this particular WeChat Pay account. /// You can use this attribute to check whether two WeChat accounts are the same. diff --git a/generated/stripe_shared/src/payment_method_details_zip.rs b/generated/stripe_shared/src/payment_method_details_zip.rs index 4dfd4c934..c9bde875c 100644 --- a/generated/stripe_shared/src/payment_method_details_zip.rs +++ b/generated/stripe_shared/src/payment_method_details_zip.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodDetailsZip {} diff --git a/generated/stripe_shared/src/payment_method_eps.rs b/generated/stripe_shared/src/payment_method_eps.rs index dde24edfb..f7a39e065 100644 --- a/generated/stripe_shared/src/payment_method_eps.rs +++ b/generated/stripe_shared/src/payment_method_eps.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodEps { /// The customer's bank. /// Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. diff --git a/generated/stripe_shared/src/payment_method_giropay.rs b/generated/stripe_shared/src/payment_method_giropay.rs index 1003535de..bfdb59236 100644 --- a/generated/stripe_shared/src/payment_method_giropay.rs +++ b/generated/stripe_shared/src/payment_method_giropay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodGiropay {} diff --git a/generated/stripe_shared/src/payment_method_grabpay.rs b/generated/stripe_shared/src/payment_method_grabpay.rs index 8832df64a..abd5e971a 100644 --- a/generated/stripe_shared/src/payment_method_grabpay.rs +++ b/generated/stripe_shared/src/payment_method_grabpay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodGrabpay {} diff --git a/generated/stripe_shared/src/payment_method_ideal.rs b/generated/stripe_shared/src/payment_method_ideal.rs index b8a7fc874..c4958a61d 100644 --- a/generated/stripe_shared/src/payment_method_ideal.rs +++ b/generated/stripe_shared/src/payment_method_ideal.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodIdeal { /// The customer's bank, if provided. /// Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. diff --git a/generated/stripe_shared/src/payment_method_klarna.rs b/generated/stripe_shared/src/payment_method_klarna.rs index 310d1c2b1..d5d1d7f9e 100644 --- a/generated/stripe_shared/src/payment_method_klarna.rs +++ b/generated/stripe_shared/src/payment_method_klarna.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodKlarna { /// The customer's date of birth, if provided. pub dob: Option, diff --git a/generated/stripe_shared/src/payment_method_konbini.rs b/generated/stripe_shared/src/payment_method_konbini.rs index 0df2b4210..33a6e0b6a 100644 --- a/generated/stripe_shared/src/payment_method_konbini.rs +++ b/generated/stripe_shared/src/payment_method_konbini.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodKonbini {} diff --git a/generated/stripe_shared/src/payment_method_link.rs b/generated/stripe_shared/src/payment_method_link.rs index 45718fced..93532989d 100644 --- a/generated/stripe_shared/src/payment_method_link.rs +++ b/generated/stripe_shared/src/payment_method_link.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodLink { /// Account owner's email address. pub email: Option, diff --git a/generated/stripe_shared/src/payment_method_options_affirm.rs b/generated/stripe_shared/src/payment_method_options_affirm.rs index a78bd6919..871c1ed3d 100644 --- a/generated/stripe_shared/src/payment_method_options_affirm.rs +++ b/generated/stripe_shared/src/payment_method_options_affirm.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsAffirm { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs b/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs index f07f9ec26..fdee92384 100644 --- a/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs +++ b/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsAfterpayClearpay { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_options_alipay.rs b/generated/stripe_shared/src/payment_method_options_alipay.rs index 9013c291f..440d4e6c7 100644 --- a/generated/stripe_shared/src/payment_method_options_alipay.rs +++ b/generated/stripe_shared/src/payment_method_options_alipay.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsAlipay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_bacs_debit.rs b/generated/stripe_shared/src/payment_method_options_bacs_debit.rs index b3718bc93..fa2f4743e 100644 --- a/generated/stripe_shared/src/payment_method_options_bacs_debit.rs +++ b/generated/stripe_shared/src/payment_method_options_bacs_debit.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsBacsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_card_present.rs b/generated/stripe_shared/src/payment_method_options_card_present.rs index 3353636b5..ad21f74c8 100644 --- a/generated/stripe_shared/src/payment_method_options_card_present.rs +++ b/generated/stripe_shared/src/payment_method_options_card_present.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsCardPresent { /// Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity). pub request_extended_authorization: Option, diff --git a/generated/stripe_shared/src/payment_method_options_cashapp.rs b/generated/stripe_shared/src/payment_method_options_cashapp.rs index 09a6b462d..6148c7043 100644 --- a/generated/stripe_shared/src/payment_method_options_cashapp.rs +++ b/generated/stripe_shared/src/payment_method_options_cashapp.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsCashapp { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_options_customer_balance.rs b/generated/stripe_shared/src/payment_method_options_customer_balance.rs index c21b5e5e7..11ede9e33 100644 --- a/generated/stripe_shared/src/payment_method_options_customer_balance.rs +++ b/generated/stripe_shared/src/payment_method_options_customer_balance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsCustomerBalance { #[serde(skip_serializing_if = "Option::is_none")] pub bank_transfer: Option, diff --git a/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs b/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs index 1ddd80ee7..3a77555e8 100644 --- a/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs +++ b/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsCustomerBalanceBankTransfer { #[serde(skip_serializing_if = "Option::is_none")] pub eu_bank_transfer: Option, diff --git a/generated/stripe_shared/src/payment_method_options_fpx.rs b/generated/stripe_shared/src/payment_method_options_fpx.rs index 785d95521..366e1c175 100644 --- a/generated/stripe_shared/src/payment_method_options_fpx.rs +++ b/generated/stripe_shared/src/payment_method_options_fpx.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsFpx { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_giropay.rs b/generated/stripe_shared/src/payment_method_options_giropay.rs index 27b1695f9..27d2289eb 100644 --- a/generated/stripe_shared/src/payment_method_options_giropay.rs +++ b/generated/stripe_shared/src/payment_method_options_giropay.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsGiropay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_grabpay.rs b/generated/stripe_shared/src/payment_method_options_grabpay.rs index 9254d1f9d..f82dc300f 100644 --- a/generated/stripe_shared/src/payment_method_options_grabpay.rs +++ b/generated/stripe_shared/src/payment_method_options_grabpay.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsGrabpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_ideal.rs b/generated/stripe_shared/src/payment_method_options_ideal.rs index 7be10d3a4..855ed2e23 100644 --- a/generated/stripe_shared/src/payment_method_options_ideal.rs +++ b/generated/stripe_shared/src/payment_method_options_ideal.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsIdeal { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_interac_present.rs b/generated/stripe_shared/src/payment_method_options_interac_present.rs index 702a90947..9b6a9c112 100644 --- a/generated/stripe_shared/src/payment_method_options_interac_present.rs +++ b/generated/stripe_shared/src/payment_method_options_interac_present.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsInteracPresent {} diff --git a/generated/stripe_shared/src/payment_method_options_klarna.rs b/generated/stripe_shared/src/payment_method_options_klarna.rs index 38cc09e99..4bf6389ad 100644 --- a/generated/stripe_shared/src/payment_method_options_klarna.rs +++ b/generated/stripe_shared/src/payment_method_options_klarna.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsKlarna { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_options_konbini.rs b/generated/stripe_shared/src/payment_method_options_konbini.rs index 7efd4c2f4..d808c9def 100644 --- a/generated/stripe_shared/src/payment_method_options_konbini.rs +++ b/generated/stripe_shared/src/payment_method_options_konbini.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsKonbini { /// An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. pub confirmation_number: Option, diff --git a/generated/stripe_shared/src/payment_method_options_p24.rs b/generated/stripe_shared/src/payment_method_options_p24.rs index 3ba6d5541..c33c69099 100644 --- a/generated/stripe_shared/src/payment_method_options_p24.rs +++ b/generated/stripe_shared/src/payment_method_options_p24.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsP24 { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_paynow.rs b/generated/stripe_shared/src/payment_method_options_paynow.rs index 654aa47da..889005a9a 100644 --- a/generated/stripe_shared/src/payment_method_options_paynow.rs +++ b/generated/stripe_shared/src/payment_method_options_paynow.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsPaynow { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_paypal.rs b/generated/stripe_shared/src/payment_method_options_paypal.rs index 241d948c6..ee608a3d0 100644 --- a/generated/stripe_shared/src/payment_method_options_paypal.rs +++ b/generated/stripe_shared/src/payment_method_options_paypal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsPaypal { /// Controls when the funds will be captured from the customer's account. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/payment_method_options_pix.rs b/generated/stripe_shared/src/payment_method_options_pix.rs index 6f79294d5..ed267d9f5 100644 --- a/generated/stripe_shared/src/payment_method_options_pix.rs +++ b/generated/stripe_shared/src/payment_method_options_pix.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsPix { /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. pub expires_after_seconds: Option, diff --git a/generated/stripe_shared/src/payment_method_options_promptpay.rs b/generated/stripe_shared/src/payment_method_options_promptpay.rs index a09bb6f57..6ea4e445e 100644 --- a/generated/stripe_shared/src/payment_method_options_promptpay.rs +++ b/generated/stripe_shared/src/payment_method_options_promptpay.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsPromptpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_options_revolut_pay.rs b/generated/stripe_shared/src/payment_method_options_revolut_pay.rs index 75f50f7a6..2ce37dcf6 100644 --- a/generated/stripe_shared/src/payment_method_options_revolut_pay.rs +++ b/generated/stripe_shared/src/payment_method_options_revolut_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsRevolutPay {} diff --git a/generated/stripe_shared/src/payment_method_options_sofort.rs b/generated/stripe_shared/src/payment_method_options_sofort.rs index cfdc26e2d..b37b6d2dd 100644 --- a/generated/stripe_shared/src/payment_method_options_sofort.rs +++ b/generated/stripe_shared/src/payment_method_options_sofort.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsSofort { /// Preferred language of the SOFORT authorization page that the customer is redirected to. pub preferred_language: Option, diff --git a/generated/stripe_shared/src/payment_method_options_wechat_pay.rs b/generated/stripe_shared/src/payment_method_options_wechat_pay.rs index 6824715de..eb479e77b 100644 --- a/generated/stripe_shared/src/payment_method_options_wechat_pay.rs +++ b/generated/stripe_shared/src/payment_method_options_wechat_pay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsWechatPay { /// The app ID registered with WeChat Pay. Only required when client is ios or android. pub app_id: Option, diff --git a/generated/stripe_shared/src/payment_method_options_zip.rs b/generated/stripe_shared/src/payment_method_options_zip.rs index 6a09ea1f5..604fe7c9e 100644 --- a/generated/stripe_shared/src/payment_method_options_zip.rs +++ b/generated/stripe_shared/src/payment_method_options_zip.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOptionsZip { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// diff --git a/generated/stripe_shared/src/payment_method_oxxo.rs b/generated/stripe_shared/src/payment_method_oxxo.rs index 5680d3a17..2dba978c9 100644 --- a/generated/stripe_shared/src/payment_method_oxxo.rs +++ b/generated/stripe_shared/src/payment_method_oxxo.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodOxxo {} diff --git a/generated/stripe_shared/src/payment_method_p24.rs b/generated/stripe_shared/src/payment_method_p24.rs index dbe667e24..584902352 100644 --- a/generated/stripe_shared/src/payment_method_p24.rs +++ b/generated/stripe_shared/src/payment_method_p24.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodP24 { /// The customer's bank, if provided. pub bank: Option, diff --git a/generated/stripe_shared/src/payment_method_paynow.rs b/generated/stripe_shared/src/payment_method_paynow.rs index e48602eee..6d1fbf1f3 100644 --- a/generated/stripe_shared/src/payment_method_paynow.rs +++ b/generated/stripe_shared/src/payment_method_paynow.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodPaynow {} diff --git a/generated/stripe_shared/src/payment_method_paypal.rs b/generated/stripe_shared/src/payment_method_paypal.rs index 2f453f1b4..06e611734 100644 --- a/generated/stripe_shared/src/payment_method_paypal.rs +++ b/generated/stripe_shared/src/payment_method_paypal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodPaypal { /// Owner's email. Values are provided by PayPal directly /// (if supported) at the time of authorization or settlement. They cannot be set or mutated. diff --git a/generated/stripe_shared/src/payment_method_pix.rs b/generated/stripe_shared/src/payment_method_pix.rs index d85b9e220..fb8571f5e 100644 --- a/generated/stripe_shared/src/payment_method_pix.rs +++ b/generated/stripe_shared/src/payment_method_pix.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodPix {} diff --git a/generated/stripe_shared/src/payment_method_promptpay.rs b/generated/stripe_shared/src/payment_method_promptpay.rs index 6f706eb99..d4a928c4a 100644 --- a/generated/stripe_shared/src/payment_method_promptpay.rs +++ b/generated/stripe_shared/src/payment_method_promptpay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodPromptpay {} diff --git a/generated/stripe_shared/src/payment_method_revolut_pay.rs b/generated/stripe_shared/src/payment_method_revolut_pay.rs index d51e34e8a..e2ef4388e 100644 --- a/generated/stripe_shared/src/payment_method_revolut_pay.rs +++ b/generated/stripe_shared/src/payment_method_revolut_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodRevolutPay {} diff --git a/generated/stripe_shared/src/payment_method_sepa_debit.rs b/generated/stripe_shared/src/payment_method_sepa_debit.rs index c68ab553e..b0459a810 100644 --- a/generated/stripe_shared/src/payment_method_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_method_sepa_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodSepaDebit { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_sofort.rs b/generated/stripe_shared/src/payment_method_sofort.rs index 5932ff7bd..25eefd9da 100644 --- a/generated/stripe_shared/src/payment_method_sofort.rs +++ b/generated/stripe_shared/src/payment_method_sofort.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodSofort { /// Two-letter ISO code representing the country the bank account is located in. pub country: Option, diff --git a/generated/stripe_shared/src/payment_method_us_bank_account.rs b/generated/stripe_shared/src/payment_method_us_bank_account.rs index a485b4f71..8d6e7e5ef 100644 --- a/generated/stripe_shared/src/payment_method_us_bank_account.rs +++ b/generated/stripe_shared/src/payment_method_us_bank_account.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodUsBankAccount { /// Account holder type: individual or company. pub account_holder_type: Option, diff --git a/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs b/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs index f48ef46f3..4a86a9a67 100644 --- a/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs +++ b/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodUsBankAccountBlocked { /// The ACH network code that resulted in this block. pub network_code: Option, diff --git a/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs b/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs index c721bac94..df1e1a58e 100644 --- a/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs +++ b/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodUsBankAccountStatusDetails { #[serde(skip_serializing_if = "Option::is_none")] pub blocked: Option, diff --git a/generated/stripe_shared/src/payment_method_wechat_pay.rs b/generated/stripe_shared/src/payment_method_wechat_pay.rs index 704c7830c..3f3bafd40 100644 --- a/generated/stripe_shared/src/payment_method_wechat_pay.rs +++ b/generated/stripe_shared/src/payment_method_wechat_pay.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodWechatPay {} diff --git a/generated/stripe_shared/src/payment_method_zip.rs b/generated/stripe_shared/src/payment_method_zip.rs index 425e0d65f..1713d53c9 100644 --- a/generated/stripe_shared/src/payment_method_zip.rs +++ b/generated/stripe_shared/src/payment_method_zip.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PaymentMethodZip {} diff --git a/generated/stripe_shared/src/period.rs b/generated/stripe_shared/src/period.rs index 5dd14f7fd..30e58df28 100644 --- a/generated/stripe_shared/src/period.rs +++ b/generated/stripe_shared/src/period.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct Period { /// The end date of this usage period. All usage up to and including this point in time is included. pub end: Option, diff --git a/generated/stripe_shared/src/person_additional_tos_acceptance.rs b/generated/stripe_shared/src/person_additional_tos_acceptance.rs index e0d67e184..82ea17601 100644 --- a/generated/stripe_shared/src/person_additional_tos_acceptance.rs +++ b/generated/stripe_shared/src/person_additional_tos_acceptance.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PersonAdditionalTosAcceptance { /// The Unix timestamp marking when the legal guardian accepted the service agreement. pub date: Option, diff --git a/generated/stripe_shared/src/person_relationship.rs b/generated/stripe_shared/src/person_relationship.rs index 5dff94be4..59a6561fa 100644 --- a/generated/stripe_shared/src/person_relationship.rs +++ b/generated/stripe_shared/src/person_relationship.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PersonRelationship { /// Whether the person is a director of the account's legal entity. /// Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. diff --git a/generated/stripe_shared/src/plan_tier.rs b/generated/stripe_shared/src/plan_tier.rs index ad338db35..92a1bcc2f 100644 --- a/generated/stripe_shared/src/plan_tier.rs +++ b/generated/stripe_shared/src/plan_tier.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PlanTier { /// Price for the entire tier. pub flat_amount: Option, diff --git a/generated/stripe_shared/src/price_tier.rs b/generated/stripe_shared/src/price_tier.rs index 6cd47e0a1..fccd1dd7d 100644 --- a/generated/stripe_shared/src/price_tier.rs +++ b/generated/stripe_shared/src/price_tier.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct PriceTier { /// Price for the entire tier. pub flat_amount: Option, diff --git a/generated/stripe_shared/src/product_feature.rs b/generated/stripe_shared/src/product_feature.rs index 996e4221e..50ed63f57 100644 --- a/generated/stripe_shared/src/product_feature.rs +++ b/generated/stripe_shared/src/product_feature.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct ProductFeature { /// The feature's name. Up to 80 characters long. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/quotes_resource_status_transitions.rs b/generated/stripe_shared/src/quotes_resource_status_transitions.rs index 2e7f6345c..6b7b6e8eb 100644 --- a/generated/stripe_shared/src/quotes_resource_status_transitions.rs +++ b/generated/stripe_shared/src/quotes_resource_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct QuotesResourceStatusTransitions { /// The time that the quote was accepted. Measured in seconds since Unix epoch. pub accepted_at: Option, diff --git a/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs b/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs index 04e6bc883..ae7a0353f 100644 --- a/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs +++ b/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct QuotesResourceSubscriptionDataSubscriptionData { /// The subscription's description, meant to be displayable to the customer. /// Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. diff --git a/generated/stripe_shared/src/radar_radar_options.rs b/generated/stripe_shared/src/radar_radar_options.rs index a27ddf87f..7d9747616 100644 --- a/generated/stripe_shared/src/radar_radar_options.rs +++ b/generated/stripe_shared/src/radar_radar_options.rs @@ -1,6 +1,6 @@ /// Options to configure Radar. /// See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct RadarRadarOptions { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/radar_review_resource_location.rs b/generated/stripe_shared/src/radar_review_resource_location.rs index a658c5806..03e985ba2 100644 --- a/generated/stripe_shared/src/radar_review_resource_location.rs +++ b/generated/stripe_shared/src/radar_review_resource_location.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct RadarReviewResourceLocation { /// The city where the payment originated. pub city: Option, diff --git a/generated/stripe_shared/src/radar_review_resource_session.rs b/generated/stripe_shared/src/radar_review_resource_session.rs index 5bc93e651..6512fc174 100644 --- a/generated/stripe_shared/src/radar_review_resource_session.rs +++ b/generated/stripe_shared/src/radar_review_resource_session.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct RadarReviewResourceSession { /// The browser used in this browser session (e.g., `Chrome`). pub browser: Option, diff --git a/generated/stripe_shared/src/sepa_debit_generated_from.rs b/generated/stripe_shared/src/sepa_debit_generated_from.rs index a6bf1ccae..c0ec36b92 100644 --- a/generated/stripe_shared/src/sepa_debit_generated_from.rs +++ b/generated/stripe_shared/src/sepa_debit_generated_from.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SepaDebitGeneratedFrom { /// The ID of the Charge that generated this PaymentMethod, if any. pub charge: Option>, diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs index 59426ea77..d1ea6ab0a 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsAcssDebit {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs index 092b15c74..5fefb6fc7 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsAuBecsDebit {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs index 39be12ee4..0742538f4 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsBacsDebit {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs index 647a5caca..815445115 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsBancontact { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs index 879f54e79..0525112b3 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsBoleto {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs index ed67fedc4..af58a1d0b 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsCard { /// Card brand. /// Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs index de56ad5c9..978f2279e 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsCardChecks { /// If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs index a9ea3977c..be2e2b93d 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsCardPresent { /// The ID of the Card PaymentMethod which was generated by this SetupAttempt. pub generated_card: Option>, diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs index f5980430c..ed71a7485 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsCashapp {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs index 89d107520..96b4377a4 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsIdeal { /// The customer's bank. /// Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs index 530bbd657..38b6a9b1f 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsKlarna {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs index cfd19ba47..4b1df9a6b 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsLink {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs index 915512a00..15e3a621b 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsPaypal {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs index 2063e17ca..0c1c84f9a 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsSepaDebit {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs index fed163ded..84826dc92 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsSofort { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs index e8938c099..b6f5f6f3f 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupAttemptPaymentMethodDetailsUsBankAccount {} diff --git a/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs b/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs index c999292b4..3820791fc 100644 --- a/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs +++ b/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentNextActionRedirectToUrl { /// If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. pub return_url: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options.rs b/generated/stripe_shared/src/setup_intent_payment_method_options.rs index 69f9c634e..e590eef40 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptions { #[serde(skip_serializing_if = "Option::is_none")] pub acss_debit: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs index 2bce40999..b1fa05a25 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsAcssDebit { /// Currency supported by the bank account pub currency: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs index 50fc06aa5..f2cef933a 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsCard { /// Configuration options for setting up an eMandate for cards issued in India. pub mandate_options: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs index 752428286..2f81301e8 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsLink { /// \[Deprecated\] This is a legacy parameter that no longer has any function. pub persistent_token: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs index 76f39b13e..a122979e5 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit { /// A URL for custom mandate text #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs index 810fb8543..75431ed44 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs @@ -1,2 +1,2 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit {} diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs index 359203a15..b0ecc7a7c 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsPaypal { /// The PayPal Billing Agreement ID (BAID). /// This is an ID generated by PayPal which represents the mandate between the merchant and the customer. diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs index 57fb0d3e5..580961ebd 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsSepaDebit { #[serde(skip_serializing_if = "Option::is_none")] pub mandate_options: diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs index ae68a4a04..d32eb5f2f 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SetupIntentPaymentMethodOptionsUsBankAccount { #[serde(skip_serializing_if = "Option::is_none")] pub financial_connections: Option, diff --git a/generated/stripe_shared/src/shipping.rs b/generated/stripe_shared/src/shipping.rs index 4599cf4a5..b39c56c2c 100644 --- a/generated/stripe_shared/src/shipping.rs +++ b/generated/stripe_shared/src/shipping.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct Shipping { #[serde(skip_serializing_if = "Option::is_none")] pub address: Option, diff --git a/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs b/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs index 16875264f..4f7ae6ac6 100644 --- a/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs +++ b/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct ShippingRateDeliveryEstimate { /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. pub maximum: Option, diff --git a/generated/stripe_shared/src/source_order_item.rs b/generated/stripe_shared/src/source_order_item.rs index fec4f886b..4ec9fe3be 100644 --- a/generated/stripe_shared/src/source_order_item.rs +++ b/generated/stripe_shared/src/source_order_item.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceOrderItem { /// The amount (price) for this order item. pub amount: Option, diff --git a/generated/stripe_shared/src/source_owner.rs b/generated/stripe_shared/src/source_owner.rs index 72a67ffb8..8ce29cdca 100644 --- a/generated/stripe_shared/src/source_owner.rs +++ b/generated/stripe_shared/src/source_owner.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceOwner { /// Owner's address. pub address: Option, diff --git a/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs index cbb4be85d..eb2827a7a 100644 --- a/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTransactionAchCreditTransferData { /// Customer data associated with the transfer. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs index 491954c7f..0bd690928 100644 --- a/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTransactionChfCreditTransferData { /// Reference associated with the transfer. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs index da7082cda..d5cd7bf05 100644 --- a/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTransactionGbpCreditTransferData { /// Bank account fingerprint associated with the Stripe owned bank account receiving the transfer. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/source_transaction_paper_check_data.rs b/generated/stripe_shared/src/source_transaction_paper_check_data.rs index fd465c5be..959caca77 100644 --- a/generated/stripe_shared/src/source_transaction_paper_check_data.rs +++ b/generated/stripe_shared/src/source_transaction_paper_check_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTransactionPaperCheckData { /// Time at which the deposited funds will be available for use. /// Measured in seconds since the Unix epoch. diff --git a/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs index 99674772b..a2cdd8251 100644 --- a/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTransactionSepaCreditTransferData { /// Reference associated with the transfer. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_shared/src/source_type_ach_credit_transfer.rs b/generated/stripe_shared/src/source_type_ach_credit_transfer.rs index fec1cfaa7..0e1033a69 100644 --- a/generated/stripe_shared/src/source_type_ach_credit_transfer.rs +++ b/generated/stripe_shared/src/source_type_ach_credit_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeAchCreditTransfer { #[serde(skip_serializing_if = "Option::is_none")] pub account_number: Option, diff --git a/generated/stripe_shared/src/source_type_ach_debit.rs b/generated/stripe_shared/src/source_type_ach_debit.rs index 3af75e8ad..30fd09efa 100644 --- a/generated/stripe_shared/src/source_type_ach_debit.rs +++ b/generated/stripe_shared/src/source_type_ach_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeAchDebit { #[serde(skip_serializing_if = "Option::is_none")] pub bank_name: Option, diff --git a/generated/stripe_shared/src/source_type_acss_debit.rs b/generated/stripe_shared/src/source_type_acss_debit.rs index 5a5f28b88..9e441a359 100644 --- a/generated/stripe_shared/src/source_type_acss_debit.rs +++ b/generated/stripe_shared/src/source_type_acss_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeAcssDebit { #[serde(skip_serializing_if = "Option::is_none")] pub bank_address_city: Option, diff --git a/generated/stripe_shared/src/source_type_alipay.rs b/generated/stripe_shared/src/source_type_alipay.rs index bdc2da5e3..ea4ac7d8d 100644 --- a/generated/stripe_shared/src/source_type_alipay.rs +++ b/generated/stripe_shared/src/source_type_alipay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeAlipay { #[serde(skip_serializing_if = "Option::is_none")] pub data_string: Option, diff --git a/generated/stripe_shared/src/source_type_au_becs_debit.rs b/generated/stripe_shared/src/source_type_au_becs_debit.rs index 2d8f5e245..4ef2aae8e 100644 --- a/generated/stripe_shared/src/source_type_au_becs_debit.rs +++ b/generated/stripe_shared/src/source_type_au_becs_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeAuBecsDebit { #[serde(skip_serializing_if = "Option::is_none")] pub bsb_number: Option, diff --git a/generated/stripe_shared/src/source_type_bancontact.rs b/generated/stripe_shared/src/source_type_bancontact.rs index 718fc33e9..0c04a3e1b 100644 --- a/generated/stripe_shared/src/source_type_bancontact.rs +++ b/generated/stripe_shared/src/source_type_bancontact.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeBancontact { #[serde(skip_serializing_if = "Option::is_none")] pub bank_code: Option, diff --git a/generated/stripe_shared/src/source_type_card.rs b/generated/stripe_shared/src/source_type_card.rs index bdee83df8..1c6a16cab 100644 --- a/generated/stripe_shared/src/source_type_card.rs +++ b/generated/stripe_shared/src/source_type_card.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeCard { #[serde(skip_serializing_if = "Option::is_none")] pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/source_type_card_present.rs b/generated/stripe_shared/src/source_type_card_present.rs index c1ba590f0..4fabd0fc1 100644 --- a/generated/stripe_shared/src/source_type_card_present.rs +++ b/generated/stripe_shared/src/source_type_card_present.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeCardPresent { #[serde(skip_serializing_if = "Option::is_none")] pub application_cryptogram: Option, diff --git a/generated/stripe_shared/src/source_type_eps.rs b/generated/stripe_shared/src/source_type_eps.rs index 38e2d3838..cb0d8739f 100644 --- a/generated/stripe_shared/src/source_type_eps.rs +++ b/generated/stripe_shared/src/source_type_eps.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeEps { #[serde(skip_serializing_if = "Option::is_none")] pub reference: Option, diff --git a/generated/stripe_shared/src/source_type_giropay.rs b/generated/stripe_shared/src/source_type_giropay.rs index 6815d3aa9..f0124185c 100644 --- a/generated/stripe_shared/src/source_type_giropay.rs +++ b/generated/stripe_shared/src/source_type_giropay.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeGiropay { #[serde(skip_serializing_if = "Option::is_none")] pub bank_code: Option, diff --git a/generated/stripe_shared/src/source_type_ideal.rs b/generated/stripe_shared/src/source_type_ideal.rs index e32bc18de..cd3d5c088 100644 --- a/generated/stripe_shared/src/source_type_ideal.rs +++ b/generated/stripe_shared/src/source_type_ideal.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeIdeal { #[serde(skip_serializing_if = "Option::is_none")] pub bank: Option, diff --git a/generated/stripe_shared/src/source_type_klarna.rs b/generated/stripe_shared/src/source_type_klarna.rs index 4af723679..20acb2b3b 100644 --- a/generated/stripe_shared/src/source_type_klarna.rs +++ b/generated/stripe_shared/src/source_type_klarna.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeKlarna { #[serde(skip_serializing_if = "Option::is_none")] pub background_image_url: Option, diff --git a/generated/stripe_shared/src/source_type_multibanco.rs b/generated/stripe_shared/src/source_type_multibanco.rs index 8765f2828..7e632f0bd 100644 --- a/generated/stripe_shared/src/source_type_multibanco.rs +++ b/generated/stripe_shared/src/source_type_multibanco.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeMultibanco { #[serde(skip_serializing_if = "Option::is_none")] pub entity: Option, diff --git a/generated/stripe_shared/src/source_type_p24.rs b/generated/stripe_shared/src/source_type_p24.rs index c7bb5edda..b0c8c4fb5 100644 --- a/generated/stripe_shared/src/source_type_p24.rs +++ b/generated/stripe_shared/src/source_type_p24.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeP24 { #[serde(skip_serializing_if = "Option::is_none")] pub reference: Option, diff --git a/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs b/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs index 6fc345841..f51f22bdb 100644 --- a/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs +++ b/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeSepaCreditTransfer { #[serde(skip_serializing_if = "Option::is_none")] pub bank_name: Option, diff --git a/generated/stripe_shared/src/source_type_sepa_debit.rs b/generated/stripe_shared/src/source_type_sepa_debit.rs index 30b5d9495..4e506d927 100644 --- a/generated/stripe_shared/src/source_type_sepa_debit.rs +++ b/generated/stripe_shared/src/source_type_sepa_debit.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeSepaDebit { #[serde(skip_serializing_if = "Option::is_none")] pub bank_code: Option, diff --git a/generated/stripe_shared/src/source_type_sofort.rs b/generated/stripe_shared/src/source_type_sofort.rs index 8cd9f2f9f..a9a7b822e 100644 --- a/generated/stripe_shared/src/source_type_sofort.rs +++ b/generated/stripe_shared/src/source_type_sofort.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeSofort { #[serde(skip_serializing_if = "Option::is_none")] pub bank_code: Option, diff --git a/generated/stripe_shared/src/source_type_three_d_secure.rs b/generated/stripe_shared/src/source_type_three_d_secure.rs index 5a64afe54..69f496ad0 100644 --- a/generated/stripe_shared/src/source_type_three_d_secure.rs +++ b/generated/stripe_shared/src/source_type_three_d_secure.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeThreeDSecure { #[serde(skip_serializing_if = "Option::is_none")] pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/source_type_wechat.rs b/generated/stripe_shared/src/source_type_wechat.rs index 72ba418f9..252c4c165 100644 --- a/generated/stripe_shared/src/source_type_wechat.rs +++ b/generated/stripe_shared/src/source_type_wechat.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SourceTypeWechat { #[serde(skip_serializing_if = "Option::is_none")] pub prepay_id: Option, diff --git a/generated/stripe_shared/src/subscription_billing_thresholds.rs b/generated/stripe_shared/src/subscription_billing_thresholds.rs index fd4a84121..bb25c929f 100644 --- a/generated/stripe_shared/src/subscription_billing_thresholds.rs +++ b/generated/stripe_shared/src/subscription_billing_thresholds.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SubscriptionBillingThresholds { /// Monetary threshold that triggers the subscription to create an invoice pub amount_gte: Option, diff --git a/generated/stripe_shared/src/subscription_details_data.rs b/generated/stripe_shared/src/subscription_details_data.rs index 9aaed6099..7df23dc51 100644 --- a/generated/stripe_shared/src/subscription_details_data.rs +++ b/generated/stripe_shared/src/subscription_details_data.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SubscriptionDetailsData { /// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. /// *Note: This attribute is populated only for invoices created on or after June 29, 2023.*. diff --git a/generated/stripe_shared/src/subscription_item_billing_thresholds.rs b/generated/stripe_shared/src/subscription_item_billing_thresholds.rs index 31d4f7f63..da40794b0 100644 --- a/generated/stripe_shared/src/subscription_item_billing_thresholds.rs +++ b/generated/stripe_shared/src/subscription_item_billing_thresholds.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SubscriptionItemBillingThresholds { /// Usage threshold that triggers the subscription to create an invoice pub usage_gte: Option, diff --git a/generated/stripe_shared/src/subscription_payment_method_options_card.rs b/generated/stripe_shared/src/subscription_payment_method_options_card.rs index be1d21dc6..dbd42dd53 100644 --- a/generated/stripe_shared/src/subscription_payment_method_options_card.rs +++ b/generated/stripe_shared/src/subscription_payment_method_options_card.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SubscriptionPaymentMethodOptionsCard { #[serde(skip_serializing_if = "Option::is_none")] pub mandate_options: Option, diff --git a/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs b/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs index 57e8ea013..649e93858 100644 --- a/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs +++ b/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SubscriptionsResourcePaymentMethodOptions { /// This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to invoices created by the subscription. pub acss_debit: Option, diff --git a/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs b/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs index d3c57803d..314f008c6 100644 --- a/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs +++ b/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct SubscriptionsResourcePaymentSettings { /// Payment-method-specific configuration to provide to invoices created by the subscription. pub payment_method_options: Option, diff --git a/generated/stripe_shared/src/three_d_secure_details.rs b/generated/stripe_shared/src/three_d_secure_details.rs index 53129350d..fa12dbeca 100644 --- a/generated/stripe_shared/src/three_d_secure_details.rs +++ b/generated/stripe_shared/src/three_d_secure_details.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct ThreeDSecureDetails { /// For authenticated transactions: how the customer was authenticated by /// the issuing bank. diff --git a/generated/stripe_shared/src/three_d_secure_details_charge.rs b/generated/stripe_shared/src/three_d_secure_details_charge.rs index 40a7f11ee..735e4f5f5 100644 --- a/generated/stripe_shared/src/three_d_secure_details_charge.rs +++ b/generated/stripe_shared/src/three_d_secure_details_charge.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct ThreeDSecureDetailsCharge { /// For authenticated transactions: how the customer was authenticated by /// the issuing bank. diff --git a/generated/stripe_terminal/src/mod.rs b/generated/stripe_terminal/src/mod.rs index 854cc8cf1..17a64d75e 100644 --- a/generated/stripe_terminal/src/mod.rs +++ b/generated/stripe_terminal/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_terminal/src/terminal_configuration/requests.rs b/generated/stripe_terminal/src/terminal_configuration/requests.rs index 6e3ee0c06..ff63d2afb 100644 --- a/generated/stripe_terminal/src/terminal_configuration/requests.rs +++ b/generated/stripe_terminal/src/terminal_configuration/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTerminalConfigurationBuilder<'a> { /// An object containing device type specific settings for BBPOS WisePOS E readers #[serde(skip_serializing_if = "Option::is_none")] @@ -22,11 +22,17 @@ pub struct CreateTerminalConfigurationBuilder<'a> { } impl<'a> CreateTerminalConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + bbpos_wisepos_e: None, + expand: None, + offline: None, + tipping: None, + verifone_p400: None, + } } } /// An object containing device type specific settings for BBPOS WisePOS E readers -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTerminalConfigurationBuilderBbposWiseposE<'a> { /// A File ID representing an image you would like displayed on the reader. #[serde(skip_serializing_if = "Option::is_none")] @@ -34,11 +40,11 @@ pub struct CreateTerminalConfigurationBuilderBbposWiseposE<'a> { } impl<'a> CreateTerminalConfigurationBuilderBbposWiseposE<'a> { pub fn new() -> Self { - Self::default() + Self { splashscreen: None } } } /// An object containing device type specific settings for Verifone P400 readers -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTerminalConfigurationBuilderVerifoneP400<'a> { /// A File ID representing an image you would like displayed on the reader. #[serde(skip_serializing_if = "Option::is_none")] @@ -46,7 +52,7 @@ pub struct CreateTerminalConfigurationBuilderVerifoneP400<'a> { } impl<'a> CreateTerminalConfigurationBuilderVerifoneP400<'a> { pub fn new() -> Self { - Self::default() + Self { splashscreen: None } } } /// Creates a new `Configuration` object. @@ -112,7 +118,7 @@ impl StripeRequest for CreateTerminalConfiguration<'_> { RequestBuilder::new(StripeMethod::Post, "/terminal/configurations").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTerminalConfigurationBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -137,7 +143,13 @@ pub struct ListTerminalConfigurationBuilder<'a> { } impl<'a> ListTerminalConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + ending_before: None, + expand: None, + is_account_default: None, + limit: None, + starting_after: None, + } } } /// Returns a list of `Configuration` objects. @@ -197,7 +209,7 @@ impl StripeRequest for ListTerminalConfiguration<'_> { RequestBuilder::new(StripeMethod::Get, "/terminal/configurations").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTerminalConfigurationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -205,7 +217,7 @@ pub struct RetrieveTerminalConfigurationBuilder<'a> { } impl<'a> RetrieveTerminalConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a `Configuration` object. @@ -254,7 +266,7 @@ pub enum RetrieveTerminalConfigurationReturned { TerminalConfiguration(stripe_terminal::TerminalConfiguration), DeletedTerminalConfiguration(stripe_terminal::DeletedTerminalConfiguration), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTerminalConfigurationBuilder<'a> { /// An object containing device type specific settings for BBPOS WisePOS E readers #[serde(skip_serializing_if = "Option::is_none")] @@ -274,11 +286,17 @@ pub struct UpdateTerminalConfigurationBuilder<'a> { } impl<'a> UpdateTerminalConfigurationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + bbpos_wisepos_e: None, + expand: None, + offline: None, + tipping: None, + verifone_p400: None, + } } } /// An object containing device type specific settings for BBPOS WisePOS E readers -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTerminalConfigurationBuilderBbposWiseposE<'a> { /// A File ID representing an image you would like displayed on the reader. #[serde(skip_serializing_if = "Option::is_none")] @@ -286,11 +304,11 @@ pub struct UpdateTerminalConfigurationBuilderBbposWiseposE<'a> { } impl<'a> UpdateTerminalConfigurationBuilderBbposWiseposE<'a> { pub fn new() -> Self { - Self::default() + Self { splashscreen: None } } } /// An object containing device type specific settings for Verifone P400 readers -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTerminalConfigurationBuilderVerifoneP400<'a> { /// A File ID representing an image you would like displayed on the reader. #[serde(skip_serializing_if = "Option::is_none")] @@ -298,7 +316,7 @@ pub struct UpdateTerminalConfigurationBuilderVerifoneP400<'a> { } impl<'a> UpdateTerminalConfigurationBuilderVerifoneP400<'a> { pub fn new() -> Self { - Self::default() + Self { splashscreen: None } } } /// Updates a new `Configuration` object. @@ -422,7 +440,7 @@ impl Offline { Self { enabled } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CurrencySpecificConfig<'a> { /// Fixed amounts displayed when collecting a tip #[serde(skip_serializing_if = "Option::is_none")] @@ -436,10 +454,10 @@ pub struct CurrencySpecificConfig<'a> { } impl<'a> CurrencySpecificConfig<'a> { pub fn new() -> Self { - Self::default() + Self { fixed_amounts: None, percentages: None, smart_tip_threshold: None } } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct Tipping<'a> { /// Tipping configuration for AUD #[serde(skip_serializing_if = "Option::is_none")] @@ -486,6 +504,21 @@ pub struct Tipping<'a> { } impl<'a> Tipping<'a> { pub fn new() -> Self { - Self::default() + Self { + aud: None, + cad: None, + chf: None, + czk: None, + dkk: None, + eur: None, + gbp: None, + hkd: None, + myr: None, + nok: None, + nzd: None, + sek: None, + sgd: None, + usd: None, + } } } diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs index 8b850cb67..63ce1e77a 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalConfigurationConfigurationResourceCurrencySpecificConfig { /// Fixed amounts displayed when collecting a tip #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs index 7ac2f16cd..94a8ac145 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig { /// A File ID representing an image you would like displayed on the reader. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs index 3f97bc4f6..e2cb9860e 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalConfigurationConfigurationResourceOfflineConfig { /// Determines whether to allow transactions to be collected while reader is offline. /// Defaults to false. diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs index 92a96136f..41f47a4ca 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalConfigurationConfigurationResourceTipping { #[serde(skip_serializing_if = "Option::is_none")] pub aud: diff --git a/generated/stripe_terminal/src/terminal_connection_token/requests.rs b/generated/stripe_terminal/src/terminal_connection_token/requests.rs index 651b69eb6..e94a6a699 100644 --- a/generated/stripe_terminal/src/terminal_connection_token/requests.rs +++ b/generated/stripe_terminal/src/terminal_connection_token/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTerminalConnectionTokenBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -16,7 +16,7 @@ pub struct CreateTerminalConnectionTokenBuilder<'a> { } impl<'a> CreateTerminalConnectionTokenBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, location: None } } } /// To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. diff --git a/generated/stripe_terminal/src/terminal_location/requests.rs b/generated/stripe_terminal/src/terminal_location/requests.rs index 18866578e..10d838e98 100644 --- a/generated/stripe_terminal/src/terminal_location/requests.rs +++ b/generated/stripe_terminal/src/terminal_location/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTerminalLocationBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveTerminalLocationBuilder<'a> { } impl<'a> RetrieveTerminalLocationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a `Location` object. @@ -157,7 +157,7 @@ impl StripeRequest for CreateTerminalLocation<'_> { RequestBuilder::new(StripeMethod::Post, "/terminal/locations").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTerminalLocationBuilder<'a> { /// The full address of the location. #[serde(skip_serializing_if = "Option::is_none")] @@ -180,11 +180,17 @@ pub struct UpdateTerminalLocationBuilder<'a> { } impl<'a> UpdateTerminalLocationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + address: None, + configuration_overrides: None, + display_name: None, + expand: None, + metadata: None, + } } } /// The full address of the location. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTerminalLocationBuilderAddress<'a> { /// City, district, suburb, town, or village. #[serde(skip_serializing_if = "Option::is_none")] @@ -207,7 +213,7 @@ pub struct UpdateTerminalLocationBuilderAddress<'a> { } impl<'a> UpdateTerminalLocationBuilderAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// Updates a `Location` object by setting the values of the parameters passed. @@ -277,7 +283,7 @@ pub enum UpdateTerminalLocationReturned { TerminalLocation(stripe_terminal::TerminalLocation), DeletedTerminalLocation(stripe_terminal::DeletedTerminalLocation), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTerminalLocationBuilder<'a> { /// A cursor for use in pagination. /// `ending_before` is an object ID that defines your place in the list. @@ -299,7 +305,7 @@ pub struct ListTerminalLocationBuilder<'a> { } impl<'a> ListTerminalLocationBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of `Location` objects. diff --git a/generated/stripe_terminal/src/terminal_reader/requests.rs b/generated/stripe_terminal/src/terminal_reader/requests.rs index a1886751b..7232bddda 100644 --- a/generated/stripe_terminal/src/terminal_reader/requests.rs +++ b/generated/stripe_terminal/src/terminal_reader/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTerminalReaderBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -19,7 +19,7 @@ pub struct UpdateTerminalReaderBuilder<'a> { } impl<'a> UpdateTerminalReaderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, label: None, metadata: None } } } /// Updates a `Reader` object by setting the values of the parameters passed. @@ -79,7 +79,7 @@ pub enum UpdateTerminalReaderReturned { TerminalReader(stripe_terminal::TerminalReader), DeletedTerminalReader(stripe_terminal::DeletedTerminalReader), } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTerminalReaderBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -87,7 +87,7 @@ pub struct RetrieveTerminalReaderBuilder<'a> { } impl<'a> RetrieveTerminalReaderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a `Reader` object. @@ -214,7 +214,7 @@ impl StripeRequest for CreateTerminalReader<'_> { RequestBuilder::new(StripeMethod::Post, "/terminal/readers").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTerminalReaderBuilder<'a> { /// Filters readers by device type #[serde(skip_serializing_if = "Option::is_none")] @@ -248,7 +248,16 @@ pub struct ListTerminalReaderBuilder<'a> { } impl<'a> ListTerminalReaderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + device_type: None, + ending_before: None, + expand: None, + limit: None, + location: None, + serial_number: None, + starting_after: None, + status: None, + } } } /// A status filter to filter readers to only offline or online readers @@ -420,7 +429,7 @@ impl<'a> ProcessPaymentIntentTerminalReaderBuilder<'a> { } } /// Configuration overrides -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ProcessPaymentIntentTerminalReaderBuilderProcessConfig { /// Override showing a tipping selection screen on this transaction. #[serde(skip_serializing_if = "Option::is_none")] @@ -431,11 +440,11 @@ pub struct ProcessPaymentIntentTerminalReaderBuilderProcessConfig { } impl ProcessPaymentIntentTerminalReaderBuilderProcessConfig { pub fn new() -> Self { - Self::default() + Self { skip_tipping: None, tipping: None } } } /// Tipping configuration for this transaction. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ProcessPaymentIntentTerminalReaderBuilderProcessConfigTipping { /// Amount used to calculate tip suggestions on tipping selection screen for this transaction. /// Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). @@ -444,7 +453,7 @@ pub struct ProcessPaymentIntentTerminalReaderBuilderProcessConfigTipping { } impl ProcessPaymentIntentTerminalReaderBuilderProcessConfigTipping { pub fn new() -> Self { - Self::default() + Self { amount_eligible: None } } } /// Initiates a payment flow on a Reader. @@ -574,7 +583,7 @@ impl StripeRequest for ProcessSetupIntentTerminalReader<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelActionTerminalReaderBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -582,7 +591,7 @@ pub struct CancelActionTerminalReaderBuilder<'a> { } impl<'a> CancelActionTerminalReaderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Cancels the current reader action. @@ -774,7 +783,7 @@ impl StripeRequest for SetReaderDisplayTerminalReader<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RefundPaymentTerminalReaderBuilder<'a> { /// A positive integer in __cents__ representing how much of this charge to refund. #[serde(skip_serializing_if = "Option::is_none")] @@ -808,7 +817,15 @@ pub struct RefundPaymentTerminalReaderBuilder<'a> { } impl<'a> RefundPaymentTerminalReaderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount: None, + charge: None, + expand: None, + metadata: None, + payment_intent: None, + refund_application_fee: None, + reverse_transfer: None, + } } } /// Initiates a refund on a Reader @@ -884,7 +901,7 @@ impl StripeRequest for RefundPaymentTerminalReader<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PresentPaymentMethodTerminalReaderBuilder<'a> { /// Simulated on-reader tip amount. #[serde(skip_serializing_if = "Option::is_none")] @@ -905,11 +922,17 @@ pub struct PresentPaymentMethodTerminalReaderBuilder<'a> { } impl<'a> PresentPaymentMethodTerminalReaderBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + amount_tip: None, + card_present: None, + expand: None, + interac_present: None, + type_: None, + } } } /// Simulated data for the card_present payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PresentPaymentMethodTerminalReaderBuilderCardPresent<'a> { /// The card number, as a string without any separators. #[serde(skip_serializing_if = "Option::is_none")] @@ -917,11 +940,11 @@ pub struct PresentPaymentMethodTerminalReaderBuilderCardPresent<'a> { } impl<'a> PresentPaymentMethodTerminalReaderBuilderCardPresent<'a> { pub fn new() -> Self { - Self::default() + Self { number: None } } } /// Simulated data for the interac_present payment method. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PresentPaymentMethodTerminalReaderBuilderInteracPresent<'a> { /// Card Number #[serde(skip_serializing_if = "Option::is_none")] @@ -929,7 +952,7 @@ pub struct PresentPaymentMethodTerminalReaderBuilderInteracPresent<'a> { } impl<'a> PresentPaymentMethodTerminalReaderBuilderInteracPresent<'a> { pub fn new() -> Self { - Self::default() + Self { number: None } } } /// Simulated payment type. diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs index 000d3e32d..f26a13c2c 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs @@ -1,5 +1,5 @@ /// Represents a per-transaction override of a reader configuration -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalReaderReaderResourceProcessConfig { /// Override showing a tipping selection screen on this transaction. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs index 3fbdbe812..92b9f3746 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs @@ -1,3 +1,3 @@ /// Represents a per-setup override of a reader configuration -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalReaderReaderResourceProcessSetupConfig {} diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs index 73202eff9..e77023209 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs @@ -1,5 +1,5 @@ /// Represents a reader action to refund a payment -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalReaderReaderResourceRefundPaymentAction { /// The amount being refunded. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs index 7c7199602..b19ad9c10 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs @@ -1,5 +1,5 @@ /// Represents a per-transaction tipping configuration -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TerminalReaderReaderResourceTippingConfig { /// Amount used to calculate tip suggestions on tipping selection screen for this transaction. /// Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). diff --git a/generated/stripe_treasury/src/mod.rs b/generated/stripe_treasury/src/mod.rs index e99ca40d7..80fbec2c6 100644 --- a/generated/stripe_treasury/src/mod.rs +++ b/generated/stripe_treasury/src/mod.rs @@ -1,5 +1,6 @@ #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] +#![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/generated/stripe_treasury/src/treasury_credit_reversal/requests.rs b/generated/stripe_treasury/src/treasury_credit_reversal/requests.rs index b25b5ceb5..1468bee32 100644 --- a/generated/stripe_treasury/src/treasury_credit_reversal/requests.rs +++ b/generated/stripe_treasury/src/treasury_credit_reversal/requests.rs @@ -105,7 +105,7 @@ impl StripeRequest for ListTreasuryCreditReversal<'_> { RequestBuilder::new(StripeMethod::Get, "/treasury/credit_reversals").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryCreditReversalBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -113,7 +113,7 @@ pub struct RetrieveTreasuryCreditReversalBuilder<'a> { } impl<'a> RetrieveTreasuryCreditReversalBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list. diff --git a/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs b/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs index bdafb3713..f8fe438d2 100644 --- a/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs +++ b/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs @@ -63,7 +63,7 @@ impl StripeRequest for CreateTreasuryDebitReversal<'_> { RequestBuilder::new(StripeMethod::Post, "/treasury/debit_reversals").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryDebitReversalBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -71,7 +71,7 @@ pub struct RetrieveTreasuryDebitReversalBuilder<'a> { } impl<'a> RetrieveTreasuryDebitReversalBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a DebitReversal object. diff --git a/generated/stripe_treasury/src/treasury_financial_account/requests.rs b/generated/stripe_treasury/src/treasury_financial_account/requests.rs index 9e0368bc6..2b487c0b6 100644 --- a/generated/stripe_treasury/src/treasury_financial_account/requests.rs +++ b/generated/stripe_treasury/src/treasury_financial_account/requests.rs @@ -36,7 +36,7 @@ impl<'a> CreateTreasuryFinancialAccountBuilder<'a> { } /// Encodes whether a FinancialAccount has access to a particular feature. /// Stripe or the platform can control features via the requested field. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryFinancialAccountBuilderFeatures { /// Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. #[serde(skip_serializing_if = "Option::is_none")] @@ -64,7 +64,15 @@ pub struct CreateTreasuryFinancialAccountBuilderFeatures { } impl CreateTreasuryFinancialAccountBuilderFeatures { pub fn new() -> Self { - Self::default() + Self { + card_issuing: None, + deposit_insurance: None, + financial_addresses: None, + inbound_transfers: None, + intra_stripe_flows: None, + outbound_payments: None, + outbound_transfers: None, + } } } /// Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. @@ -91,7 +99,7 @@ impl CreateTreasuryFinancialAccountBuilderFeaturesDepositInsurance { } } /// Contains Features that add FinancialAddresses to the FinancialAccount. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryFinancialAccountBuilderFeaturesFinancialAddresses { /// Adds an ABA FinancialAddress to the FinancialAccount. #[serde(skip_serializing_if = "Option::is_none")] @@ -99,7 +107,7 @@ pub struct CreateTreasuryFinancialAccountBuilderFeaturesFinancialAddresses { } impl CreateTreasuryFinancialAccountBuilderFeaturesFinancialAddresses { pub fn new() -> Self { - Self::default() + Self { aba: None } } } /// Adds an ABA FinancialAddress to the FinancialAccount. @@ -114,7 +122,7 @@ impl CreateTreasuryFinancialAccountBuilderFeaturesFinancialAddressesAba { } } /// Contains settings related to adding funds to a FinancialAccount from another Account with the same owner. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryFinancialAccountBuilderFeaturesInboundTransfers { /// Enables ACH Debits via the InboundTransfers API. #[serde(skip_serializing_if = "Option::is_none")] @@ -122,7 +130,7 @@ pub struct CreateTreasuryFinancialAccountBuilderFeaturesInboundTransfers { } impl CreateTreasuryFinancialAccountBuilderFeaturesInboundTransfers { pub fn new() -> Self { - Self::default() + Self { ach: None } } } /// Enables ACH Debits via the InboundTransfers API. @@ -148,7 +156,7 @@ impl CreateTreasuryFinancialAccountBuilderFeaturesIntraStripeFlows { } } /// Includes Features related to initiating money movement out of the FinancialAccount to someone else's bucket of money. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryFinancialAccountBuilderFeaturesOutboundPayments { /// Enables ACH transfers via the OutboundPayments API. #[serde(skip_serializing_if = "Option::is_none")] @@ -160,7 +168,7 @@ pub struct CreateTreasuryFinancialAccountBuilderFeaturesOutboundPayments { } impl CreateTreasuryFinancialAccountBuilderFeaturesOutboundPayments { pub fn new() -> Self { - Self::default() + Self { ach: None, us_domestic_wire: None } } } /// Enables ACH transfers via the OutboundPayments API. @@ -186,7 +194,7 @@ impl CreateTreasuryFinancialAccountBuilderFeaturesOutboundPaymentsUsDomesticWire } } /// Contains a Feature and settings related to moving money out of the FinancialAccount into another Account with the same owner. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryFinancialAccountBuilderFeaturesOutboundTransfers { /// Enables ACH transfers via the OutboundTransfers API. #[serde(skip_serializing_if = "Option::is_none")] @@ -198,7 +206,7 @@ pub struct CreateTreasuryFinancialAccountBuilderFeaturesOutboundTransfers { } impl CreateTreasuryFinancialAccountBuilderFeaturesOutboundTransfers { pub fn new() -> Self { - Self::default() + Self { ach: None, us_domestic_wire: None } } } /// Enables ACH transfers via the OutboundTransfers API. @@ -224,7 +232,7 @@ impl CreateTreasuryFinancialAccountBuilderFeaturesOutboundTransfersUsDomesticWir } } /// The set of functionalities that the platform can restrict on the FinancialAccount. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryFinancialAccountBuilderPlatformRestrictions { /// Restricts all inbound money movement. #[serde(skip_serializing_if = "Option::is_none")] @@ -237,7 +245,7 @@ pub struct CreateTreasuryFinancialAccountBuilderPlatformRestrictions { } impl CreateTreasuryFinancialAccountBuilderPlatformRestrictions { pub fn new() -> Self { - Self::default() + Self { inbound_flows: None, outbound_flows: None } } } /// Restricts all inbound money movement. @@ -387,7 +395,7 @@ impl StripeRequest for CreateTreasuryFinancialAccount<'_> { RequestBuilder::new(StripeMethod::Post, "/treasury/financial_accounts").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTreasuryFinancialAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -408,12 +416,12 @@ pub struct UpdateTreasuryFinancialAccountBuilder<'a> { } impl<'a> UpdateTreasuryFinancialAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, features: None, metadata: None, platform_restrictions: None } } } /// Encodes whether a FinancialAccount has access to a particular feature, with a status enum and associated `status_details`. /// Stripe or the platform may control features via the requested field. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTreasuryFinancialAccountBuilderFeatures { /// Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. #[serde(skip_serializing_if = "Option::is_none")] @@ -441,7 +449,15 @@ pub struct UpdateTreasuryFinancialAccountBuilderFeatures { } impl UpdateTreasuryFinancialAccountBuilderFeatures { pub fn new() -> Self { - Self::default() + Self { + card_issuing: None, + deposit_insurance: None, + financial_addresses: None, + inbound_transfers: None, + intra_stripe_flows: None, + outbound_payments: None, + outbound_transfers: None, + } } } /// Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. @@ -468,7 +484,7 @@ impl UpdateTreasuryFinancialAccountBuilderFeaturesDepositInsurance { } } /// Contains Features that add FinancialAddresses to the FinancialAccount. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTreasuryFinancialAccountBuilderFeaturesFinancialAddresses { /// Adds an ABA FinancialAddress to the FinancialAccount. #[serde(skip_serializing_if = "Option::is_none")] @@ -476,7 +492,7 @@ pub struct UpdateTreasuryFinancialAccountBuilderFeaturesFinancialAddresses { } impl UpdateTreasuryFinancialAccountBuilderFeaturesFinancialAddresses { pub fn new() -> Self { - Self::default() + Self { aba: None } } } /// Adds an ABA FinancialAddress to the FinancialAccount. @@ -491,7 +507,7 @@ impl UpdateTreasuryFinancialAccountBuilderFeaturesFinancialAddressesAba { } } /// Contains settings related to adding funds to a FinancialAccount from another Account with the same owner. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTreasuryFinancialAccountBuilderFeaturesInboundTransfers { /// Enables ACH Debits via the InboundTransfers API. #[serde(skip_serializing_if = "Option::is_none")] @@ -499,7 +515,7 @@ pub struct UpdateTreasuryFinancialAccountBuilderFeaturesInboundTransfers { } impl UpdateTreasuryFinancialAccountBuilderFeaturesInboundTransfers { pub fn new() -> Self { - Self::default() + Self { ach: None } } } /// Enables ACH Debits via the InboundTransfers API. @@ -525,7 +541,7 @@ impl UpdateTreasuryFinancialAccountBuilderFeaturesIntraStripeFlows { } } /// Includes Features related to initiating money movement out of the FinancialAccount to someone else's bucket of money. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTreasuryFinancialAccountBuilderFeaturesOutboundPayments { /// Enables ACH transfers via the OutboundPayments API. #[serde(skip_serializing_if = "Option::is_none")] @@ -537,7 +553,7 @@ pub struct UpdateTreasuryFinancialAccountBuilderFeaturesOutboundPayments { } impl UpdateTreasuryFinancialAccountBuilderFeaturesOutboundPayments { pub fn new() -> Self { - Self::default() + Self { ach: None, us_domestic_wire: None } } } /// Enables ACH transfers via the OutboundPayments API. @@ -563,7 +579,7 @@ impl UpdateTreasuryFinancialAccountBuilderFeaturesOutboundPaymentsUsDomesticWire } } /// Contains a Feature and settings related to moving money out of the FinancialAccount into another Account with the same owner. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTreasuryFinancialAccountBuilderFeaturesOutboundTransfers { /// Enables ACH transfers via the OutboundTransfers API. #[serde(skip_serializing_if = "Option::is_none")] @@ -575,7 +591,7 @@ pub struct UpdateTreasuryFinancialAccountBuilderFeaturesOutboundTransfers { } impl UpdateTreasuryFinancialAccountBuilderFeaturesOutboundTransfers { pub fn new() -> Self { - Self::default() + Self { ach: None, us_domestic_wire: None } } } /// Enables ACH transfers via the OutboundTransfers API. @@ -601,7 +617,7 @@ impl UpdateTreasuryFinancialAccountBuilderFeaturesOutboundTransfersUsDomesticWir } } /// The set of functionalities that the platform can restrict on the FinancialAccount. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateTreasuryFinancialAccountBuilderPlatformRestrictions { /// Restricts all inbound money movement. #[serde(skip_serializing_if = "Option::is_none")] @@ -614,7 +630,7 @@ pub struct UpdateTreasuryFinancialAccountBuilderPlatformRestrictions { } impl UpdateTreasuryFinancialAccountBuilderPlatformRestrictions { pub fn new() -> Self { - Self::default() + Self { inbound_flows: None, outbound_flows: None } } } /// Restricts all inbound money movement. @@ -770,7 +786,7 @@ impl StripeRequest for UpdateTreasuryFinancialAccount<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateFeaturesTreasuryFinancialAccountBuilder<'a> { /// Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. #[serde(skip_serializing_if = "Option::is_none")] @@ -801,7 +817,16 @@ pub struct UpdateFeaturesTreasuryFinancialAccountBuilder<'a> { } impl<'a> UpdateFeaturesTreasuryFinancialAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { + card_issuing: None, + deposit_insurance: None, + expand: None, + financial_addresses: None, + inbound_transfers: None, + intra_stripe_flows: None, + outbound_payments: None, + outbound_transfers: None, + } } } /// Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. @@ -828,7 +853,7 @@ impl UpdateFeaturesTreasuryFinancialAccountBuilderDepositInsurance { } } /// Contains Features that add FinancialAddresses to the FinancialAccount. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateFeaturesTreasuryFinancialAccountBuilderFinancialAddresses { /// Adds an ABA FinancialAddress to the FinancialAccount. #[serde(skip_serializing_if = "Option::is_none")] @@ -836,7 +861,7 @@ pub struct UpdateFeaturesTreasuryFinancialAccountBuilderFinancialAddresses { } impl UpdateFeaturesTreasuryFinancialAccountBuilderFinancialAddresses { pub fn new() -> Self { - Self::default() + Self { aba: None } } } /// Adds an ABA FinancialAddress to the FinancialAccount. @@ -851,7 +876,7 @@ impl UpdateFeaturesTreasuryFinancialAccountBuilderFinancialAddressesAba { } } /// Contains settings related to adding funds to a FinancialAccount from another Account with the same owner. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateFeaturesTreasuryFinancialAccountBuilderInboundTransfers { /// Enables ACH Debits via the InboundTransfers API. #[serde(skip_serializing_if = "Option::is_none")] @@ -859,7 +884,7 @@ pub struct UpdateFeaturesTreasuryFinancialAccountBuilderInboundTransfers { } impl UpdateFeaturesTreasuryFinancialAccountBuilderInboundTransfers { pub fn new() -> Self { - Self::default() + Self { ach: None } } } /// Enables ACH Debits via the InboundTransfers API. @@ -885,7 +910,7 @@ impl UpdateFeaturesTreasuryFinancialAccountBuilderIntraStripeFlows { } } /// Includes Features related to initiating money movement out of the FinancialAccount to someone else's bucket of money. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateFeaturesTreasuryFinancialAccountBuilderOutboundPayments { /// Enables ACH transfers via the OutboundPayments API. #[serde(skip_serializing_if = "Option::is_none")] @@ -897,7 +922,7 @@ pub struct UpdateFeaturesTreasuryFinancialAccountBuilderOutboundPayments { } impl UpdateFeaturesTreasuryFinancialAccountBuilderOutboundPayments { pub fn new() -> Self { - Self::default() + Self { ach: None, us_domestic_wire: None } } } /// Enables ACH transfers via the OutboundPayments API. @@ -923,7 +948,7 @@ impl UpdateFeaturesTreasuryFinancialAccountBuilderOutboundPaymentsUsDomesticWire } } /// Contains a Feature and settings related to moving money out of the FinancialAccount into another Account with the same owner. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct UpdateFeaturesTreasuryFinancialAccountBuilderOutboundTransfers { /// Enables ACH transfers via the OutboundTransfers API. #[serde(skip_serializing_if = "Option::is_none")] @@ -935,7 +960,7 @@ pub struct UpdateFeaturesTreasuryFinancialAccountBuilderOutboundTransfers { } impl UpdateFeaturesTreasuryFinancialAccountBuilderOutboundTransfers { pub fn new() -> Self { - Self::default() + Self { ach: None, us_domestic_wire: None } } } /// Enables ACH transfers via the OutboundTransfers API. @@ -1059,7 +1084,7 @@ impl StripeRequest for UpdateFeaturesTreasuryFinancialAccount<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTreasuryFinancialAccountBuilder<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub created: Option, @@ -1078,7 +1103,7 @@ pub struct ListTreasuryFinancialAccountBuilder<'a> { } impl<'a> ListTreasuryFinancialAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { created: None, ending_before: None, expand: None, limit: None, starting_after: None } } } /// Returns a list of FinancialAccounts. @@ -1138,7 +1163,7 @@ impl StripeRequest for ListTreasuryFinancialAccount<'_> { RequestBuilder::new(StripeMethod::Get, "/treasury/financial_accounts").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryFinancialAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1146,7 +1171,7 @@ pub struct RetrieveTreasuryFinancialAccountBuilder<'a> { } impl<'a> RetrieveTreasuryFinancialAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of a FinancialAccount. @@ -1192,7 +1217,7 @@ impl StripeRequest for RetrieveTreasuryFinancialAccount<'_> { .query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveFeaturesTreasuryFinancialAccountBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -1200,7 +1225,7 @@ pub struct RetrieveFeaturesTreasuryFinancialAccountBuilder<'a> { } impl<'a> RetrieveFeaturesTreasuryFinancialAccountBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves Features information associated with the FinancialAccount. diff --git a/generated/stripe_treasury/src/treasury_financial_account_features.rs b/generated/stripe_treasury/src/treasury_financial_account_features.rs index 3a461ef13..7e46e5eb6 100644 --- a/generated/stripe_treasury/src/treasury_financial_account_features.rs +++ b/generated/stripe_treasury/src/treasury_financial_account_features.rs @@ -1,6 +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, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryFinancialAccountFeatures { #[serde(skip_serializing_if = "Option::is_none")] pub card_issuing: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs index 20f75b4de..3032cefa4 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs @@ -1,5 +1,5 @@ /// Settings related to Financial Addresses features on a Financial Account -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryFinancialAccountsResourceFinancialAddressesFeatures { #[serde(skip_serializing_if = "Option::is_none")] pub aba: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs index 666a4f695..fbd4c1a0c 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs @@ -1,5 +1,5 @@ /// InboundTransfers contains inbound transfers features for a FinancialAccount. -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryFinancialAccountsResourceInboundTransfers { #[serde(skip_serializing_if = "Option::is_none")] pub ach: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs index 9deb349ad..60aa17a3e 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs @@ -1,5 +1,5 @@ /// Settings related to Outbound Payments features on a Financial Account -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryFinancialAccountsResourceOutboundPayments { #[serde(skip_serializing_if = "Option::is_none")] pub ach: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs index c9a0abe03..eec645140 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs @@ -1,5 +1,5 @@ /// OutboundTransfers contains outbound transfers features for a FinancialAccount. -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryFinancialAccountsResourceOutboundTransfers { #[serde(skip_serializing_if = "Option::is_none")] pub ach: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs index 469e247d9..bbe4a64e1 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs @@ -1,5 +1,5 @@ /// Restrictions that a Connect Platform has placed on this FinancialAccount. -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryFinancialAccountsResourcePlatformRestrictions { /// Restricts all inbound money movement. pub inbound_flows: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs index 9af0ca396..e6df50f67 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryFinancialAccountsResourceStatusDetails { /// Details related to the closure of this FinancialAccount pub closed: Option, diff --git a/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs b/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs index 3810cb6ee..7d6bb0e59 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelTreasuryInboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct CancelTreasuryInboundTransferBuilder<'a> { } impl<'a> CancelTreasuryInboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Cancels an InboundTransfer. @@ -166,7 +166,7 @@ impl StripeRequest for CreateTreasuryInboundTransfer<'_> { RequestBuilder::new(StripeMethod::Post, "/treasury/inbound_transfers").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryInboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -174,7 +174,7 @@ pub struct RetrieveTreasuryInboundTransferBuilder<'a> { } impl<'a> RetrieveTreasuryInboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing InboundTransfer. @@ -311,7 +311,7 @@ impl StripeRequest for ListTreasuryInboundTransfer<'_> { RequestBuilder::new(StripeMethod::Get, "/treasury/inbound_transfers").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct SucceedTreasuryInboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -319,7 +319,7 @@ pub struct SucceedTreasuryInboundTransferBuilder<'a> { } impl<'a> SucceedTreasuryInboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Transitions a test mode created InboundTransfer to the `succeeded` status. @@ -366,7 +366,7 @@ impl StripeRequest for SucceedTreasuryInboundTransfer<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FailTreasuryInboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -377,11 +377,11 @@ pub struct FailTreasuryInboundTransferBuilder<'a> { } impl<'a> FailTreasuryInboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, failure_details: None } } } /// Details about a failed InboundTransfer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FailTreasuryInboundTransferBuilderFailureDetails { /// Reason for the failure. #[serde(skip_serializing_if = "Option::is_none")] @@ -389,7 +389,7 @@ pub struct FailTreasuryInboundTransferBuilderFailureDetails { } impl FailTreasuryInboundTransferBuilderFailureDetails { pub fn new() -> Self { - Self::default() + Self { code: None } } } /// Reason for the failure. @@ -527,7 +527,7 @@ impl StripeRequest for FailTreasuryInboundTransfer<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReturnInboundTransferTreasuryInboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -535,7 +535,7 @@ pub struct ReturnInboundTransferTreasuryInboundTransferBuilder<'a> { } impl<'a> ReturnInboundTransferTreasuryInboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. diff --git a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs index cb81ee4fa..e2049a2e8 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows { /// If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return. pub received_debit: Option, diff --git a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs index 2f044fd44..3c639de52 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions { /// Timestamp describing when an InboundTransfer changed status to `canceled`. #[serde(skip_serializing_if = "Option::is_none")] diff --git a/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs b/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs index f5288213e..2a3032ec1 100644 --- a/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs +++ b/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs @@ -108,7 +108,7 @@ impl<'a> CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodData<'a> { } } /// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataBillingDetails<'a> { /// Billing address. #[serde(skip_serializing_if = "Option::is_none")] @@ -127,11 +127,11 @@ pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataBilli } impl<'a> CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataBillingDetails<'a> { pub fn new() -> Self { - Self::default() + Self { address: None, email: None, name: None, phone: None } } } /// Billing address. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataBillingDetailsAddress<'a> { /// City, district, suburb, town, or village. @@ -155,7 +155,7 @@ pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataBilli } impl<'a> CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataBillingDetailsAddress<'a> { pub fn new() -> Self { - Self::default() + Self { city: None, country: None, line1: None, line2: None, postal_code: None, state: None } } } /// The type of the PaymentMethod. @@ -207,7 +207,7 @@ impl serde::Serialize for CreateTreasuryOutboundPaymentBuilderDestinationPayment } } /// Required hash if type is set to `us_bank_account`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataUsBankAccount<'a> { /// Account holder type: individual or company. #[serde(skip_serializing_if = "Option::is_none")] @@ -228,7 +228,13 @@ pub routing_number: Option<&'a str>, } impl<'a> CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodDataUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { + account_holder_type: None, + account_number: None, + account_type: None, + financial_connections_account: None, + routing_number: None, + } } } /// Account holder type: individual or company. @@ -333,7 +339,7 @@ impl serde::Serialize } } /// Payment method-specific configuration for this OutboundPayment. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodOptions { /// Optional fields for `us_bank_account`. #[serde(skip_serializing_if = "Option::is_none")] @@ -342,11 +348,11 @@ pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodOptions { } impl CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodOptions { pub fn new() -> Self { - Self::default() + Self { us_bank_account: None } } } /// Optional fields for `us_bank_account`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodOptionsUsBankAccount { /// The US bank account network that must be used for this OutboundPayment. /// If not set, we will default to the PaymentMethod's preferred network. @@ -357,7 +363,7 @@ pub struct CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodOptionsUs } impl CreateTreasuryOutboundPaymentBuilderDestinationPaymentMethodOptionsUsBankAccount { pub fn new() -> Self { - Self::default() + Self { network: None } } } /// The US bank account network that must be used for this OutboundPayment. @@ -519,7 +525,7 @@ impl StripeRequest for CreateTreasuryOutboundPayment<'_> { RequestBuilder::new(StripeMethod::Post, "/treasury/outbound_payments").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryOutboundPaymentBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -527,7 +533,7 @@ pub struct RetrieveTreasuryOutboundPaymentBuilder<'a> { } impl<'a> RetrieveTreasuryOutboundPaymentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list. @@ -673,7 +679,7 @@ impl StripeRequest for ListTreasuryOutboundPayment<'_> { RequestBuilder::new(StripeMethod::Get, "/treasury/outbound_payments").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelTreasuryOutboundPaymentBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -681,7 +687,7 @@ pub struct CancelTreasuryOutboundPaymentBuilder<'a> { } impl<'a> CancelTreasuryOutboundPaymentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Cancel an OutboundPayment. @@ -724,7 +730,7 @@ impl StripeRequest for CancelTreasuryOutboundPayment<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FailTreasuryOutboundPaymentBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -732,7 +738,7 @@ pub struct FailTreasuryOutboundPaymentBuilder<'a> { } impl<'a> FailTreasuryOutboundPaymentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Transitions a test mode created OutboundPayment to the `failed` status. @@ -779,7 +785,7 @@ impl StripeRequest for FailTreasuryOutboundPayment<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PostTreasuryOutboundPaymentBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -787,7 +793,7 @@ pub struct PostTreasuryOutboundPaymentBuilder<'a> { } impl<'a> PostTreasuryOutboundPaymentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Transitions a test mode created OutboundPayment to the `posted` status. @@ -834,7 +840,7 @@ impl StripeRequest for PostTreasuryOutboundPayment<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReturnOutboundPaymentTreasuryOutboundPaymentBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -846,11 +852,11 @@ pub struct ReturnOutboundPaymentTreasuryOutboundPaymentBuilder<'a> { } impl<'a> ReturnOutboundPaymentTreasuryOutboundPaymentBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, returned_details: None } } } /// Optional hash to set the the return code. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReturnOutboundPaymentTreasuryOutboundPaymentBuilderReturnedDetails { /// The return code to be set on the OutboundPayment object. #[serde(skip_serializing_if = "Option::is_none")] @@ -858,7 +864,7 @@ pub struct ReturnOutboundPaymentTreasuryOutboundPaymentBuilderReturnedDetails { } impl ReturnOutboundPaymentTreasuryOutboundPaymentBuilderReturnedDetails { pub fn new() -> Self { - Self::default() + Self { code: None } } } /// The return code to be set on the OutboundPayment object. diff --git a/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs index 7a1a3d797..959dc6358 100644 --- a/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions { /// Timestamp describing when an OutboundPayment changed status to `canceled`. pub canceled_at: Option, diff --git a/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs b/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs index 5c9c338d7..d170f057b 100644 --- a/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs +++ b/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs @@ -52,7 +52,7 @@ impl<'a> CreateTreasuryOutboundTransferBuilder<'a> { } } /// Hash describing payment method configuration details. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryOutboundTransferBuilderDestinationPaymentMethodOptions { /// Optional fields for `us_bank_account`. #[serde(skip_serializing_if = "Option::is_none")] @@ -61,11 +61,11 @@ pub struct CreateTreasuryOutboundTransferBuilderDestinationPaymentMethodOptions } impl CreateTreasuryOutboundTransferBuilderDestinationPaymentMethodOptions { pub fn new() -> Self { - Self::default() + Self { us_bank_account: None } } } /// Optional fields for `us_bank_account`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryOutboundTransferBuilderDestinationPaymentMethodOptionsUsBankAccount { /// Designate the OutboundTransfer as using a US bank account network configuration. #[serde(skip_serializing_if = "Option::is_none")] @@ -75,7 +75,7 @@ pub struct CreateTreasuryOutboundTransferBuilderDestinationPaymentMethodOptionsU } impl CreateTreasuryOutboundTransferBuilderDestinationPaymentMethodOptionsUsBankAccount { pub fn new() -> Self { - Self::default() + Self { network: None } } } /// Designate the OutboundTransfer as using a US bank account network configuration. @@ -199,7 +199,7 @@ impl StripeRequest for CreateTreasuryOutboundTransfer<'_> { RequestBuilder::new(StripeMethod::Post, "/treasury/outbound_transfers").form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryOutboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -207,7 +207,7 @@ pub struct RetrieveTreasuryOutboundTransferBuilder<'a> { } impl<'a> RetrieveTreasuryOutboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list. @@ -347,7 +347,7 @@ impl StripeRequest for ListTreasuryOutboundTransfer<'_> { RequestBuilder::new(StripeMethod::Get, "/treasury/outbound_transfers").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CancelTreasuryOutboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -355,7 +355,7 @@ pub struct CancelTreasuryOutboundTransferBuilder<'a> { } impl<'a> CancelTreasuryOutboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// An OutboundTransfer can be canceled if the funds have not yet been paid out. @@ -401,7 +401,7 @@ impl StripeRequest for CancelTreasuryOutboundTransfer<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct FailTreasuryOutboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -409,7 +409,7 @@ pub struct FailTreasuryOutboundTransferBuilder<'a> { } impl<'a> FailTreasuryOutboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Transitions a test mode created OutboundTransfer to the `failed` status. @@ -456,7 +456,7 @@ impl StripeRequest for FailTreasuryOutboundTransfer<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct PostTreasuryOutboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -464,7 +464,7 @@ pub struct PostTreasuryOutboundTransferBuilder<'a> { } impl<'a> PostTreasuryOutboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Transitions a test mode created OutboundTransfer to the `posted` status. @@ -511,7 +511,7 @@ impl StripeRequest for PostTreasuryOutboundTransfer<'_> { .form(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReturnOutboundTransferTreasuryOutboundTransferBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -523,11 +523,11 @@ pub struct ReturnOutboundTransferTreasuryOutboundTransferBuilder<'a> { } impl<'a> ReturnOutboundTransferTreasuryOutboundTransferBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None, returned_details: None } } } /// Details about a returned OutboundTransfer. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ReturnOutboundTransferTreasuryOutboundTransferBuilderReturnedDetails { /// Reason for the return. #[serde(skip_serializing_if = "Option::is_none")] @@ -535,7 +535,7 @@ pub struct ReturnOutboundTransferTreasuryOutboundTransferBuilderReturnedDetails } impl ReturnOutboundTransferTreasuryOutboundTransferBuilderReturnedDetails { pub fn new() -> Self { - Self::default() + Self { code: None } } } /// Reason for the return. diff --git a/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs index 5c77bafdd..8d2eb1e47 100644 --- a/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryOutboundTransfersResourceStatusTransitions { /// Timestamp describing when an OutboundTransfer changed status to `canceled` pub canceled_at: Option, diff --git a/generated/stripe_treasury/src/treasury_received_credit/requests.rs b/generated/stripe_treasury/src/treasury_received_credit/requests.rs index 5d7c754f4..7f76088ff 100644 --- a/generated/stripe_treasury/src/treasury_received_credit/requests.rs +++ b/generated/stripe_treasury/src/treasury_received_credit/requests.rs @@ -173,7 +173,7 @@ impl StripeRequest for ListTreasuryReceivedCredit<'_> { RequestBuilder::new(StripeMethod::Get, "/treasury/received_credits").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryReceivedCreditBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -181,7 +181,7 @@ pub struct RetrieveTreasuryReceivedCreditBuilder<'a> { } impl<'a> RetrieveTreasuryReceivedCreditBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list. @@ -326,7 +326,7 @@ impl serde::Serialize for CreateTreasuryReceivedCreditBuilderInitiatingPaymentMe } } /// Optional fields for `us_bank_account`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryReceivedCreditBuilderInitiatingPaymentMethodDetailsUsBankAccount<'a> { /// The bank account holder's name. #[serde(skip_serializing_if = "Option::is_none")] @@ -340,7 +340,7 @@ pub struct CreateTreasuryReceivedCreditBuilderInitiatingPaymentMethodDetailsUsBa } impl<'a> CreateTreasuryReceivedCreditBuilderInitiatingPaymentMethodDetailsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { account_holder_name: None, account_number: None, routing_number: None } } } /// The rails used for the object. diff --git a/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs b/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs index db5527c60..df786e2e0 100644 --- a/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryReceivedCreditsResourceLinkedFlows { /// The CreditReversal created as a result of this ReceivedCredit being reversed. pub credit_reversal: Option, diff --git a/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs b/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs index e46815910..73408fbb2 100644 --- a/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs +++ b/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryReceivedCreditsResourceReversalDetails { /// Time before which a ReceivedCredit can be reversed. pub deadline: Option, diff --git a/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs index ebbdc717b..fe5c79d7c 100644 --- a/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryReceivedCreditsResourceStatusTransitions { /// Timestamp describing when the CreditReversal changed status to `posted` pub posted_at: Option, diff --git a/generated/stripe_treasury/src/treasury_received_debit/requests.rs b/generated/stripe_treasury/src/treasury_received_debit/requests.rs index bc22f7d21..382ec8de4 100644 --- a/generated/stripe_treasury/src/treasury_received_debit/requests.rs +++ b/generated/stripe_treasury/src/treasury_received_debit/requests.rs @@ -96,7 +96,7 @@ impl StripeRequest for ListTreasuryReceivedDebit<'_> { RequestBuilder::new(StripeMethod::Get, "/treasury/received_debits").query(&self.inner) } } -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryReceivedDebitBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -104,7 +104,7 @@ pub struct RetrieveTreasuryReceivedDebitBuilder<'a> { } impl<'a> RetrieveTreasuryReceivedDebitBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list. @@ -249,7 +249,7 @@ impl serde::Serialize for CreateTreasuryReceivedDebitBuilderInitiatingPaymentMet } } /// Optional fields for `us_bank_account`. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct CreateTreasuryReceivedDebitBuilderInitiatingPaymentMethodDetailsUsBankAccount<'a> { /// The bank account holder's name. #[serde(skip_serializing_if = "Option::is_none")] @@ -263,7 +263,7 @@ pub struct CreateTreasuryReceivedDebitBuilderInitiatingPaymentMethodDetailsUsBan } impl<'a> CreateTreasuryReceivedDebitBuilderInitiatingPaymentMethodDetailsUsBankAccount<'a> { pub fn new() -> Self { - Self::default() + Self { account_holder_name: None, account_number: None, routing_number: None } } } /// The rails used for the object. diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs index 96b31b048..c85bffe66 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryReceivedDebitsResourceDebitReversalLinkedFlows { /// Set if there is an Issuing dispute associated with the DebitReversal. pub issuing_dispute: Option, diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs index f5f2f5e4a..44dabd5c4 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryReceivedDebitsResourceLinkedFlows { /// The DebitReversal created as a result of this ReceivedDebit being reversed. pub debit_reversal: Option, diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs index c83c17064..d1de3f804 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryReceivedDebitsResourceReversalDetails { /// Time before which a ReceivedDebit can be reversed. pub deadline: Option, diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs index 66df51d8e..9f59ea451 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryReceivedDebitsResourceStatusTransitions { /// Timestamp describing when the DebitReversal changed status to `completed`. pub completed_at: Option, diff --git a/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs b/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs index 24ba0cdff..f9055414c 100644 --- a/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs +++ b/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount { /// Bank name. pub bank_name: Option, diff --git a/generated/stripe_treasury/src/treasury_transaction/requests.rs b/generated/stripe_treasury/src/treasury_transaction/requests.rs index 84355fa8a..1b3127384 100644 --- a/generated/stripe_treasury/src/treasury_transaction/requests.rs +++ b/generated/stripe_treasury/src/treasury_transaction/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryTransactionBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveTreasuryTransactionBuilder<'a> { } impl<'a> RetrieveTreasuryTransactionBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves the details of an existing Transaction. @@ -152,7 +152,7 @@ impl serde::Serialize for ListTreasuryTransactionBuilderOrderBy { } /// A filter for the `status_transitions.posted_at` timestamp. /// When using this filter, `status=posted` and `order_by=posted_at` must also be specified. -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct ListTreasuryTransactionBuilderStatusTransitions { /// Returns Transactions with `posted_at` within the specified range. #[serde(skip_serializing_if = "Option::is_none")] @@ -160,7 +160,7 @@ pub struct ListTreasuryTransactionBuilderStatusTransitions { } impl ListTreasuryTransactionBuilderStatusTransitions { pub fn new() -> Self { - Self::default() + Self { posted_at: None } } } /// Retrieves a list of Transaction objects. diff --git a/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs b/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs index f738c3fc5..ade527cc2 100644 --- a/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs +++ b/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs @@ -2,7 +2,7 @@ use stripe_client_core::{ RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest, }; -#[derive(Copy, Clone, Debug, Default, serde::Serialize)] +#[derive(Copy, Clone, Debug, serde::Serialize)] pub struct RetrieveTreasuryTransactionEntryBuilder<'a> { /// Specifies which fields in the response should be expanded. #[serde(skip_serializing_if = "Option::is_none")] @@ -10,7 +10,7 @@ pub struct RetrieveTreasuryTransactionEntryBuilder<'a> { } impl<'a> RetrieveTreasuryTransactionEntryBuilder<'a> { pub fn new() -> Self { - Self::default() + Self { expand: None } } } /// Retrieves a TransactionEntry object. diff --git a/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs index cf9550c30..d28e69559 100644 --- a/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs @@ -1,4 +1,4 @@ -#[derive(Copy, Clone, Debug, Default, serde::Serialize, serde::Deserialize)] +#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)] pub struct TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions { /// Timestamp describing when the Transaction changed status to `posted`. pub posted_at: Option, diff --git a/openapi/src/codegen.rs b/openapi/src/codegen.rs index 1b1ecf6dc..7a001f314 100644 --- a/openapi/src/codegen.rs +++ b/openapi/src/codegen.rs @@ -110,6 +110,7 @@ impl CodeGen { r#" #![recursion_limit = "256"] #![allow(clippy::large_enum_variant)] + #![allow(clippy::new_without_default)] #![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::invalid_html_tags)] diff --git a/openapi/src/object_writing.rs b/openapi/src/object_writing.rs index bec3a2132..c9a041ccf 100644 --- a/openapi/src/object_writing.rs +++ b/openapi/src/object_writing.rs @@ -36,8 +36,6 @@ impl Components { match obj { RustObject::Struct(fields) => { - let should_derive_default = fields.iter().all(|field| field.rust_type.is_option()); - writer.derive_default(should_derive_default); writer.write_struct_definition(out, fields); if metadata.kind.is_request_param() { writer.write_struct_constructor(out, fields); diff --git a/openapi/src/templates/derives.rs b/openapi/src/templates/derives.rs index fc837ba84..42d1f23b7 100644 --- a/openapi/src/templates/derives.rs +++ b/openapi/src/templates/derives.rs @@ -2,7 +2,6 @@ pub struct Derives { pub copy: bool, pub debug: bool, - pub default: bool, pub eq: bool, pub serialize: bool, pub deserialize: bool, @@ -10,14 +9,7 @@ pub struct Derives { impl Derives { pub const fn new() -> Self { - Self { - debug: true, - copy: false, - default: false, - eq: false, - serialize: false, - deserialize: false, - } + Self { debug: true, copy: false, eq: false, serialize: false, deserialize: false } } pub fn debug(mut self, debug: bool) -> Self { @@ -30,11 +22,6 @@ impl Derives { self } - pub fn default(mut self, default: bool) -> Self { - self.default = default; - self - } - pub fn eq(mut self, eq: bool) -> Self { self.eq = eq; self diff --git a/openapi/src/templates/enums.rs b/openapi/src/templates/enums.rs index 5f1f03599..82ae7bddc 100644 --- a/openapi/src/templates/enums.rs +++ b/openapi/src/templates/enums.rs @@ -71,8 +71,7 @@ impl<'a> ObjectWriter<'a> { ); } - /// Generate the enum definition, along with the methods `as_str`, `as_ref`, `impl Display`, - /// and `impl Default`. + /// Generate the enum definition and core methods pub fn write_fieldless_enum_variants(&self, out: &mut String, variants: &[FieldlessVariant]) { let enum_name = self.ident; // Build the body of the enum definition diff --git a/openapi/src/templates/object_writer.rs b/openapi/src/templates/object_writer.rs index ad69710ab..5c883d17b 100644 --- a/openapi/src/templates/object_writer.rs +++ b/openapi/src/templates/object_writer.rs @@ -44,11 +44,6 @@ impl<'a> ObjectWriter<'a> { self } - pub fn derive_default(&mut self, derive_default: bool) -> &mut Self { - self.derives = self.derives.default(derive_default); - self - } - pub fn get_printable(&self, typ: &RustType) -> PrintableType { self.components.construct_printable_type(typ) } @@ -80,9 +75,6 @@ pub fn write_derives_line(out: &mut String, derives: Derives) { if derives.debug { let _ = write!(out, "Debug,"); } - if derives.default { - let _ = write!(out, "Default,"); - } if derives.eq { let _ = write!(out, "Eq, PartialEq,"); } diff --git a/openapi/src/templates/structs.rs b/openapi/src/templates/structs.rs index e438cba08..edaac0d91 100644 --- a/openapi/src/templates/structs.rs +++ b/openapi/src/templates/structs.rs @@ -41,38 +41,30 @@ impl<'a> ObjectWriter<'a> { pub fn write_struct_constructor(&self, out: &mut String, fields: &[StructField]) { let name = self.ident; let lifetime_str = self.lifetime_param(); - let cons_body = if self.derives.default { - r" - pub fn new() -> Self { - Self::default() - } - " - .into() - } else { - let mut cons_inner = String::new(); - let params = self.get_required_param_args(fields); - for field in fields { - let f_name = &field.field_name; - if field.required { - let _ = write!(cons_inner, "{f_name},"); - } else { - // `Default::default()` would also evaluate to `None` for `Option` types, but nice to - // generate less code and maybe make things easier for the compiler since pretty much all - // of these types are `Option`. - let field_default_val = - if field.rust_type.is_option() { "None" } else { "Default::default()" }; - let _ = write!(cons_inner, "{f_name}: {field_default_val},"); + let mut cons_inner = String::new(); + let params = self.get_required_param_args(fields); + for field in fields { + let f_name = &field.field_name; + if field.required { + let _ = write!(cons_inner, "{f_name},"); + } else { + // `Default::default()` would also evaluate to `None` for `Option` types, but nice to + // generate less code and maybe make things easier for the compiler since all + // of these types are `Option`. + if !field.rust_type.is_option() { + panic!("expected all not required types to be `Option`"); } + let _ = write!(cons_inner, "{f_name}: None,"); } - formatdoc! { - r" + } + let cons_body = formatdoc! { + r" pub fn new({params}) -> Self {{ Self {{ {cons_inner} }} }} " - } }; let _ = writedoc!( out, diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 2f913d493..ef75bef7b 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -14,7 +14,7 @@ wiremock = "0.5.22" futures-util = { version = "0.3.21" } tokio = { version = "1.24.1", features = ["rt", "macros"] } stripe_types = { path = "../stripe_types" } -async-stripe = { path = "../async-stripe" } +async-stripe = { path = "../async-stripe", features = ["blocking"] } stripe_connect = { path = "../generated/stripe_connect", features = ["account", "transfer_reversal"] } stripe_billing = { path = "../generated/stripe_billing", features = ["invoice", "plan", "subscription", "subscription_item", "usage_record"] } stripe_core = { path = "../generated/stripe_core", features = ["customer", "charge", "token"] } diff --git a/tests/tests/it/blocking/account.rs b/tests/tests/it/blocking/account.rs index 733665089..59e3553c1 100644 --- a/tests/tests/it/blocking/account.rs +++ b/tests/tests/it/blocking/account.rs @@ -2,32 +2,29 @@ use stripe::AccountId; use stripe_connect::account::{CapabilitiesParam, CapabilityParam, CreateAccount, ListAccount}; use stripe_connect::AccountCapabilitiesStatus; -use crate::mock::get_client; - #[test] fn is_account_listable() { - let client = get_client(); + let client = super::get_client(); let expected_id: AccountId = "acct_1OPouMJN5vQBdWEx".parse().unwrap(); - let result = ListAccount::new().send(&client).unwrap(); + let result = ListAccount::new().send_blocking(&client).unwrap(); // Check to ensure we are deserializing _something_ and this test // actually validates something worthwhile. assert_eq!(result.data.len(), 1); assert_eq!(result.data.first().unwrap().id, expected_id); - let result = ListAccount::new().paginate().get_all(&client).unwrap(); - assert_eq!(result.len(), 1); - assert_eq!(result.first().unwrap().id, expected_id); + todo!("pagination") + // let result = ListAccount::new().paginate().get_all(&client).unwrap(); + // assert_eq!(result.len(), 1); + // assert_eq!(result.first().unwrap().id, expected_id); } #[test] fn create_account() { - let client = get_client(); - let mut create = CreateAccount::new(); + let client = super::get_client(); let mut capabilities = CapabilitiesParam::new(); capabilities.acss_debit_payments = Some(CapabilityParam { requested: Some(true) }); - create.capabilities = Some(capabilities); - let result = create.send(&client).unwrap(); + let result = CreateAccount::new().capabilities(capabilities).send_blocking(&client).unwrap(); assert_eq!(result.email, Some("site@stripe.com".to_string())); assert_eq!(result.capabilities.unwrap().card_payments, Some(AccountCapabilitiesStatus::Active)); } diff --git a/tests/tests/it/blocking/charge.rs b/tests/tests/it/blocking/charge.rs index 7c4c4be84..ba9a25cff 100644 --- a/tests/tests/it/blocking/charge.rs +++ b/tests/tests/it/blocking/charge.rs @@ -1,13 +1,11 @@ use stripe_core::charge::RetrieveCharge; -use crate::mock::get_client; - #[test] fn is_charge_retrievable() { - let client = get_client(); + let client = super::get_client(); let id = "ch_123".parse().unwrap(); - let charge = RetrieveCharge::new().send(&client, &id).unwrap(); + let charge = RetrieveCharge::new(&id).send_blocking(&client).unwrap(); assert_eq!(charge.id, "ch_123"); assert!(charge.customer.is_none()); assert!(charge.invoice.is_none()); diff --git a/tests/tests/it/blocking/checkout.rs b/tests/tests/it/blocking/checkout.rs index ef7ac60c2..34f023d6b 100644 --- a/tests/tests/it/blocking/checkout.rs +++ b/tests/tests/it/blocking/checkout.rs @@ -1,12 +1,12 @@ use stripe_checkout::checkout_session::RetrieveCheckoutSession; -use crate::mock::get_client; +use super::get_client; #[test] fn is_checkout_session_retrievable() { let client = get_client(); let id = "cs_test_123".parse().unwrap(); - let session = RetrieveCheckoutSession::new().send(&client, &id).unwrap(); + let session = RetrieveCheckoutSession::new(&id).send_blocking(&client).unwrap(); assert_eq!(session.id, "cs_test_123"); } diff --git a/tests/tests/it/blocking/customer.rs b/tests/tests/it/blocking/customer.rs index ede5ac27f..fe6431be8 100644 --- a/tests/tests/it/blocking/customer.rs +++ b/tests/tests/it/blocking/customer.rs @@ -2,12 +2,12 @@ use stripe_core::customer::{ CreateCustomer, DeleteCustomer, RetrieveCustomer, RetrieveCustomerReturned, }; -use crate::mock::get_client; +use super::get_client; -fn customer_create_and_delete(client: &stripe::Client) { +fn customer_create_and_delete(client: &stripe::blocking::Client) { // NB: the create step is not required for deletion to work since the stripe mock is stateless - let customer = CreateCustomer::new().send(client).unwrap(); - let result = DeleteCustomer::new().send(client, &customer.id).unwrap(); + let customer = CreateCustomer::new().send_blocking(client).unwrap(); + let result = DeleteCustomer::new(&customer.id).send_blocking(client).unwrap(); assert_eq!(result.id, customer.id); } @@ -19,17 +19,18 @@ fn customer_create_and_delete_without_account() { #[test] fn customer_create_and_delete_with_account() { - let client = get_client() - .with_client_id("ca_123".parse().unwrap()) - .with_stripe_account("acct_123".parse().unwrap()); - customer_create_and_delete(&client); + todo!("support config") + // let client = get_client() + // .with_client_id("ca_123".parse().unwrap()) + // .with_stripe_account("acct_123".parse().unwrap()); + // customer_create_and_delete(&client); } #[test] fn retrieve_customer() { let client = get_client(); let id = "cus_123".parse().unwrap(); - let ret = RetrieveCustomer::new().send(&client, &id).unwrap(); + let ret = RetrieveCustomer::new(&id).send_blocking(&client).unwrap(); match ret { RetrieveCustomerReturned::Customer(cust) => { assert_eq!(cust.id, id); diff --git a/tests/tests/it/blocking/invoice.rs b/tests/tests/it/blocking/invoice.rs index d2a7ab107..f1c5fccf2 100644 --- a/tests/tests/it/blocking/invoice.rs +++ b/tests/tests/it/blocking/invoice.rs @@ -1,19 +1,19 @@ use stripe_billing::invoice::{ FinalizeInvoiceInvoice, PayInvoice, RetrieveInvoice, UpcomingInvoice, - UpcomingInvoiceSubscriptionItems, + UpcomingInvoiceBuilderSubscriptionItems, }; -use crate::mock::get_client; +use super::get_client; // Smoke test, https://github.com/arlyon/async-stripe/issues/396 #[test] fn is_invoice_retrievable() { let client = get_client(); - - let mut retriever = RetrieveInvoice::new(); - retriever.expand = Some(&["charge.balance_transaction"]); let id = "in_123".parse().unwrap(); - let result = retriever.send(&client, &id).unwrap(); + let result = RetrieveInvoice::new(&id) + .expand(&["charge.balance_transaction"]) + .send_blocking(&client) + .unwrap(); let charge = result.charge.unwrap(); assert!(charge.is_object()); } @@ -24,12 +24,14 @@ fn is_invoice_retrievable() { fn is_invoice_payable() { let client = get_client(); - let mut payer = PayInvoice::new(); - payer.forgive = Some(true); - payer.off_session = Some(true); - payer.paid_out_of_band = Some(true); let id = "in_123".parse().unwrap(); - let result = payer.send(&client, &id).unwrap(); + + let result = PayInvoice::new(&id) + .forgive(true) + .off_session(true) + .paid_out_of_band(true) + .send_blocking(&client) + .unwrap(); assert_eq!(result.id, Some(id)); assert_eq!(result.paid_out_of_band, true); } @@ -39,10 +41,9 @@ fn is_invoice_payable() { fn finalize_invoice() { let client = get_client(); - let mut finalize = FinalizeInvoiceInvoice::new(); - finalize.auto_advance = Some(true); let id = "in_123".parse().unwrap(); - let result = finalize.send(&client, &id).unwrap(); + let result = + FinalizeInvoiceInvoice::new(&id).auto_advance(true).send_blocking(&client).unwrap(); assert_eq!(result.id, Some(id)); assert_eq!(result.auto_advance, Some(true)); } @@ -52,10 +53,10 @@ fn finalize_invoice() { fn upcoming_invoice() { let client = get_client(); - let mut upcoming = UpcomingInvoice::new(); - let items = vec![UpcomingInvoiceSubscriptionItems::new()]; - upcoming.subscription_items = Some(&items); - let result = upcoming.send(&client).unwrap(); + let result = UpcomingInvoice::new() + .subscription_items(&vec![UpcomingInvoiceBuilderSubscriptionItems::new()]) + .send_blocking(&client) + .unwrap(); assert_eq!(result.subtotal, 1000); assert_eq!(result.amount_due, 1000); } diff --git a/tests/tests/it/blocking/mod.rs b/tests/tests/it/blocking/mod.rs index bdfde9e88..3e6d5fcb9 100644 --- a/tests/tests/it/blocking/mod.rs +++ b/tests/tests/it/blocking/mod.rs @@ -1,3 +1,5 @@ +use stripe::blocking::Client; + mod account; mod charge; mod checkout; @@ -11,3 +13,7 @@ mod subscription; mod subscription_item; mod token; mod transfer_reversal; + +pub fn get_client() -> Client { + Client::from_url("http://localhost:12111", "sk_test_123") +} diff --git a/tests/tests/it/blocking/plan_interval.rs b/tests/tests/it/blocking/plan_interval.rs index 121632309..8bbbc1217 100644 --- a/tests/tests/it/blocking/plan_interval.rs +++ b/tests/tests/it/blocking/plan_interval.rs @@ -3,19 +3,21 @@ use stripe_billing::plan::RetrievePlan; use stripe_billing::subscription_item::{ - CreateSubscriptionItem, CreateSubscriptionItemPriceData, - CreateSubscriptionItemPriceDataRecurring, CreateSubscriptionItemPriceDataRecurringInterval, + CreateSubscriptionItem, CreateSubscriptionItemBuilderPriceData, + CreateSubscriptionItemBuilderPriceDataRecurring, + CreateSubscriptionItemBuilderPriceDataRecurringInterval, }; use stripe_billing::PlanInterval; +use stripe_types::Currency; -use crate::mock::get_client; +use super::get_client; #[test] fn can_create_plan() { let client = get_client(); let id = "price_123".parse().unwrap(); - let plan = RetrievePlan::new().send(&client, &id).unwrap(); + let plan = RetrievePlan::new(&id).send_blocking(&client).unwrap(); assert_eq!(plan.interval, PlanInterval::Month); assert_eq!(plan.amount, Some(2000)); } @@ -26,14 +28,15 @@ fn can_create_plan() { fn can_create_subscription_plan_interval() { let client = get_client(); - let id = "sub_123"; - let mut create = CreateSubscriptionItem::new(id); - create.price_data = Some(CreateSubscriptionItemPriceData::new( - stripe_types::Currency::USD, + let price_data = CreateSubscriptionItemBuilderPriceData::new( + Currency::USD, "My Product", - CreateSubscriptionItemPriceDataRecurring::new( - CreateSubscriptionItemPriceDataRecurringInterval::Day, + CreateSubscriptionItemBuilderPriceDataRecurring::new( + CreateSubscriptionItemBuilderPriceDataRecurringInterval::Day, ), - )); - let _result = create.send(&client).unwrap(); + ); + + let id = "sub_123"; + let _result = + CreateSubscriptionItem::new(id).price_data(price_data).send_blocking(&client).unwrap(); } diff --git a/tests/tests/it/blocking/price.rs b/tests/tests/it/blocking/price.rs index d148cc945..200b93a03 100644 --- a/tests/tests/it/blocking/price.rs +++ b/tests/tests/it/blocking/price.rs @@ -1,26 +1,27 @@ use std::collections::HashMap; -use stripe_product::price::{UpdatePrice, UpdatePriceCurrencyOptions}; +use stripe_product::price::{UpdatePrice, UpdatePriceBuilderCurrencyOptions}; use stripe_product::PriceTaxBehavior; use stripe_types::Currency; -use crate::mock::get_client; +use super::get_client; #[test] // https://github.com/arlyon/async-stripe/issues/417 fn update_price() { let client = get_client(); - let mut update = UpdatePrice::new(); let mut currency_opts = HashMap::new(); - let mut opt = UpdatePriceCurrencyOptions::new(); + let mut opt = UpdatePriceBuilderCurrencyOptions::new(); opt.unit_amount = Some(4); currency_opts.insert(Currency::USD, opt); - update.currency_options = Some(¤cy_opts); let price_id = "price_123".parse().unwrap(); + let price = UpdatePrice::new(&price_id) + .currency_options(¤cy_opts) + .send_blocking(&client) + .unwrap(); - let price = update.send(&client, &price_id).unwrap(); assert_eq!(price.id, price_id); assert_eq!(price.tax_behavior, Some(PriceTaxBehavior::Unspecified)); } diff --git a/tests/tests/it/blocking/product.rs b/tests/tests/it/blocking/product.rs index 8d68706fa..d37450f7e 100644 --- a/tests/tests/it/blocking/product.rs +++ b/tests/tests/it/blocking/product.rs @@ -1,6 +1,6 @@ use stripe_product::product::{CreateProduct, Features}; -use crate::mock::get_client; +use super::get_client; #[test] // FIXME: stripe-mock is missing required `type` field @@ -9,10 +9,8 @@ use crate::mock::get_client; fn create_product() { let client = get_client(); - let mut create = CreateProduct::new("my product"); let features = vec![Features::new("great feature")]; - create.features = Some(&features); - - let product = create.send(&client).unwrap(); + let product = + CreateProduct::new("my product").features(&features).send_blocking(&client).unwrap(); assert_eq!(product.features.first().unwrap().name, Some("great feature".into())); } diff --git a/tests/tests/it/blocking/promotion_code.rs b/tests/tests/it/blocking/promotion_code.rs index db21622f3..1e11b9a37 100644 --- a/tests/tests/it/blocking/promotion_code.rs +++ b/tests/tests/it/blocking/promotion_code.rs @@ -1,15 +1,12 @@ use stripe_product::promotion_code::CreatePromotionCode; -use crate::mock::get_client; +use super::get_client; #[test] // https://github.com/arlyon/async-stripe/issues/389 fn create_promotion_code() { let client = get_client(); - let mut create = CreatePromotionCode::new("code"); - create.active = Some(true); - - let result = create.send(&client).unwrap(); + let result = CreatePromotionCode::new("code").active(true).send_blocking(&client).unwrap(); assert!(result.active); } diff --git a/tests/tests/it/blocking/subscription.rs b/tests/tests/it/blocking/subscription.rs index a96b82962..b186a097b 100644 --- a/tests/tests/it/blocking/subscription.rs +++ b/tests/tests/it/blocking/subscription.rs @@ -1,8 +1,8 @@ use stripe_billing::subscription::{ - CancelSubscription, CancelSubscriptionCancellationDetails, RetrieveSubscription, + CancelSubscription, CancelSubscriptionBuilderCancellationDetails, RetrieveSubscription, }; -use crate::mock::get_client; +use super::get_client; #[test] // Test ignored because the spec implies `plan` is required, but stripe-mock does not @@ -12,7 +12,7 @@ fn is_subscription_retrievable() { let client = get_client(); let id = "sub_123".parse().unwrap(); - let subscription = RetrieveSubscription::new().send(&client, &id).unwrap(); + let subscription = RetrieveSubscription::new(&id).send_blocking(&client).unwrap(); assert_eq!(subscription.id, "sub_123"); assert!(!subscription.customer.is_object()); } @@ -23,9 +23,8 @@ fn is_subscription_expandable() { let client = get_client(); let id = "sub_123".parse().unwrap(); - let mut retrieve = RetrieveSubscription::new(); - retrieve.expand = Some(&["customer"]); - let subscription = retrieve.send(&client, &id).unwrap(); + let subscription = + RetrieveSubscription::new(&id).expand(&["customer"]).send_blocking(&client).unwrap(); assert_eq!(subscription.id, "sub_123"); assert!(subscription.customer.is_object()); } @@ -37,10 +36,12 @@ fn is_subscription_expandable() { fn can_prorate_when_cancelling_subscription() { let client = get_client(); + let details = CancelSubscriptionBuilderCancellationDetails::new(); let id = "sub_123".parse().unwrap(); - let mut cancel = CancelSubscription::new(); - cancel.cancellation_details = Some(CancelSubscriptionCancellationDetails::new()); - cancel.prorate = Some(true); - let result = cancel.send(&client, &id).unwrap(); + let result = CancelSubscription::new(&id) + .prorate(true) + .cancellation_details(details) + .send_blocking(&client) + .unwrap(); assert_eq!(result.id, id); } diff --git a/tests/tests/it/blocking/subscription_item.rs b/tests/tests/it/blocking/subscription_item.rs index a6e470223..59d5b78f0 100644 --- a/tests/tests/it/blocking/subscription_item.rs +++ b/tests/tests/it/blocking/subscription_item.rs @@ -1,25 +1,23 @@ use chrono::Utc; use stripe_billing::usage_record::{ - CreateSubscriptionItemUsageRecord, CreateSubscriptionItemUsageRecordAction, - CreateSubscriptionItemUsageRecordTimestamp, + CreateSubscriptionItemUsageRecord, CreateSubscriptionItemUsageRecordBuilderAction, + CreateSubscriptionItemUsageRecordBuilderTimestamp, }; -use crate::mock::get_client; +use super::get_client; #[test] fn can_create_usage_record() { let client = get_client(); let subscription_item_id = "si_JVbsG8wiy20ycs".parse().unwrap(); - let creator = CreateSubscriptionItemUsageRecord { - quantity: 42, - action: Some(CreateSubscriptionItemUsageRecordAction::Increment), - timestamp: Some(CreateSubscriptionItemUsageRecordTimestamp::Timestamp( + let usage_record = CreateSubscriptionItemUsageRecord::new(&subscription_item_id, 42) + .action(CreateSubscriptionItemUsageRecordBuilderAction::Increment) + .timestamp(CreateSubscriptionItemUsageRecordBuilderTimestamp::Timestamp( Utc::now().timestamp(), - )), - expand: None, - }; - let usage_record = creator.send(&client, &subscription_item_id).unwrap(); + )) + .send_blocking(&client) + .unwrap(); assert_eq!(usage_record.quantity, 42); assert_eq!(usage_record.subscription_item, subscription_item_id.as_str()); } diff --git a/tests/tests/it/blocking/token.rs b/tests/tests/it/blocking/token.rs index 15843f5b3..54c2959b6 100644 --- a/tests/tests/it/blocking/token.rs +++ b/tests/tests/it/blocking/token.rs @@ -1,19 +1,19 @@ -use stripe_core::token::{CreateToken, CreateTokenAccount, CreateTokenAccountBusinessType}; +use stripe_core::token::{ + CreateToken, CreateTokenBuilderAccount, CreateTokenBuilderAccountBusinessType, +}; -use crate::mock::get_client; +use super::get_client; // https://github.com/arlyon/async-stripe/issues/423 #[test] fn create_account_token_smoke_test() { let client = get_client(); - let mut acct = CreateTokenAccount::new(); + let mut acct = CreateTokenBuilderAccount::new(); acct.tos_shown_and_accepted = Some(true); - acct.business_type = Some(CreateTokenAccountBusinessType::Individual); - let mut create = CreateToken::new(); - create.account = Some(acct); + acct.business_type = Some(CreateTokenBuilderAccountBusinessType::Individual); - let stripe_acct_token = create.send(&client).unwrap(); + let stripe_acct_token = CreateToken::new().account(acct).send_blocking(&client).unwrap(); assert!(!stripe_acct_token.used); assert!(!stripe_acct_token.livemode); } diff --git a/tests/tests/it/blocking/transfer_reversal.rs b/tests/tests/it/blocking/transfer_reversal.rs index d2761a4d0..a3d598482 100644 --- a/tests/tests/it/blocking/transfer_reversal.rs +++ b/tests/tests/it/blocking/transfer_reversal.rs @@ -1,17 +1,17 @@ use stripe_connect::transfer_reversal::CreateIdTransferReversal; -use crate::mock::get_client; +use super::get_client; // https://github.com/arlyon/async-stripe/issues/399 #[test] fn create_transfer_reversal() { let client = get_client(); - let mut create = CreateIdTransferReversal::new(); let id = "tr_Ll53U0VONALFk36".parse().unwrap(); - create.refund_application_fee = Some(true); - create.amount = Some(4); - - let created = create.send(&client, &id).unwrap(); + let created = CreateIdTransferReversal::new(&id) + .refund_application_fee(true) + .amount(4) + .send_blocking(&client) + .unwrap(); assert_eq!(created.amount, 4); } diff --git a/tests/tests/it/main.rs b/tests/tests/it/main.rs index c484fbe92..0a0932247 100644 --- a/tests/tests/it/main.rs +++ b/tests/tests/it/main.rs @@ -1,11 +1,10 @@ // Needed for `json!` usage in tests #![recursion_limit = "256"] mod deser; -mod mock; mod price; mod async_tests; -// mod blocking; +mod blocking; // NB: pagination utils ideally could be used for blocking tests as well, but tricky because the `MockServer` is async // and the blocking client unconditionally creates its own runtime already diff --git a/tests/tests/it/mock.rs b/tests/tests/it/mock.rs deleted file mode 100644 index ce36957c3..000000000 --- a/tests/tests/it/mock.rs +++ /dev/null @@ -1,7 +0,0 @@ -//! Setup for the stripe mock service. - -use stripe::Client; - -pub fn get_client() -> Client { - Client::from_url("http://localhost:12111", "sk_test_123") -}