Skip to content

Commit f548bc8

Browse files
authored
feat: generate latest changes from OpenApi spec
1 parent 84461ce commit f548bc8

File tree

221 files changed

+25725
-6965
lines changed

Some content is hidden

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

221 files changed

+25725
-6965
lines changed

openapi/version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "v814"
2+
"version": "v1564"
33
}

src/resources/generated/account.rs

+2,215-237
Large diffs are not rendered by default.

src/resources/generated/account_link.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// ======================================
44

55
use crate::client::{Client, Response};
6-
use crate::ids::AccountId;
6+
use crate::ids::{AccountId};
77
use crate::params::{Expand, Object, Timestamp};
88
use serde::{Deserialize, Serialize};
99

@@ -12,6 +12,7 @@ use serde::{Deserialize, Serialize};
1212
/// For more details see <https://stripe.com/docs/api/account_links/object>
1313
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
1414
pub struct AccountLink {
15+
1516
/// Time at which the object was created.
1617
///
1718
/// Measured in seconds since the Unix epoch.
@@ -25,6 +26,7 @@ pub struct AccountLink {
2526
}
2627

2728
impl AccountLink {
29+
2830
/// 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.
2931
pub fn create(client: &Client, params: CreateAccountLink<'_>) -> Response<AccountLink> {
3032
#[allow(clippy::needless_borrows_for_generic_args)]
@@ -43,6 +45,7 @@ impl Object for AccountLink {
4345
/// The parameters for `AccountLink::create`.
4446
#[derive(Clone, Debug, Serialize)]
4547
pub struct CreateAccountLink<'a> {
48+
4649
/// The identifier of the account to create an account link for.
4750
pub account: AccountId,
4851

@@ -94,10 +97,12 @@ impl<'a> CreateAccountLink<'a> {
9497

9598
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
9699
pub struct CreateAccountLinkCollectionOptions {
100+
97101
/// Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`).
98102
///
99103
/// If you don't specify `collection_options`, the default value is `currently_due`.
100-
pub fields: CreateAccountLinkCollectionOptionsFields,
104+
#[serde(skip_serializing_if = "Option::is_none")]
105+
pub fields: Option<CreateAccountLinkCollectionOptionsFields>,
101106

102107
/// Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding.
103108
///

0 commit comments

Comments
 (0)