diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bf0daa66a7..217ac84ad0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1412 \ No newline at end of file +v1455 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 6c56685a19..93384759fa 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2024-12-18.acacia"; + public const string Current = "2025-01-27.acacia"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs index 51c2e07602..695b61747f 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs @@ -17,6 +17,18 @@ public class AccountSessionComponents : StripeEntity [JsonProperty("documents")] public AccountSessionComponentsDocuments Documents { get; set; } + [JsonProperty("financial_account")] + public AccountSessionComponentsFinancialAccount FinancialAccount { get; set; } + + [JsonProperty("financial_account_transactions")] + public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; } + + [JsonProperty("issuing_card")] + public AccountSessionComponentsIssuingCard IssuingCard { get; set; } + + [JsonProperty("issuing_cards_list")] + public AccountSessionComponentsIssuingCardsList IssuingCardsList { get; set; } + [JsonProperty("notification_banner")] public AccountSessionComponentsNotificationBanner NotificationBanner { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccount.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccount.cs new file mode 100644 index 0000000000..b7b18c5d40 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccount.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccount : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + public AccountSessionComponentsFinancialAccountFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs new file mode 100644 index 0000000000..a9bba4246b --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccountFeatures : StripeEntity + { + /// + /// Disables Stripe user authentication for this embedded component. This value can only be + /// true for accounts where controller.requirement_collection is application. + /// The default value is the opposite of the external_account_collection value. For + /// example, if you don’t set external_account_collection, it defaults to true and + /// disable_stripe_user_authentication defaults to false. + /// + [JsonProperty("disable_stripe_user_authentication")] + public bool DisableStripeUserAuthentication { get; set; } + + /// + /// Whether to allow external accounts to be linked for money transfer. + /// + [JsonProperty("external_account_collection")] + public bool ExternalAccountCollection { get; set; } + + /// + /// Whether to allow sending money. + /// + [JsonProperty("send_money")] + public bool SendMoney { get; set; } + + /// + /// Whether to allow transferring balance. + /// + [JsonProperty("transfer_balance")] + public bool TransferBalance { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountTransactions.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountTransactions.cs new file mode 100644 index 0000000000..ad93c3e8d9 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountTransactions.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccountTransactions : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + public AccountSessionComponentsFinancialAccountTransactionsFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsFeatures.cs new file mode 100644 index 0000000000..9c72a34600 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsFeatures.cs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccountTransactionsFeatures : StripeEntity + { + /// + /// Whether to allow card spend dispute management features. + /// + [JsonProperty("card_spend_dispute_management")] + public bool CardSpendDisputeManagement { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCard.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCard.cs new file mode 100644 index 0000000000..62d84462c1 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCard.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCard : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + public AccountSessionComponentsIssuingCardFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardFeatures.cs new file mode 100644 index 0000000000..a7279a66d2 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardFeatures.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCardFeatures : StripeEntity + { + /// + /// Whether to allow card management features. + /// + [JsonProperty("card_management")] + public bool CardManagement { get; set; } + + /// + /// Whether to allow card spend dispute management features. + /// + [JsonProperty("card_spend_dispute_management")] + public bool CardSpendDisputeManagement { get; set; } + + /// + /// Whether to allow cardholder management features. + /// + [JsonProperty("cardholder_management")] + public bool CardholderManagement { get; set; } + + /// + /// Whether to allow spend control management features. + /// + [JsonProperty("spend_control_management")] + public bool SpendControlManagement { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsList.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsList.cs new file mode 100644 index 0000000000..58f83e8e69 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsList.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCardsList : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + public AccountSessionComponentsIssuingCardsListFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs new file mode 100644 index 0000000000..20110daeb9 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCardsListFeatures : StripeEntity + { + /// + /// Whether to allow card management features. + /// + [JsonProperty("card_management")] + public bool CardManagement { get; set; } + + /// + /// Whether to allow card spend dispute management features. + /// + [JsonProperty("card_spend_dispute_management")] + public bool CardSpendDisputeManagement { get; set; } + + /// + /// Whether to allow cardholder management features. + /// + [JsonProperty("cardholder_management")] + public bool CardholderManagement { get; set; } + + /// + /// Disables Stripe user authentication for this embedded component. This feature can only + /// be false for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like custom accounts. + /// + [JsonProperty("disable_stripe_user_authentication")] + public bool DisableStripeUserAuthentication { get; set; } + + /// + /// Whether to allow spend control management features. + /// + [JsonProperty("spend_control_management")] + public bool SpendControlManagement { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs index e5da7b427c..879d11356c 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs @@ -292,6 +292,14 @@ public class AccountCapabilities : StripeEntity [JsonProperty("p24_payments")] public string P24Payments { get; set; } + /// + /// The status of the pay_by_bank payments capability of the account, or whether the account + /// can directly process pay_by_bank charges. + /// One of: active, inactive, or pending. + /// + [JsonProperty("pay_by_bank_payments")] + public string PayByBankPayments { get; set; } + /// /// The status of the Payco capability of the account, or whether the account can directly /// process Payco payments. diff --git a/src/Stripe.net/Entities/Accounts/AccountCompany.cs b/src/Stripe.net/Entities/Accounts/AccountCompany.cs index 0b5808baad..4b4ba2a5b6 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCompany.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCompany.cs @@ -29,6 +29,13 @@ public class AccountCompany : StripeEntity [JsonProperty("directors_provided")] public bool DirectorsProvided { get; set; } + /// + /// This hash is used to attest that the director information provided to Stripe is both + /// current and correct. + /// + [JsonProperty("directorship_declaration")] + public AccountCompanyDirectorshipDeclaration DirectorshipDeclaration { get; set; } + /// /// Whether the company's executives have been provided. This Boolean will be true if /// you've manually indicated that all executives are provided via [JsonProperty("ownership_declaration")] public AccountCompanyOwnershipDeclaration OwnershipDeclaration { get; set; } + /// + /// One of: qualified_entity_exceeds_ownership_threshold, or + /// qualifies_as_financial_institution. + /// + [JsonProperty("ownership_exemption_reason")] + public string OwnershipExemptionReason { get; set; } + /// /// The company's phone number (used for verification). /// diff --git a/src/Stripe.net/Entities/Accounts/AccountCompanyDirectorshipDeclaration.cs b/src/Stripe.net/Entities/Accounts/AccountCompanyDirectorshipDeclaration.cs new file mode 100644 index 0000000000..8eb816f5ce --- /dev/null +++ b/src/Stripe.net/Entities/Accounts/AccountCompanyDirectorshipDeclaration.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + + public class AccountCompanyDirectorshipDeclaration : StripeEntity + { + /// + /// The Unix timestamp marking when the directorship declaration attestation was made. + /// + [JsonProperty("date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the directorship declaration attestation was made. + /// + [JsonProperty("ip")] + public string Ip { get; set; } + + /// + /// The user-agent string from the browser where the directorship declaration attestation + /// was made. + /// + [JsonProperty("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargeOutcome.cs b/src/Stripe.net/Entities/Charges/ChargeOutcome.cs index 80b5b5cbaa..53eafaa22f 100644 --- a/src/Stripe.net/Entities/Charges/ChargeOutcome.cs +++ b/src/Stripe.net/Entities/Charges/ChargeOutcome.cs @@ -6,6 +6,15 @@ namespace Stripe public class ChargeOutcome : StripeEntity { + /// + /// An enumerated value providing a more detailed explanation on how to proceed with an + /// error. + /// One of: confirm_card_data, do_not_try_again, or try_again_later. + /// + [JsonProperty("advice_code")] + public string AdviceCode { get; set; } + /// /// For charges declined by the network, a 2 digit code which indicates the advice returned /// by the network on how to proceed with an error. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index 6abd0a6f7c..31db3eb9d1 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -104,6 +104,9 @@ public class ChargePaymentMethodDetails : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaypal.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaypal.cs index 0ce4f1047c..7a49f5b18b 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaypal.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPaypal.cs @@ -5,6 +5,14 @@ namespace Stripe public class ChargePaymentMethodDetailsPaypal : StripeEntity { + /// + /// Two-letter ISO code representing the buyer's country. Values are provided by PayPal + /// directly (if supported) at the time of authorization or settlement. They cannot be set + /// or mutated. + /// + [JsonProperty("country")] + public string Country { get; set; } + /// /// Owner's email. Values are provided by PayPal directly (if supported) at the time of /// authorization or settlement. They cannot be set or mutated. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index fdbbbc9c03..c0c5be6ffc 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -209,6 +209,12 @@ public Customer Customer [JsonProperty("customer_email")] public string CustomerEmail { get; set; } + /// + /// List of coupons and promotion codes attached to the Checkout Session. + /// + [JsonProperty("discounts")] + public List Discounts { get; set; } + /// /// The timestamp at which the Checkout Session will expire. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionDiscount.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionDiscount.cs new file mode 100644 index 0000000000..83b32758df --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionDiscount.cs @@ -0,0 +1,71 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + + public class SessionDiscount : StripeEntity + { + #region Expandable Coupon + + /// + /// (ID of the Coupon) + /// Coupon attached to the Checkout Session. + /// + [JsonIgnore] + public string CouponId + { + get => this.InternalCoupon?.Id; + set => this.InternalCoupon = SetExpandableFieldId(value, this.InternalCoupon); + } + + /// + /// (Expanded) + /// Coupon attached to the Checkout Session. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + public Coupon Coupon + { + get => this.InternalCoupon?.ExpandedObject; + set => this.InternalCoupon = SetExpandableFieldObject(value, this.InternalCoupon); + } + + [JsonProperty("coupon")] + [JsonConverter(typeof(ExpandableFieldConverter))] + internal ExpandableField InternalCoupon { get; set; } + #endregion + + #region Expandable PromotionCode + + /// + /// (ID of the PromotionCode) + /// Promotion code attached to the Checkout Session. + /// + [JsonIgnore] + public string PromotionCodeId + { + get => this.InternalPromotionCode?.Id; + set => this.InternalPromotionCode = SetExpandableFieldId(value, this.InternalPromotionCode); + } + + /// + /// (Expanded) + /// Promotion code attached to the Checkout Session. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + public PromotionCode PromotionCode + { + get => this.InternalPromotionCode?.ExpandedObject; + set => this.InternalPromotionCode = SetExpandableFieldObject(value, this.InternalPromotionCode); + } + + [JsonProperty("promotion_code")] + [JsonConverter(typeof(ExpandableFieldConverter))] + internal ExpandableField InternalPromotionCode { get; set; } + #endregion + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionShippingAddressCollection.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionShippingAddressCollection.cs index 0a19fa9f1a..751151dd03 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionShippingAddressCollection.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionShippingAddressCollection.cs @@ -9,7 +9,7 @@ public class SessionShippingAddressCollection : StripeEntity /// An array of two-letter ISO country codes representing which countries Checkout should /// provide as options for shipping locations. Unsupported country codes: AS, CX, CC, CU, - /// HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI. + /// HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI. /// One of: AC, AD, AE, AF, AG, AI, AL, /// AM, AO, AQ, AR, AT, AU, AW, AX, /// AZ, BA, BB, BD, BE, BF, BG, BH, @@ -33,13 +33,13 @@ public class SessionShippingAddressCollection : StripeEntityNU, NZ, OM, PA, PE, PF, PG, PH, /// PK, PL, PM, PN, PR, PS, PT, PY, /// QA, RE, RO, RS, RU, RW, SA, SB, - /// SC, SE, SG, SH, SI, SJ, SK, SL, - /// SM, SN, SO, SR, SS, ST, SV, SX, - /// SZ, TA, TC, TD, TF, TG, TH, TJ, - /// TK, TL, TM, TN, TO, TR, TT, TV, - /// TW, TZ, UA, UG, US, UY, UZ, VA, - /// VC, VE, VG, VN, VU, WF, WS, XK, - /// YE, YT, ZA, ZM, ZW, or ZZ. + /// SC, SD, SE, SG, SH, SI, SJ, SK, + /// SL, SM, SN, SO, SR, SS, ST, SV, + /// SX, SZ, TA, TC, TD, TF, TG, TH, + /// TJ, TK, TL, TM, TN, TO, TR, TT, + /// TV, TW, TZ, UA, UG, US, UY, UZ, + /// VA, VC, VE, VG, VN, VU, WF, WS, + /// XK, YE, YT, ZA, ZM, ZW, or ZZ. /// [JsonProperty("allowed_countries")] public List AllowedCountries { get; set; } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs index db3574254a..4718693a72 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs @@ -145,6 +145,9 @@ public Customer Customer [JsonProperty("p24")] public ConfirmationTokenPaymentMethodPreviewP24 P24 { get; set; } + [JsonProperty("pay_by_bank")] + public ConfirmationTokenPaymentMethodPreviewPayByBank PayByBank { get; set; } + [JsonProperty("payco")] public ConfirmationTokenPaymentMethodPreviewPayco Payco { get; set; } @@ -188,10 +191,10 @@ public Customer Customer /// cashapp, customer_balance, eps, fpx, giropay, /// grabpay, ideal, interac_present, kakao_pay, klarna, /// konbini, kr_card, link, mobilepay, multibanco, - /// naver_pay, oxxo, p24, payco, paynow, paypal, - /// pix, promptpay, revolut_pay, samsung_pay, sepa_debit, - /// sofort, swish, twint, us_bank_account, wechat_pay, or - /// zip. + /// naver_pay, oxxo, p24, pay_by_bank, payco, + /// paynow, paypal, pix, promptpay, revolut_pay, + /// samsung_pay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPayByBank.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPayByBank.cs new file mode 100644 index 0000000000..c99371f614 --- /dev/null +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPayByBank.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class ConfirmationTokenPaymentMethodPreviewPayByBank : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPaypal.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPaypal.cs index 9211135b46..e81b572b13 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPaypal.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewPaypal.cs @@ -5,6 +5,14 @@ namespace Stripe public class ConfirmationTokenPaymentMethodPreviewPaypal : StripeEntity { + /// + /// Two-letter ISO code representing the buyer's country. Values are provided by PayPal + /// directly (if supported) at the time of authorization or settlement. They cannot be set + /// or mutated. + /// + [JsonProperty("country")] + public string Country { get; set; } + /// /// Owner's email. Values are provided by PayPal directly (if supported) at the time of /// authorization or settlement. They cannot be set or mutated. diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs index 7221ed12d2..780cb65d63 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs @@ -98,6 +98,9 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs index 7d5bcbff80..049d1be513 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs @@ -225,9 +225,9 @@ public Account OnBehalfOf /// au_becs_debit, bacs_debit, bancontact, blik, boleto, /// card, cashapp, eps, fpx, giropay, grabpay, /// ideal, klarna, konbini, link, mobilepay, - /// multibanco, oxxo, p24, paynow, paypal, pix, - /// promptpay, sepa_debit, sofort, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// multibanco, oxxo, p24, pay_by_bank, paynow, + /// paypal, pix, promptpay, sepa_debit, sofort, + /// swish, twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkShippingAddressCollection.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkShippingAddressCollection.cs index 5fe6adc9cf..b1667f75dd 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkShippingAddressCollection.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkShippingAddressCollection.cs @@ -33,13 +33,13 @@ public class PaymentLinkShippingAddressCollection : StripeEntityNU, NZ, OM, PA, PE, PF, PG, PH, /// PK, PL, PM, PN, PR, PS, PT, PY, /// QA, RE, RO, RS, RU, RW, SA, SB, - /// SC, SE, SG, SH, SI, SJ, SK, SL, - /// SM, SN, SO, SR, SS, ST, SV, SX, - /// SZ, TA, TC, TD, TF, TG, TH, TJ, - /// TK, TL, TM, TN, TO, TR, TT, TV, - /// TW, TZ, UA, UG, US, UY, UZ, VA, - /// VC, VE, VG, VN, VU, WF, WS, XK, - /// YE, YT, ZA, ZM, ZW, or ZZ. + /// SC, SD, SE, SG, SH, SI, SJ, SK, + /// SL, SM, SN, SO, SR, SS, ST, SV, + /// SX, SZ, TA, TC, TD, TF, TG, TH, + /// TJ, TK, TL, TM, TN, TO, TR, TT, + /// TV, TW, TZ, UA, UG, US, UY, UZ, + /// VA, VC, VE, VG, VN, VU, WF, WS, + /// XK, YE, YT, ZA, ZM, ZW, or ZZ. /// [JsonProperty("allowed_countries")] public List AllowedCountries { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs index 38ce91dfc7..00144938c9 100644 --- a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs +++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs @@ -175,6 +175,9 @@ public class PaymentMethodConfiguration : StripeEntity + { + /// + /// Whether this payment method may be offered at checkout. True if + /// display_preference is on and the payment method's capability is active. + /// + [JsonProperty("available")] + public bool Available { get; set; } + + [JsonProperty("display_preference")] + public PaymentMethodConfigurationPayByBankDisplayPreference DisplayPreference { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankDisplayPreference.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankDisplayPreference.cs new file mode 100644 index 0000000000..5536f98a0e --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankDisplayPreference.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PaymentMethodConfigurationPayByBankDisplayPreference : StripeEntity + { + /// + /// For child configs, whether or not the account's preference will be observed. If + /// false, the parent configuration's default is used. + /// + [JsonProperty("overridable")] + public bool? Overridable { get; set; } + + /// + /// The account's display preference. + /// One of: none, off, or on. + /// + [JsonProperty("preference")] + public string Preference { get; set; } + + /// + /// The effective display preference value. + /// One of: off, or on. + /// + [JsonProperty("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index 874e56a0e1..7faa92748f 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -191,6 +191,9 @@ public Customer Customer [JsonProperty("p24")] public PaymentMethodP24 P24 { get; set; } + [JsonProperty("pay_by_bank")] + public PaymentMethodPayByBank PayByBank { get; set; } + [JsonProperty("payco")] public PaymentMethodPayco Payco { get; set; } @@ -242,10 +245,10 @@ public Customer Customer /// cashapp, customer_balance, eps, fpx, giropay, /// grabpay, ideal, interac_present, kakao_pay, klarna, /// konbini, kr_card, link, mobilepay, multibanco, - /// naver_pay, oxxo, p24, payco, paynow, paypal, - /// pix, promptpay, revolut_pay, samsung_pay, sepa_debit, - /// sofort, swish, twint, us_bank_account, wechat_pay, or - /// zip. + /// naver_pay, oxxo, p24, pay_by_bank, payco, + /// paynow, paypal, pix, promptpay, revolut_pay, + /// samsung_pay, sepa_debit, sofort, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPayByBank.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPayByBank.cs new file mode 100644 index 0000000000..4f5bf6eb82 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPayByBank.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodPayByBank : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPaypal.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPaypal.cs index ede6f39012..8b25886751 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPaypal.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodPaypal.cs @@ -5,6 +5,14 @@ namespace Stripe public class PaymentMethodPaypal : StripeEntity { + /// + /// Two-letter ISO code representing the buyer's country. Values are provided by PayPal + /// directly (if supported) at the time of authorization or settlement. They cannot be set + /// or mutated. + /// + [JsonProperty("country")] + public string Country { get; set; } + /// /// Owner's email. Values are provided by PayPal directly (if supported) at the time of /// authorization or settlement. They cannot be set or mutated. diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs index 0e50729f0a..53c9c3f2b5 100644 --- a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs @@ -29,6 +29,9 @@ public class ConfigurationTipping : StripeEntity [JsonProperty("hkd")] public ConfigurationTippingHkd Hkd { get; set; } + [JsonProperty("jpy")] + public ConfigurationTippingJpy Jpy { get; set; } + [JsonProperty("myr")] public ConfigurationTippingMyr Myr { get; set; } diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingJpy.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingJpy.cs new file mode 100644 index 0000000000..7b743c7011 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingJpy.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; + + public class ConfigurationTippingJpy : StripeEntity + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] + public long SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs b/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs index 5c6c194c53..3e45853f48 100644 --- a/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs +++ b/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs @@ -70,6 +70,9 @@ public class FinancialAccount : StripeEntity, IHasId, IHasMeta [JsonProperty("financial_addresses")] public List FinancialAddresses { get; set; } + [JsonProperty("is_default")] + public bool IsDefault { get; set; } + /// /// Has the value true if the object exists in live mode or the value false if /// the object exists in test mode. @@ -85,6 +88,12 @@ public class FinancialAccount : StripeEntity, IHasId, IHasMeta [JsonProperty("metadata")] public Dictionary Metadata { get; set; } + /// + /// The nickname for the FinancialAccount. + /// + [JsonProperty("nickname")] + public string Nickname { get; set; } + /// /// The array of paths to pending Features in the Features hash. /// One of: card_issuing, deposit_insurance, financial_addresses.aba, diff --git a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetails.cs b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetails.cs index 022c3749c6..2d963d7a28 100644 --- a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetails.cs @@ -8,8 +8,12 @@ public class OutboundTransferDestinationPaymentMethodDetails : StripeEntity /// The type of the payment method used in the OutboundTransfer. + /// One of: financial_account, or us_bank_account. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetailsFinancialAccount.cs b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetailsFinancialAccount.cs new file mode 100644 index 0000000000..9ed332c626 --- /dev/null +++ b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDetailsFinancialAccount.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Treasury +{ + using Newtonsoft.Json; + + public class OutboundTransferDestinationPaymentMethodDetailsFinancialAccount : StripeEntity, IHasId + { + /// + /// Token of the FinancialAccount. + /// + [JsonProperty("id")] + public string Id { get; set; } + + /// + /// The rails used to send funds. + /// + [JsonProperty("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs index fde9a1517d..01f1684b1c 100644 --- a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs +++ b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsSourceFlowDetails.cs @@ -33,6 +33,27 @@ public class ReceivedCreditLinkedFlowsSourceFlowDetails : StripeEntity + /// Use OutboundTransfers + /// to transfer funds from a FinancialAccount to a + /// PaymentMethod belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You + /// can send funds over ACH rails or through a domestic wire transfer to a user's own + /// external bank account. + /// + /// Simulate OutboundTransfer state changes with the + /// /v1/test_helpers/treasury/outbound_transfers endpoints. These methods can only be + /// called on test mode objects. + /// + /// Related guide: Moving + /// money with Treasury using OutboundTransfer objects. + /// + [JsonProperty("outbound_transfer")] + public OutboundTransfer OutboundTransfer { get; set; } + /// /// A Payout object is created when you receive funds from Stripe, or when you /// initiate a payout to either a bank account or debit card of a /// The type of the source flow that originated the ReceivedCredit. - /// One of: credit_reversal, other, outbound_payment, or payout. + /// One of: credit_reversal, other, outbound_payment, + /// outbound_transfer, or payout. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs new file mode 100644 index 0000000000..930ca72295 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccountFeaturesOptions : INestedOptions + { + /// + /// Disables Stripe user authentication for this embedded component. This value can only be + /// true for accounts where controller.requirement_collection is application. + /// The default value is the opposite of the external_account_collection value. For + /// example, if you don’t set external_account_collection, it defaults to true and + /// disable_stripe_user_authentication defaults to false. + /// + [JsonProperty("disable_stripe_user_authentication")] + public bool? DisableStripeUserAuthentication { get; set; } + + /// + /// Whether to allow external accounts to be linked for money transfer. + /// + [JsonProperty("external_account_collection")] + public bool? ExternalAccountCollection { get; set; } + + /// + /// Whether to allow sending money. + /// + [JsonProperty("send_money")] + public bool? SendMoney { get; set; } + + /// + /// Whether to allow transferring balance. + /// + [JsonProperty("transfer_balance")] + public bool? TransferBalance { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountOptions.cs new file mode 100644 index 0000000000..f228a1c05f --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccountOptions : INestedOptions + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + + /// + /// The list of features enabled in the embedded component. + /// + [JsonProperty("features")] + public AccountSessionComponentsFinancialAccountFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsFeaturesOptions.cs new file mode 100644 index 0000000000..8a3c4e7ed9 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsFeaturesOptions.cs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccountTransactionsFeaturesOptions : INestedOptions + { + /// + /// Whether to allow card spend dispute management features. + /// + [JsonProperty("card_spend_dispute_management")] + public bool? CardSpendDisputeManagement { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsOptions.cs new file mode 100644 index 0000000000..23864a5f46 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountTransactionsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsFinancialAccountTransactionsOptions : INestedOptions + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + + /// + /// The list of features enabled in the embedded component. + /// + [JsonProperty("features")] + public AccountSessionComponentsFinancialAccountTransactionsFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardFeaturesOptions.cs new file mode 100644 index 0000000000..19009694b8 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardFeaturesOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCardFeaturesOptions : INestedOptions + { + /// + /// Whether to allow card management features. + /// + [JsonProperty("card_management")] + public bool? CardManagement { get; set; } + + /// + /// Whether to allow card spend dispute management features. + /// + [JsonProperty("card_spend_dispute_management")] + public bool? CardSpendDisputeManagement { get; set; } + + /// + /// Whether to allow cardholder management features. + /// + [JsonProperty("cardholder_management")] + public bool? CardholderManagement { get; set; } + + /// + /// Whether to allow spend control management features. + /// + [JsonProperty("spend_control_management")] + public bool? SpendControlManagement { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardOptions.cs new file mode 100644 index 0000000000..dc68cfa44d --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCardOptions : INestedOptions + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + + /// + /// The list of features enabled in the embedded component. + /// + [JsonProperty("features")] + public AccountSessionComponentsIssuingCardFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs new file mode 100644 index 0000000000..e29f246150 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCardsListFeaturesOptions : INestedOptions + { + /// + /// Whether to allow card management features. + /// + [JsonProperty("card_management")] + public bool? CardManagement { get; set; } + + /// + /// Whether to allow card spend dispute management features. + /// + [JsonProperty("card_spend_dispute_management")] + public bool? CardSpendDisputeManagement { get; set; } + + /// + /// Whether to allow cardholder management features. + /// + [JsonProperty("cardholder_management")] + public bool? CardholderManagement { get; set; } + + /// + /// Disables Stripe user authentication for this embedded component. This feature can only + /// be false for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like custom accounts. + /// + [JsonProperty("disable_stripe_user_authentication")] + public bool? DisableStripeUserAuthentication { get; set; } + + /// + /// Whether to allow spend control management features. + /// + [JsonProperty("spend_control_management")] + public bool? SpendControlManagement { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListOptions.cs new file mode 100644 index 0000000000..d22c10a8af --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountSessionComponentsIssuingCardsListOptions : INestedOptions + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + + /// + /// The list of features enabled in the embedded component. + /// + [JsonProperty("features")] + public AccountSessionComponentsIssuingCardsListFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs index 22ebb7786b..c85de94e7e 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -29,6 +29,30 @@ public class AccountSessionComponentsOptions : INestedOptions [JsonProperty("documents")] public AccountSessionComponentsDocumentsOptions Documents { get; set; } + /// + /// Configuration for the financial account embedded component. + /// + [JsonProperty("financial_account")] + public AccountSessionComponentsFinancialAccountOptions FinancialAccount { get; set; } + + /// + /// Configuration for the financial account transactions embedded component. + /// + [JsonProperty("financial_account_transactions")] + public AccountSessionComponentsFinancialAccountTransactionsOptions FinancialAccountTransactions { get; set; } + + /// + /// Configuration for the issuing card embedded component. + /// + [JsonProperty("issuing_card")] + public AccountSessionComponentsIssuingCardOptions IssuingCard { get; set; } + + /// + /// Configuration for the issuing cards list embedded component. + /// + [JsonProperty("issuing_cards_list")] + public AccountSessionComponentsIssuingCardsListOptions IssuingCardsList { get; set; } + /// /// Configuration for the notification banner embedded component. /// diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs index fe3777e915..d8d784e21f 100644 --- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs @@ -221,6 +221,12 @@ public class AccountCapabilitiesOptions : INestedOptions [JsonProperty("p24_payments")] public AccountCapabilitiesP24PaymentsOptions P24Payments { get; set; } + /// + /// The pay_by_bank_payments capability. + /// + [JsonProperty("pay_by_bank_payments")] + public AccountCapabilitiesPayByBankPaymentsOptions PayByBankPayments { get; set; } + /// /// The payco_payments capability. /// diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesPayByBankPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesPayByBankPaymentsOptions.cs new file mode 100644 index 0000000000..cec806cc86 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesPayByBankPaymentsOptions.cs @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountCapabilitiesPayByBankPaymentsOptions : INestedOptions + { + /// + /// Passing true requests the capability for the account, if it is not already requested. A + /// requested capability may not immediately become active. Any requirements to activate the + /// capability are returned in the requirements arrays. + /// + [JsonProperty("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCompanyDirectorshipDeclarationOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyDirectorshipDeclarationOptions.cs new file mode 100644 index 0000000000..7ab410b493 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCompanyDirectorshipDeclarationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + + public class AccountCompanyDirectorshipDeclarationOptions : INestedOptions + { + /// + /// The Unix timestamp marking when the directorship declaration attestation was made. + /// + [JsonProperty("date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the directorship declaration attestation was made. + /// + [JsonProperty("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the directorship declaration attestation was + /// made. + /// + [JsonProperty("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs index c707557485..1f81463e26 100644 --- a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs @@ -34,6 +34,13 @@ public class AccountCompanyOptions : INestedOptions [JsonProperty("directors_provided")] public bool? DirectorsProvided { get; set; } + /// + /// This hash is used to attest that the directors information provided to Stripe is both + /// current and correct. + /// + [JsonProperty("directorship_declaration")] + public AccountCompanyDirectorshipDeclarationOptions DirectorshipDeclaration { get; set; } + /// /// Whether the company's executives have been provided. Set this Boolean to true /// after creating all the company's executives with + /// One of: qualified_entity_exceeds_ownership_threshold, or + /// qualifies_as_financial_institution. + /// + [JsonProperty("ownership_exemption_reason")] + public string OwnershipExemptionReason { get; set; } + /// /// The company's phone number (used for verification). /// diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs index 86955c4635..d317209ee1 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs @@ -53,5 +53,11 @@ public class AccountDocumentsOptions : INestedOptions /// [JsonProperty("proof_of_registration")] public AccountDocumentsProofOfRegistrationOptions ProofOfRegistration { get; set; } + + /// + /// One or more documents that demonstrate proof of ultimate beneficial ownership. + /// + [JsonProperty("proof_of_ultimate_beneficial_ownership")] + public AccountDocumentsProofOfUltimateBeneficialOwnershipOptions ProofOfUltimateBeneficialOwnership { get; set; } } } diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipOptions.cs new file mode 100644 index 0000000000..bb48207c77 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfUltimateBeneficialOwnershipOptions.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; + + public class AccountDocumentsProofOfUltimateBeneficialOwnershipOptions : INestedOptions + { + /// + /// One or more document ids returned by a file upload with a purpose + /// value of account_requirement. + /// + [JsonProperty("files")] + public List Files { get; set; } + } +} diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionCancelOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionCancelOptions.cs index 02ba841eb0..c8cb0e4a27 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionCancelOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionCancelOptions.cs @@ -28,8 +28,9 @@ public class ConfigurationFeaturesSubscriptionCancelOptions : INestedOptions /// /// Whether to create prorations when canceling subscriptions. Possible values are /// none and create_prorations, which is only compatible with - /// mode=immediately. No prorations are generated when canceling a subscription at - /// the end of its natural billing period. + /// mode=immediately. Passing always_invoice will result in an error. No + /// prorations are generated when canceling a subscription at the end of its natural billing + /// period. /// One of: always_invoice, create_prorations, or none. /// [JsonProperty("proration_behavior")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index f5f9bad7ee..540dc6695a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -279,9 +279,10 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// customer_balance, eps, fpx, giropay, grabpay, /// ideal, kakao_pay, klarna, konbini, kr_card, /// link, mobilepay, multibanco, naver_pay, oxxo, - /// p24, payco, paynow, paypal, pix, promptpay, - /// revolut_pay, samsung_pay, sepa_debit, sofort, swish, - /// twint, us_bank_account, wechat_pay, or zip. + /// p24, pay_by_bank, payco, paynow, paypal, pix, + /// promptpay, revolut_pay, samsung_pay, sepa_debit, + /// sofort, swish, twint, us_bank_account, wechat_pay, or + /// zip. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs index dca421f322..8df2aa8c9c 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs @@ -167,6 +167,12 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions [JsonProperty("p24")] public SessionPaymentMethodOptionsP24Options P24 { get; set; } + /// + /// contains details about the Pay By Bank payment method options. + /// + [JsonProperty("pay_by_bank")] + public SessionPaymentMethodOptionsPayByBankOptions PayByBank { get; set; } + /// /// contains details about the PAYCO payment method options. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPayByBankOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPayByBankOptions.cs new file mode 100644 index 0000000000..0e3e2e4868 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPayByBankOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + public class SessionPaymentMethodOptionsPayByBankOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPhoneNumberCollectionOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPhoneNumberCollectionOptions.cs index ecdbcdafb4..eca8ff7c73 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPhoneNumberCollectionOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPhoneNumberCollectionOptions.cs @@ -7,6 +7,8 @@ public class SessionPhoneNumberCollectionOptions : INestedOptions { /// /// Set to true to enable phone number collection. + /// + /// Can only be set in payment and subscription mode. /// [JsonProperty("enabled")] public bool? Enabled { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs index dbd95a0daa..133368dde3 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs @@ -32,13 +32,13 @@ public class SessionShippingAddressCollectionOptions : INestedOptions /// NU, NZ, OM, PA, PE, PF, PG, PH, /// PK, PL, PM, PN, PR, PS, PT, PY, /// QA, RE, RO, RS, RU, RW, SA, SB, - /// SC, SE, SG, SH, SI, SJ, SK, SL, - /// SM, SN, SO, SR, SS, ST, SV, SX, - /// SZ, TA, TC, TD, TF, TG, TH, TJ, - /// TK, TL, TM, TN, TO, TR, TT, TV, - /// TW, TZ, UA, UG, US, UY, UZ, VA, - /// VC, VE, VG, VN, VU, WF, WS, XK, - /// YE, YT, ZA, ZM, ZW, or ZZ. + /// SC, SD, SE, SG, SH, SI, SJ, SK, + /// SL, SM, SN, SO, SR, SS, ST, SV, + /// SX, SZ, TA, TC, TD, TF, TG, TH, + /// TJ, TK, TL, TM, TN, TO, TR, TT, + /// TV, TW, TZ, UA, UG, US, UY, UZ, + /// VA, VC, VE, VG, VN, VU, WF, WS, + /// XK, YE, YT, ZA, ZM, ZW, or ZZ. /// [JsonProperty("allowed_countries")] public List AllowedCountries { get; set; } diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs index 502e821c90..b7afc20aab 100644 --- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs @@ -26,9 +26,10 @@ public class CustomerPaymentMethodListOptions : ListOptions /// customer_balance, eps, fpx, giropay, grabpay, /// ideal, kakao_pay, klarna, konbini, kr_card, /// link, mobilepay, multibanco, naver_pay, oxxo, - /// p24, payco, paynow, paypal, pix, promptpay, - /// revolut_pay, samsung_pay, sepa_debit, sofort, swish, - /// twint, us_bank_account, wechat_pay, or zip. + /// p24, pay_by_bank, payco, paynow, paypal, pix, + /// promptpay, revolut_pay, samsung_pay, sepa_debit, + /// sofort, swish, twint, us_bank_account, wechat_pay, or + /// zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/FinancialConnections/Transactions/TransactionListOptions.cs b/src/Stripe.net/Services/FinancialConnections/Transactions/TransactionListOptions.cs index 3a55e233b4..b94d13a824 100644 --- a/src/Stripe.net/Services/FinancialConnections/Transactions/TransactionListOptions.cs +++ b/src/Stripe.net/Services/FinancialConnections/Transactions/TransactionListOptions.cs @@ -8,7 +8,7 @@ namespace Stripe.FinancialConnections public class TransactionListOptions : ListOptions { /// - /// The ID of the Stripe account whose transactions will be retrieved. + /// The ID of the Financial Connections Account whose transactions will be retrieved. /// [JsonProperty("account")] public string Account { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index ad1f724bb4..714091e401 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -235,6 +235,13 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat [JsonProperty("p24")] public PaymentIntentPaymentMethodDataP24Options P24 { get; set; } + /// + /// If this is a pay_by_bank PaymentMethod, this hash contains details about the + /// PayByBank payment method. + /// + [JsonProperty("pay_by_bank")] + public PaymentIntentPaymentMethodDataPayByBankOptions PayByBank { get; set; } + /// /// If this is a payco PaymentMethod, this hash contains details about the PAYCO /// payment method. @@ -329,10 +336,10 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// bancontact, blik, boleto, cashapp, customer_balance, /// eps, fpx, giropay, grabpay, ideal, kakao_pay, /// klarna, konbini, kr_card, link, mobilepay, - /// multibanco, naver_pay, oxxo, p24, payco, - /// paynow, paypal, pix, promptpay, revolut_pay, - /// samsung_pay, sepa_debit, sofort, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// multibanco, naver_pay, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, pix, promptpay, + /// revolut_pay, samsung_pay, sepa_debit, sofort, swish, + /// twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataPayByBankOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataPayByBankOptions.cs new file mode 100644 index 0000000000..8783560493 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataPayByBankOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentIntentPaymentMethodDataPayByBankOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs index 279e8af790..ac49640498 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs @@ -221,6 +221,13 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions [JsonProperty("p24")] public PaymentIntentPaymentMethodOptionsP24Options P24 { get; set; } + /// + /// If this is a pay_by_bank PaymentMethod, this sub-hash contains details about the + /// PayByBank payment method options. + /// + [JsonProperty("pay_by_bank")] + public PaymentIntentPaymentMethodOptionsPayByBankOptions PayByBank { get; set; } + /// /// If this is a payco PaymentMethod, this sub-hash contains details about the PAYCO /// payment method options. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPayByBankOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPayByBankOptions.cs new file mode 100644 index 0000000000..052ca6b7ad --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPayByBankOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentIntentPaymentMethodOptionsPayByBankOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs index 5935994a19..932f307051 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -155,9 +155,9 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// au_becs_debit, bacs_debit, bancontact, blik, boleto, /// card, cashapp, eps, fpx, giropay, grabpay, /// ideal, klarna, konbini, link, mobilepay, - /// multibanco, oxxo, p24, paynow, paypal, pix, - /// promptpay, sepa_debit, sofort, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// multibanco, oxxo, p24, pay_by_bank, paynow, + /// paypal, pix, promptpay, sepa_debit, sofort, + /// swish, twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs index e6bd2b5a8f..62e3f61bd8 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs @@ -32,13 +32,13 @@ public class PaymentLinkShippingAddressCollectionOptions : INestedOptions /// NU, NZ, OM, PA, PE, PF, PG, PH, /// PK, PL, PM, PN, PR, PS, PT, PY, /// QA, RE, RO, RS, RU, RW, SA, SB, - /// SC, SE, SG, SH, SI, SJ, SK, SL, - /// SM, SN, SO, SR, SS, ST, SV, SX, - /// SZ, TA, TC, TD, TF, TG, TH, TJ, - /// TK, TL, TM, TN, TO, TR, TT, TV, - /// TW, TZ, UA, UG, US, UY, UZ, VA, - /// VC, VE, VG, VN, VU, WF, WS, XK, - /// YE, YT, ZA, ZM, ZW, or ZZ. + /// SC, SD, SE, SG, SH, SI, SJ, SK, + /// SL, SM, SN, SO, SR, SS, ST, SV, + /// SX, SZ, TA, TC, TD, TF, TG, TH, + /// TJ, TK, TL, TM, TN, TO, TR, TT, + /// TV, TW, TZ, UA, UG, US, UY, UZ, + /// VA, VC, VE, VG, VN, VU, WF, WS, + /// XK, YE, YT, ZA, ZM, ZW, or ZZ. /// [JsonProperty("allowed_countries")] public List AllowedCountries { get; set; } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index 07340e69e7..457aaf21e2 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -124,13 +124,21 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata /// au_becs_debit, bacs_debit, bancontact, blik, boleto, /// card, cashapp, eps, fpx, giropay, grabpay, /// ideal, klarna, konbini, link, mobilepay, - /// multibanco, oxxo, p24, paynow, paypal, pix, - /// promptpay, sepa_debit, sofort, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// multibanco, oxxo, p24, pay_by_bank, paynow, + /// paypal, pix, promptpay, sepa_debit, sofort, + /// swish, twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } + /// + /// Controls phone number collection settings during checkout. + /// + /// We recommend that you review your privacy policy and check with your legal contacts. + /// + [JsonProperty("phone_number_collection")] + public PaymentLinkPhoneNumberCollectionOptions PhoneNumberCollection { get; set; } + /// /// Settings that restrict the usage of a payment link. /// diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs index 9bdd5e8ac9..24b6b9367b 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs @@ -300,6 +300,15 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions [JsonProperty("parent")] public string Parent { get; set; } + /// + /// Pay by bank is a redirect payment method backed by bank transfers. A customer is + /// redirected to their bank to authorize a bank transfer for a given amount. This removes a + /// lot of the error risks inherent in waiting for the customer to initiate a transfer + /// themselves, and is less expensive than card payments. + /// + [JsonProperty("pay_by_bank")] + public PaymentMethodConfigurationPayByBankOptions PayByBank { get; set; } + /// /// PayNow is a Singapore-based payment method that allows customers to make a payment using /// their preferred app from participating banks and participating non-bank financial diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankDisplayPreferenceOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankDisplayPreferenceOptions.cs new file mode 100644 index 0000000000..0d2c0ded9b --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankDisplayPreferenceOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PaymentMethodConfigurationPayByBankDisplayPreferenceOptions : INestedOptions + { + /// + /// The account's preference for whether or not to display this payment method. + /// One of: none, off, or on. + /// + [JsonProperty("preference")] + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankOptions.cs new file mode 100644 index 0000000000..9a87f2fc64 --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPayByBankOptions.cs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PaymentMethodConfigurationPayByBankOptions : INestedOptions + { + /// + /// Whether or not the payment method should be displayed. + /// + [JsonProperty("display_preference")] + public PaymentMethodConfigurationPayByBankDisplayPreferenceOptions DisplayPreference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs index bf98706a48..e313dfafbc 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs @@ -300,6 +300,15 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions [JsonProperty("p24")] public PaymentMethodConfigurationP24Options P24 { get; set; } + /// + /// Pay by bank is a redirect payment method backed by bank transfers. A customer is + /// redirected to their bank to authorize a bank transfer for a given amount. This removes a + /// lot of the error risks inherent in waiting for the customer to initiate a transfer + /// themselves, and is less expensive than card payments. + /// + [JsonProperty("pay_by_bank")] + public PaymentMethodConfigurationPayByBankOptions PayByBank { get; set; } + /// /// PayNow is a Singapore-based payment method that allows customers to make a payment using /// their preferred app from participating banks and participating non-bank financial diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs index 8c292c0c3f..90eec54791 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs @@ -253,6 +253,13 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata [JsonProperty("p24")] public PaymentMethodP24Options P24 { get; set; } + /// + /// If this is a pay_by_bank PaymentMethod, this hash contains details about the + /// PayByBank payment method. + /// + [JsonProperty("pay_by_bank")] + public PaymentMethodPayByBankOptions PayByBank { get; set; } + /// /// If this is a payco PaymentMethod, this hash contains details about the PAYCO /// payment method. @@ -354,9 +361,10 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// customer_balance, eps, fpx, giropay, grabpay, /// ideal, kakao_pay, klarna, konbini, kr_card, /// link, mobilepay, multibanco, naver_pay, oxxo, - /// p24, payco, paynow, paypal, pix, promptpay, - /// revolut_pay, samsung_pay, sepa_debit, sofort, swish, - /// twint, us_bank_account, wechat_pay, or zip. + /// p24, pay_by_bank, payco, paynow, paypal, pix, + /// promptpay, revolut_pay, samsung_pay, sepa_debit, + /// sofort, swish, twint, us_bank_account, wechat_pay, or + /// zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs index dc7f163c68..c17ce05511 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs @@ -22,9 +22,10 @@ public class PaymentMethodListOptions : ListOptions /// customer_balance, eps, fpx, giropay, grabpay, /// ideal, kakao_pay, klarna, konbini, kr_card, /// link, mobilepay, multibanco, naver_pay, oxxo, - /// p24, payco, paynow, paypal, pix, promptpay, - /// revolut_pay, samsung_pay, sepa_debit, sofort, swish, - /// twint, us_bank_account, wechat_pay, or zip. + /// p24, pay_by_bank, payco, paynow, paypal, pix, + /// promptpay, revolut_pay, samsung_pay, sepa_debit, + /// sofort, swish, twint, us_bank_account, wechat_pay, or + /// zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodPayByBankOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodPayByBankOptions.cs new file mode 100644 index 0000000000..7ea8438615 --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodPayByBankOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodPayByBankOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs index 17f3c83c5a..fa6db48c98 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpdateOptions.cs @@ -52,6 +52,13 @@ public class PaymentMethodUpdateOptions : BaseOptions, IHasMetadata [JsonProperty("naver_pay")] public PaymentMethodNaverPayOptions NaverPay { get; set; } + /// + /// If this is a pay_by_bank PaymentMethod, this hash contains details about the + /// PayByBank payment method. + /// + [JsonProperty("pay_by_bank")] + public PaymentMethodPayByBankOptions PayByBank { get; set; } + /// /// If this is an us_bank_account PaymentMethod, this hash contains details about the /// US bank account payment method. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index f8a8fd2459..6e3b03f63f 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -235,6 +235,13 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata [JsonProperty("p24")] public SetupIntentPaymentMethodDataP24Options P24 { get; set; } + /// + /// If this is a pay_by_bank PaymentMethod, this hash contains details about the + /// PayByBank payment method. + /// + [JsonProperty("pay_by_bank")] + public SetupIntentPaymentMethodDataPayByBankOptions PayByBank { get; set; } + /// /// If this is a payco PaymentMethod, this hash contains details about the PAYCO /// payment method. @@ -329,10 +336,10 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// bancontact, blik, boleto, cashapp, customer_balance, /// eps, fpx, giropay, grabpay, ideal, kakao_pay, /// klarna, konbini, kr_card, link, mobilepay, - /// multibanco, naver_pay, oxxo, p24, payco, - /// paynow, paypal, pix, promptpay, revolut_pay, - /// samsung_pay, sepa_debit, sofort, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// multibanco, naver_pay, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, pix, promptpay, + /// revolut_pay, samsung_pay, sepa_debit, sofort, swish, + /// twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataPayByBankOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataPayByBankOptions.cs new file mode 100644 index 0000000000..182909a78d --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataPayByBankOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class SetupIntentPaymentMethodDataPayByBankOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingJpyOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingJpyOptions.cs new file mode 100644 index 0000000000..a6f81fae1b --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingJpyOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; + + public class ConfigurationTippingJpyOptions : INestedOptions + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] + public long? SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs index c0fb05879e..a3b33ed91b 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs @@ -53,6 +53,12 @@ public class ConfigurationTippingOptions : INestedOptions [JsonProperty("hkd")] public ConfigurationTippingHkdOptions Hkd { get; set; } + /// + /// Tipping configuration for JPY. + /// + [JsonProperty("jpy")] + public ConfigurationTippingJpyOptions Jpy { get; set; } + /// /// Tipping configuration for MYR. /// diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index f8c52e8aa3..e691124817 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -235,6 +235,13 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet [JsonProperty("p24")] public ConfirmationTokenPaymentMethodDataP24Options P24 { get; set; } + /// + /// If this is a pay_by_bank PaymentMethod, this hash contains details about the + /// PayByBank payment method. + /// + [JsonProperty("pay_by_bank")] + public ConfirmationTokenPaymentMethodDataPayByBankOptions PayByBank { get; set; } + /// /// If this is a payco PaymentMethod, this hash contains details about the PAYCO /// payment method. @@ -329,10 +336,10 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet /// bancontact, blik, boleto, cashapp, customer_balance, /// eps, fpx, giropay, grabpay, ideal, kakao_pay, /// klarna, konbini, kr_card, link, mobilepay, - /// multibanco, naver_pay, oxxo, p24, payco, - /// paynow, paypal, pix, promptpay, revolut_pay, - /// samsung_pay, sepa_debit, sofort, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// multibanco, naver_pay, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, pix, promptpay, + /// revolut_pay, samsung_pay, sepa_debit, sofort, swish, + /// twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataPayByBankOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataPayByBankOptions.cs new file mode 100644 index 0000000000..517cec3a86 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataPayByBankOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers +{ + public class ConfirmationTokenPaymentMethodDataPayByBankOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyDirectorshipDeclarationOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyDirectorshipDeclarationOptions.cs new file mode 100644 index 0000000000..847645298a --- /dev/null +++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyDirectorshipDeclarationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + + public class TokenAccountCompanyDirectorshipDeclarationOptions : INestedOptions + { + /// + /// The Unix timestamp marking when the directorship declaration attestation was made. + /// + [JsonProperty("date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the directorship declaration attestation was made. + /// + [JsonProperty("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the directorship declaration attestation was + /// made. + /// + [JsonProperty("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs index fc29bfeae7..23ad933f02 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs @@ -34,6 +34,13 @@ public class TokenAccountCompanyOptions : INestedOptions [JsonProperty("directors_provided")] public bool? DirectorsProvided { get; set; } + /// + /// This hash is used to attest that the directors information provided to Stripe is both + /// current and correct. + /// + [JsonProperty("directorship_declaration")] + public TokenAccountCompanyDirectorshipDeclarationOptions DirectorshipDeclaration { get; set; } + /// /// Whether the company's executives have been provided. Set this Boolean to true /// after creating all the company's executives with + /// One of: qualified_entity_exceeds_ownership_threshold, or + /// qualifies_as_financial_institution. + /// + [JsonProperty("ownership_exemption_reason")] + public string OwnershipExemptionReason { get; set; } + /// /// The company's phone number (used for verification). /// diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCloseOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCloseOptions.cs new file mode 100644 index 0000000000..199bfa465c --- /dev/null +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCloseOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe.Treasury +{ + using Newtonsoft.Json; + + public class FinancialAccountCloseOptions : BaseOptions + { + /// + /// A different bank account where funds can be deposited/debited in order to get the + /// closing FA's balance to $0. + /// + [JsonProperty("forwarding_settings")] + public FinancialAccountForwardingSettingsOptions ForwardingSettings { get; set; } + } +} diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs index ee3e81b00d..a8dfb22057 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs @@ -22,6 +22,12 @@ public class FinancialAccountCreateOptions : BaseOptions, IHasMetadata [JsonProperty("metadata")] public Dictionary Metadata { get; set; } + /// + /// The nickname for the FinancialAccount. + /// + [JsonProperty("nickname")] + public string Nickname { get; set; } + /// /// The set of functionalities that the platform can restrict on the FinancialAccount. /// diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountForwardingSettingsOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountForwardingSettingsOptions.cs new file mode 100644 index 0000000000..3587e461f5 --- /dev/null +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountForwardingSettingsOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.Treasury +{ + using Newtonsoft.Json; + + public class FinancialAccountForwardingSettingsOptions : INestedOptions + { + /// + /// The financial_account id. + /// + [JsonProperty("financial_account")] + public string FinancialAccount { get; set; } + + /// + /// The payment_method or bank account id. This needs to be a verified bank account. + /// + [JsonProperty("payment_method")] + public string PaymentMethod { get; set; } + + /// + /// The type of the bank account provided. This can be either "financial_account" or + /// "payment_method". + /// One of: financial_account, or payment_method. + /// + [JsonProperty("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountService.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountService.cs index ce7e293c70..c6df5b25d9 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountService.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountService.cs @@ -33,6 +33,26 @@ public FinancialAccountService(IStripeClient client) public virtual FinancialAccountFeaturesService Features => this.features ??= new FinancialAccountFeaturesService( this.Requestor); + /// + ///

Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero + /// balance, has no pending InboundTransfers, and has canceled all attached Issuing + /// cards.

