diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 6fae6735a5..983636f7b6 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -d59a1f4bdea3032b8e282d40badc032cb021fc60 \ No newline at end of file +6012b623b1c09ad54d466947da04511a042ee45a \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 30723023b8..83c68c9d1d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2277 \ No newline at end of file +v2324 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 4114a37855..684699d47c 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,7 +3,7 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2026-05-27.dahlia"; + public const string Current = "2026-06-24.dahlia"; public const string CurrentMajor = "dahlia"; } } \ No newline at end of file diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs index dc948d3a64..23a722c6fc 100644 --- a/src/Stripe.net/Constants/EventTypes.cs +++ b/src/Stripe.net/Constants/EventTypes.cs @@ -382,8 +382,13 @@ public static class EventTypes public const string CustomerSubscriptionResumed = "customer.subscription.resumed"; /// - /// Occurs three days before a subscription's trial period is scheduled to end, or when a - /// trial is ended immediately (using trial_end=now). + /// Occurs three days before a subscription's trial period is scheduled to end, or + /// immediately when a trial is ended early (for example, with trial_end=now or when + /// a Customer Portal plan change ends a trial). If a trial is shortened so that fewer than + /// three days remain, this event can fire immediately, including during the same + /// transaction that collects payment. Before sending payment-reminder communications from + /// this webhook, check the subscription status and latest invoice to determine whether + /// payment has already been collected. /// public const string CustomerSubscriptionTrialWillEnd = "customer.subscription.trial_will_end"; diff --git a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs index e9740b3f4b..35aad9395a 100644 --- a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs +++ b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs @@ -175,13 +175,13 @@ public IBalanceTransactionSource Source public string Status { get; set; } /// - /// Transaction type: adjustment, advance, advance_funding, - /// anticipation_repayment, application_fee, application_fee_refund, - /// charge, climate_order_purchase, climate_order_refund, - /// connect_collection_transfer, contribution, inbound_transfer, - /// inbound_transfer_reversal, issuing_authorization_hold, - /// issuing_authorization_release, issuing_dispute, - /// issuing_transaction, obligation_outbound, + /// Transaction type: tax_fund, adjustment, advance, + /// advance_funding, anticipation_repayment, application_fee, + /// application_fee_refund, charge, climate_order_purchase, + /// climate_order_refund, connect_collection_transfer, contribution, + /// inbound_transfer, inbound_transfer_reversal, + /// issuing_authorization_hold, issuing_authorization_release, + /// issuing_dispute, issuing_transaction, obligation_outbound, /// obligation_reversal_inbound, payment, payment_failure_refund, /// payment_network_reserve_hold, payment_network_reserve_release, /// payment_refund, payment_reversal, payment_unreconciled, @@ -211,7 +211,7 @@ public IBalanceTransactionSource Source /// refund, refund_failure, reserve_hold, reserve_release, /// reserve_transaction, reserved_funds, stripe_balance_payment_debit, /// stripe_balance_payment_debit_reversal, stripe_fee, stripe_fx_fee, - /// tax_fee, topup, topup_reversal, transfer, + /// tax_fee, tax_fund, topup, topup_reversal, transfer, /// transfer_cancel, transfer_failure, or transfer_refund. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBizum.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBizum.cs index 7902a803cb..d5350d137c 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBizum.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsBizum.cs @@ -8,6 +8,13 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ChargePaymentMethodDetailsBizum : StripeEntity { + /// + /// A unique identifier for the buyer as determined by the local payment processor. + /// + [JsonProperty("buyer_id")] + [STJS.JsonPropertyName("buyer_id")] + public string BuyerId { get; set; } + /// /// The Bizum transaction ID associated with this payment. /// diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs index 62a31c55c3..a04f88d859 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs @@ -206,6 +206,16 @@ public class ChargePaymentMethodDetailsCard : StripeEntity + /// Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by + /// some card networks, such as Mastercard, for transaction linking, in addition to Network + /// Transaction IDs. This value will be present if it is returned by the financial network + /// in the authorization response, and null otherwise. + /// + [JsonProperty("transaction_link_id")] + [STJS.JsonPropertyName("transaction_link_id")] + public string TransactionLinkId { get; set; } + /// /// If this Card is part of a card wallet, this contains the details of the card wallet. /// diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs index de7e39573d..846c61e346 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs @@ -17,7 +17,8 @@ public class ChargePaymentMethodDetailsCrypto : StripeEntity /// The blockchain network that the transaction was sent on. - /// One of: base, ethereum, polygon, solana, or tempo. + /// One of: base, ethereum, polygon, solana, sui, or + /// tempo. /// [JsonProperty("network")] [STJS.JsonPropertyName("network")] @@ -25,7 +26,8 @@ public class ChargePaymentMethodDetailsCrypto : StripeEntity /// The token currency that the transaction was sent with. - /// One of: phantom_cash, usdc, usdg, usdp, or usdt. + /// One of: phantom_cash, usdc, usdg, usdp, usdsui, or + /// usdt. /// [JsonProperty("token_currency")] [STJS.JsonPropertyName("token_currency")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs index 4a69313412..2a2abfc1c1 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs @@ -15,6 +15,14 @@ public class ChargePaymentMethodDetailsPix : StripeEntity + /// Uniquely identifies this particular Pix account. You can use this attribute to check + /// whether two Pix accounts are the same. + /// + [JsonProperty("fingerprint")] + [STJS.JsonPropertyName("fingerprint")] + public string Fingerprint { get; set; } + /// /// ID of the multi use Mandate generated by the PaymentIntent. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs index 268dd44a19..98f93fcf3d 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs @@ -168,6 +168,10 @@ public class SessionPaymentMethodOptions : StripeEntity + { + /// + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + [STJS.JsonPropertyName("capture_method")] + public string CaptureMethod { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsWechatPay.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsWechatPay.cs new file mode 100644 index 0000000000..103ba955b1 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsWechatPay.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionPaymentMethodOptionsWechatPay : StripeEntity + { + /// + /// The app ID registered with WeChat Pay. Only required when client is iOS or Android. + /// + [JsonProperty("app_id")] + [STJS.JsonPropertyName("app_id")] + public string AppId { get; set; } + + /// + /// The client type that the end customer will pay from. + /// One of: android, ios, or web. + /// + [JsonProperty("client")] + [STJS.JsonPropertyName("client")] + public string Client { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBizum.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBizum.cs index 64cabee29d..feb5026cb0 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBizum.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBizum.cs @@ -8,5 +8,11 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ConfirmationTokenPaymentMethodPreviewBizum : StripeEntity { + /// + /// A unique identifier for the buyer as determined by the local payment processor. + /// + [JsonProperty("buyer_id")] + [STJS.JsonPropertyName("buyer_id")] + public string BuyerId { get; set; } } } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBlik.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBlik.cs index 8550e9d5e0..7902300d1c 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBlik.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBlik.cs @@ -8,5 +8,11 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ConfirmationTokenPaymentMethodPreviewBlik : StripeEntity { + /// + /// A unique and immutable identifier assigned by BLIK to every buyer. + /// + [JsonProperty("buyer_id")] + [STJS.JsonPropertyName("buyer_id")] + public string BuyerId { get; set; } } } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPix.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPix.cs index 648c256d65..5bdaf6b914 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPix.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPix.cs @@ -8,5 +8,12 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ConfirmationTokenPaymentMethodPreviewPix : StripeEntity { + /// + /// Uniquely identifies this particular Pix account. You can use this attribute to check + /// whether two Pix accounts are the same. + /// + [JsonProperty("fingerprint")] + [STJS.JsonPropertyName("fingerprint")] + public string Fingerprint { get; set; } } } diff --git a/src/Stripe.net/Entities/Disputes/Dispute.cs b/src/Stripe.net/Entities/Disputes/Dispute.cs index 1a68b97c2e..204825097d 100644 --- a/src/Stripe.net/Entities/Disputes/Dispute.cs +++ b/src/Stripe.net/Entities/Disputes/Dispute.cs @@ -102,7 +102,8 @@ public Charge Charge /// /// List of eligibility types that are included in enhanced_evidence. - /// One of: visa_compelling_evidence_3, or visa_compliance. + /// One of: mastercard_compliance, visa_compelling_evidence_3, or + /// visa_compliance. /// [JsonProperty("enhanced_eligibility_types")] [STJS.JsonPropertyName("enhanced_eligibility_types")] diff --git a/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetailsEnhancedEligibility.cs b/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetailsEnhancedEligibility.cs index 2757a80f1f..618d830058 100644 --- a/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetailsEnhancedEligibility.cs +++ b/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetailsEnhancedEligibility.cs @@ -8,6 +8,10 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class DisputeEvidenceDetailsEnhancedEligibility : StripeEntity { + [JsonProperty("mastercard_compliance")] + [STJS.JsonPropertyName("mastercard_compliance")] + public DisputeEvidenceDetailsEnhancedEligibilityMastercardCompliance MastercardCompliance { get; set; } + [JsonProperty("visa_compelling_evidence_3")] [STJS.JsonPropertyName("visa_compelling_evidence_3")] public DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3 VisaCompellingEvidence3 { get; set; } diff --git a/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetailsEnhancedEligibilityMastercardCompliance.cs b/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetailsEnhancedEligibilityMastercardCompliance.cs new file mode 100644 index 0000000000..506c617b52 --- /dev/null +++ b/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetailsEnhancedEligibilityMastercardCompliance.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class DisputeEvidenceDetailsEnhancedEligibilityMastercardCompliance : StripeEntity + { + /// + /// Mastercard compliance eligibility status. + /// One of: fee_acknowledged, or requires_fee_acknowledgement. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidence.cs b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidence.cs index 51f3e33771..e1610d4636 100644 --- a/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidence.cs +++ b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidence.cs @@ -8,6 +8,10 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class DisputeEvidenceEnhancedEvidence : StripeEntity { + [JsonProperty("mastercard_compliance")] + [STJS.JsonPropertyName("mastercard_compliance")] + public DisputeEvidenceEnhancedEvidenceMastercardCompliance MastercardCompliance { get; set; } + [JsonProperty("visa_compelling_evidence_3")] [STJS.JsonPropertyName("visa_compelling_evidence_3")] public DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3 VisaCompellingEvidence3 { get; set; } diff --git a/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceMastercardCompliance.cs b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceMastercardCompliance.cs new file mode 100644 index 0000000000..82f7f604f6 --- /dev/null +++ b/src/Stripe.net/Entities/Disputes/DisputeEvidenceEnhancedEvidenceMastercardCompliance.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class DisputeEvidenceEnhancedEvidenceMastercardCompliance : StripeEntity + { + /// + /// A field acknowledging the fee incurred when countering a Mastercard compliance dispute. + /// If this field is set to true, evidence can be submitted for the compliance dispute. + /// + [JsonProperty("fee_acknowledged")] + [STJS.JsonPropertyName("fee_acknowledged")] + public bool FeeAcknowledged { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index 4179886093..e85cc7b7a1 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -115,7 +115,10 @@ public class Event : StripeEntity, IHasId, IHasObject /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, /// balance_settings.updated, billing.alert.triggered, - /// billing.credit_grant.created, billing_portal.configuration.created, + /// billing.credit_balance_transaction.created, billing.credit_grant.created, + /// billing.credit_grant.updated, billing.meter.created, + /// billing.meter.deactivated, billing.meter.reactivated, + /// billing.meter.updated, billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, cash_balance.funds_available, charge.captured, /// charge.dispute.closed, charge.dispute.created, @@ -235,10 +238,8 @@ public class Event : StripeEntity, IHasId, IHasObject /// treasury.outbound_transfer.returned, /// treasury.outbound_transfer.tracking_details_updated, /// treasury.received_credit.created, treasury.received_credit.failed, - /// treasury.received_credit.succeeded, treasury.received_debit.created, - /// billing.credit_balance_transaction.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// treasury.received_credit.succeeded, treasury.received_debit.created, or + /// ping. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs b/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs index 7285695469..4dded57d83 100644 --- a/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs +++ b/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs @@ -162,6 +162,10 @@ public AccountOwnership Ownership [STJS.JsonPropertyName("status")] public string Status { get; set; } + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public AccountStatusDetails StatusDetails { get; set; } + /// /// If category is cash, one of:. /// diff --git a/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountStatusDetails.cs b/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountStatusDetails.cs new file mode 100644 index 0000000000..cb519474d9 --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountStatusDetails.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountStatusDetails : StripeEntity + { + [JsonProperty("active")] + [STJS.JsonPropertyName("active")] + public AccountStatusDetailsActive Active { get; set; } + } +} diff --git a/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountStatusDetailsActive.cs b/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountStatusDetailsActive.cs new file mode 100644 index 0000000000..4653dcd091 --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Accounts/AccountStatusDetailsActive.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountStatusDetailsActive : StripeEntity + { + /// + /// The action (if any) to proactively relink the Account. + /// One of: none, or relink_required. + /// + [JsonProperty("action")] + [STJS.JsonPropertyName("action")] + public string Action { get; set; } + + /// + /// The underlying cause of the Account becoming inactive. + /// One of: access_expired, institution_requirement, or unspecified. + /// + [JsonProperty("cause")] + [STJS.JsonPropertyName("cause")] + public string Cause { get; set; } + + /// + /// When the Account is expected to become inactive, if applicable. + /// + [JsonProperty("expected_deactivation_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("expected_deactivation_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ExpectedDeactivationDate { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRedaction.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRedaction.cs index acb79a7251..9ca62b4b4e 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRedaction.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRedaction.cs @@ -10,7 +10,7 @@ public class VerificationSessionRedaction : StripeEntity /// Indicates whether this object and its related objects have been redacted or not. - /// One of: processing, or redacted. + /// One of: processing, redacted, or validated. /// [JsonProperty("status")] [STJS.JsonPropertyName("status")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index ecb9758259..4f347b7ec6 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -40,8 +40,8 @@ public class InvoicePaymentSettings : StripeEntity /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// twint, upi, us_bank_account, or wechat_pay. + /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// swish, twint, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBizum.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBizum.cs index 727fe3a66b..4adfc21b9c 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBizum.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsBizum.cs @@ -8,6 +8,13 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentAttemptRecordPaymentMethodDetailsBizum : StripeEntity { + /// + /// A unique identifier for the buyer as determined by the local payment processor. + /// + [JsonProperty("buyer_id")] + [STJS.JsonPropertyName("buyer_id")] + public string BuyerId { get; set; } + /// /// The Bizum transaction ID associated with this payment. /// diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs index 879f8bfb11..458d3225bf 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs @@ -176,15 +176,6 @@ public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity - /// The transaction type that was passed for an off-session, Merchant-Initiated transaction, - /// one of recurring or unscheduled. - /// One of: recurring, or unscheduled. - /// - [JsonProperty("stored_credential_usage")] - [STJS.JsonPropertyName("stored_credential_usage")] - public string StoredCredentialUsage { get; set; } - /// /// Populated if this transaction used 3D Secure authentication. /// diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs index e7a918d8a4..0e6dcae2f8 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs @@ -17,7 +17,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCrypto : StripeEntity /// The blockchain network that the transaction was sent on. - /// One of: base, ethereum, polygon, solana, or tempo. + /// One of: base, ethereum, polygon, solana, sui, or + /// tempo. /// [JsonProperty("network")] [STJS.JsonPropertyName("network")] @@ -25,7 +26,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCrypto : StripeEntity /// The token currency that the transaction was sent with. - /// One of: phantom_cash, usdc, usdg, usdp, or usdt. + /// One of: phantom_cash, usdc, usdg, usdp, usdsui, or + /// usdt. /// [JsonProperty("token_currency")] [STJS.JsonPropertyName("token_currency")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs index 44c6c95661..457b5e123c 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs @@ -204,6 +204,10 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// One of: none, off_session, or on_session. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSunbit.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSunbit.cs new file mode 100644 index 0000000000..5a4605ca1f --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSunbit.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentMethodOptionsSunbit : StripeEntity + { + /// + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + [STJS.JsonPropertyName("capture_method")] + public string CaptureMethod { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPay.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPay.cs index 243eadf73e..a9464c99ae 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPay.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPay.cs @@ -9,7 +9,8 @@ namespace Stripe public class PaymentIntentPaymentMethodOptionsWechatPay : StripeEntity { /// - /// The app ID registered with WeChat Pay. Only required when client is ios or android. + /// The app ID registered with WeChat Pay. Only required when client is ios, android, or + /// mini_program. /// [JsonProperty("app_id")] [STJS.JsonPropertyName("app_id")] diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBizum.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBizum.cs index 285d8bedce..b5500d887b 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBizum.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBizum.cs @@ -8,5 +8,11 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentMethodBizum : StripeEntity { + /// + /// A unique identifier for the buyer as determined by the local payment processor. + /// + [JsonProperty("buyer_id")] + [STJS.JsonPropertyName("buyer_id")] + public string BuyerId { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBlik.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBlik.cs index 2bf1ed91ad..1fa8c34375 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBlik.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBlik.cs @@ -8,5 +8,11 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentMethodBlik : StripeEntity { + /// + /// A unique and immutable identifier assigned by BLIK to every buyer. + /// + [JsonProperty("buyer_id")] + [STJS.JsonPropertyName("buyer_id")] + public string BuyerId { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPix.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPix.cs index d876ec0578..858e3b3e15 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPix.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPix.cs @@ -8,5 +8,12 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentMethodPix : StripeEntity { + /// + /// Uniquely identifies this particular Pix account. You can use this attribute to check + /// whether two Pix accounts are the same. + /// + [JsonProperty("fingerprint")] + [STJS.JsonPropertyName("fingerprint")] + public string Fingerprint { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBizum.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBizum.cs index 8a7a6146ca..5ed8ca7965 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBizum.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsBizum.cs @@ -8,6 +8,13 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentRecordPaymentMethodDetailsBizum : StripeEntity { + /// + /// A unique identifier for the buyer as determined by the local payment processor. + /// + [JsonProperty("buyer_id")] + [STJS.JsonPropertyName("buyer_id")] + public string BuyerId { get; set; } + /// /// The Bizum transaction ID associated with this payment. /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs index 4aecb47e21..f90bbf2efb 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs @@ -176,15 +176,6 @@ public class PaymentRecordPaymentMethodDetailsCard : StripeEntity - /// The transaction type that was passed for an off-session, Merchant-Initiated transaction, - /// one of recurring or unscheduled. - /// One of: recurring, or unscheduled. - /// - [JsonProperty("stored_credential_usage")] - [STJS.JsonPropertyName("stored_credential_usage")] - public string StoredCredentialUsage { get; set; } - /// /// Populated if this transaction used 3D Secure authentication. /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs index 6acb605c15..82f179ea0b 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs @@ -17,7 +17,8 @@ public class PaymentRecordPaymentMethodDetailsCrypto : StripeEntity /// The blockchain network that the transaction was sent on. - /// One of: base, ethereum, polygon, solana, or tempo. + /// One of: base, ethereum, polygon, solana, sui, or + /// tempo. /// [JsonProperty("network")] [STJS.JsonPropertyName("network")] @@ -25,7 +26,8 @@ public class PaymentRecordPaymentMethodDetailsCrypto : StripeEntity /// The token currency that the transaction was sent with. - /// One of: phantom_cash, usdc, usdg, usdp, or usdt. + /// One of: phantom_cash, usdc, usdg, usdp, usdsui, or + /// usdt. /// [JsonProperty("token_currency")] [STJS.JsonPropertyName("token_currency")] diff --git a/src/Stripe.net/Entities/Reserve/Holds/Hold.cs b/src/Stripe.net/Entities/Reserve/Holds/Hold.cs index fe58e86c74..54758b2f9a 100644 --- a/src/Stripe.net/Entities/Reserve/Holds/Hold.cs +++ b/src/Stripe.net/Entities/Reserve/Holds/Hold.cs @@ -102,6 +102,13 @@ public class Hold : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("reason")] public string Reason { get; set; } + /// + /// List of ReserveReleases and the amounts released from this ReserveHold. + /// + [JsonProperty("release_details")] + [STJS.JsonPropertyName("release_details")] + public List ReleaseDetails { get; set; } + [JsonProperty("release_schedule")] [STJS.JsonPropertyName("release_schedule")] public HoldReleaseSchedule ReleaseSchedule { get; set; } diff --git a/src/Stripe.net/Entities/Reserve/Holds/HoldReleaseDetail.cs b/src/Stripe.net/Entities/Reserve/Holds/HoldReleaseDetail.cs new file mode 100644 index 0000000000..6bcf26de98 --- /dev/null +++ b/src/Stripe.net/Entities/Reserve/Holds/HoldReleaseDetail.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.Reserve +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class HoldReleaseDetail : StripeEntity + { + /// + /// The amount released by the ReserveRelease from this ReserveHold. A positive integer + /// representing how much is released in the smallest currency unit. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// The ReserveRelease which released funds from this ReserveHold (e.g., resrel_123). + /// + [JsonProperty("reserve_release")] + [STJS.JsonPropertyName("reserve_release")] + public string ReserveRelease { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs index 6c41cc56fd..2f3facea5b 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs @@ -88,6 +88,10 @@ public class SetupAttemptPaymentMethodDetails : StripeEntity { + /// + /// Uniquely identifies this particular Pix account. You can use this attribute to check + /// whether two Pix accounts are the same. + /// + [JsonProperty("fingerprint")] + [STJS.JsonPropertyName("fingerprint")] + public string Fingerprint { get; set; } } } diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsSatispay.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsSatispay.cs new file mode 100644 index 0000000000..22217fd27a --- /dev/null +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsSatispay.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SetupAttemptPaymentMethodDetailsSatispay : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettings.cs index 0e2f34addb..f7ec351cb2 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettings.cs @@ -45,6 +45,27 @@ public List AccountTaxIds internal List> InternalAccountTaxIds { get; set; } #endregion + /// + /// A list of up to 4 custom fields to be displayed on the invoice. + /// + [JsonProperty("custom_fields")] + [STJS.JsonPropertyName("custom_fields")] + public List CustomFields { get; set; } + + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Footer to be displayed on the invoice. + /// + [JsonProperty("footer")] + [STJS.JsonPropertyName("footer")] + public string Footer { get; set; } + [JsonProperty("issuer")] [STJS.JsonPropertyName("issuer")] public SubscriptionInvoiceSettingsIssuer Issuer { get; set; } diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettingsCustomField.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettingsCustomField.cs new file mode 100644 index 0000000000..cb1e63c11c --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettingsCustomField.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionInvoiceSettingsCustomField : StripeEntity + { + /// + /// The name of the custom field. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 495b8521fe..be06863a56 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -32,8 +32,8 @@ public class SubscriptionPaymentSettings : StripeEntitykonbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// twint, upi, us_bank_account, or wechat_pay. + /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// swish, twint, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImport.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImport.cs index aece3c8896..35cf2fe946 100644 --- a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImport.cs +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImport.cs @@ -38,7 +38,7 @@ public class ProductCatalogImport : StripeEntity, IHasId, /// /// The type of feed data being imported into the product catalog. - /// One of: inventory, pricing, or product. + /// One of: inventory, pricing, product, or promotion. /// [JsonProperty("feed_type")] [STJS.JsonPropertyName("feed_type")] @@ -59,6 +59,14 @@ public class ProductCatalogImport : StripeEntity, IHasId, [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// The import strategy for handling existing catalog data. + /// One of: replace, or upsert. + /// + [JsonProperty("mode")] + [STJS.JsonPropertyName("mode")] + public string Mode { get; set; } + /// /// The current status of this ProductCatalogImport. /// One of: awaiting_upload, failed, processing, succeeded, or diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs index 30e9654e15..b3bf2271aa 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs @@ -295,6 +295,13 @@ public class AccountConfigurationMerchantCapabilities : StripeEntity + /// Allow the merchant to process Sunbit payments. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public AccountConfigurationMerchantCapabilitiesSunbitPayments SunbitPayments { get; set; } + /// /// Allow the merchant to process Swish payments. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPayments.cs new file mode 100644 index 0000000000..4404a7b86c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPayments.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMerchantCapabilitiesSunbitPayments : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail.cs new file mode 100644 index 0000000000..40f79cb7d7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs index 7b726a1dd4..ab05b799b9 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaultsResponsibilities.cs @@ -19,7 +19,7 @@ public class AccountDefaultsResponsibilities : StripeEntity - /// A value indicating responsibility for collecting requirements on this account. + /// A value indicating the responsibility for losses on this account. /// One of: application, or stripe. /// [JsonProperty("losses_collector")] diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs index ccd513f90b..54687d8ad7 100644 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs @@ -23,8 +23,9 @@ public class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedE /// oxxo_payments, p24_payments, payco_payments, /// paynow_payments, stripe_balance.payouts, pay_by_bank_payments, /// promptpay_payments, revolut_pay_payments, samsung_pay_payments, - /// sepa_bank_transfer_payments, sepa_debit_payments, swish_payments, - /// twint_payments, us_bank_transfer_payments, or zip_payments. + /// sepa_bank_transfer_payments, sepa_debit_payments, sunbit_payments, + /// swish_payments, twint_payments, us_bank_transfer_payments, or + /// zip_payments. /// [JsonProperty("updated_capability")] [STJS.JsonPropertyName("updated_capability")] diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs index f09c75ff75..b4fc03faa1 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs @@ -27,7 +27,8 @@ public class AccountDocumentsOptions : INestedOptions public AccountDocumentsCompanyLicenseOptions CompanyLicense { get; set; } /// - /// One or more documents showing the company's Memorandum of Association. + /// One or more documents showing the company's governing document (for example, a + /// memorandum of association, constitution, or articles of association). /// [JsonProperty("company_memorandum_of_association")] [STJS.JsonPropertyName("company_memorandum_of_association")] diff --git a/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs b/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs index e494a56600..d2058468cf 100644 --- a/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs +++ b/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs @@ -44,13 +44,14 @@ public class BalanceTransactionListOptions : ListOptions public string Source { get; set; } /// - /// Only returns transactions of the given type. One of: adjustment, advance, - /// advance_funding, anticipation_repayment, application_fee, - /// application_fee_refund, charge, climate_order_purchase, - /// climate_order_refund, connect_collection_transfer, contribution, - /// inbound_transfer, inbound_transfer_reversal, - /// issuing_authorization_hold, issuing_authorization_release, - /// issuing_dispute, issuing_transaction, obligation_outbound, + /// Only returns transactions of the given type. One of: tax_fund, adjustment, + /// advance, advance_funding, anticipation_repayment, + /// application_fee, application_fee_refund, charge, + /// climate_order_purchase, climate_order_refund, + /// connect_collection_transfer, contribution, inbound_transfer, + /// inbound_transfer_reversal, issuing_authorization_hold, + /// issuing_authorization_release, issuing_dispute, + /// issuing_transaction, obligation_outbound, /// obligation_reversal_inbound, payment, payment_failure_refund, /// payment_network_reserve_hold, payment_network_reserve_release, /// payment_refund, payment_reversal, payment_unreconciled, diff --git a/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionService.cs b/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionService.cs index 9a2bfcb22f..5e6328bb24 100644 --- a/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionService.cs +++ b/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionService.cs @@ -48,10 +48,10 @@ public virtual Task GetAsync(string id, BalanceTransactionGe /// ///

Returns a list of transactions that have contributed to the Stripe account balance - /// (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, + /// (for example, charges, transfers, and so on). The transactions return in sorted order, /// with the most recent transactions appearing first.

. /// - ///

Note that this endpoint was previously called “Balance history” and used the path + ///

The previous name of this endpoint was “Balance history,” and it used the path /// /v1/balance/history.

. ///
public virtual StripeList List(BalanceTransactionListOptions options = null, RequestOptions requestOptions = null) @@ -61,10 +61,10 @@ public virtual StripeList List(BalanceTransactionListOptions /// ///

Returns a list of transactions that have contributed to the Stripe account balance - /// (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, + /// (for example, charges, transfers, and so on). The transactions return in sorted order, /// with the most recent transactions appearing first.

. /// - ///

Note that this endpoint was previously called “Balance history” and used the path + ///

The previous name of this endpoint was “Balance history,” and it used the path /// /v1/balance/history.

. ///
public virtual Task> ListAsync(BalanceTransactionListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) @@ -74,10 +74,10 @@ public virtual Task> ListAsync(BalanceTransaction /// ///

Returns a list of transactions that have contributed to the Stripe account balance - /// (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, + /// (for example, charges, transfers, and so on). The transactions return in sorted order, /// with the most recent transactions appearing first.

. /// - ///

Note that this endpoint was previously called “Balance history” and used the path + ///

The previous name of this endpoint was “Balance history,” and it used the path /// /v1/balance/history.

. ///
public virtual IEnumerable ListAutoPaging(BalanceTransactionListOptions options = null, RequestOptions requestOptions = null) @@ -87,10 +87,10 @@ public virtual IEnumerable ListAutoPaging(BalanceTransaction /// ///

Returns a list of transactions that have contributed to the Stripe account balance - /// (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, + /// (for example, charges, transfers, and so on). The transactions return in sorted order, /// with the most recent transactions appearing first.

. /// - ///

Note that this endpoint was previously called “Balance history” and used the path + ///

The previous name of this endpoint was “Balance history,” and it used the path /// /v1/balance/history.

. ///
public virtual IAsyncEnumerable ListAutoPagingAsync(BalanceTransactionListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) diff --git a/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs b/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs index fec6dc8e07..4a8e3ae4a8 100644 --- a/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs @@ -19,7 +19,8 @@ public class CreditBalanceSummaryFilterApplicabilityScopeOptions : INestedOption /// /// A list of prices that the credit grant can apply to. We currently only support the - /// metered prices. Cannot be used in combination with price_type. + /// metered prices. Cannot be used in combination with price_type. Limit 20 + /// prices. /// [JsonProperty("prices")] [STJS.JsonPropertyName("prices")] diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs index fb44f75c76..06e9ee32f4 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs @@ -19,7 +19,8 @@ public class CreditGrantApplicabilityConfigScopeOptions : INestedOptions /// /// A list of prices that the credit grant can apply to. We currently only support the - /// metered prices. Cannot be used in combination with price_type. + /// metered prices. Cannot be used in combination with price_type. Limit 20 + /// prices. /// [JsonProperty("prices")] [STJS.JsonPropertyName("prices")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 86fadd6ec6..4757f117a4 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -303,8 +303,6 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// If a Customer is created or /// provided, the names can be saved to the Customer object as well. - /// - /// You can't set this parameter if ui_mode is custom. ///
[JsonProperty("name_collection")] [STJS.JsonPropertyName("name_collection")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs index a521890352..ea48c0fcef 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs @@ -311,6 +311,13 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions [STJS.JsonPropertyName("sofort")] public SessionPaymentMethodOptionsSofortOptions Sofort { get; set; } + /// + /// contains details about the Sunbit payment method options. + /// + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public SessionPaymentMethodOptionsSunbitOptions Sunbit { get; set; } + /// /// contains details about the Swish payment method options. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSunbitOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSunbitOptions.cs new file mode 100644 index 0000000000..23c7146c0b --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSunbitOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionPaymentMethodOptionsSunbitOptions : INestedOptions + { + /// + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + [STJS.JsonPropertyName("capture_method")] + public string CaptureMethod { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingCycleAnchorConfigOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingCycleAnchorConfigOptions.cs new file mode 100644 index 0000000000..2050b9bd7d --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingCycleAnchorConfigOptions.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionSubscriptionDataBillingCycleAnchorConfigOptions : INestedOptions + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] + [STJS.JsonPropertyName("day_of_month")] + public long? DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] + [STJS.JsonPropertyName("hour")] + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] + [STJS.JsonPropertyName("minute")] + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] + [STJS.JsonPropertyName("second")] + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs index 1f010aba71..63e13f9b2e 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs @@ -32,6 +32,14 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] public DateTime? BillingCycleAnchor { get; set; } + /// + /// Configures when the subscription schedule's billing cycle anchors to a specific day of + /// the week or month. + /// + [JsonProperty("billing_cycle_anchor_config")] + [STJS.JsonPropertyName("billing_cycle_anchor_config")] + public SessionSubscriptionDataBillingCycleAnchorConfigOptions BillingCycleAnchorConfig { get; set; } + /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. /// diff --git a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs index df3e1be72a..e2dac94340 100644 --- a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs +++ b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs @@ -59,7 +59,7 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions, IHasMetadata, I public long? Quantity { get; set; } /// - /// A list of up to 10 tax amounts for the credit note line item. Not valid when + /// A list of up to 20 tax amounts for the credit note line item. Not valid when /// tax_rates is used or if invoice is set up with /// automatic_tax[enabled]=true. /// diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs index 1694583aeb..8c16f801f6 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs @@ -59,7 +59,7 @@ public class CreditNoteLineOptions : INestedOptions, IHasMetadata, IHasSetTracki public long? Quantity { get; set; } /// - /// A list of up to 10 tax amounts for the credit note line item. Not valid when + /// A list of up to 20 tax amounts for the credit note line item. Not valid when /// tax_rates is used or if invoice is set up with /// automatic_tax[enabled]=true. /// diff --git a/src/Stripe.net/Services/Disputes/DisputeEvidenceEnhancedEvidenceMastercardComplianceOptions.cs b/src/Stripe.net/Services/Disputes/DisputeEvidenceEnhancedEvidenceMastercardComplianceOptions.cs new file mode 100644 index 0000000000..d7ff2529c3 --- /dev/null +++ b/src/Stripe.net/Services/Disputes/DisputeEvidenceEnhancedEvidenceMastercardComplianceOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class DisputeEvidenceEnhancedEvidenceMastercardComplianceOptions : INestedOptions + { + /// + /// A field acknowledging the fee incurred when countering a Mastercard compliance dispute. + /// If this field is set to true, evidence can be submitted for the compliance dispute. + /// + [JsonProperty("fee_acknowledged")] + [STJS.JsonPropertyName("fee_acknowledged")] + public bool? FeeAcknowledged { get; set; } + } +} diff --git a/src/Stripe.net/Services/Disputes/DisputeEvidenceEnhancedEvidenceOptions.cs b/src/Stripe.net/Services/Disputes/DisputeEvidenceEnhancedEvidenceOptions.cs index dfbdb60550..82685dc6b7 100644 --- a/src/Stripe.net/Services/Disputes/DisputeEvidenceEnhancedEvidenceOptions.cs +++ b/src/Stripe.net/Services/Disputes/DisputeEvidenceEnhancedEvidenceOptions.cs @@ -8,6 +8,13 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class DisputeEvidenceEnhancedEvidenceOptions : INestedOptions { + /// + /// Evidence provided for Mastercard compliance evidence submission. + /// + [JsonProperty("mastercard_compliance")] + [STJS.JsonPropertyName("mastercard_compliance")] + public DisputeEvidenceEnhancedEvidenceMastercardComplianceOptions MastercardCompliance { get; set; } + /// /// Evidence provided for Visa Compelling Evidence 3.0 evidence submission. /// diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs index c9881d6b29..ff15f6d512 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs @@ -129,7 +129,7 @@ public Dictionary Metadata public decimal? QuantityDecimal { get; set; } /// - /// A list of up to 10 tax amounts for this line item. This can be useful if you calculate + /// A list of up to 20 tax amounts for this line item. This can be useful if you calculate /// taxes on your own or use a third-party to calculate them. You cannot set tax amounts if /// any line item has tax_rates diff --git a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs index 6d8e013ec5..24d8bb5e1d 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs @@ -157,7 +157,7 @@ public Dictionary Metadata public decimal? QuantityDecimal { get; set; } /// - /// A list of up to 10 tax amounts for this line item. This can be useful if you calculate + /// A list of up to 20 tax amounts for this line item. This can be useful if you calculate /// taxes on your own or use a third-party to calculate them. You cannot set tax amounts if /// any line item has tax_rates diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index d910b6c87f..b7e8cae211 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -56,8 +56,8 @@ public string DefaultMandate /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// twint, upi, us_bank_account, or wechat_pay. + /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// swish, twint, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs index 14505cb9ed..f4bcf4553e 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs @@ -68,7 +68,10 @@ public List Discounts } /// - /// Subscription item to update. + /// Subscription item to update. If you omit id, the API adds a new subscription item + /// rather than updating the existing one. See Changing a + /// subscription's price. /// [JsonProperty("id")] [STJS.JsonPropertyName("id")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index d3d011c08b..661f9a456b 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -424,8 +424,8 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat public PaymentIntentPaymentMethodDataSofortOptions Sofort { get; set; } /// - /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment - /// method. + /// If this is a sunbit PaymentMethod, this hash contains details about the Sunbit + /// payment method. /// [JsonProperty("sunbit")] [STJS.JsonPropertyName("sunbit")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs index b867758f56..7836b52fd5 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs @@ -57,6 +57,7 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions, IHasSetT private PaymentIntentPaymentMethodOptionsScalapayOptions scalapay; private PaymentIntentPaymentMethodOptionsSepaDebitOptions sepaDebit; private PaymentIntentPaymentMethodOptionsSofortOptions sofort; + private PaymentIntentPaymentMethodOptionsSunbitOptions sunbit; private PaymentIntentPaymentMethodOptionsSwishOptions swish; private PaymentIntentPaymentMethodOptionsTwintOptions twint; private PaymentIntentPaymentMethodOptionsUpiOptions upi; @@ -900,6 +901,23 @@ public PaymentIntentPaymentMethodOptionsSofortOptions Sofort } } + /// + /// If this is a sunbit PaymentMethod, this sub-hash contains details about the + /// Sunbit payment method options. + /// + [JsonProperty("sunbit", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("sunbit")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public PaymentIntentPaymentMethodOptionsSunbitOptions Sunbit + { + get => this.sunbit; + set + { + this.sunbit = value; + this.SetTracker.Track(); + } + } + /// /// If this is a Swish PaymentMethod, this sub-hash contains details about the Swish /// payment method options. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSatispayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSatispayOptions.cs index 582e277a09..e1a867e138 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSatispayOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSatispayOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class PaymentIntentPaymentMethodOptionsSatispayOptions : INestedOptions, IHasSetTracking { private string captureMethod; + private string setupFutureUsage; [JsonIgnore] [STJS.JsonIgnore] @@ -37,6 +38,40 @@ public string CaptureMethod } } + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// One of: none, off_session, or on_session. + /// + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string SetupFutureUsage + { + get => this.setupFutureUsage; + set + { + this.setupFutureUsage = value; + this.SetTracker.Track(); + } + } + bool IHasSetTracking.IsPropertySet(string propertyName) { return this.SetTracker.IsSet(propertyName); diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSunbitOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSunbitOptions.cs new file mode 100644 index 0000000000..ecbe3d30fb --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSunbitOptions.cs @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentIntentPaymentMethodOptionsSunbitOptions : INestedOptions, IHasSetTracking + { + private string captureMethod; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// 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. + /// + [JsonProperty("capture_method", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("capture_method")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string CaptureMethod + { + get => this.captureMethod; + set + { + this.captureMethod = value; + this.SetTracker.Track(); + } + } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPayOptions.cs index f19f0530ee..7ce0a4e647 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPayOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsWechatPayOptions.cs @@ -9,7 +9,8 @@ namespace Stripe public class PaymentIntentPaymentMethodOptionsWechatPayOptions : INestedOptions { /// - /// The app ID registered with WeChat Pay. Only required when client is ios or android. + /// The app ID registered with WeChat Pay. Only required when client is ios, android, or + /// mini_program. /// [JsonProperty("app_id")] [STJS.JsonPropertyName("app_id")] diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs index b5af27b2ff..423906eb11 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -197,6 +197,9 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("payment_method_collection")] public string PaymentMethodCollection { get; set; } + /// + /// Payment-method-specific configuration. + /// [JsonProperty("payment_method_options")] [STJS.JsonPropertyName("payment_method_options")] public PaymentLinkPaymentMethodOptionsOptions PaymentMethodOptions { get; set; } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs index cd21d343e1..6738e2d55a 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs @@ -459,8 +459,8 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata public PaymentMethodSofortOptions Sofort { get; set; } /// - /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment - /// method. + /// If this is a sunbit PaymentMethod, this hash contains details about the Sunbit + /// payment method. /// [JsonProperty("sunbit")] [STJS.JsonPropertyName("sunbit")] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index 428b637ca6..8bc8a0de7c 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -424,8 +424,8 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata public SetupIntentPaymentMethodDataSofortOptions Sofort { get; set; } /// - /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment - /// method. + /// If this is a sunbit PaymentMethod, this hash contains details about the Sunbit + /// payment method. /// [JsonProperty("sunbit")] [STJS.JsonPropertyName("sunbit")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsCustomFieldOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsCustomFieldOptions.cs new file mode 100644 index 0000000000..b1f4e47b24 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsCustomFieldOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SubscriptionInvoiceSettingsCustomFieldOptions : INestedOptions + { + /// + /// The name of the custom field. This may be up to 40 characters. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. This may be up to 140 characters. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsOptions.cs index f1eedb1452..70947f676d 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsOptions.cs @@ -10,6 +10,7 @@ namespace Stripe public class SubscriptionInvoiceSettingsOptions : INestedOptions, IHasSetTracking { private List accountTaxIds; + private List customFields; [JsonIgnore] [STJS.JsonIgnore] @@ -32,6 +33,36 @@ public List AccountTaxIds } } + /// + /// A list of up to 4 custom fields to be displayed on the invoice. + /// + [JsonProperty("custom_fields", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("custom_fields")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public List CustomFields + { + get => this.customFields; + set + { + this.customFields = value; + this.SetTracker.Track(); + } + } + + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Footer to be displayed on the invoice. + /// + [JsonProperty("footer")] + [STJS.JsonPropertyName("footer")] + public string Footer { get; set; } + /// /// The connected account that issues the invoice. The invoice is presented with the /// branding and support information of the specified account. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs index 312498c6ea..156eed2060 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs @@ -67,7 +67,10 @@ public List Discounts } /// - /// Subscription item to update. + /// Subscription item to update. If you omit id, the API adds a new subscription item + /// rather than updating the existing one. See Changing a + /// subscription's price. /// [JsonProperty("id")] [STJS.JsonPropertyName("id")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index 4247052d75..2fc267ad66 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -38,8 +38,8 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions, IHasSetTrackin /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// twint, upi, us_bank_account, or wechat_pay. + /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// swish, twint, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index 02eecfe034..ed2abb4e16 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -41,7 +41,7 @@ public SubscriptionService(IStripeClient client) /// subscription to cancel at the end of the period, any pending prorations are also left in /// place and collected at the end of the period. But if the subscription is set to cancel /// immediately, pending prorations are removed if invoice_now and prorate are - /// both set to true.

. + /// both set to false.

. /// ///

By default, upon subscription cancellation, Stripe stops automatic collection of all /// finalized invoices for the customer. This is intended to prevent unexpected payment @@ -67,7 +67,7 @@ public virtual Subscription Cancel(string id, SubscriptionCancelOptions options /// subscription to cancel at the end of the period, any pending prorations are also left in /// place and collected at the end of the period. But if the subscription is set to cancel /// immediately, pending prorations are removed if invoice_now and prorate are - /// both set to true.

. + /// both set to false.

. /// ///

By default, upon subscription cancellation, Stripe stops automatic collection of all /// finalized invoices for the customer. This is intended to prevent unexpected payment diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index 6db5cab05e..563a2fe061 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -424,8 +424,8 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet public ConfirmationTokenPaymentMethodDataSofortOptions Sofort { get; set; } ///

- /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment - /// method. + /// If this is a sunbit PaymentMethod, this hash contains details about the Sunbit + /// payment method. /// [JsonProperty("sunbit")] [STJS.JsonPropertyName("sunbit")] diff --git a/src/Stripe.net/Services/Topups/TopupCreateOptions.cs b/src/Stripe.net/Services/Topups/TopupCreateOptions.cs index a6d172a431..0019c9444e 100644 --- a/src/Stripe.net/Services/Topups/TopupCreateOptions.cs +++ b/src/Stripe.net/Services/Topups/TopupCreateOptions.cs @@ -53,6 +53,21 @@ public Dictionary Metadata } } + /// + /// The ID of a PaymentMethod representing the payment method to be used for the top-up. A + /// PaymentMethod of type us_bank_account can be used. + /// + [JsonProperty("payment_method")] + [STJS.JsonPropertyName("payment_method")] + public string PaymentMethod { get; set; } + + /// + /// Payment method-specific configuration for this top-up. + /// + [JsonProperty("payment_method_options")] + [STJS.JsonPropertyName("payment_method_options")] + public TopupPaymentMethodOptionsOptions PaymentMethodOptions { get; set; } + /// /// The ID of a source to transfer funds from. For most users, this should be left /// unspecified which will use the bank account that was set up in the dashboard for the diff --git a/src/Stripe.net/Services/Topups/TopupPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Topups/TopupPaymentMethodOptionsOptions.cs new file mode 100644 index 0000000000..43b34a97ea --- /dev/null +++ b/src/Stripe.net/Services/Topups/TopupPaymentMethodOptionsOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class TopupPaymentMethodOptionsOptions : INestedOptions + { + [JsonProperty("us_bank_account")] + [STJS.JsonPropertyName("us_bank_account")] + public TopupPaymentMethodOptionsUsBankAccountOptions UsBankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Services/Topups/TopupPaymentMethodOptionsUsBankAccountOptions.cs b/src/Stripe.net/Services/Topups/TopupPaymentMethodOptionsUsBankAccountOptions.cs new file mode 100644 index 0000000000..3cbe5bad14 --- /dev/null +++ b/src/Stripe.net/Services/Topups/TopupPaymentMethodOptionsUsBankAccountOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class TopupPaymentMethodOptionsUsBankAccountOptions : INestedOptions + { + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportCreateOptions.cs b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportCreateOptions.cs index bfafdaba7b..7ef3fb5c7c 100644 --- a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportCreateOptions.cs @@ -11,7 +11,7 @@ public class ImportCreateOptions : BaseOptions, IHasMetadata { /// /// The type of catalog data to import. - /// One of: inventory, pricing, or product. + /// One of: inventory, pricing, product, or promotion. /// [JsonProperty("feed_type")] [STJS.JsonPropertyName("feed_type")] diff --git a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportListOptions.cs b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportListOptions.cs index 26fe8b5688..2d3093baea 100644 --- a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportListOptions.cs +++ b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportListOptions.cs @@ -51,7 +51,7 @@ public class ImportListOptions : V2.ListOptions /// /// Filter by the type of feed data being imported. - /// One of: inventory, pricing, or product. + /// One of: inventory, pricing, product, or promotion. /// [JsonProperty("feed_type")] [STJS.JsonPropertyName("feed_type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs index ae8df2dd74..99c7889e0a 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs @@ -288,6 +288,13 @@ public class AccountCreateConfigurationMerchantCapabilitiesOptions : INestedOpti [STJS.JsonPropertyName("sepa_debit_payments")] public AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions SepaDebitPayments { get; set; } + /// + /// Allow the merchant to process Sunbit payments. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions SunbitPayments { get; set; } + /// /// Allow the merchant to process Swish payments. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs new file mode 100644 index 0000000000..08db07144a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs index e378d920aa..cddb90345a 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs @@ -288,6 +288,13 @@ public class AccountUpdateConfigurationMerchantCapabilitiesOptions : INestedOpti [STJS.JsonPropertyName("sepa_debit_payments")] public AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions SepaDebitPayments { get; set; } + /// + /// Allow the merchant to process Sunbit payments. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions SunbitPayments { get; set; } + /// /// Allow the merchant to process Swish payments. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs new file mode 100644 index 0000000000..8dd57dd64b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs similarity index 96% rename from src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs rename to src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs index 4ab18decc3..2ca260ee72 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs @@ -7,7 +7,7 @@ namespace Stripe.V2.Core using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions : INestedOptions + public class AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions : INestedOptions { /// /// The time when the Account's representative accepted the terms of service. Represented as diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs similarity index 97% rename from src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs rename to src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs index 84ace95c84..7f25a5f753 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs @@ -7,7 +7,7 @@ namespace Stripe.V2.Core using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions : INestedOptions + public class AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions : INestedOptions { /// /// The time when the Account's representative accepted the terms of service. Represented as diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs index 3c6c3b9823..35baa626ed 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs @@ -18,17 +18,17 @@ public class AccountUpdateIdentityAttestationsTermsOfServiceOptions : INestedOpt public AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions Account { get; set; } /// - /// Details on the Account's acceptance of Crypto-storer-specific terms of service. + /// Details on the Account's acceptance of Crypto-specific terms of service. /// - [JsonProperty("crypto_storer")] - [STJS.JsonPropertyName("crypto_storer")] - public AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions CryptoStorer { get; set; } + [JsonProperty("crypto_money_manager")] + [STJS.JsonPropertyName("crypto_money_manager")] + public AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions CryptoMoneyManager { get; set; } /// /// Details on the Account's acceptance of Treasury-specific terms of service. /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions Storer { get; set; } + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions MoneyManager { get; set; } } } diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index b39c8ee039..5249d8f121 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -47,7 +47,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2025-06-30.basil, 2025-07-30.basil, 2025-08-27.basil, /// 2025-09-30.clover, 2025-10-29.clover, 2025-11-17.clover, /// 2025-12-15.clover, 2026-01-28.clover, 2026-02-25.clover, - /// 2026-03-25.dahlia, 2026-04-22.dahlia, or 2026-05-27.dahlia. + /// 2026-03-25.dahlia, 2026-04-22.dahlia, 2026-05-27.dahlia, or + /// 2026-06-24.dahlia. /// [JsonProperty("api_version")] [STJS.JsonPropertyName("api_version")] @@ -86,7 +87,10 @@ public string Description /// account.updated, application_fee.created, /// application_fee.refund.updated, application_fee.refunded, /// balance.available, balance_settings.updated, - /// billing.alert.triggered, billing.credit_grant.created, + /// billing.alert.triggered, billing.credit_balance_transaction.created, + /// billing.credit_grant.created, billing.credit_grant.updated, + /// billing.meter.created, billing.meter.deactivated, + /// billing.meter.reactivated, billing.meter.updated, /// billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, cash_balance.funds_available, charge.captured, @@ -207,10 +211,8 @@ public string Description /// treasury.outbound_transfer.returned, /// treasury.outbound_transfer.tracking_details_updated, /// treasury.received_credit.created, treasury.received_credit.failed, - /// treasury.received_credit.succeeded, treasury.received_debit.created, - /// billing.credit_balance_transaction.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// treasury.received_credit.succeeded, treasury.received_debit.created, or + /// ping. /// [JsonProperty("enabled_events")] [STJS.JsonPropertyName("enabled_events")] diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 8c9fa711c0..343f694b47 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -44,7 +44,10 @@ public string Description /// account.updated, application_fee.created, /// application_fee.refund.updated, application_fee.refunded, /// balance.available, balance_settings.updated, - /// billing.alert.triggered, billing.credit_grant.created, + /// billing.alert.triggered, billing.credit_balance_transaction.created, + /// billing.credit_grant.created, billing.credit_grant.updated, + /// billing.meter.created, billing.meter.deactivated, + /// billing.meter.reactivated, billing.meter.updated, /// billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, cash_balance.funds_available, charge.captured, @@ -165,10 +168,8 @@ public string Description /// treasury.outbound_transfer.returned, /// treasury.outbound_transfer.tracking_details_updated, /// treasury.received_credit.created, treasury.received_credit.failed, - /// treasury.received_credit.succeeded, treasury.received_debit.created, - /// billing.credit_balance_transaction.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// treasury.received_credit.succeeded, treasury.received_debit.created, or + /// ping. /// [JsonProperty("enabled_events")] [STJS.JsonPropertyName("enabled_events")] diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 1f06c60481..788e31e6b4 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -15278,7 +15278,7 @@ public void TestV2CommerceProductCatalogImportGet() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.StripeList productCatalogImports = service @@ -15295,7 +15295,7 @@ public async Task TestV2CommerceProductCatalogImportGetAsync() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.StripeList productCatalogImports = await service @@ -15312,7 +15312,7 @@ public void TestV2CommerceProductCatalogImportGetAutoPaging() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; var productCatalogImport = service.ListAutoPaging().First(); @@ -15328,7 +15328,7 @@ public async Task TestV2CommerceProductCatalogImportGetAutoPagingAsync() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; var productCatalogImport = await service.ListAutoPagingAsync() @@ -15345,7 +15345,7 @@ public void TestV2CommerceProductCatalogImportPost() HttpMethod.Post, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var options = new Stripe.V2.Commerce.ProductCatalog.ImportCreateOptions { FeedType = "pricing", @@ -15371,7 +15371,7 @@ public async Task TestV2CommerceProductCatalogImportPostAsync() HttpMethod.Post, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var options = new Stripe.V2.Commerce.ProductCatalog.ImportCreateOptions { FeedType = "pricing", @@ -15397,7 +15397,7 @@ public void TestV2CommerceProductCatalogImportGet2() HttpMethod.Get, "/v2/commerce/product_catalog/imports/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.Commerce.ProductCatalogImport productCatalogImport = service @@ -15414,7 +15414,7 @@ public async Task TestV2CommerceProductCatalogImportGet2Async() HttpMethod.Get, "/v2/commerce/product_catalog/imports/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.Commerce.ProductCatalogImport productCatalogImport = await service