diff --git a/API_VERSION b/API_VERSION index 1105d43533..dffa3a76a2 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -3ccf295957c8cadc88e1463ea3ab4ec683a0314f \ No newline at end of file +6d15a7f20cb77c2c22091a30e499cb89d7e3248c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c8ed627ff9..dfd2783f16 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2102 \ No newline at end of file +v2111 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsInvoices.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsInvoices.cs index da4456b976..cf3253c20a 100644 --- a/src/Stripe.net/Entities/Accounts/AccountSettingsInvoices.cs +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsInvoices.cs @@ -56,8 +56,9 @@ public List DefaultAccountTaxIds #endregion /// - /// Whether payment methods should be saved when a payment is completed for a one-time - /// invoices on a hosted invoice page. + /// Whether to save the payment method after a payment is completed for a one-time invoice + /// or a subscription invoice when the customer already has a default payment method on the + /// hosted invoice page. /// One of: always, never, or offer. /// [JsonProperty("hosted_payment_method_save")] diff --git a/src/Stripe.net/Entities/InvoicePayments/InvoicePaymentPayment.cs b/src/Stripe.net/Entities/InvoicePayments/InvoicePaymentPayment.cs index 51e078c47a..36123b745f 100644 --- a/src/Stripe.net/Entities/InvoicePayments/InvoicePaymentPayment.cs +++ b/src/Stripe.net/Entities/InvoicePayments/InvoicePaymentPayment.cs @@ -149,7 +149,7 @@ public PaymentRecord PaymentRecord /// /// Type of payment object associated with this invoice payment. - /// One of: charge, or payment_intent. + /// One of: charge, payment_intent, or payment_record. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs index 824459679f..8467c11e6d 100644 --- a/src/Stripe.net/Entities/Invoices/Invoice.cs +++ b/src/Stripe.net/Entities/Invoices/Invoice.cs @@ -291,8 +291,9 @@ public Application Application /// subscription_create: A new subscription was created. * subscription_cycle: /// A subscription advanced into a new period. * subscription_threshold: A /// subscription reached a billing threshold. * subscription_update: A subscription - /// was updated. * upcoming: Reserved for simulated invoices, per the upcoming - /// invoice endpoint. + /// was updated. * upcoming: Reserved for upcoming invoices created through the + /// Create Preview Invoice API or when an invoice.upcoming event is generated for an + /// upcoming invoice on a subscription. /// One of: automatic_pending_invoice_item_invoice, manual, /// quote_accept, subscription, subscription_create, /// subscription_cycle, subscription_threshold, subscription_update, or diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs index 9b2e8a7856..8434a1640f 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs @@ -8,6 +8,16 @@ namespace Stripe public class PaymentIntentPaymentMethodOptionsCardPresent : StripeEntity { + /// + /// Controls when the funds will be captured from the customer's account. + /// One of: manual, or manual_preferred. + /// + [JsonProperty("capture_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capture_method")] +#endif + public string CaptureMethod { get; set; } + /// /// Request ability to capture this payment beyond the standard authorization diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs index df61bde2da..d372b43532 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs @@ -66,7 +66,8 @@ public class MeterEvent : StripeEntity, IHasObject /// The payload of the event. This must contain the fields corresponding to a meter’s /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the - /// payload. + /// payload.. /// [JsonProperty("payload")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsInvoicesOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsInvoicesOptions.cs index 1eea3d961a..9bbb15ac44 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsInvoicesOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsInvoicesOptions.cs @@ -20,8 +20,9 @@ public class AccountSettingsInvoicesOptions : INestedOptions public List DefaultAccountTaxIds { get; set; } /// - /// Whether payment methods should be saved when a payment is completed for a one-time - /// invoices on a hosted invoice page. + /// Whether to save the payment method after a payment is completed for a one-time invoice + /// or a subscription invoice when the customer already has a default payment method on the + /// hosted invoice page. /// One of: always, never, or offer. /// [JsonProperty("hosted_payment_method_save")] diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs index e69cebd9e6..0e33c9befd 100644 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class CustomerSessionCreateOptions : BaseOptions { /// - /// Configuration for each component. Exactly 1 component must be enabled. + /// Configuration for each component. At least 1 component must be enabled. /// [JsonProperty("components")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs index f4d5919a18..b79c11d158 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentOptions.cs @@ -8,6 +8,23 @@ namespace Stripe public class PaymentIntentPaymentMethodOptionsCardPresentOptions : INestedOptions { + /// + /// Controls when the funds are captured from the customer's account. + /// + /// If provided, this parameter overrides the behavior of the top-level capture_method + /// for this payment method type when finalizing the payment with this payment method type. + /// + /// If capture_method is already set on the PaymentIntent, providing an empty value + /// for this parameter unsets the stored value for this payment method type. + /// One of: manual, or manual_preferred. + /// + [JsonProperty("capture_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("capture_method")] +#endif + public string CaptureMethod { get; set; } + /// /// Request ability to capture this payment beyond the standard authorization diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationBbposWisepad3Options.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationBbposWisepad3Options.cs index 20f06c6b68..7160cbe47c 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationBbposWisepad3Options.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationBbposWisepad3Options.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ConfigurationBbposWisepad3Options : INestedOptions { /// - /// A File ID representing an image you would like displayed on the reader. + /// A File ID representing an image you want to display on the reader. /// [JsonProperty("splashscreen")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs index 07db40bbb9..948b152a67 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs @@ -45,7 +45,7 @@ public class ConfigurationCreateOptions : BaseOptions public ConfigurationOfflineOptions Offline { get; set; } /// - /// Reboot time settings for readers that support customized reboot time configuration. + /// Reboot time settings for readers. that support customized reboot time configuration. /// [JsonProperty("reboot_window")] #if NET6_0_OR_GREATER @@ -63,7 +63,7 @@ public class ConfigurationCreateOptions : BaseOptions public ConfigurationStripeS700Options StripeS700 { get; set; } /// - /// Tipping configurations for readers supporting on-reader tips. + /// Tipping configurations for readers. supporting on-reader tips. /// [JsonProperty("tipping")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS700Options.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS700Options.cs index 1435d3c1fd..054f85b924 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS700Options.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS700Options.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ConfigurationStripeS700Options : INestedOptions { /// - /// A File ID representing an image you would like displayed on the reader. + /// A File ID representing an image you want to display on the reader. /// [JsonProperty("splashscreen")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs index bda1c5db78..0b79d15f2e 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs @@ -45,7 +45,7 @@ public class ConfigurationUpdateOptions : BaseOptions public ConfigurationOfflineOptions Offline { get; set; } /// - /// Reboot time settings for readers that support customized reboot time configuration. + /// Reboot time settings for readers. that support customized reboot time configuration. /// [JsonProperty("reboot_window")] #if NET6_0_OR_GREATER @@ -63,7 +63,7 @@ public class ConfigurationUpdateOptions : BaseOptions public ConfigurationStripeS700Options StripeS700 { get; set; } /// - /// Tipping configurations for readers supporting on-reader tips. + /// Tipping configurations for readers. supporting on-reader tips. /// [JsonProperty("tipping")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationVerifoneP400Options.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationVerifoneP400Options.cs index 4e9bb22b9f..4048cce8d4 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationVerifoneP400Options.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationVerifoneP400Options.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ConfigurationVerifoneP400Options : INestedOptions { /// - /// A File ID representing an image you would like displayed on the reader. + /// A File ID representing an image you want to display on the reader. /// [JsonProperty("splashscreen")] #if NET6_0_OR_GREATER