Skip to content

Commit 0fb111e

Browse files
authored
Merge pull request #786 from arlyon/openapi-1763048716
2 parents bd51d05 + ebe7ac9 commit 0fb111e

File tree

54 files changed

+2638
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2638
-29
lines changed

async-stripe-webhook/src/generated/mod.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,9 @@ pub enum EventObject {
858858
EntitlementsActiveEntitlementSummaryUpdated(stripe_misc::EntitlementsActiveEntitlementSummary),
859859
/// Occurs whenever a new Stripe-generated file is available for your account.
860860
FileCreated(stripe_shared::File),
861+
/// Occurs when a Financial Connections account's account numbers are updated.
862+
#[cfg(feature = "async-stripe-misc")]
863+
FinancialConnectionsAccountAccountNumbersUpdated(stripe_misc::FinancialConnectionsAccount),
861864
/// Occurs when a new Financial Connections account is created.
862865
#[cfg(feature = "async-stripe-misc")]
863866
FinancialConnectionsAccountCreated(stripe_misc::FinancialConnectionsAccount),
@@ -879,6 +882,11 @@ pub enum EventObject {
879882
/// Occurs when an Account’s `transaction_refresh` status transitions from `pending` to either `succeeded` or `failed`.
880883
#[cfg(feature = "async-stripe-misc")]
881884
FinancialConnectionsAccountRefreshedTransactions(stripe_misc::FinancialConnectionsAccount),
885+
/// Occurs when an Account’s tokenized account number is about to expire.
886+
#[cfg(feature = "async-stripe-misc")]
887+
FinancialConnectionsAccountUpcomingAccountNumberExpiry(
888+
stripe_misc::FinancialConnectionsAccount,
889+
),
882890
/// Occurs whenever a VerificationSession is canceled
883891
#[cfg(feature = "async-stripe-misc")]
884892
IdentityVerificationSessionCanceled(stripe_misc::IdentityVerificationSession),
@@ -1540,6 +1548,11 @@ impl EventObject {
15401548
return FromValueOpt::from_value(data).map(Self::FileCreated);
15411549
}
15421550
#[cfg(feature = "async-stripe-misc")]
1551+
if typ == "financial_connections.account.account_numbers_updated" {
1552+
return FromValueOpt::from_value(data)
1553+
.map(Self::FinancialConnectionsAccountAccountNumbersUpdated);
1554+
}
1555+
#[cfg(feature = "async-stripe-misc")]
15431556
if typ == "financial_connections.account.created" {
15441557
return FromValueOpt::from_value(data).map(Self::FinancialConnectionsAccountCreated);
15451558
}
@@ -1574,6 +1587,11 @@ impl EventObject {
15741587
.map(Self::FinancialConnectionsAccountRefreshedTransactions);
15751588
}
15761589
#[cfg(feature = "async-stripe-misc")]
1590+
if typ == "financial_connections.account.upcoming_account_number_expiry" {
1591+
return FromValueOpt::from_value(data)
1592+
.map(Self::FinancialConnectionsAccountUpcomingAccountNumberExpiry);
1593+
}
1594+
#[cfg(feature = "async-stripe-misc")]
15771595
if typ == "identity.verification_session.canceled" {
15781596
return FromValueOpt::from_value(data).map(Self::IdentityVerificationSessionCanceled);
15791597
}

crate_info.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
| ExchangeRate | async-stripe-misc | exchange_rate |
8585
| FinancialConnectionsTransaction | async-stripe-misc | financial_connections_transaction |
8686
| ForwardingRequest | async-stripe-misc | forwarding_request |
87+
| TaxAssociation | async-stripe-misc | tax_association |
8788
| TaxRegistration | async-stripe-misc | tax_registration |
8889
| [FinancialConnectionsAccount](https://stripe.com/docs/api/financial_connections/accounts/object) | async-stripe-misc | financial_connections_account |
8990
| [FinancialConnectionsSession](https://stripe.com/docs/api/financial_connections/sessions/object) | async-stripe-misc | financial_connections_session |
@@ -113,6 +114,7 @@
113114
| [ShippingRate](https://stripe.com/docs/api/shipping_rates/object) | async-stripe-product | shipping_rate |
114115
| [TaxCode](https://stripe.com/docs/api/tax_codes/object) | async-stripe-product | tax_code |
115116
| [TaxRate](https://stripe.com/docs/api/tax_rates/object) | async-stripe-product | tax_rate |
117+
| TerminalOnboardingLink | async-stripe-terminal | terminal_onboarding_link |
116118
| [TerminalConfiguration](https://stripe.com/docs/api/terminal/configuration/object) | async-stripe-terminal | terminal_configuration |
117119
| [TerminalConnectionToken](https://stripe.com/docs/api/terminal/connection_tokens/object) | async-stripe-terminal | terminal_connection_token |
118120
| [TerminalLocation](https://stripe.com/docs/api/terminal/locations/object) | async-stripe-terminal | terminal_location |

generated/async-stripe-billing/src/invoice_payment/requests.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use stripe_client_core::{
44

55
#[derive(Clone, Debug, serde::Serialize)]
66
struct ListInvoicePaymentBuilder {
7+
#[serde(skip_serializing_if = "Option::is_none")]
8+
created: Option<stripe_types::RangeQueryTs>,
79
#[serde(skip_serializing_if = "Option::is_none")]
810
ending_before: Option<String>,
911
#[serde(skip_serializing_if = "Option::is_none")]
@@ -22,6 +24,7 @@ struct ListInvoicePaymentBuilder {
2224
impl ListInvoicePaymentBuilder {
2325
fn new() -> Self {
2426
Self {
27+
created: None,
2528
ending_before: None,
2629
expand: None,
2730
invoice: None,
@@ -175,6 +178,11 @@ impl ListInvoicePayment {
175178
pub fn new() -> Self {
176179
Self { inner: ListInvoicePaymentBuilder::new() }
177180
}
181+
/// Only return invoice payments that were created during the given date interval.
182+
pub fn created(mut self, created: impl Into<stripe_types::RangeQueryTs>) -> Self {
183+
self.inner.created = Some(created.into());
184+
self
185+
}
178186
/// A cursor for use in pagination.
179187
/// `ending_before` is an object ID that defines your place in the list.
180188
/// For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.

generated/async-stripe-billing/src/portal_features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const _: () = {
8686
) = (
8787
self.customer_update.take(),
8888
self.invoice_history,
89-
self.payment_method_update,
89+
self.payment_method_update.take(),
9090
self.subscription_cancel.take(),
9191
self.subscription_update.take(),
9292
)

generated/async-stripe-billing/src/portal_payment_method_update.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
#[derive(Copy, Clone, Debug)]
1+
#[derive(Clone, Debug)]
22
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
33
#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]
44
pub struct PortalPaymentMethodUpdate {
55
/// Whether the feature is enabled.
66
pub enabled: bool,
7+
/// The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session.
8+
/// When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration.
9+
/// If not set, the default payment method configuration is used.
10+
pub payment_method_configuration: Option<String>,
711
}
812
#[doc(hidden)]
913
pub struct PortalPaymentMethodUpdateBuilder {
1014
enabled: Option<bool>,
15+
payment_method_configuration: Option<Option<String>>,
1116
}
1217

1318
#[allow(
@@ -51,19 +56,27 @@ const _: () = {
5156
fn key(&mut self, k: &str) -> Result<&mut dyn Visitor> {
5257
Ok(match k {
5358
"enabled" => Deserialize::begin(&mut self.enabled),
59+
"payment_method_configuration" => {
60+
Deserialize::begin(&mut self.payment_method_configuration)
61+
}
5462
_ => <dyn Visitor>::ignore(),
5563
})
5664
}
5765

5866
fn deser_default() -> Self {
59-
Self { enabled: Deserialize::default() }
67+
Self {
68+
enabled: Deserialize::default(),
69+
payment_method_configuration: Deserialize::default(),
70+
}
6071
}
6172

6273
fn take_out(&mut self) -> Option<Self::Out> {
63-
let (Some(enabled),) = (self.enabled,) else {
74+
let (Some(enabled), Some(payment_method_configuration)) =
75+
(self.enabled, self.payment_method_configuration.take())
76+
else {
6477
return None;
6578
};
66-
Some(Self::Out { enabled })
79+
Some(Self::Out { enabled, payment_method_configuration })
6780
}
6881
}
6982

@@ -91,6 +104,9 @@ const _: () = {
91104
for (k, v) in obj {
92105
match k.as_str() {
93106
"enabled" => b.enabled = FromValueOpt::from_value(v),
107+
"payment_method_configuration" => {
108+
b.payment_method_configuration = FromValueOpt::from_value(v)
109+
}
94110
_ => {}
95111
}
96112
}

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ const _: () = {
333333

334334
#[derive(Clone, Debug, serde::Serialize)]
335335
struct BalanceTransactionsCustomerBuilder {
336+
#[serde(skip_serializing_if = "Option::is_none")]
337+
created: Option<stripe_types::RangeQueryTs>,
336338
#[serde(skip_serializing_if = "Option::is_none")]
337339
ending_before: Option<String>,
338340
#[serde(skip_serializing_if = "Option::is_none")]
@@ -344,7 +346,7 @@ struct BalanceTransactionsCustomerBuilder {
344346
}
345347
impl BalanceTransactionsCustomerBuilder {
346348
fn new() -> Self {
347-
Self { ending_before: None, expand: None, limit: None, starting_after: None }
349+
Self { created: None, ending_before: None, expand: None, limit: None, starting_after: None }
348350
}
349351
}
350352
/// Returns a list of transactions that updated the customer’s [balances](https://stripe.com/docs/billing/customer/balance).
@@ -358,6 +360,11 @@ impl BalanceTransactionsCustomer {
358360
pub fn new(customer: impl Into<stripe_shared::CustomerId>) -> Self {
359361
Self { customer: customer.into(), inner: BalanceTransactionsCustomerBuilder::new() }
360362
}
363+
/// Only return customer balance transactions that were created during the given date interval.
364+
pub fn created(mut self, created: impl Into<stripe_types::RangeQueryTs>) -> Self {
365+
self.inner.created = Some(created.into());
366+
self
367+
}
361368
/// A cursor for use in pagination.
362369
/// `ending_before` is an object ID that defines your place in the list.
363370
/// For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use stripe_client_core::{
44

55
#[derive(Clone, Debug, serde::Serialize)]
66
struct ListCustomerCustomerBalanceTransactionBuilder {
7+
#[serde(skip_serializing_if = "Option::is_none")]
8+
created: Option<stripe_types::RangeQueryTs>,
79
#[serde(skip_serializing_if = "Option::is_none")]
810
ending_before: Option<String>,
911
#[serde(skip_serializing_if = "Option::is_none")]
@@ -15,7 +17,7 @@ struct ListCustomerCustomerBalanceTransactionBuilder {
1517
}
1618
impl ListCustomerCustomerBalanceTransactionBuilder {
1719
fn new() -> Self {
18-
Self { ending_before: None, expand: None, limit: None, starting_after: None }
20+
Self { created: None, ending_before: None, expand: None, limit: None, starting_after: None }
1921
}
2022
}
2123
/// Returns a list of transactions that updated the customer’s [balances](https://stripe.com/docs/billing/customer/balance).
@@ -32,6 +34,11 @@ impl ListCustomerCustomerBalanceTransaction {
3234
inner: ListCustomerCustomerBalanceTransactionBuilder::new(),
3335
}
3436
}
37+
/// Only return customer balance transactions that were created during the given date interval.
38+
pub fn created(mut self, created: impl Into<stripe_types::RangeQueryTs>) -> Self {
39+
self.inner.created = Some(created.into());
40+
self
41+
}
3542
/// A cursor for use in pagination.
3643
/// `ending_before` is an object ID that defines your place in the list.
3744
/// For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.

generated/async-stripe-core/src/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub use stripe_shared::level3::*;
144144
pub use stripe_shared::level3_line_items::*;
145145
pub use stripe_shared::linked_account_options_common::*;
146146
pub mod mandate;
147-
pub use stripe_shared::mandate::*;pub use stripe_shared::mandate_acss_debit::*;pub use stripe_shared::mandate_amazon_pay::*;pub use stripe_shared::mandate_au_becs_debit::*;pub use stripe_shared::mandate_bacs_debit::*;pub use stripe_shared::mandate_cashapp::*;pub use stripe_shared::mandate_kakao_pay::*;pub use stripe_shared::mandate_klarna::*;pub use stripe_shared::mandate_kr_card::*;pub use stripe_shared::mandate_link::*;pub use stripe_shared::mandate_multi_use::*;pub use stripe_shared::mandate_naver_pay::*;pub use stripe_shared::mandate_nz_bank_account::*;pub use stripe_shared::mandate_payment_method_details::*;pub use stripe_shared::mandate_paypal::*;pub use stripe_shared::mandate_revolut_pay::*;pub use stripe_shared::mandate_sepa_debit::*;pub use stripe_shared::mandate_single_use::*;pub use stripe_shared::mandate_us_bank_account::*;pub use stripe_shared::notification_event_data::*;pub use stripe_shared::notification_event_request::*;pub use stripe_shared::offline_acceptance::*;pub use stripe_shared::online_acceptance::*;pub use stripe_shared::payment_flows_amount_details::*;pub use stripe_shared::payment_flows_amount_details_client_resource_tip::*;pub use stripe_shared::payment_flows_amount_details_resource_line_items_list_resource_line_item_resource_payment_method_options::*;pub use stripe_shared::payment_flows_amount_details_resource_line_items_list_resource_line_item_resource_tax::*;pub use stripe_shared::payment_flows_amount_details_resource_shipping::*;pub use stripe_shared::payment_flows_amount_details_resource_tax::*;pub use stripe_shared::payment_flows_automatic_payment_methods_payment_intent::*;pub use stripe_shared::payment_flows_automatic_payment_methods_setup_intent::*;pub use stripe_shared::payment_flows_payment_details::*;pub use stripe_shared::payment_flows_payment_intent_presentment_details::*;pub use stripe_shared::payment_flows_private_payment_methods_card_payment_intent_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_card_present_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_financial_connections_common_linked_account_options_filters::*;pub use stripe_shared::payment_flows_private_payment_methods_kakao_pay_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_klarna_payment_intent_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_naver_pay_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_payco_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_paypal_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_samsung_pay_payment_method_options::*;
147+
pub use stripe_shared::mandate::*;pub use stripe_shared::mandate_acss_debit::*;pub use stripe_shared::mandate_amazon_pay::*;pub use stripe_shared::mandate_au_becs_debit::*;pub use stripe_shared::mandate_bacs_debit::*;pub use stripe_shared::mandate_cashapp::*;pub use stripe_shared::mandate_kakao_pay::*;pub use stripe_shared::mandate_klarna::*;pub use stripe_shared::mandate_kr_card::*;pub use stripe_shared::mandate_link::*;pub use stripe_shared::mandate_multi_use::*;pub use stripe_shared::mandate_naver_pay::*;pub use stripe_shared::mandate_nz_bank_account::*;pub use stripe_shared::mandate_payment_method_details::*;pub use stripe_shared::mandate_paypal::*;pub use stripe_shared::mandate_revolut_pay::*;pub use stripe_shared::mandate_sepa_debit::*;pub use stripe_shared::mandate_single_use::*;pub use stripe_shared::mandate_us_bank_account::*;pub use stripe_shared::notification_event_data::*;pub use stripe_shared::notification_event_request::*;pub use stripe_shared::offline_acceptance::*;pub use stripe_shared::online_acceptance::*;pub use stripe_shared::payment_flows_amount_details::*;pub use stripe_shared::payment_flows_amount_details_client_resource_tip::*;pub use stripe_shared::payment_flows_amount_details_resource_line_items_list_resource_line_item_resource_payment_method_options::*;pub use stripe_shared::payment_flows_amount_details_resource_line_items_list_resource_line_item_resource_tax::*;pub use stripe_shared::payment_flows_amount_details_resource_shipping::*;pub use stripe_shared::payment_flows_amount_details_resource_tax::*;pub use stripe_shared::payment_flows_automatic_payment_methods_payment_intent::*;pub use stripe_shared::payment_flows_automatic_payment_methods_setup_intent::*;pub use stripe_shared::payment_flows_payment_details::*;pub use stripe_shared::payment_flows_payment_intent_async_workflows::*;pub use stripe_shared::payment_flows_payment_intent_async_workflows_resource_inputs::*;pub use stripe_shared::payment_flows_payment_intent_async_workflows_resource_inputs_resource_tax::*;pub use stripe_shared::payment_flows_payment_intent_presentment_details::*;pub use stripe_shared::payment_flows_private_payment_methods_card_payment_intent_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_card_present_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_financial_connections_common_linked_account_options_filters::*;pub use stripe_shared::payment_flows_private_payment_methods_kakao_pay_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_klarna_payment_intent_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_naver_pay_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_payco_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_paypal_amount_details_line_item_payment_method_options::*;pub use stripe_shared::payment_flows_private_payment_methods_samsung_pay_payment_method_options::*;
148148
pub mod payment_intent;
149149
pub use stripe_shared::payment_intent::*;
150150
pub mod payment_intent_amount_details_line_item;
@@ -208,6 +208,7 @@ pub use stripe_shared::refund_destination_details_crypto::*;
208208
pub use stripe_shared::refund_destination_details_eu_bank_transfer::*;
209209
pub use stripe_shared::refund_destination_details_gb_bank_transfer::*;
210210
pub use stripe_shared::refund_destination_details_jp_bank_transfer::*;
211+
pub use stripe_shared::refund_destination_details_mb_way::*;
211212
pub use stripe_shared::refund_destination_details_multibanco::*;
212213
pub use stripe_shared::refund_destination_details_mx_bank_transfer::*;
213214
pub use stripe_shared::refund_destination_details_p24::*;

0 commit comments

Comments
 (0)