diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9cb5323fb..20cbdd3048 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1333 \ No newline at end of file +v1356 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index d49d4d714d..090fbcce39 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2024-10-28.acacia"; + public const string Current = "2024-11-20.acacia"; } } \ No newline at end of file diff --git a/src/Stripe.net/Constants/FilePurpose.cs b/src/Stripe.net/Constants/FilePurpose.cs index 71ba1b9fc5..df31d44b43 100644 --- a/src/Stripe.net/Constants/FilePurpose.cs +++ b/src/Stripe.net/Constants/FilePurpose.cs @@ -19,6 +19,8 @@ public static class FilePurpose public const string FinanceReportRun = "finance_report_run"; + public const string FinancialAccountStatement = "financial_account_statement"; + public const string IdentityDocument = "identity_document"; public const string IdentityDocumentDownloadable = "identity_document_downloadable"; diff --git a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs index 88a30b094e..752adcadd8 100644 --- a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs +++ b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs @@ -16,8 +16,8 @@ public class AccountFutureRequirements : StripeEntity public List Alternatives { get; set; } /// - /// Date on which future_requirements merges with the main requirements hash - /// and future_requirements becomes empty. After the transition, currently_due + /// Date on which future_requirements becomes the main requirements hash and + /// future_requirements becomes empty. After the transition, currently_due /// requirements may immediately become past_due, but the account may also be given a /// grace period depending on its enablement state prior to transitioning. /// diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs index 1dc119e81c..0aa3cf5ec1 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs @@ -16,8 +16,8 @@ public class CapabilityFutureRequirements : StripeEntity Alternatives { get; set; } /// - /// Date on which future_requirements merges with the main requirements hash - /// and future_requirements becomes empty. After the transition, currently_due + /// Date on which future_requirements becomes the main requirements hash and + /// future_requirements becomes empty. After the transition, currently_due /// requirements may immediately become past_due, but the account may also be given a /// grace period depending on the capability's enablement state prior to transitioning. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index 3b0905a87e..8ee98c0222 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -527,7 +527,7 @@ public SetupIntent SetupIntent /// relevant text on the page, such as the submit button. submit_type can only be /// specified on Checkout Sessions in payment mode. If blank or auto, /// pay is used. - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Entities/Files/File.cs b/src/Stripe.net/Entities/Files/File.cs index 6a57463aa7..2b95419aaf 100644 --- a/src/Stripe.net/Entities/Files/File.cs +++ b/src/Stripe.net/Entities/Files/File.cs @@ -61,7 +61,7 @@ public class File : StripeEntity, IHasId, IHasObject /// One of: account_requirement, additional_verification, /// business_icon, business_logo, customer_signature, /// dispute_evidence, document_provider_identity_document, - /// finance_report_run, identity_document, + /// finance_report_run, financial_account_statement, identity_document, /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, selfie, sigma_scheduled_query, /// tax_document_user_upload, or terminal_reader_splashscreen. diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressIban.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressIban.cs index 632e54c968..416e2bd40c 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressIban.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressIban.cs @@ -5,12 +5,18 @@ namespace Stripe public class FundingInstructionsBankTransferFinancialAddressIban : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + /// /// The name of the person or business that owns the bank account. /// [JsonProperty("account_holder_name")] public string AccountHolderName { get; set; } + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The BIC/SWIFT code of the account. /// diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSortCode.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSortCode.cs index f46312c7e3..df785e7005 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSortCode.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSortCode.cs @@ -5,6 +5,9 @@ namespace Stripe public class FundingInstructionsBankTransferFinancialAddressSortCode : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + /// /// The name of the person or business that owns the bank account. /// @@ -17,6 +20,9 @@ public class FundingInstructionsBankTransferFinancialAddressSortCode : StripeEnt [JsonProperty("account_number")] public string AccountNumber { get; set; } + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The six-digit sort code. /// diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSpei.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSpei.cs index 3c5de13b2e..97a2e41a12 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSpei.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSpei.cs @@ -5,6 +5,18 @@ namespace Stripe public class FundingInstructionsBankTransferFinancialAddressSpei : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + + /// + /// The account holder name. + /// + [JsonProperty("account_holder_name")] + public string AccountHolderName { get; set; } + + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The three-digit bank code. /// diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressZengin.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressZengin.cs index 5b1c778375..7f7acf2dbe 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressZengin.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressZengin.cs @@ -5,6 +5,9 @@ namespace Stripe public class FundingInstructionsBankTransferFinancialAddressZengin : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + /// /// The account holder name. /// @@ -23,6 +26,9 @@ public class FundingInstructionsBankTransferFinancialAddressZengin : StripeEntit [JsonProperty("account_type")] public string AccountType { get; set; } + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The bank code of the account. /// diff --git a/src/Stripe.net/Entities/Invoices/InvoiceSubscriptionDetails.cs b/src/Stripe.net/Entities/Invoices/InvoiceSubscriptionDetails.cs index f767206daf..389b2d03d7 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceSubscriptionDetails.cs @@ -18,7 +18,7 @@ public class InvoiceSubscriptionDetails : StripeEntity /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 1639a1b3fd..6be292db2f 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -127,6 +127,13 @@ public Cardholder Cardholder [JsonProperty("fleet")] public AuthorizationFleet Fleet { get; set; } + /// + /// Fraud challenges sent to the cardholder, if this authorization was declined for fraud + /// risk reasons. + /// + [JsonProperty("fraud_challenges")] + public List FraudChallenges { get; set; } + /// /// Information about fuel that was purchased with this transaction. Typically this /// information is received from the merchant after the authorization has been approved and @@ -257,6 +264,14 @@ public Token Token [JsonProperty("verification_data")] public AuthorizationVerificationData VerificationData { get; set; } + /// + /// Whether the authorization bypassed fraud risk checks because the cardholder has + /// previously completed a fraud challenge on a similar high-risk authorization from the + /// same merchant. + /// + [JsonProperty("verified_by_fraud_challenge")] + public bool? VerifiedByFraudChallenge { get; set; } + /// /// The digital wallet used for this transaction. One of apple_pay, /// google_pay, or samsung_pay. Will populate as null when no digital diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationFraudChallenge.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationFraudChallenge.cs new file mode 100644 index 0000000000..7541abeed5 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationFraudChallenge.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + + public class AuthorizationFraudChallenge : StripeEntity + { + /// + /// The method by which the fraud challenge was delivered to the cardholder. + /// + [JsonProperty("channel")] + public string Channel { get; set; } + + /// + /// The status of the fraud challenge. + /// One of: expired, pending, rejected, undeliverable, or + /// verified. + /// + [JsonProperty("status")] + public string Status { get; set; } + + /// + /// If the challenge is not deliverable, the reason why. + /// One of: no_phone_number, or unsupported_phone_number. + /// + [JsonProperty("undeliverable_reason")] + public string UndeliverableReason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs index 6ab68cc245..9510751286 100644 --- a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs +++ b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs @@ -10,8 +10,9 @@ namespace Stripe.Issuing /// An Issuing Cardholder object represents an individual or business entity who is /// issued cards. /// - /// Related guide: How to - /// create a cardholder. + /// Related guide: How + /// to create a cardholder. /// public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasObject { diff --git a/src/Stripe.net/Entities/Issuing/Cards/Card.cs b/src/Stripe.net/Entities/Issuing/Cards/Card.cs index 24e2b20a06..37f46fbb3f 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/Card.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/Card.cs @@ -41,8 +41,9 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject /// An Issuing Cardholder object represents an individual or business entity who is /// issued cards. /// - /// Related guide: How to - /// create a cardholder. + /// Related guide: How + /// to create a cardholder. /// [JsonProperty("cardholder")] public Cardholder Cardholder { get; set; } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIban.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIban.cs index a1c0e960e1..513660a13a 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIban.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIban.cs @@ -5,12 +5,18 @@ namespace Stripe public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIban : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + /// /// The name of the person or business that owns the bank account. /// [JsonProperty("account_holder_name")] public string AccountHolderName { get; set; } + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The BIC/SWIFT code of the account. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode.cs index 4597c10102..a4ec2ecdaa 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode.cs @@ -5,6 +5,9 @@ namespace Stripe public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + /// /// The name of the person or business that owns the bank account. /// @@ -17,6 +20,9 @@ public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddr [JsonProperty("account_number")] public string AccountNumber { get; set; } + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The six-digit sort code. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei.cs index d176d0908f..ef85932d4e 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei.cs @@ -5,6 +5,18 @@ namespace Stripe public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + + /// + /// The account holder name. + /// + [JsonProperty("account_holder_name")] + public string AccountHolderName { get; set; } + + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The three-digit bank code. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin.cs index ace8aaae17..0800b3ab59 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin.cs @@ -5,6 +5,9 @@ namespace Stripe public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + /// /// The account holder name. /// @@ -23,6 +26,9 @@ public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddr [JsonProperty("account_type")] public string AccountType { get; set; } + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The bank code of the account. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSwish.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSwish.cs index ef22df96b7..4367c18db5 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSwish.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSwish.cs @@ -6,7 +6,7 @@ namespace Stripe public class PaymentIntentPaymentMethodOptionsSwish : StripeEntity { /// - /// The order ID displayed in the Swish app after the payment is authorized. + /// A reference for this payment to be displayed in the Swish app. /// [JsonProperty("reference")] public string Reference { get; set; } diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs index f317b2d3de..f7e3cdddb3 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs @@ -257,7 +257,7 @@ public Account OnBehalfOf /// /// Indicates the type of transaction being performed which customizes relevant text on the /// page, such as the submit button. - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Entities/Payouts/Payout.cs b/src/Stripe.net/Entities/Payouts/Payout.cs index 3e8369c392..93976334ea 100644 --- a/src/Stripe.net/Entities/Payouts/Payout.cs +++ b/src/Stripe.net/Entities/Payouts/Payout.cs @@ -350,6 +350,13 @@ public Payout ReversedBy [JsonProperty("status")] public string Status { get; set; } + /// + /// A value that generates from the beneficiary's bank that allows users to track payouts + /// with their bank. Banks might call this a "reference number" or something similar. + /// + [JsonProperty("trace_id")] + public PayoutTraceId TraceId { get; set; } + /// /// Can be bank_account or card. /// One of: bank_account, or card. diff --git a/src/Stripe.net/Entities/Payouts/PayoutTraceId.cs b/src/Stripe.net/Entities/Payouts/PayoutTraceId.cs new file mode 100644 index 0000000000..55112f418f --- /dev/null +++ b/src/Stripe.net/Entities/Payouts/PayoutTraceId.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PayoutTraceId : StripeEntity + { + /// + /// Possible values are pending, supported, and unsupported. When + /// payout.status is pending or in_transit, this will be + /// pending. When the payout transitions to paid, failed, or + /// canceled, this status will become supported or unsupported shortly + /// after in most cases. In some cases, this may appear as pending for up to 10 days + /// after arrival_date until transitioning to supported or unsupported. + /// + [JsonProperty("status")] + public string Status { get; set; } + + /// + /// The trace ID value if trace_id.status is supported, otherwise nil. + /// + [JsonProperty("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Persons/PersonRelationship.cs b/src/Stripe.net/Entities/Persons/PersonRelationship.cs index 9c88b24f3e..b968af1452 100644 --- a/src/Stripe.net/Entities/Persons/PersonRelationship.cs +++ b/src/Stripe.net/Entities/Persons/PersonRelationship.cs @@ -5,6 +5,12 @@ namespace Stripe public class PersonRelationship : StripeEntity { + /// + /// Whether the person is the authorizer of the account's representative. + /// + [JsonProperty("authorizer")] + public bool? Authorizer { get; set; } + /// /// Whether the person is a director of the account's legal entity. Directors are typically /// members of the governing board of the company, or responsible for ensuring the company diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollection.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollection.cs index 2dc4853420..7d6c405784 100644 --- a/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollection.cs +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollection.cs @@ -8,7 +8,7 @@ public class QuoteLineSetPauseCollection : StripeEntity /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("set")] diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceSubscriptionDetails.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceSubscriptionDetails.cs index 36a4fdda17..80531b8a43 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceSubscriptionDetails.cs @@ -18,7 +18,7 @@ public class QuotePreviewInvoiceSubscriptionDetails : StripeEntity /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs index 3a05c8d87d..015bd22090 100644 --- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs @@ -217,7 +217,7 @@ public Account OnBehalfOf /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs index b304e09918..d8e7de1f67 100644 --- a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs +++ b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs @@ -5,6 +5,13 @@ namespace Stripe public class RefundDestinationDetailsBlik : StripeEntity { + /// + /// For refunds declined by the network, a decline code provided by the network which + /// indicates the reason the refund failed. + /// + [JsonProperty("network_decline_code")] + public string NetworkDeclineCode { get; set; } + /// /// The reference assigned to the refund. /// diff --git a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs index e4f4555bec..23153a439f 100644 --- a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs +++ b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs @@ -5,6 +5,13 @@ namespace Stripe public class RefundDestinationDetailsSwish : StripeEntity { + /// + /// For refunds declined by the network, a decline code provided by the network which + /// indicates the reason the refund failed. + /// + [JsonProperty("network_decline_code")] + public string NetworkDeclineCode { get; set; } + /// /// The reference assigned to the refund. /// diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs index 3c15536e51..233fe86a8e 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs @@ -217,7 +217,7 @@ public Account OnBehalfOf /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index 969c26ddc0..505483e596 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -456,7 +456,7 @@ public Account OnBehalfOf /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] @@ -585,12 +585,13 @@ public SubscriptionSchedule Schedule /// active when the trial period is over. /// /// A subscription can only enter a paused status when + /// href="https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment">when /// a trial ends without a payment method. A paused subscription doesn't generate /// invoices and can be resumed after your customer adds their payment method. The /// paused status is different from pausing collection, - /// which still generates invoices and leaves the subscription's status unchanged. + /// href="https://stripe.com/docs/billing/subscriptions/pause-payment">pausing + /// collection, which still generates invoices and leaves the subscription's status + /// unchanged. /// /// If subscription collection_method=charge_automatically, it becomes /// past_due when payment is required but cannot be paid (due to failed payment or diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs index bb8f67fdd5..16b0d77960 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs @@ -5,6 +5,13 @@ namespace Stripe public class AccountPersonRelationshipOptions : INestedOptions { + /// + /// A filter on the list of people returned based on whether these people are authorizers of + /// the account's representative. + /// + [JsonProperty("authorizer")] + public bool? Authorizer { get; set; } + /// /// Whether the person is a director of the account's legal entity. Directors are typically /// members of the governing board of the company, or responsible for ensuring the company diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 1c84e98dec..da0ab895ef 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -359,7 +359,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// relevant text on the page, such as the submit button. submit_type can only be /// specified on Checkout Sessions in payment mode. If blank or auto, /// pay is used. - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs b/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs index e5abfb976d..d43782dfec 100644 --- a/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs +++ b/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs @@ -18,7 +18,7 @@ public class FileLinkCreateOptions : BaseOptions, IHasMetadata /// /// The ID of the file. The file's purpose must be one of the following: /// business_icon, business_logo, customer_signature, - /// dispute_evidence, finance_report_run, + /// dispute_evidence, finance_report_run, financial_account_statement, /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, selfie, sigma_scheduled_query, /// tax_document_user_upload, or terminal_reader_splashscreen. diff --git a/src/Stripe.net/Services/Files/FileListOptions.cs b/src/Stripe.net/Services/Files/FileListOptions.cs index 9bd9b3fee5..c0b844bce4 100644 --- a/src/Stripe.net/Services/Files/FileListOptions.cs +++ b/src/Stripe.net/Services/Files/FileListOptions.cs @@ -11,7 +11,7 @@ public class FileListOptions : ListOptionsWithCreated /// One of: account_requirement, additional_verification, /// business_icon, business_logo, customer_signature, /// dispute_evidence, document_provider_identity_document, - /// finance_report_run, identity_document, + /// finance_report_run, financial_account_statement, identity_document, /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, selfie, sigma_scheduled_query, /// tax_document_user_upload, or terminal_reader_splashscreen. diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseOptions.cs index b8b5b21158..638546c32c 100644 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseOptions.cs +++ b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseOptions.cs @@ -165,7 +165,7 @@ public class InvoiceUpcomingLinesScheduleDetailsPhaseOptions : INestedOptions, I /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs index dcc0db0824..de887f4c38 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs @@ -165,7 +165,7 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSwishOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSwishOptions.cs index a0aed59ac0..f198ecac19 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSwishOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSwishOptions.cs @@ -6,7 +6,7 @@ namespace Stripe public class PaymentIntentPaymentMethodOptionsSwishOptions : INestedOptions { /// - /// The order ID displayed in the Swish app after the payment is authorized. + /// A reference for this payment to be displayed in the Swish app. /// [JsonProperty("reference")] public string Reference { get; set; } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs index 74a743f8d3..06db99b14d 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -197,7 +197,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// in the url /// property (example: donate.stripe.com). - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index fdd4a4af8b..ea29b64d67 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -150,7 +150,7 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata /// in the url /// property (example: donate.stripe.com). - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs index 021abaf82b..b53f60c196 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs @@ -165,7 +165,7 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index fce987ae15..6d584b1199 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -287,7 +287,7 @@ public virtual IAsyncEnumerable SearchAutoPagingAsync(Subscription ///

In these cases, we apply a credit for the unused time on the previous price, /// immediately charge the customer using the new price, and reset the billing date. Learn /// about how Stripe + /// href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe /// immediately attempts payment for subscription changes.

. /// ///

If you want to charge for an upgrade immediately, pass proration_behavior as @@ -342,7 +342,7 @@ public virtual Subscription Update(string id, SubscriptionUpdateOptions options, ///

In these cases, we apply a credit for the unused time on the previous price, /// immediately charge the customer using the new price, and reset the billing date. Learn /// about how Stripe + /// href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe /// immediately attempts payment for subscription changes.

. /// ///

If you want to charge for an upgrade immediately, pass proration_behavior as diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs index 0cc0d85e17..643ff746ac 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs @@ -183,7 +183,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata ///

/// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs new file mode 100644 index 0000000000..119b66af64 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers.Issuing +{ + using Newtonsoft.Json; + + public class AuthorizationRespondOptions : BaseOptions + { + /// + /// Whether to simulate the user confirming that the transaction was legitimate (true) or + /// telling Stripe that it was fraudulent (false). + /// + [JsonProperty("confirmed")] + public bool? Confirmed { get; set; } + } +} diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs index cfbf80a276..b7cca46474 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs @@ -106,6 +106,24 @@ public virtual Stripe.Issuing.Authorization Increment(string id, AuthorizationIn return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/authorizations/{WebUtility.UrlEncode(id)}/increment", options, requestOptions, cancellationToken); } + /// + ///

Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + /// confirmation of fraud or a correction of legitimacy.

. + ///
+ public virtual Stripe.Issuing.Authorization Respond(string id, AuthorizationRespondOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/authorizations/{WebUtility.UrlEncode(id)}/fraud_challenges/respond", options, requestOptions); + } + + /// + ///

Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + /// confirmation of fraud or a correction of legitimacy.

. + ///
+ public virtual Task RespondAsync(string id, AuthorizationRespondOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/authorizations/{WebUtility.UrlEncode(id)}/fraud_challenges/respond", options, requestOptions, cancellationToken); + } + /// ///

Reverse a test-mode Authorization.

. ///
diff --git a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs index 2bd40a1339..bae8e53255 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs @@ -5,6 +5,12 @@ namespace Stripe public class TokenPersonRelationshipOptions : INestedOptions { + /// + /// Whether the person is the authorizer of the account's representative. + /// + [JsonProperty("authorizer")] + public bool? Authorizer { get; set; } + /// /// Whether the person is a director of the account's legal entity. Directors are typically /// members of the governing board of the company, or responsible for ensuring the company diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index cd23433ef8..6951e159ad 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -34,8 +34,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2019-08-14, 2019-09-09, 2019-10-08, 2019-10-17, /// 2019-11-05, 2019-12-03, 2020-03-02, 2020-08-27, /// 2022-08-01, 2022-11-15, 2023-08-16, 2023-10-16, - /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, or - /// 2024-10-28.acacia. + /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, + /// 2024-10-28.acacia, or 2024-11-20.acacia. /// [JsonProperty("api_version")] public string ApiVersion { get; set; }