From 2a4432312b307e8ed9163789e96e3d843e40565d Mon Sep 17 00:00:00 2001 From: arlyon Date: Fri, 28 Jul 2023 00:24:03 +0000 Subject: [PATCH] Generate latest changes from OpenApi spec --- openapi/version.json | 2 +- src/resources/generated/account.rs | 18 ++++++++++++++++-- src/resources/generated/payment_intent.rs | 6 +++--- src/resources/generated/payment_method.rs | 2 +- src/resources/generated/setup_intent.rs | 6 +++--- 5 files changed, 24 insertions(+), 10 deletions(-) diff --git a/openapi/version.json b/openapi/version.json index d25911e26..ba96aaad0 100644 --- a/openapi/version.json +++ b/openapi/version.json @@ -1,3 +1,3 @@ { - "version": "v425" + "version": "v433" } \ No newline at end of file diff --git a/src/resources/generated/account.rs b/src/resources/generated/account.rs index 96add3fd9..ccc741b1e 100644 --- a/src/resources/generated/account.rs +++ b/src/resources/generated/account.rs @@ -124,10 +124,10 @@ impl Account { /// With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users. /// To do this, you’ll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings). /// - /// If you’ve already collected information for your connected accounts, you [can pre-fill that information](https://stripe.com/docs/connect/best-practices#onboarding) when + /// If you’ve already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when /// creating the account. /// - /// Connect Onboarding won’t ask for the pre-filled information during account onboarding. You can pre-fill any information on the account. + /// Connect Onboarding won’t ask for the prefilled information during account onboarding. You can prefill any information on the account. pub fn create(client: &Client, params: CreateAccount<'_>) -> Response { client.post_form("/accounts", ¶ms) } @@ -176,6 +176,9 @@ pub struct BusinessProfile { /// MCCs are used to classify businesses based on the goods or services they provide. pub mcc: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub monthly_estimated_revenue: Option, + /// The customer-facing business name. pub name: Option, @@ -387,6 +390,17 @@ pub struct AccountFutureRequirements { pub pending_verification: Option>, } +#[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct AccountMonthlyEstimatedRevenue { + /// A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + pub amount: i64, + + /// 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). + pub currency: Currency, +} + #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct AccountRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. diff --git a/src/resources/generated/payment_intent.rs b/src/resources/generated/payment_intent.rs index 1a2642215..acda5a74d 100644 --- a/src/resources/generated/payment_intent.rs +++ b/src/resources/generated/payment_intent.rs @@ -895,7 +895,7 @@ pub struct PaymentIntentPaymentMethodOptionsLink { #[serde(skip_serializing_if = "Option::is_none")] pub capture_method: Option, - /// Token used for persistent Link logins. + /// [Deprecated] This is a legacy parameter that no longer has any function. pub persistent_token: Option, /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3167,7 +3167,7 @@ pub struct CreatePaymentIntentPaymentMethodOptionsLink { #[serde(skip_serializing_if = "Option::is_none")] pub capture_method: Option, - /// Token used for persistent Link logins. + /// [Deprecated] This is a legacy parameter that no longer has any function. #[serde(skip_serializing_if = "Option::is_none")] pub persistent_token: Option, @@ -4008,7 +4008,7 @@ pub struct UpdatePaymentIntentPaymentMethodOptionsLink { #[serde(skip_serializing_if = "Option::is_none")] pub capture_method: Option, - /// Token used for persistent Link logins. + /// [Deprecated] This is a legacy parameter that no longer has any function. #[serde(skip_serializing_if = "Option::is_none")] pub persistent_token: Option, diff --git a/src/resources/generated/payment_method.rs b/src/resources/generated/payment_method.rs index 1399cb952..9f1981e5e 100644 --- a/src/resources/generated/payment_method.rs +++ b/src/resources/generated/payment_method.rs @@ -672,7 +672,7 @@ pub struct PaymentMethodLink { /// Account owner's email address. pub email: Option, - /// Token used for persistent Link logins. + /// [Deprecated] This is a legacy parameter that no longer has any function. #[serde(skip_serializing_if = "Option::is_none")] pub persistent_token: Option, } diff --git a/src/resources/generated/setup_intent.rs b/src/resources/generated/setup_intent.rs index 377e6b828..aa003a200 100644 --- a/src/resources/generated/setup_intent.rs +++ b/src/resources/generated/setup_intent.rs @@ -339,7 +339,7 @@ pub struct SetupIntentPaymentMethodOptionsCardMandateOptions { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct SetupIntentPaymentMethodOptionsLink { - /// Token used for persistent Link logins. + /// [Deprecated] This is a legacy parameter that no longer has any function. pub persistent_token: Option, } @@ -1369,7 +1369,7 @@ pub struct CreateSetupIntentPaymentMethodOptionsCard { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct CreateSetupIntentPaymentMethodOptionsLink { - /// Token used for persistent Link logins. + /// [Deprecated] This is a legacy parameter that no longer has any function. #[serde(skip_serializing_if = "Option::is_none")] pub persistent_token: Option, } @@ -1666,7 +1666,7 @@ pub struct UpdateSetupIntentPaymentMethodOptionsCard { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct UpdateSetupIntentPaymentMethodOptionsLink { - /// Token used for persistent Link logins. + /// [Deprecated] This is a legacy parameter that no longer has any function. #[serde(skip_serializing_if = "Option::is_none")] pub persistent_token: Option, }