Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #2913

Merged
merged 4 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1039
v1047
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity<AccountSess
[JsonProperty("edit_payout_schedule")]
public bool EditPayoutSchedule { get; set; }

/// <summary>
/// Whether to allow platforms to control bank account collection for their connected
/// accounts. This feature can only be false for custom accounts (or accounts where the
/// platform is compliance owner). Otherwise, bank account collection is determined by
/// compliance requirements.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }

/// <summary>
/// Whether to allow creation of instant payouts. Default <c>true</c> when Stripe owns Loss
/// Liability, default <c>false</c> otherwise.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity<AccountSessi
[JsonProperty("edit_payout_schedule")]
public bool EditPayoutSchedule { get; set; }

/// <summary>
/// Whether to allow platforms to control bank account collection for their connected
/// accounts. This feature can only be false for custom accounts (or accounts where the
/// platform is compliance owner). Otherwise, bank account collection is determined by
/// compliance requirements.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }

/// <summary>
/// Whether to allow creation of instant payouts. Default <c>true</c> when Stripe owns Loss
/// Liability, default <c>false</c> otherwise.
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
public string LinkPayments { get; set; }

/// <summary>
/// The status of the MobilepPay capability of the account, or whether the account can
/// The status of the MobilePay capability of the account, or whether the account can
/// directly process MobilePay charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ public class SessionSavedPaymentMethodOptions : StripeEntity<SessionSavedPayment
[JsonProperty("allow_redisplay_filters")]
public List<string> AllowRedisplayFilters { get; set; }

/// <summary>
/// Enable customers to choose if they wish to remove their saved payment methods. Disabled
/// by default.
/// One of: <c>disabled</c>, or <c>enabled</c>.
/// </summary>
[JsonProperty("payment_method_remove")]
public string PaymentMethodRemove { get; set; }

/// <summary>
/// Enable customers to choose if they wish to save their payment method for future use.
/// Disabled by default.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions
[JsonProperty("edit_payout_schedule")]
public bool? EditPayoutSchedule { get; set; }

/// <summary>
/// Whether to allow platforms to control bank account collection for their connected
/// accounts. This feature can only be false for custom accounts (or accounts where the
/// platform is compliance owner). Otherwise, bank account collection is determined by
/// compliance requirements.
/// </summary>
[JsonProperty("external_account_collection")]
public bool? ExternalAccountCollection { get; set; }

/// <summary>
/// Whether to allow creation of instant payouts. Default <c>true</c> when Stripe owns Loss
/// Liability, default <c>false</c> otherwise.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions
[JsonProperty("edit_payout_schedule")]
public bool? EditPayoutSchedule { get; set; }

/// <summary>
/// Whether to allow platforms to control bank account collection for their connected
/// accounts. This feature can only be false for custom accounts (or accounts where the
/// platform is compliance owner). Otherwise, bank account collection is determined by
/// compliance requirements.
/// </summary>
[JsonProperty("external_account_collection")]
public bool? ExternalAccountCollection { get; set; }

/// <summary>
/// Whether to allow creation of instant payouts. Default <c>true</c> when Stripe owns Loss
/// Liability, default <c>false</c> otherwise.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata
public InvoiceItemPeriodOptions Period { get; set; }

/// <summary>
/// The ID of the price object.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public InvoiceItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public class InvoiceItemUpdateOptions : BaseOptions, IHasMetadata
public InvoiceItemPeriodOptions Period { get; set; }

/// <summary>
/// The ID of the price object.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public InvoiceItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public class InvoiceScheduleDetailsPhaseAddInvoiceItemOptions : INestedOptions
public List<InvoiceScheduleDetailsPhaseAddInvoiceItemDiscountOptions> Discounts { get; set; }

/// <summary>
/// The ID of the price object.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public InvoiceScheduleDetailsPhaseAddInvoiceItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ public class InvoiceSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHa
public string Plan { get; set; }

/// <summary>
/// The ID of the price object. When changing a subscription item's price, <c>quantity</c>
/// is set to 1 unless a <c>quantity</c> parameter is provided.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required. When
/// changing a subscription item's price, <c>quantity</c> is set to 1 unless a
/// <c>quantity</c> parameter is provided.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public InvoiceSubscriptionDetailsItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ public class InvoiceSubscriptionItemOptions : INestedOptions, IHasId, IHasMetada
public string Plan { get; set; }

/// <summary>
/// The ID of the price object. When changing a subscription item's price, <c>quantity</c>
/// is set to 1 unless a <c>quantity</c> parameter is provided.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required. When
/// changing a subscription item's price, <c>quantity</c> is set to 1 unless a
/// <c>quantity</c> parameter is provided.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public InvoiceSubscriptionItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,16 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata
public string Plan { get; set; }

/// <summary>
/// The ID of the price object. When changing a subscription item's price, <c>quantity</c>
/// is set to 1 unless a <c>quantity</c> parameter is provided.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required. When
/// changing a subscription item's price, <c>quantity</c> is set to 1 unless a
/// <c>quantity</c> parameter is provided.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public SubscriptionItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public class SubscriptionSchedulePhaseAddInvoiceItemOptions : INestedOptions
public List<SubscriptionSchedulePhaseAddInvoiceItemDiscountOptions> Discounts { get; set; }

/// <summary>
/// The ID of the price object.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public SubscriptionSchedulePhaseAddInvoiceItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public class SubscriptionAddInvoiceItemOptions : INestedOptions
public List<SubscriptionAddInvoiceItemDiscountOptions> Discounts { get; set; }

/// <summary>
/// The ID of the price object.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public SubscriptionAddInvoiceItemPriceDataOptions PriceData { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ public class SubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata
public string Plan { get; set; }

/// <summary>
/// The ID of the price object. When changing a subscription item's price, <c>quantity</c>
/// is set to 1 unless a <c>quantity</c> parameter is provided.
/// The ID of the price object. One of <c>price</c> or <c>price_data</c> is required. When
/// changing a subscription item's price, <c>quantity</c> is set to 1 unless a
/// <c>quantity</c> parameter is provided.
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }

/// <summary>
/// Data used to generate a new <a href="https://stripe.com/docs/api/prices">Price</a>
/// object inline.
/// object inline. One of <c>price</c> or <c>price_data</c> is required.
/// </summary>
[JsonProperty("price_data")]
public SubscriptionItemPriceDataOptions PriceData { get; set; }
Expand Down
Loading