Skip to content

Commit 4591974

Browse files
arlyongithub-actions[bot]
authored andcommitted
Generate latest changes from OpenApi spec
1 parent 3c86313 commit 4591974

File tree

11 files changed

+337
-36
lines changed

11 files changed

+337
-36
lines changed

generated/async-stripe-connect/src/account/requests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ impl Default for CreateAccountSettings {
20122012
/// Settings specific to the account’s use of Invoices.
20132013
#[derive(Copy, Clone, Debug, serde::Serialize)]
20142014
pub struct CreateAccountSettingsInvoices {
2015-
/// Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
2015+
/// Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
20162016
#[serde(skip_serializing_if = "Option::is_none")]
20172017
pub hosted_payment_method_save: Option<CreateAccountSettingsInvoicesHostedPaymentMethodSave>,
20182018
}
@@ -2026,7 +2026,7 @@ impl Default for CreateAccountSettingsInvoices {
20262026
Self::new()
20272027
}
20282028
}
2029-
/// Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
2029+
/// Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
20302030
#[derive(Copy, Clone, Eq, PartialEq)]
20312031
pub enum CreateAccountSettingsInvoicesHostedPaymentMethodSave {
20322032
Always,
@@ -3845,7 +3845,7 @@ pub struct UpdateAccountSettingsInvoices {
38453845
/// Account Tax IDs get added when an invoice is finalized.
38463846
#[serde(skip_serializing_if = "Option::is_none")]
38473847
pub default_account_tax_ids: Option<Vec<String>>,
3848-
/// Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
3848+
/// Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
38493849
#[serde(skip_serializing_if = "Option::is_none")]
38503850
pub hosted_payment_method_save: Option<UpdateAccountSettingsInvoicesHostedPaymentMethodSave>,
38513851
}
@@ -3859,7 +3859,7 @@ impl Default for UpdateAccountSettingsInvoices {
38593859
Self::new()
38603860
}
38613861
}
3862-
/// Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
3862+
/// Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
38633863
#[derive(Copy, Clone, Eq, PartialEq)]
38643864
pub enum UpdateAccountSettingsInvoicesHostedPaymentMethodSave {
38653865
Always,

generated/async-stripe-core/src/customer_session/requests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl CreateCustomerSessionBuilder {
1717
Self { components: components.into(), customer: customer.into(), expand: None }
1818
}
1919
}
20-
/// Configuration for each component. Exactly 1 component must be enabled.
20+
/// Configuration for each component. At least 1 component must be enabled.
2121
#[derive(Clone, Debug, serde::Serialize)]
2222
pub struct CreateCustomerSessionComponents {
2323
/// Configuration for buy button.

generated/async-stripe-core/src/payment_intent/requests.rs

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5807,6 +5807,13 @@ impl<'de> serde::Deserialize<'de>
58075807
/// If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
58085808
#[derive(Copy, Clone, Debug, serde::Serialize)]
58095809
pub struct CreatePaymentIntentPaymentMethodOptionsCardPresent {
5810+
/// Controls when the funds are captured from the customer's account.
5811+
///
5812+
/// If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
5813+
///
5814+
/// If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
5815+
#[serde(skip_serializing_if = "Option::is_none")]
5816+
pub capture_method: Option<CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod>,
58105817
/// Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity).
58115818
#[serde(skip_serializing_if = "Option::is_none")]
58125819
pub request_extended_authorization: Option<bool>,
@@ -5821,6 +5828,7 @@ pub struct CreatePaymentIntentPaymentMethodOptionsCardPresent {
58215828
impl CreatePaymentIntentPaymentMethodOptionsCardPresent {
58225829
pub fn new() -> Self {
58235830
Self {
5831+
capture_method: None,
58245832
request_extended_authorization: None,
58255833
request_incremental_authorization_support: None,
58265834
routing: None,
@@ -5832,6 +5840,70 @@ impl Default for CreatePaymentIntentPaymentMethodOptionsCardPresent {
58325840
Self::new()
58335841
}
58345842
}
5843+
/// Controls when the funds are captured from the customer's account.
5844+
///
5845+
/// If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
5846+
///
5847+
/// If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
5848+
#[derive(Copy, Clone, Eq, PartialEq)]
5849+
pub enum CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
5850+
Manual,
5851+
ManualPreferred,
5852+
}
5853+
impl CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
5854+
pub fn as_str(self) -> &'static str {
5855+
use CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod::*;
5856+
match self {
5857+
Manual => "manual",
5858+
ManualPreferred => "manual_preferred",
5859+
}
5860+
}
5861+
}
5862+
5863+
impl std::str::FromStr for CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
5864+
type Err = stripe_types::StripeParseError;
5865+
fn from_str(s: &str) -> Result<Self, Self::Err> {
5866+
use CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod::*;
5867+
match s {
5868+
"manual" => Ok(Manual),
5869+
"manual_preferred" => Ok(ManualPreferred),
5870+
_ => Err(stripe_types::StripeParseError),
5871+
}
5872+
}
5873+
}
5874+
impl std::fmt::Display for CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
5875+
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
5876+
f.write_str(self.as_str())
5877+
}
5878+
}
5879+
5880+
impl std::fmt::Debug for CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
5881+
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
5882+
f.write_str(self.as_str())
5883+
}
5884+
}
5885+
impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
5886+
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
5887+
where
5888+
S: serde::Serializer,
5889+
{
5890+
serializer.serialize_str(self.as_str())
5891+
}
5892+
}
5893+
#[cfg(feature = "deserialize")]
5894+
impl<'de> serde::Deserialize<'de>
5895+
for CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod
5896+
{
5897+
fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
5898+
use std::str::FromStr;
5899+
let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
5900+
Self::from_str(&s).map_err(|_| {
5901+
serde::de::Error::custom(
5902+
"Unknown value for CreatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod",
5903+
)
5904+
})
5905+
}
5906+
}
58355907
/// Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
58365908
#[derive(Copy, Clone, Debug, serde::Serialize)]
58375909
pub struct CreatePaymentIntentPaymentMethodOptionsCardPresentRouting {
@@ -17024,6 +17096,13 @@ impl<'de> serde::Deserialize<'de>
1702417096
/// If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
1702517097
#[derive(Copy, Clone, Debug, serde::Serialize)]
1702617098
pub struct UpdatePaymentIntentPaymentMethodOptionsCardPresent {
17099+
/// Controls when the funds are captured from the customer's account.
17100+
///
17101+
/// If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
17102+
///
17103+
/// If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
17104+
#[serde(skip_serializing_if = "Option::is_none")]
17105+
pub capture_method: Option<UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod>,
1702717106
/// Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity).
1702817107
#[serde(skip_serializing_if = "Option::is_none")]
1702917108
pub request_extended_authorization: Option<bool>,
@@ -17038,6 +17117,7 @@ pub struct UpdatePaymentIntentPaymentMethodOptionsCardPresent {
1703817117
impl UpdatePaymentIntentPaymentMethodOptionsCardPresent {
1703917118
pub fn new() -> Self {
1704017119
Self {
17120+
capture_method: None,
1704117121
request_extended_authorization: None,
1704217122
request_incremental_authorization_support: None,
1704317123
routing: None,
@@ -17049,6 +17129,70 @@ impl Default for UpdatePaymentIntentPaymentMethodOptionsCardPresent {
1704917129
Self::new()
1705017130
}
1705117131
}
17132+
/// Controls when the funds are captured from the customer's account.
17133+
///
17134+
/// If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
17135+
///
17136+
/// If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
17137+
#[derive(Copy, Clone, Eq, PartialEq)]
17138+
pub enum UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
17139+
Manual,
17140+
ManualPreferred,
17141+
}
17142+
impl UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
17143+
pub fn as_str(self) -> &'static str {
17144+
use UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod::*;
17145+
match self {
17146+
Manual => "manual",
17147+
ManualPreferred => "manual_preferred",
17148+
}
17149+
}
17150+
}
17151+
17152+
impl std::str::FromStr for UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
17153+
type Err = stripe_types::StripeParseError;
17154+
fn from_str(s: &str) -> Result<Self, Self::Err> {
17155+
use UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod::*;
17156+
match s {
17157+
"manual" => Ok(Manual),
17158+
"manual_preferred" => Ok(ManualPreferred),
17159+
_ => Err(stripe_types::StripeParseError),
17160+
}
17161+
}
17162+
}
17163+
impl std::fmt::Display for UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
17164+
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
17165+
f.write_str(self.as_str())
17166+
}
17167+
}
17168+
17169+
impl std::fmt::Debug for UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
17170+
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
17171+
f.write_str(self.as_str())
17172+
}
17173+
}
17174+
impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
17175+
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
17176+
where
17177+
S: serde::Serializer,
17178+
{
17179+
serializer.serialize_str(self.as_str())
17180+
}
17181+
}
17182+
#[cfg(feature = "deserialize")]
17183+
impl<'de> serde::Deserialize<'de>
17184+
for UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod
17185+
{
17186+
fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
17187+
use std::str::FromStr;
17188+
let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
17189+
Self::from_str(&s).map_err(|_| {
17190+
serde::de::Error::custom(
17191+
"Unknown value for UpdatePaymentIntentPaymentMethodOptionsCardPresentCaptureMethod",
17192+
)
17193+
})
17194+
}
17195+
}
1705217196
/// Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
1705317197
#[derive(Copy, Clone, Debug, serde::Serialize)]
1705417198
pub struct UpdatePaymentIntentPaymentMethodOptionsCardPresentRouting {
@@ -29014,6 +29158,13 @@ impl<'de> serde::Deserialize<'de>
2901429158
/// If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
2901529159
#[derive(Copy, Clone, Debug, serde::Serialize)]
2901629160
pub struct ConfirmPaymentIntentPaymentMethodOptionsCardPresent {
29161+
/// Controls when the funds are captured from the customer's account.
29162+
///
29163+
/// If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
29164+
///
29165+
/// If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
29166+
#[serde(skip_serializing_if = "Option::is_none")]
29167+
pub capture_method: Option<ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod>,
2901729168
/// Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity).
2901829169
#[serde(skip_serializing_if = "Option::is_none")]
2901929170
pub request_extended_authorization: Option<bool>,
@@ -29028,6 +29179,7 @@ pub struct ConfirmPaymentIntentPaymentMethodOptionsCardPresent {
2902829179
impl ConfirmPaymentIntentPaymentMethodOptionsCardPresent {
2902929180
pub fn new() -> Self {
2903029181
Self {
29182+
capture_method: None,
2903129183
request_extended_authorization: None,
2903229184
request_incremental_authorization_support: None,
2903329185
routing: None,
@@ -29039,6 +29191,66 @@ impl Default for ConfirmPaymentIntentPaymentMethodOptionsCardPresent {
2903929191
Self::new()
2904029192
}
2904129193
}
29194+
/// Controls when the funds are captured from the customer's account.
29195+
///
29196+
/// If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
29197+
///
29198+
/// If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
29199+
#[derive(Copy, Clone, Eq, PartialEq)]
29200+
pub enum ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
29201+
Manual,
29202+
ManualPreferred,
29203+
}
29204+
impl ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
29205+
pub fn as_str(self) -> &'static str {
29206+
use ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod::*;
29207+
match self {
29208+
Manual => "manual",
29209+
ManualPreferred => "manual_preferred",
29210+
}
29211+
}
29212+
}
29213+
29214+
impl std::str::FromStr for ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
29215+
type Err = stripe_types::StripeParseError;
29216+
fn from_str(s: &str) -> Result<Self, Self::Err> {
29217+
use ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod::*;
29218+
match s {
29219+
"manual" => Ok(Manual),
29220+
"manual_preferred" => Ok(ManualPreferred),
29221+
_ => Err(stripe_types::StripeParseError),
29222+
}
29223+
}
29224+
}
29225+
impl std::fmt::Display for ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
29226+
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29227+
f.write_str(self.as_str())
29228+
}
29229+
}
29230+
29231+
impl std::fmt::Debug for ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
29232+
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29233+
f.write_str(self.as_str())
29234+
}
29235+
}
29236+
impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod {
29237+
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
29238+
where
29239+
S: serde::Serializer,
29240+
{
29241+
serializer.serialize_str(self.as_str())
29242+
}
29243+
}
29244+
#[cfg(feature = "deserialize")]
29245+
impl<'de> serde::Deserialize<'de>
29246+
for ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod
29247+
{
29248+
fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
29249+
use std::str::FromStr;
29250+
let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
29251+
Self::from_str(&s).map_err(|_| serde::de::Error::custom("Unknown value for ConfirmPaymentIntentPaymentMethodOptionsCardPresentCaptureMethod"))
29252+
}
29253+
}
2904229254
/// Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
2904329255
#[derive(Copy, Clone, Debug, serde::Serialize)]
2904429256
pub struct ConfirmPaymentIntentPaymentMethodOptionsCardPresentRouting {

generated/async-stripe-shared/src/account_invoices_settings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub struct AccountInvoicesSettings {
55
/// The list of default Account Tax IDs to automatically include on invoices.
66
/// Account Tax IDs get added when an invoice is finalized.
77
pub default_account_tax_ids: Option<Vec<stripe_types::Expandable<stripe_shared::TaxId>>>,
8-
/// Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
8+
/// Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
99
pub hosted_payment_method_save: Option<AccountInvoicesSettingsHostedPaymentMethodSave>,
1010
}
1111
#[doc(hidden)]
@@ -115,7 +115,7 @@ const _: () = {
115115
}
116116
}
117117
};
118-
/// Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
118+
/// Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
119119
#[derive(Copy, Clone, Eq, PartialEq)]
120120
pub enum AccountInvoicesSettingsHostedPaymentMethodSave {
121121
Always,

generated/async-stripe-shared/src/api_version.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ pub enum ApiVersion {
118118
V2025_08_27_basil,
119119
V2025_09_30_clover,
120120
V2025_10_29_clover,
121+
V2025_11_17_clover,
121122
/// An unrecognized value from Stripe. Should not be used as a request parameter.
122123
Unknown(String),
123124
}
@@ -242,6 +243,7 @@ impl ApiVersion {
242243
V2025_08_27_basil => "2025-08-27.basil",
243244
V2025_09_30_clover => "2025-09-30.clover",
244245
V2025_10_29_clover => "2025-10-29.clover",
246+
V2025_11_17_clover => "2025-11-17.clover",
245247
Unknown(v) => v,
246248
}
247249
}
@@ -369,6 +371,7 @@ impl std::str::FromStr for ApiVersion {
369371
"2025-08-27.basil" => Ok(V2025_08_27_basil),
370372
"2025-09-30.clover" => Ok(V2025_09_30_clover),
371373
"2025-10-29.clover" => Ok(V2025_10_29_clover),
374+
"2025-11-17.clover" => Ok(V2025_11_17_clover),
372375
v => Ok(Unknown(v.to_owned())),
373376
}
374377
}

0 commit comments

Comments
 (0)