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 #2997

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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 @@
v1268
v1317
14 changes: 12 additions & 2 deletions src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,11 @@ public static class EventTypes
/// </summary>
public const string IssuingTransactionCreated = "issuing_transaction.created";

/// <summary>
/// Occurs whenever an issuing transaction is updated with receipt data.
/// </summary>
public const string IssuingTransactionPurchaseDetailsReceiptUpdated = "issuing_transaction.purchase_details_receipt_updated";

/// <summary>
/// Occurs whenever an issuing transaction is updated.
/// </summary>
Expand Down Expand Up @@ -879,12 +884,17 @@ public static class EventTypes
public const string RadarEarlyFraudWarningUpdated = "radar.early_fraud_warning.updated";

/// <summary>
/// Occurs whenever a refund from a customer's cash balance is created.
/// Occurs whenever a refund is created.
/// </summary>
public const string RefundCreated = "refund.created";

/// <summary>
/// Occurs whenever a refund from a customer's cash balance is updated.
/// Occurs whenever a refund has failed.
/// </summary>
public const string RefundFailed = "refund.failed";

/// <summary>
/// Occurs whenever a refund is updated.
/// </summary>
public const string RefundUpdated = "refund.updated";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ namespace Stripe

public class AccountSessionComponentsAccountManagementFeatures : StripeEntity<AccountSessionComponentsAccountManagementFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { 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.
/// accounts. This feature can only be false for accounts where you’re responsible for
/// collecting updated information when requirements are due or change, like custom
/// accounts. Otherwise, bank account collection is determined by compliance requirements.
/// The default value for this feature is <c>true</c>.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ namespace Stripe

public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity<AccountSessionComponentsAccountOnboardingFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { 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.
/// accounts. This feature can only be false for accounts where you’re responsible for
/// collecting updated information when requirements are due or change, like custom
/// accounts. Otherwise, bank account collection is determined by compliance requirements.
/// The default value for this feature is <c>true</c>.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ namespace Stripe

public class AccountSessionComponentsBalancesFeatures : StripeEntity<AccountSessionComponentsBalancesFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }

/// <summary>
/// Whether to allow payout schedule to be changed. Default <c>true</c> when Stripe owns
/// Loss Liability, default <c>false</c> otherwise.
Expand All @@ -14,9 +24,10 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity<AccountSess

/// <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.
/// accounts. This feature can only be false for accounts where you’re responsible for
/// collecting updated information when requirements are due or change, like custom
/// accounts. Otherwise, bank account collection is determined by compliance requirements.
/// The default value for this feature is <c>true</c>.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ namespace Stripe

public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity<AccountSessionComponentsNotificationBannerFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { 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.
/// accounts. This feature can only be false for accounts where you’re responsible for
/// collecting updated information when requirements are due or change, like custom
/// accounts. Otherwise, bank account collection is determined by compliance requirements.
/// The default value for this feature is <c>true</c>.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ namespace Stripe

public class AccountSessionComponentsPayoutsFeatures : StripeEntity<AccountSessionComponentsPayoutsFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }

/// <summary>
/// Whether to allow payout schedule to be changed. Default <c>true</c> when Stripe owns
/// Loss Liability, default <c>false</c> otherwise.
Expand All @@ -14,9 +24,10 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity<AccountSessi

/// <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.
/// accounts. This feature can only be false for accounts where you’re responsible for
/// collecting updated information when requirements are due or change, like custom
/// accounts. Otherwise, bank account collection is determined by compliance requirements.
/// The default value for this feature is <c>true</c>.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }
Expand Down
10 changes: 8 additions & 2 deletions src/Stripe.net/Entities/Accounts/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
public AccountCapabilities Capabilities { get; set; }

/// <summary>
/// Whether the account can create live charges.
/// Whether the account can process charges.
/// </summary>
[JsonProperty("charges_enabled")]
public bool ChargesEnabled { get; set; }
Expand Down Expand Up @@ -127,6 +127,12 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
[JsonProperty("future_requirements")]
public AccountFutureRequirements FutureRequirements { get; set; }

/// <summary>
/// The groups associated with the account.
/// </summary>
[JsonProperty("groups")]
public AccountGroups Groups { get; set; }

/// <summary>
/// This is an object representing a person associated with a Stripe account.
///
Expand Down Expand Up @@ -154,7 +160,7 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// Whether Stripe can send payouts to this account.
/// Whether the funds in this account can be paid out.
/// </summary>
[JsonProperty("payouts_enabled")]
public bool PayoutsEnabled { get; set; }
Expand Down
48 changes: 48 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("afterpay_clearpay_payments")]
public string AfterpayClearpayPayments { get; set; }

