Skip to content

Commit

Permalink
feat: generate latest changes from OpenApi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon authored Nov 8, 2024
1 parent c71a7eb commit 2d3d7ed
Show file tree
Hide file tree
Showing 214 changed files with 22,367 additions and 7,118 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": "v814"
"version": "v1334"
}
1,871 changes: 1,750 additions & 121 deletions src/resources/generated/account.rs

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions src/resources/generated/account_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
// This file was automatically generated.
// ======================================

use serde::{Deserialize, Serialize};

use crate::client::{Client, Response};
use crate::ids::AccountId;
use crate::ids::{AccountId};
use crate::params::{Expand, Object, Timestamp};
use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "AccountLink".
///
/// For more details see <https://stripe.com/docs/api/account_links/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct AccountLink {

/// Time at which the object was created.
///
/// Measured in seconds since the Unix epoch.
Expand All @@ -26,6 +26,7 @@ pub struct AccountLink {
}

impl AccountLink {

/// Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
pub fn create(client: &Client, params: CreateAccountLink<'_>) -> Response<AccountLink> {
#[allow(clippy::needless_borrows_for_generic_args)]
Expand All @@ -44,6 +45,7 @@ impl Object for AccountLink {
/// The parameters for `AccountLink::create`.
#[derive(Clone, Debug, Serialize)]
pub struct CreateAccountLink<'a> {

/// The identifier of the account to create an account link for.
pub account: AccountId,

Expand Down Expand Up @@ -95,10 +97,12 @@ impl<'a> CreateAccountLink<'a> {

#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CreateAccountLinkCollectionOptions {

/// Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`).
///
/// If you don't specify `collection_options`, the default value is `currently_due`.
pub fields: CreateAccountLinkCollectionOptionsFields,
#[serde(skip_serializing_if = "Option::is_none")]
pub fields: Option<CreateAccountLinkCollectionOptionsFields>,

/// Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding.
///
Expand Down
Loading

0 comments on commit 2d3d7ed

Please sign in to comment.