Skip to content

Commit

Permalink
Merge pull request arlyon#415 from arlyon/openapi-1690503843
Browse files Browse the repository at this point in the history
Generate latest changes from OpenApi spec
  • Loading branch information
arlyon authored Aug 1, 2023
2 parents 697a4db + 2a44323 commit f63eb12
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion openapi/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v425"
"version": "v433"
}
18 changes: 16 additions & 2 deletions src/resources/generated/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Account> {
client.post_form("/accounts", &params)
}
Expand Down Expand Up @@ -176,6 +176,9 @@ pub struct BusinessProfile {
/// MCCs are used to classify businesses based on the goods or services they provide.
pub mcc: Option<String>,

#[serde(skip_serializing_if = "Option::is_none")]
pub monthly_estimated_revenue: Option<AccountMonthlyEstimatedRevenue>,

/// The customer-facing business name.
pub name: Option<String>,

Expand Down Expand Up @@ -387,6 +390,17 @@ pub struct AccountFutureRequirements {
pub pending_verification: Option<Vec<String>>,
}

#[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.
Expand Down
6 changes: 3 additions & 3 deletions src/resources/generated/payment_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ pub struct PaymentIntentPaymentMethodOptionsLink {
#[serde(skip_serializing_if = "Option::is_none")]
pub capture_method: Option<PaymentIntentPaymentMethodOptionsLinkCaptureMethod>,

/// Token used for persistent Link logins.
/// [Deprecated] This is a legacy parameter that no longer has any function.
pub persistent_token: Option<String>,

/// Indicates that you intend to make future payments with this PaymentIntent's payment method.
Expand Down Expand Up @@ -3167,7 +3167,7 @@ pub struct CreatePaymentIntentPaymentMethodOptionsLink {
#[serde(skip_serializing_if = "Option::is_none")]
pub capture_method: Option<CreatePaymentIntentPaymentMethodOptionsLinkCaptureMethod>,

/// 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<String>,

Expand Down Expand Up @@ -4008,7 +4008,7 @@ pub struct UpdatePaymentIntentPaymentMethodOptionsLink {
#[serde(skip_serializing_if = "Option::is_none")]
pub capture_method: Option<UpdatePaymentIntentPaymentMethodOptionsLinkCaptureMethod>,

/// 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<String>,

Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/payment_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ pub struct PaymentMethodLink {
/// Account owner's email address.
pub email: Option<String>,

/// 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<String>,
}
Expand Down
6 changes: 3 additions & 3 deletions src/resources/generated/setup_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
}

Expand Down Expand Up @@ -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<String>,
}
Expand Down Expand Up @@ -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<String>,
}
Expand Down

0 comments on commit f63eb12

Please sign in to comment.