. + ///
+ public virtual FinancialAccount Close(string id, FinancialAccountCloseOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/financial_accounts/{WebUtility.UrlEncode(id)}/close", options, requestOptions); + } + + /// + ///

Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero + /// balance, has no pending InboundTransfers, and has canceled all attached Issuing + /// cards.

. + ///
+ public virtual Task CloseAsync(string id, FinancialAccountCloseOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/treasury/financial_accounts/{WebUtility.UrlEncode(id)}/close", options, requestOptions, cancellationToken); + } + ///
///

Creates a new FinancialAccount. For now, each connected account can only have one /// FinancialAccount.

. diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs index 5d03358ab6..b0fc824113 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs @@ -14,6 +14,13 @@ public class FinancialAccountUpdateOptions : BaseOptions, IHasMetadata [JsonProperty("features")] public FinancialAccountFeaturesOptions Features { get; set; } + /// + /// A different bank account where funds can be deposited/debited in order to get the + /// closing FA's balance to $0. + /// + [JsonProperty("forwarding_settings")] + public FinancialAccountForwardingSettingsOptions ForwardingSettings { get; set; } + ///
/// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -23,6 +30,12 @@ public class FinancialAccountUpdateOptions : BaseOptions, IHasMetadata [JsonProperty("metadata")] public Dictionary Metadata { get; set; } + /// + /// The nickname for the FinancialAccount. + /// + [JsonProperty("nickname")] + public string Nickname { get; set; } + /// /// The set of functionalities that the platform can restrict on the FinancialAccount. /// diff --git a/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs index a64d16cf08..4227b2a5e1 100644 --- a/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs @@ -32,6 +32,13 @@ public class OutboundTransferCreateOptions : BaseOptions, IHasMetadata [JsonProperty("destination_payment_method")] public string DestinationPaymentMethod { get; set; } + /// + /// Hash used to generate the PaymentMethod to be used for this OutboundTransfer. Exclusive + /// with destination_payment_method. + /// + [JsonProperty("destination_payment_method_data")] + public OutboundTransferDestinationPaymentMethodDataOptions DestinationPaymentMethodData { get; set; } + /// /// Hash describing payment method configuration details. /// diff --git a/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDataOptions.cs b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDataOptions.cs new file mode 100644 index 0000000000..8812fea2bd --- /dev/null +++ b/src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferDestinationPaymentMethodDataOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Treasury +{ + using Newtonsoft.Json; + + public class OutboundTransferDestinationPaymentMethodDataOptions : INestedOptions + { + /// + /// Required if type is set to financial_account. The FinancialAccount ID to send + /// funds to. + /// + [JsonProperty("financial_account")] + public string FinancialAccount { get; set; } + + /// + /// The type of the destination. + /// + [JsonProperty("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsOptions.cs b/src/Stripe.net/Services/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsOptions.cs index a395824eb5..a21d9753af 100644 --- a/src/Stripe.net/Services/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsOptions.cs +++ b/src/Stripe.net/Services/Treasury/ReceivedCredits/ReceivedCreditLinkedFlowsOptions.cs @@ -7,7 +7,8 @@ public class ReceivedCreditLinkedFlowsOptions : INestedOptions { /// /// The source flow type. - /// One of: credit_reversal, other, outbound_payment, or payout. + /// One of: credit_reversal, other, outbound_payment, + /// outbound_transfer, or payout. /// [JsonProperty("source_flow_type")] public string SourceFlowType { get; set; } diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 2c541c5dee..828cbe23db 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -35,7 +35,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2019-11-05, 2019-12-03, 2020-03-02, 2020-08-27, /// 2022-08-01, 2022-11-15, 2023-08-16, 2023-10-16, /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, - /// 2024-10-28.acacia, 2024-11-20.acacia, or 2024-12-18.acacia. + /// 2024-10-28.acacia, 2024-11-20.acacia, 2024-12-18.acacia, or + /// 2025-01-27.acacia. /// [JsonProperty("api_version")] public string ApiVersion { get; set; } diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 3698e79937..1e4eff99a1 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -4510,6 +4510,21 @@ public void TestTerminalReadersProcessPaymentIntentPost() "/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_payment_intent"); } + [Fact] + public void TestTerminalReadersProcessSetupIntentPost() + { + var options = new Stripe.Terminal.ReaderProcessSetupIntentOptions + { + SetupIntent = "seti_xxxxxxxxxxxxx", + AllowRedisplay = "always", + }; + var service = new Stripe.Terminal.ReaderService(this.StripeClient); + service.ProcessSetupIntent("tmr_xxxxxxxxxxxxx", options); + this.AssertRequest( + HttpMethod.Post, + "/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_setup_intent"); + } + [Fact] public void TestTestHelpersCustomersFundCashBalancePost() {