/// <summary>
/// The status of the Alma capability of the account, or whether the account can directly
/// process Alma payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("alma_payments")]
public string AlmaPayments { get; set; }

/// <summary>
/// The status of the AmazonPay capability of the account, or whether the account can
/// directly process AmazonPay payments.
Expand Down Expand Up @@ -189,6 +197,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("jp_bank_transfer_payments")]
public string JpBankTransferPayments { get; set; }

/// <summary>
/// The status of the KakaoPay capability of the account, or whether the account can
/// directly process KakaoPay payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("kakao_pay_payments")]
public string KakaoPayPayments { get; set; }

/// <summary>
/// The status of the Klarna payments capability of the account, or whether the account can
/// directly process Klarna charges.
Expand All @@ -205,6 +221,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("konbini_payments")]
public string KonbiniPayments { get; set; }

/// <summary>
/// The status of the KrCard capability of the account, or whether the account can directly
/// process KrCard payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("kr_card_payments")]
public string KrCardPayments { get; set; }

/// <summary>
/// The status of the legacy payments capability of the account.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
Expand Down Expand Up @@ -244,6 +268,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("mx_bank_transfer_payments")]
public string MxBankTransferPayments { get; set; }

/// <summary>
/// The status of the NaverPay capability of the account, or whether the account can
/// directly process NaverPay payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("naver_pay_payments")]
public string NaverPayPayments { get; set; }

/// <summary>
/// The status of the OXXO payments capability of the account, or whether the account can
/// directly process OXXO charges.
Expand All @@ -260,6 +292,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("p24_payments")]
public string P24Payments { get; set; }

/// <summary>
/// The status of the Payco capability of the account, or whether the account can directly
/// process Payco payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("payco_payments")]
public string PaycoPayments { get; set; }

/// <summary>
/// The status of the paynow payments capability of the account, or whether the account can
/// directly process paynow charges.
Expand All @@ -284,6 +324,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("revolut_pay_payments")]
public string RevolutPayPayments { get; set; }

/// <summary>
/// The status of the SamsungPay capability of the account, or whether the account can
/// directly process SamsungPay payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("samsung_pay_payments")]
public string SamsungPayPayments { get; set; }

/// <summary>
/// The status of the SEPA customer_balance payments (EUR currency) capability of the
/// account, or whether the account can directly process SEPA customer_balance charges.
Expand Down
17 changes: 17 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountGroups.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountGroups : StripeEntity<AccountGroups>
{
/// <summary>
/// The group the account is in to determine their payments pricing, and null if the account
/// is on customized pricing. <a
/// href="https://stripe.com/docs/connect/platform-pricing-tools">See the Platform pricing
/// tool documentation</a> for details.
/// </summary>
[JsonProperty("payments_pricing")]
public string PaymentsPricing { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Billing
using Stripe.Infrastructure;

/// <summary>
/// Indicates the credit balance for credits granted to a customer.
/// Indicates the billing credit balance for billing credits granted to a customer.
/// </summary>
public class CreditBalanceSummary : StripeEntity<CreditBalanceSummary>, IHasObject
{
Expand All @@ -17,8 +17,8 @@ public class CreditBalanceSummary : StripeEntity<CreditBalanceSummary>, IHasObje
public string Object { get; set; }

/// <summary>
/// The credit balances. One entry per credit grant currency. If a customer only has credit
/// grants in a single currency, then this will have a single balance entry.
/// The billing credit balances. One entry per credit grant currency. If a customer only has
/// credit grants in a single currency, then this will have a single balance entry.
/// </summary>
[JsonProperty("balances")]
public List<CreditBalanceSummaryBalance> Balances { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class CreditBalanceSummaryBalanceAvailableBalance : StripeEntity<CreditBa
public CreditBalanceSummaryBalanceAvailableBalanceMonetary Monetary { get; set; }

/// <summary>
/// The type of this amount. We currently only support <c>monetary</c> credits.
/// The type of this amount. We currently only support <c>monetary</c> billing credits.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class CreditBalanceSummaryBalanceLedgerBalance : StripeEntity<CreditBalan
public CreditBalanceSummaryBalanceLedgerBalanceMonetary Monetary { get; set; }

/// <summary>
/// The type of this amount. We currently only support <c>monetary</c> credits.
/// The type of this amount. We currently only support <c>monetary</c> billing credits.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Loading
Loading