diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 7e6e244735..3ae784ff4e 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -16e50491e9d896cb53da4a46080b4333741b76cb \ No newline at end of file +2c60f902831f969f228cecd1f52a81ca240c433c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7073706edf..ade311e7c7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2217 \ No newline at end of file +v2229 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index ca6200a481..f487779c38 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 = "2026-04-01.preview"; + public const string Current = "2026-04-08.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs b/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs index 6013485eb3..c566bbcb6b 100644 --- a/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs +++ b/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs @@ -36,5 +36,12 @@ public class ApplicationFeeFeeSource : StripeEntity [JsonProperty("type")] [STJS.JsonPropertyName("type")] public string Type { get; set; } + + /// + /// PaymentRecord ID that created this application fee. + /// + [JsonProperty("payment_record")] + [STJS.JsonPropertyName("payment_record")] + public string PaymentRecord { get; set; } } } diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs index 60154cd6a6..5f11ec86cd 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs @@ -203,7 +203,7 @@ public SharedPayment.IssuedToken SharedPaymentIssuedToken /// /// The status of the requested session. - /// One of: completed, expired, or open. + /// One of: completed, expired, open, or requires_action. /// [JsonProperty("status")] [STJS.JsonPropertyName("status")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index d465c9afe0..a4eea37008 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -34,15 +34,15 @@ public class InvoicePaymentSettings : StripeEntity /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, check_scan, crypto, - /// custom, customer_balance, eps, fpx, giropay, - /// grabpay, id_bank_transfer, ideal, jp_credit_transfer, - /// kakao_pay, klarna, 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, stripe_balance, swish, upi, - /// us_bank_account, or wechat_pay. + /// bizum, boleto, card, cashapp, check_scan, + /// crypto, custom, customer_balance, eps, fpx, + /// giropay, grabpay, id_bank_transfer, ideal, + /// jp_credit_transfer, kakao_pay, klarna, 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, stripe_balance, + /// swish, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs index 9f84042c65..4c0804054e 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs @@ -96,6 +96,14 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by bizum, this sub-hash contains details about the Bizum payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public InvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } + /// /// If paying by check_scan, this sub-hash contains details about the Check Scan /// payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBizum.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBizum.cs new file mode 100644 index 0000000000..7cab5e0369 --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBizum.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 InvoicePaymentSettingsPaymentMethodOptionsBizum : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs index 24a3f3b63e..0baa868ece 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs @@ -65,6 +65,15 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity + /// The number of decimal places implied in the quantity. For example, if quantity is 10000 + /// and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not + /// provided. + /// + [JsonProperty("quantity_precision")] + [STJS.JsonPropertyName("quantity_precision")] + public long QuantityPrecision { get; set; } + /// /// Contains information about the tax on the item. /// diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCard.cs index 60b910ce84..1e64869a5d 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCard.cs @@ -11,5 +11,9 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCard : Stripe [JsonProperty("commodity_code")] [STJS.JsonPropertyName("commodity_code")] public string CommodityCode { get; set; } + + [JsonProperty("fleet_data")] + [STJS.JsonPropertyName("fleet_data")] + public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData FleetData { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData.cs new file mode 100644 index 0000000000..2160958e0a --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData.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 PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetData : StripeEntity + { + /// + /// The type of product being purchased at this line item. + /// + [JsonProperty("product_type")] + [STJS.JsonPropertyName("product_type")] + public string ProductType { get; set; } + + /// + /// The type of service received at the acceptor location. + /// + [JsonProperty("service_type")] + [STJS.JsonPropertyName("service_type")] + public string ServiceType { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs index e4b52af7d4..83ab090e62 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs @@ -58,5 +58,12 @@ public class PaymentIntentPaymentDetails : StripeEntity + /// Fleet data for this PaymentIntent. + /// + [JsonProperty("fleet_data")] + [STJS.JsonPropertyName("fleet_data")] + public List FleetData { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatum.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatum.cs new file mode 100644 index 0000000000..1d9bbfc3bc --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatum.cs @@ -0,0 +1,23 @@ +// 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 PaymentIntentPaymentDetailsFleetDatum : StripeEntity + { + [JsonProperty("primary_fuel_fields")] + [STJS.JsonPropertyName("primary_fuel_fields")] + public PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields PrimaryFuelFields { get; set; } + + [JsonProperty("station")] + [STJS.JsonPropertyName("station")] + public PaymentIntentPaymentDetailsFleetDatumStation Station { get; set; } + + [JsonProperty("vat")] + [STJS.JsonPropertyName("vat")] + public PaymentIntentPaymentDetailsFleetDatumVat Vat { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields.cs new file mode 100644 index 0000000000..56ec2baeec --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFields : StripeEntity + { + /// + /// The fuel brand. + /// + [JsonProperty("brand")] + [STJS.JsonPropertyName("brand")] + public string Brand { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumStation.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumStation.cs new file mode 100644 index 0000000000..0245ea01d7 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumStation.cs @@ -0,0 +1,50 @@ +// 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 PaymentIntentPaymentDetailsFleetDatumStation : StripeEntity + { + /// + /// Additional contact information for the station. + /// + [JsonProperty("additional_contact_info")] + [STJS.JsonPropertyName("additional_contact_info")] + public string AdditionalContactInfo { get; set; } + + /// + /// The customer service phone number of the station. + /// + [JsonProperty("customer_service_phone_number")] + [STJS.JsonPropertyName("customer_service_phone_number")] + public string CustomerServicePhoneNumber { get; set; } + + /// + /// The partner ID code of the station. + /// + [JsonProperty("partner_id_code")] + [STJS.JsonPropertyName("partner_id_code")] + public string PartnerIdCode { get; set; } + + /// + /// The phone number of the station. + /// + [JsonProperty("phone_number")] + [STJS.JsonPropertyName("phone_number")] + public string PhoneNumber { get; set; } + + [JsonProperty("service_location")] + [STJS.JsonPropertyName("service_location")] + public Address ServiceLocation { get; set; } + + /// + /// The URL of the station. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumVat.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumVat.cs new file mode 100644 index 0000000000..8c804560ca --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumVat.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentDetailsFleetDatumVat : StripeEntity + { + /// + /// Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + /// + [JsonProperty("iob_indicator")] + [STJS.JsonPropertyName("iob_indicator")] + public string IobIndicator { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index 014a4a5131..f57beabdde 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -341,6 +341,13 @@ public Customer Customer [STJS.JsonPropertyName("sepa_debit")] public PaymentMethodSepaDebit SepaDebit { get; set; } + /// + /// ID of the shared payment granted token used in the creation of this PaymentMethod. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + [JsonProperty("shopeepay")] [STJS.JsonPropertyName("shopeepay")] public PaymentMethodShopeepay Shopeepay { get; set; } diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index 44dc5f6d7b..2dfe7d29b5 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -34,15 +34,15 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntity. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, check_scan, crypto, - /// custom, customer_balance, eps, fpx, giropay, - /// grabpay, id_bank_transfer, ideal, jp_credit_transfer, - /// kakao_pay, klarna, 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, stripe_balance, swish, upi, - /// us_bank_account, or wechat_pay. + /// bizum, boleto, card, cashapp, check_scan, + /// crypto, custom, customer_balance, eps, fpx, + /// giropay, grabpay, id_bank_transfer, ideal, + /// jp_credit_transfer, kakao_pay, klarna, 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, stripe_balance, + /// swish, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs index a238842944..09e91f33d5 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs @@ -96,6 +96,14 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptions : StripeEnti [STJS.JsonPropertyName("us_bank_account")] public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount UsBankAccount { get; set; } + /// + /// If paying by bizum, this sub-hash contains details about the Bizum payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } + /// /// If paying by check_scan, this sub-hash contains details about the Check Scan /// payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum.cs new file mode 100644 index 0000000000..cc3bcd946c --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum.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 QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs index b675e2cdff..c918143f55 100644 --- a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs @@ -37,7 +37,7 @@ public class CustomerEvaluation : StripeEntity, IHasId, IHas public DateTime CreatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// The ID of the Stripe customer the customer evaluation is associated with. + /// The ID of the Customer to associate with this CustomerEvaluation. /// [JsonProperty("customer")] [STJS.JsonPropertyName("customer")] @@ -45,6 +45,7 @@ public class CustomerEvaluation : StripeEntity, IHasId, IHas /// /// The type of evaluation event. + /// One of: login, or registration. /// [JsonProperty("event_type")] [STJS.JsonPropertyName("event_type")] @@ -66,7 +67,7 @@ public class CustomerEvaluation : StripeEntity, IHasId, IHas public bool Livemode { get; set; } /// - /// A hash of signal objects providing Radar's evaluation for the lifecycle event. + /// A hash of signal objects providing Radar's evaluation of the customer. /// [JsonProperty("signals")] [STJS.JsonPropertyName("signals")] diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs index 296ce06f73..ff21c9d705 100644 --- a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs @@ -20,13 +20,15 @@ public class CustomerEvaluationSignalsAccountSharing : StripeEntity /// The risk level for this signal. + /// One of: elevated, highest, low, normal, not_assessed, + /// or unknown. /// [JsonProperty("risk_level")] [STJS.JsonPropertyName("risk_level")] public string RiskLevel { get; set; } /// - /// Score for this signal (float between 0.0-100.0). + /// Score for this signal (between 0.0 and 100.0). /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs index 784613c0f7..bc3dd2709e 100644 --- a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs @@ -20,13 +20,15 @@ public class CustomerEvaluationSignalsMultiAccounting : StripeEntity /// The risk level for this signal. + /// One of: elevated, highest, low, normal, not_assessed, + /// or unknown. /// [JsonProperty("risk_level")] [STJS.JsonPropertyName("risk_level")] public string RiskLevel { get; set; } /// - /// Score for this signal (float between 0.0-100.0). + /// Score for this signal (between 0.0 and 100.0). /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs index e457d3c4d8..5068d827cd 100644 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs +++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs @@ -17,5 +17,13 @@ public class PaymentEvaluationClientDeviceMetadataDetails : StripeEntity + /// Direct client device attributes such as IP address and user agent. Use this as an + /// alternative to radar_session when a Radar Session isn't available. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public PaymentEvaluationClientDeviceMetadataDetailsData Data { get; set; } } } diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsData.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsData.cs new file mode 100644 index 0000000000..eacfa6eae0 --- /dev/null +++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsData.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentEvaluationClientDeviceMetadataDetailsData : StripeEntity + { + /// + /// The IP address of the client device. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// Pasted fields from the checkout flow. + /// One of: cvc, exp, number, other, or zip. + /// + [JsonProperty("pasted_fields")] + [STJS.JsonPropertyName("pasted_fields")] + public List PastedFields { get; set; } + + /// + /// The referrer of the client device. + /// + [JsonProperty("referrer")] + [STJS.JsonPropertyName("referrer")] + public string Referrer { get; set; } + + /// + /// The time on page in milliseconds. + /// + [JsonProperty("time_on_page_ms")] + [STJS.JsonPropertyName("time_on_page_ms")] + public long? TimeOnPageMs { get; set; } + + /// + /// The user agent of the client device. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetails.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetails.cs index 232068d824..b0dbe6623b 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetails.cs @@ -232,6 +232,10 @@ public class GrantedTokenPaymentMethodDetails : StripeEntitynz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, paypay, payto, pix, promptpay, /// qris, rechnung, revolut_pay, samsung_pay, satispay, - /// sepa_debit, shopeepay, sofort, stripe_balance, swish, - /// twint, upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, sofort, stripe_balance, + /// sunbit, swish, twint, upi, us_bank_account, + /// wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetailsSunbit.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetailsSunbit.cs new file mode 100644 index 0000000000..b6cc2539ef --- /dev/null +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetailsSunbit.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class GrantedTokenPaymentMethodDetailsSunbit : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 1346e1ba3d..75ea235f44 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -26,15 +26,15 @@ public class SubscriptionPaymentSettings : StripeEntity. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, check_scan, crypto, - /// custom, customer_balance, eps, fpx, giropay, - /// grabpay, id_bank_transfer, ideal, jp_credit_transfer, - /// kakao_pay, klarna, 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, stripe_balance, swish, upi, - /// us_bank_account, or wechat_pay. + /// bizum, boleto, card, cashapp, check_scan, + /// crypto, custom, customer_balance, eps, fpx, + /// giropay, grabpay, id_bank_transfer, ideal, + /// jp_credit_transfer, kakao_pay, klarna, 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, stripe_balance, + /// swish, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs index 13b793d3de..c4dbb459de 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs @@ -96,6 +96,14 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the Bizum payment method options to pass to + /// invoices created by the subscription. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } + /// /// This sub-hash contains details about the Check Scan payment method options to pass to /// invoices created by the subscription. diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizum.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizum.cs new file mode 100644 index 0000000000..4e4472643d --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizum.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(STJStripeEntityConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsBizum : StripeEntity + { + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptions.cs new file mode 100644 index 0000000000..d0431ab950 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptions.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 SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. Required when amount_type=fixed. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// Indicates the mandate amount type. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs index c0cbc3dfa3..df69fd9c8c 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs @@ -12,23 +12,19 @@ public class AccountPersonIdNumber : StripeEntity /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs index 1bff891599..b6b287b199 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs @@ -20,31 +20,25 @@ public class AccountIdentityBusinessDetailsIdNumber : StripeEntityae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, - /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, - /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, - /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, - /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, - /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, - /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, - /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, - /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, - /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, - /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, - /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, + /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, + /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, + /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, + /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, - /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, - /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, - /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, - /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, - /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, - /// sg_uen, si_msp, si_tin, si_vat, sk_dic, - /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, - /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or - /// za_tin. + /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, + /// my_brn, my_coid, my_itn, my_sst, mz_nuit, + /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, + /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, + /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, + /// si_msp, si_tin, si_vat, sk_dic, sk_ico, + /// sk_vat, th_crn, th_prn, th_tin, or us_ein. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs index 6f5476713d..132584aac7 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs @@ -12,23 +12,19 @@ public class AccountIdentityIndividualIdNumber : StripeEntityae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Exceptions/V2/CannotProceedError.cs b/src/Stripe.net/Exceptions/V2/CannotProceedError.cs new file mode 100644 index 0000000000..d3a7a20ee8 --- /dev/null +++ b/src/Stripe.net/Exceptions/V2/CannotProceedError.cs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class CannotProceedError : StripeError + { + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} \ No newline at end of file diff --git a/src/Stripe.net/Exceptions/V2/CannotProceedException.cs b/src/Stripe.net/Exceptions/V2/CannotProceedException.cs new file mode 100644 index 0000000000..9565506e8a --- /dev/null +++ b/src/Stripe.net/Exceptions/V2/CannotProceedException.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using System.Net; + using System.Text.Json; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class CannotProceedException : StripeException + { + private CannotProceedException( + HttpStatusCode httpStatusCode, + StripeError stripeError, + string message, + string reason) + : base(httpStatusCode, stripeError) + { + this.Reason = reason; + } + + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + + internal static CannotProceedException Parse( + HttpStatusCode httpStatusCode, + JsonElement body) + { + var stripeError = CannotProceedError.FromJson(body); + return new CannotProceedException(httpStatusCode, stripeError, stripeError.Message, stripeError.Reason); + } + } +} \ No newline at end of file diff --git a/src/Stripe.net/Infrastructure/Public/StripeException.cs b/src/Stripe.net/Infrastructure/Public/StripeException.cs index 2f43bec4fc..91724f1866 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeException.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeException.cs @@ -59,6 +59,10 @@ internal static StripeException ParseV2Exception(string type, StripeResponse res ret = Stripe.V2.BlockedByStripeException.Parse(httpStatusCode, body); break; + case "cannot_proceed": + ret = Stripe.V2.CannotProceedException.Parse(httpStatusCode, body); + break; + case "controlled_by_alternate_resource": ret = Stripe.V2.ControlledByAlternateResourceException.Parse(httpStatusCode, body); break; diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumOptions.cs new file mode 100644 index 0000000000..b29e76fe1d --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumOptions.cs @@ -0,0 +1,32 @@ +// 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 ChargePaymentDetailsFleetDatumOptions : INestedOptions + { + /// + /// Primary fuel fields for the transaction. + /// + [JsonProperty("primary_fuel_fields")] + [STJS.JsonPropertyName("primary_fuel_fields")] + public ChargePaymentDetailsFleetDatumPrimaryFuelFieldsOptions PrimaryFuelFields { get; set; } + + /// + /// Station and acceptor location details. + /// + [JsonProperty("station")] + [STJS.JsonPropertyName("station")] + public ChargePaymentDetailsFleetDatumStationOptions Station { get; set; } + + /// + /// VAT and Invoice on Behalf (IOB) details. + /// + [JsonProperty("vat")] + [STJS.JsonPropertyName("vat")] + public ChargePaymentDetailsFleetDatumVatOptions Vat { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumPrimaryFuelFieldsOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumPrimaryFuelFieldsOptions.cs new file mode 100644 index 0000000000..085cda6638 --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumPrimaryFuelFieldsOptions.cs @@ -0,0 +1,51 @@ +// 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 ChargePaymentDetailsFleetDatumPrimaryFuelFieldsOptions : INestedOptions + { + /// + /// The fuel brand. + /// One of: aafes, amerada_hess, amoco_canada, + /// amoco_petroleum_products, arco_products, asda, ashland_oil, + /// bfl, bp_mobil, bp_oil, burrnah_major, butler_arndale, + /// canadian_tire, canadian_turbo, caseys_general_store, cenex, + /// chevron_canada, chevron_usa, circle_k_stores, + /// citgo_petroleum, clark_brands, conoco_canada, conoco_inc, + /// crown_central_petroleum, diamond_shamrock_inc, discount_tire, + /// domo_gas, elf, erickson_oil, esso, esso_canada, + /// exxon, exxonmobil, family_express, fas_gas_oil, + /// federated_coop_sonic, fina, fina_inc, fkg_oil, flare, + /// flying_j_inc, gas_america, gate_petroleum, getty_petroleum, + /// giant_eagle, grow_mark_inc, gulf, gulf_canada, + /// gulf_chevron, handy_way_food, heron, holiday_stores, + /// home_depot, husky, hyvees, irving, irving_oil, + /// j_sainsbury, jet_conoco, krogers, kuwait, + /// kwik_trip_inc, lassus, loves_country_stores, + /// mapco_express_inc, marathon_oil, martin_bailey_inc_dba_hucks, + /// maxol, meineke, mfa, mohawk, mr_gas, murco, + /// murphy_oil_canada, murphy_oil_usa_inc, nexcom, + /// nordstrom_oil, olco, pdq_store, pennzoil_products_inc, + /// petro, petro_canada, petro_t, phillips, pilot, + /// pioneer, pure_oil, quaker_state, quarles_oil, + /// quiktrip, racetrac_petroleum_inc, raceway_petroleum, repsol, + /// rudy, safeway, seven_eleven, sheetz, shell, + /// shell_canada, shell_oil, sinclair_oil, southland_oil, + /// spar, speedway, sun_company_inc, suncor_sunoco_canada, + /// tempo, tesco, tesoro_alaska, texaco, the_pantry_inc, + /// thornton_oil, tosco, total, travel_centers_of_america, + /// uk, ultramar_canada, unbranded_or_unassigned, + /// unbranded_unassigned, union_76, united_dairy_farmer, + /// united_refining_kwikfill, us_oil, usa_petroleum, valvoline, + /// vg, w_morrison, warren_equities, wawa, + /// western_energetix, wilco, or zions. + /// + [JsonProperty("brand")] + [STJS.JsonPropertyName("brand")] + public string Brand { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumStationOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumStationOptions.cs new file mode 100644 index 0000000000..9f0ef69df1 --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumStationOptions.cs @@ -0,0 +1,53 @@ +// 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 ChargePaymentDetailsFleetDatumStationOptions : INestedOptions + { + /// + /// Additional contact information for the station. + /// + [JsonProperty("additional_contact_info")] + [STJS.JsonPropertyName("additional_contact_info")] + public string AdditionalContactInfo { get; set; } + + /// + /// The customer service phone number of the station. + /// + [JsonProperty("customer_service_phone_number")] + [STJS.JsonPropertyName("customer_service_phone_number")] + public string CustomerServicePhoneNumber { get; set; } + + /// + /// The partner ID code of the station. + /// + [JsonProperty("partner_id_code")] + [STJS.JsonPropertyName("partner_id_code")] + public string PartnerIdCode { get; set; } + + /// + /// The phone number of the station. + /// + [JsonProperty("phone_number")] + [STJS.JsonPropertyName("phone_number")] + public string PhoneNumber { get; set; } + + /// + /// The physical location of the station. + /// + [JsonProperty("service_location")] + [STJS.JsonPropertyName("service_location")] + public AddressOptions ServiceLocation { get; set; } + + /// + /// The URL of the station. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumVatOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumVatOptions.cs new file mode 100644 index 0000000000..6e3d8d587e --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsFleetDatumVatOptions.cs @@ -0,0 +1,20 @@ +// 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 ChargePaymentDetailsFleetDatumVatOptions : INestedOptions + { + /// + /// Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + /// One of: issuer_to_iob, issuer_to_iob_and_incremental_certification, or + /// merchant_does_not_agree_to_iob. + /// + [JsonProperty("iob_indicator")] + [STJS.JsonPropertyName("iob_indicator")] + public string IobIndicator { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions.cs new file mode 100644 index 0000000000..0e93961c18 --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions.cs @@ -0,0 +1,32 @@ +// 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 ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions : INestedOptions + { + /// + /// Day of birth, between 1 and 31. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public long? Day { get; set; } + + /// + /// Month of birth, between 1 and 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long? Month { get; set; } + + /// + /// Four-digit year of birth. + /// + [JsonProperty("year")] + [STJS.JsonPropertyName("year")] + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions.cs new file mode 100644 index 0000000000..bfbbf39994 --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions.cs @@ -0,0 +1,46 @@ +// 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 ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions : INestedOptions + { + /// + /// Address. + /// + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public AddressOptions Address { get; set; } + + /// + /// Date of birth. + /// + [JsonProperty("date_of_birth")] + [STJS.JsonPropertyName("date_of_birth")] + public ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Email address. + /// + [JsonProperty("email")] + [STJS.JsonPropertyName("email")] + public string Email { get; set; } + + /// + /// Full name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Phone number. + /// + [JsonProperty("phone")] + [STJS.JsonPropertyName("phone")] + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs index 6ee34d8d0f..2295f2931c 100644 --- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -6,7 +6,62 @@ namespace Stripe using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ChargePaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions + public class ChargePaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions, IHasSetTracking { + private ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions beneficiaryDetails; + private ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions senderDetails; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// ID of the Account representing the beneficiary in this account funding transaction. + /// + [JsonProperty("beneficiary_account")] + [STJS.JsonPropertyName("beneficiary_account")] + public string BeneficiaryAccount { get; set; } + + /// + /// Inline identity details for the beneficiary of this account funding transaction. + /// + [JsonProperty("beneficiary_details")] + [STJS.JsonPropertyName("beneficiary_details")] + public ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions BeneficiaryDetails + { + get => this.beneficiaryDetails; + set + { + this.beneficiaryDetails = value; + this.SetTracker.Track(); + } + } + + /// + /// ID of the Account representing the sender in this account funding transaction. + /// + [JsonProperty("sender_account")] + [STJS.JsonPropertyName("sender_account")] + public string SenderAccount { get; set; } + + /// + /// Inline identity details for the sender of this account funding transaction. + /// + [JsonProperty("sender_details")] + [STJS.JsonPropertyName("sender_details")] + public ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions SenderDetails + { + get => this.senderDetails; + set + { + this.senderDetails = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } } } diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions.cs new file mode 100644 index 0000000000..3bc88aa7de --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions.cs @@ -0,0 +1,32 @@ +// 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 ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions : INestedOptions + { + /// + /// Day of birth, between 1 and 31. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public long? Day { get; set; } + + /// + /// Month of birth, between 1 and 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long? Month { get; set; } + + /// + /// Four-digit year of birth. + /// + [JsonProperty("year")] + [STJS.JsonPropertyName("year")] + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions.cs new file mode 100644 index 0000000000..d554e161a4 --- /dev/null +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions.cs @@ -0,0 +1,46 @@ +// 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 ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions : INestedOptions + { + /// + /// Address. + /// + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public AddressOptions Address { get; set; } + + /// + /// Date of birth. + /// + [JsonProperty("date_of_birth")] + [STJS.JsonPropertyName("date_of_birth")] + public ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Email address. + /// + [JsonProperty("email")] + [STJS.JsonPropertyName("email")] + public string Email { get; set; } + + /// + /// Full name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Phone number. + /// + [JsonProperty("phone")] + [STJS.JsonPropertyName("phone")] + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs index 1aea669c58..f9b72e7dbc 100644 --- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class ChargePaymentDetailsMoneyServicesOptions : INestedOptions, IHasSetTracking { private ChargePaymentDetailsMoneyServicesAccountFundingOptions accountFunding; + private string transactionType; [JsonIgnore] [STJS.JsonIgnore] @@ -34,7 +35,15 @@ public ChargePaymentDetailsMoneyServicesAccountFundingOptions AccountFunding /// [JsonProperty("transaction_type")] [STJS.JsonPropertyName("transaction_type")] - public string TransactionType { get; set; } + public string TransactionType + { + get => this.transactionType; + set + { + this.transactionType = value; + this.SetTracker.Track(); + } + } bool IHasSetTracking.IsPropertySet(string propertyName) { diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs index 016fa51223..a49f89832f 100644 --- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs @@ -11,6 +11,7 @@ public class ChargePaymentDetailsOptions : INestedOptions, IHasSetTracking { private List carRentalData; private string customerReference; + private List fleetData; private List flightData; private List lodgingData; private ChargePaymentDetailsMoneyServicesOptions moneyServices; @@ -67,6 +68,21 @@ public string CustomerReference [STJS.JsonPropertyName("event_details")] public ChargePaymentDetailsEventDetailsOptions EventDetails { get; set; } + /// + /// Fleet data for this PaymentIntent. + /// + [JsonProperty("fleet_data")] + [STJS.JsonPropertyName("fleet_data")] + public List FleetData + { + get => this.fleetData; + set + { + this.fleetData = value; + this.SetTracker.Track(); + } + } + /// /// Flight reservation details for this PaymentIntent. /// diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 0fb5a4182b..be44619151 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -49,15 +49,15 @@ public string DefaultMandate /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, check_scan, crypto, - /// custom, customer_balance, eps, fpx, giropay, - /// grabpay, id_bank_transfer, ideal, jp_credit_transfer, - /// kakao_pay, klarna, 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, stripe_balance, swish, upi, - /// us_bank_account, or wechat_pay. + /// bizum, boleto, card, cashapp, check_scan, + /// crypto, custom, customer_balance, eps, fpx, + /// giropay, grabpay, id_bank_transfer, ideal, + /// jp_credit_transfer, kakao_pay, klarna, 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, stripe_balance, + /// swish, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBizumOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBizumOptions.cs new file mode 100644 index 0000000000..7c5b6dd631 --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBizumOptions.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(STJStripeOptionsConverter))] + public class InvoicePaymentSettingsPaymentMethodOptionsBizumOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs index b7bc956a4f..a3fa004f43 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs @@ -10,6 +10,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsOptions : INestedOptions, { private InvoicePaymentSettingsPaymentMethodOptionsAcssDebitOptions acssDebit; private InvoicePaymentSettingsPaymentMethodOptionsBancontactOptions bancontact; + private InvoicePaymentSettingsPaymentMethodOptionsBizumOptions bizum; private InvoicePaymentSettingsPaymentMethodOptionsCardOptions card; private InvoicePaymentSettingsPaymentMethodOptionsCheckScanOptions checkScan; private InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceOptions customerBalance; @@ -57,6 +58,22 @@ public InvoicePaymentSettingsPaymentMethodOptionsBancontactOptions Bancontact } } + /// + /// If paying by bizum, this sub-hash contains details about the Bizum payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public InvoicePaymentSettingsPaymentMethodOptionsBizumOptions Bizum + { + get => this.bizum; + set + { + this.bizum = value; + this.SetTracker.Track(); + } + } + /// /// If paying by card, this sub-hash contains details about the Card payment method /// options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs index 645ea97355..26991eaa01 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs @@ -51,6 +51,15 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions [STJS.JsonPropertyName("quantity")] public long? Quantity { get; set; } + /// + /// The number of decimal places implied in the quantity. For example, if quantity is 10000 + /// and quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not + /// provided. + /// + [JsonProperty("quantity_precision")] + [STJS.JsonPropertyName("quantity_precision")] + public long? QuantityPrecision { get; set; } + /// /// Contains information about the tax on the item. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetDataOptions.cs new file mode 100644 index 0000000000..ea6252216e --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetDataOptions.cs @@ -0,0 +1,41 @@ +// 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 PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetDataOptions : INestedOptions + { + /// + /// The type of product being purchased at this line item. + /// One of: air_conditioning_service, alcohol, aviation_fuel_premium, + /// aviation_fuel_regular, car_care_detailing, compressed_natural_gas, + /// deli, food_service, green_gasoline_mid_plus, + /// green_gasoline_premium_super, green_gasoline_regular, grocery, + /// liquid_natural_gas, liquid_propane_gas, lodging, + /// marine_diesel, marine_fuel, merchandise, mid_plus, + /// mid_plus_ethanol, miscellaneous_aviation_products_services, + /// miscellaneous_fuel, miscellaneous_marine_products_services, + /// miscellaneous_vehicle_products_services, packaged_beverage, + /// premium_diesel, premium_super, premium_super_ethanol, + /// preventative_maintenance, regular, regular_diesel, + /// regular_ethanol, repairs, self_service_car_wash, shower, + /// store_service, tobacco, vehicle_accessories, + /// vehicle_parking, vehicle_parts, or wash_out. + /// + [JsonProperty("product_type")] + [STJS.JsonPropertyName("product_type")] + public string ProductType { get; set; } + + /// + /// The type of service received at the acceptor location. + /// One of: full_service, high_speed_diesel, non_fuel_only, or + /// self_service. + /// + [JsonProperty("service_type")] + [STJS.JsonPropertyName("service_type")] + public string ServiceType { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs index 9096b29419..27de719c74 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs @@ -15,5 +15,12 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions : [JsonProperty("commodity_code")] [STJS.JsonPropertyName("commodity_code")] public string CommodityCode { get; set; } + + /// + /// Fleet data for this line item. + /// + [JsonProperty("fleet_data")] + [STJS.JsonPropertyName("fleet_data")] + public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardFleetDataOptions FleetData { get; set; } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumOptions.cs new file mode 100644 index 0000000000..9536dd6d10 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumOptions.cs @@ -0,0 +1,32 @@ +// 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 PaymentIntentPaymentDetailsFleetDatumOptions : INestedOptions + { + /// + /// Primary fuel fields for the transaction. + /// + [JsonProperty("primary_fuel_fields")] + [STJS.JsonPropertyName("primary_fuel_fields")] + public PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFieldsOptions PrimaryFuelFields { get; set; } + + /// + /// Station and acceptor location details. + /// + [JsonProperty("station")] + [STJS.JsonPropertyName("station")] + public PaymentIntentPaymentDetailsFleetDatumStationOptions Station { get; set; } + + /// + /// VAT and Invoice on Behalf (IOB) details. + /// + [JsonProperty("vat")] + [STJS.JsonPropertyName("vat")] + public PaymentIntentPaymentDetailsFleetDatumVatOptions Vat { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFieldsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFieldsOptions.cs new file mode 100644 index 0000000000..9aba81be05 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFieldsOptions.cs @@ -0,0 +1,51 @@ +// 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 PaymentIntentPaymentDetailsFleetDatumPrimaryFuelFieldsOptions : INestedOptions + { + /// + /// The fuel brand. + /// One of: aafes, amerada_hess, amoco_canada, + /// amoco_petroleum_products, arco_products, asda, ashland_oil, + /// bfl, bp_mobil, bp_oil, burrnah_major, butler_arndale, + /// canadian_tire, canadian_turbo, caseys_general_store, cenex, + /// chevron_canada, chevron_usa, circle_k_stores, + /// citgo_petroleum, clark_brands, conoco_canada, conoco_inc, + /// crown_central_petroleum, diamond_shamrock_inc, discount_tire, + /// domo_gas, elf, erickson_oil, esso, esso_canada, + /// exxon, exxonmobil, family_express, fas_gas_oil, + /// federated_coop_sonic, fina, fina_inc, fkg_oil, flare, + /// flying_j_inc, gas_america, gate_petroleum, getty_petroleum, + /// giant_eagle, grow_mark_inc, gulf, gulf_canada, + /// gulf_chevron, handy_way_food, heron, holiday_stores, + /// home_depot, husky, hyvees, irving, irving_oil, + /// j_sainsbury, jet_conoco, krogers, kuwait, + /// kwik_trip_inc, lassus, loves_country_stores, + /// mapco_express_inc, marathon_oil, martin_bailey_inc_dba_hucks, + /// maxol, meineke, mfa, mohawk, mr_gas, murco, + /// murphy_oil_canada, murphy_oil_usa_inc, nexcom, + /// nordstrom_oil, olco, pdq_store, pennzoil_products_inc, + /// petro, petro_canada, petro_t, phillips, pilot, + /// pioneer, pure_oil, quaker_state, quarles_oil, + /// quiktrip, racetrac_petroleum_inc, raceway_petroleum, repsol, + /// rudy, safeway, seven_eleven, sheetz, shell, + /// shell_canada, shell_oil, sinclair_oil, southland_oil, + /// spar, speedway, sun_company_inc, suncor_sunoco_canada, + /// tempo, tesco, tesoro_alaska, texaco, the_pantry_inc, + /// thornton_oil, tosco, total, travel_centers_of_america, + /// uk, ultramar_canada, unbranded_or_unassigned, + /// unbranded_unassigned, union_76, united_dairy_farmer, + /// united_refining_kwikfill, us_oil, usa_petroleum, valvoline, + /// vg, w_morrison, warren_equities, wawa, + /// western_energetix, wilco, or zions. + /// + [JsonProperty("brand")] + [STJS.JsonPropertyName("brand")] + public string Brand { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumStationOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumStationOptions.cs new file mode 100644 index 0000000000..d7d48efece --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumStationOptions.cs @@ -0,0 +1,53 @@ +// 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 PaymentIntentPaymentDetailsFleetDatumStationOptions : INestedOptions + { + /// + /// Additional contact information for the station. + /// + [JsonProperty("additional_contact_info")] + [STJS.JsonPropertyName("additional_contact_info")] + public string AdditionalContactInfo { get; set; } + + /// + /// The customer service phone number of the station. + /// + [JsonProperty("customer_service_phone_number")] + [STJS.JsonPropertyName("customer_service_phone_number")] + public string CustomerServicePhoneNumber { get; set; } + + /// + /// The partner ID code of the station. + /// + [JsonProperty("partner_id_code")] + [STJS.JsonPropertyName("partner_id_code")] + public string PartnerIdCode { get; set; } + + /// + /// The phone number of the station. + /// + [JsonProperty("phone_number")] + [STJS.JsonPropertyName("phone_number")] + public string PhoneNumber { get; set; } + + /// + /// The physical location of the station. + /// + [JsonProperty("service_location")] + [STJS.JsonPropertyName("service_location")] + public AddressOptions ServiceLocation { get; set; } + + /// + /// The URL of the station. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumVatOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumVatOptions.cs new file mode 100644 index 0000000000..027bd960d5 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsFleetDatumVatOptions.cs @@ -0,0 +1,20 @@ +// 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 PaymentIntentPaymentDetailsFleetDatumVatOptions : INestedOptions + { + /// + /// Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. + /// One of: issuer_to_iob, issuer_to_iob_and_incremental_certification, or + /// merchant_does_not_agree_to_iob. + /// + [JsonProperty("iob_indicator")] + [STJS.JsonPropertyName("iob_indicator")] + public string IobIndicator { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions.cs new file mode 100644 index 0000000000..156b68b8a5 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions.cs @@ -0,0 +1,32 @@ +// 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 PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions : INestedOptions + { + /// + /// Day of birth, between 1 and 31. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public long? Day { get; set; } + + /// + /// Month of birth, between 1 and 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long? Month { get; set; } + + /// + /// Four-digit year of birth. + /// + [JsonProperty("year")] + [STJS.JsonPropertyName("year")] + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions.cs new file mode 100644 index 0000000000..a7eb1bb55e --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions.cs @@ -0,0 +1,46 @@ +// 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 PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions : INestedOptions + { + /// + /// Address. + /// + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public AddressOptions Address { get; set; } + + /// + /// Date of birth. + /// + [JsonProperty("date_of_birth")] + [STJS.JsonPropertyName("date_of_birth")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Email address. + /// + [JsonProperty("email")] + [STJS.JsonPropertyName("email")] + public string Email { get; set; } + + /// + /// Full name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Phone number. + /// + [JsonProperty("phone")] + [STJS.JsonPropertyName("phone")] + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs index 28936d8914..e10389203f 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -6,7 +6,62 @@ namespace Stripe using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions + public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions, IHasSetTracking { + private PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions beneficiaryDetails; + private PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions senderDetails; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// ID of the Account representing the beneficiary in this account funding transaction. + /// + [JsonProperty("beneficiary_account")] + [STJS.JsonPropertyName("beneficiary_account")] + public string BeneficiaryAccount { get; set; } + + /// + /// Inline identity details for the beneficiary of this account funding transaction. + /// + [JsonProperty("beneficiary_details")] + [STJS.JsonPropertyName("beneficiary_details")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions BeneficiaryDetails + { + get => this.beneficiaryDetails; + set + { + this.beneficiaryDetails = value; + this.SetTracker.Track(); + } + } + + /// + /// ID of the Account representing the sender in this account funding transaction. + /// + [JsonProperty("sender_account")] + [STJS.JsonPropertyName("sender_account")] + public string SenderAccount { get; set; } + + /// + /// Inline identity details for the sender of this account funding transaction. + /// + [JsonProperty("sender_details")] + [STJS.JsonPropertyName("sender_details")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions SenderDetails + { + get => this.senderDetails; + set + { + this.senderDetails = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions.cs new file mode 100644 index 0000000000..e5ec4e1bdf --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions.cs @@ -0,0 +1,32 @@ +// 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 PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions : INestedOptions + { + /// + /// Day of birth, between 1 and 31. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public long? Day { get; set; } + + /// + /// Month of birth, between 1 and 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long? Month { get; set; } + + /// + /// Four-digit year of birth. + /// + [JsonProperty("year")] + [STJS.JsonPropertyName("year")] + public long? Year { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions.cs new file mode 100644 index 0000000000..c6211c1cca --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions.cs @@ -0,0 +1,46 @@ +// 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 PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions : INestedOptions + { + /// + /// Address. + /// + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public AddressOptions Address { get; set; } + + /// + /// Date of birth. + /// + [JsonProperty("date_of_birth")] + [STJS.JsonPropertyName("date_of_birth")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirthOptions DateOfBirth { get; set; } + + /// + /// Email address. + /// + [JsonProperty("email")] + [STJS.JsonPropertyName("email")] + public string Email { get; set; } + + /// + /// Full name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Phone number. + /// + [JsonProperty("phone")] + [STJS.JsonPropertyName("phone")] + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs index 7ef16e44c2..9e5a6ab3d3 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class PaymentIntentPaymentDetailsMoneyServicesOptions : INestedOptions, IHasSetTracking { private PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions accountFunding; + private string transactionType; [JsonIgnore] [STJS.JsonIgnore] @@ -34,7 +35,15 @@ public PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions AccountFund /// [JsonProperty("transaction_type")] [STJS.JsonPropertyName("transaction_type")] - public string TransactionType { get; set; } + public string TransactionType + { + get => this.transactionType; + set + { + this.transactionType = value; + this.SetTracker.Track(); + } + } bool IHasSetTracking.IsPropertySet(string propertyName) { diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs index 5f695d098e..9c27380e46 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs @@ -11,6 +11,7 @@ public class PaymentIntentPaymentDetailsOptions : INestedOptions, IHasSetTrackin { private List carRentalData; private string customerReference; + private List fleetData; private List flightData; private List lodgingData; private PaymentIntentPaymentDetailsMoneyServicesOptions moneyServices; @@ -74,6 +75,21 @@ public string CustomerReference [STJS.JsonPropertyName("event_details")] public PaymentIntentPaymentDetailsEventDetailsOptions EventDetails { get; set; } + /// + /// Fleet data for this PaymentIntent. + /// + [JsonProperty("fleet_data")] + [STJS.JsonPropertyName("fleet_data")] + public List FleetData + { + get => this.fleetData; + set + { + this.fleetData = value; + this.SetTracker.Track(); + } + } + /// /// Flight reservation details for this PaymentIntent. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions.cs new file mode 100644 index 0000000000..3a24b7babf --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions : INestedOptions + { + /// + /// The cryptocurrency currency code (e.g. BTC, ETH). + /// + [JsonProperty("currency_code")] + [STJS.JsonPropertyName("currency_code")] + public string CurrencyCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions.cs new file mode 100644 index 0000000000..551ec41b44 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions.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 PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions : INestedOptions + { + /// + /// Details for a cryptocurrency liquid asset funding transaction. + /// + [JsonProperty("crypto")] + [STJS.JsonPropertyName("crypto")] + public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions Crypto { get; set; } + + /// + /// Details for a security liquid asset funding transaction. + /// + [JsonProperty("security")] + [STJS.JsonPropertyName("security")] + public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions Security { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions.cs new file mode 100644 index 0000000000..9ec5ec557c --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions : INestedOptions + { + /// + /// The security's ticker symbol (e.g. AAPL). + /// + [JsonProperty("ticker_symbol")] + [STJS.JsonPropertyName("ticker_symbol")] + public string TickerSymbol { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs index 9586ff7523..b18cef84de 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -6,7 +6,39 @@ namespace Stripe using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions + public class PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions, IHasSetTracking { + private PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions liquidAsset; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// Details for a liquid asset (crypto or security) funding transaction. + /// + [JsonProperty("liquid_asset")] + [STJS.JsonPropertyName("liquid_asset")] + public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions LiquidAsset + { + get => this.liquidAsset; + set + { + this.liquidAsset = value; + this.SetTracker.Track(); + } + } + + /// + /// Details for a wallet funding transaction. + /// + [JsonProperty("wallet")] + [STJS.JsonPropertyName("wallet")] + public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions Wallet { get; set; } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs new file mode 100644 index 0000000000..eb31ff8646 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs @@ -0,0 +1,37 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions : INestedOptions, IHasSetTracking + { + private PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions stagedPurchase; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// Details for a staged purchase. + /// + [JsonProperty("staged_purchase")] + [STJS.JsonPropertyName("staged_purchase")] + public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions StagedPurchase + { + get => this.stagedPurchase; + set + { + this.stagedPurchase = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions.cs new file mode 100644 index 0000000000..39331d134a --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions.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 PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions : INestedOptions + { + /// + /// The merchant category code of the merchant. + /// + [JsonProperty("mcc")] + [STJS.JsonPropertyName("mcc")] + public string Mcc { get; set; } + + /// + /// The merchant's name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions.cs new file mode 100644 index 0000000000..161edd4186 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions : INestedOptions + { + /// + /// The merchant where the staged wallet purchase is made. + /// + [JsonProperty("merchant")] + [STJS.JsonPropertyName("merchant")] + public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions Merchant { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions.cs new file mode 100644 index 0000000000..49055de65a --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions : INestedOptions + { + /// + /// The cryptocurrency currency code (e.g. BTC, ETH). + /// + [JsonProperty("currency_code")] + [STJS.JsonPropertyName("currency_code")] + public string CurrencyCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions.cs new file mode 100644 index 0000000000..d3aadfa848 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions.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 PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions : INestedOptions + { + /// + /// Details for a cryptocurrency liquid asset funding transaction. + /// + [JsonProperty("crypto")] + [STJS.JsonPropertyName("crypto")] + public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetCryptoOptions Crypto { get; set; } + + /// + /// Details for a security liquid asset funding transaction. + /// + [JsonProperty("security")] + [STJS.JsonPropertyName("security")] + public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions Security { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions.cs new file mode 100644 index 0000000000..535909e714 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetSecurityOptions : INestedOptions + { + /// + /// The security's ticker symbol (e.g. AAPL). + /// + [JsonProperty("ticker_symbol")] + [STJS.JsonPropertyName("ticker_symbol")] + public string TickerSymbol { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs index 3b53926739..9d793e4182 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -6,7 +6,39 @@ namespace Stripe using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions + public class PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions : INestedOptions, IHasSetTracking { + private PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions liquidAsset; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// Details for a liquid asset (crypto or security) funding transaction. + /// + [JsonProperty("liquid_asset")] + [STJS.JsonPropertyName("liquid_asset")] + public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions LiquidAsset + { + get => this.liquidAsset; + set + { + this.liquidAsset = value; + this.SetTracker.Track(); + } + } + + /// + /// Details for a wallet funding transaction. + /// + [JsonProperty("wallet")] + [STJS.JsonPropertyName("wallet")] + public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions Wallet { get; set; } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs new file mode 100644 index 0000000000..b454f745c5 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs @@ -0,0 +1,37 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions : INestedOptions, IHasSetTracking + { + private PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions stagedPurchase; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// Details for a staged purchase. + /// + [JsonProperty("staged_purchase")] + [STJS.JsonPropertyName("staged_purchase")] + public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions StagedPurchase + { + get => this.stagedPurchase; + set + { + this.stagedPurchase = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions.cs new file mode 100644 index 0000000000..8597f5b1b7 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions.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 PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions : INestedOptions + { + /// + /// The merchant category code of the merchant. + /// + [JsonProperty("mcc")] + [STJS.JsonPropertyName("mcc")] + public string Mcc { get; set; } + + /// + /// The merchant's name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions.cs new file mode 100644 index 0000000000..9edf221c15 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions.cs @@ -0,0 +1,18 @@ +// 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 PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions : INestedOptions + { + /// + /// The merchant where the staged wallet purchase is made. + /// + [JsonProperty("merchant")] + [STJS.JsonPropertyName("merchant")] + public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseMerchantOptions Merchant { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs index 5d65d4fdfc..6e8c1d8126 100644 --- a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Radar public class CustomerEvaluationEvaluationContextCustomerDetailsOptions : INestedOptions { /// - /// Stripe customer ID. + /// The ID of an existing Customer. /// [JsonProperty("customer")] [STJS.JsonPropertyName("customer")] diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs index 35a4cb48e7..2cba8c5375 100644 --- a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Radar public class CustomerEvaluationRegistrationSuccessOptions : INestedOptions { /// - /// Stripe customer ID to attach to an entity-less registration evaluation. + /// The ID of a Customer to attach to an entity-less registration evaluation. /// [JsonProperty("customer")] [STJS.JsonPropertyName("customer")] diff --git a/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsDataOptions.cs b/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsDataOptions.cs new file mode 100644 index 0000000000..3e46641485 --- /dev/null +++ b/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsDataOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentEvaluationClientDeviceMetadataDetailsDataOptions : INestedOptions + { + /// + /// The IP address of the client device. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// Pasted fields from the checkout flow. + /// One of: cvc, exp, number, or zip. + /// + [JsonProperty("pasted_fields")] + [STJS.JsonPropertyName("pasted_fields")] + public List PastedFields { get; set; } + + /// + /// The referrer of the client device. + /// + [JsonProperty("referrer")] + [STJS.JsonPropertyName("referrer")] + public string Referrer { get; set; } + + /// + /// The time on page in milliseconds. + /// + [JsonProperty("time_on_page_ms")] + [STJS.JsonPropertyName("time_on_page_ms")] + public long? TimeOnPageMs { get; set; } + + /// + /// The user agent of the client device. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs b/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs index cd6f87cc89..317b34f33c 100644 --- a/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs @@ -17,5 +17,13 @@ public class PaymentEvaluationClientDeviceMetadataDetailsOptions : INestedOption [JsonProperty("radar_session")] [STJS.JsonPropertyName("radar_session")] public string RadarSession { get; set; } + + /// + /// Direct client device attributes such as IP address and user agent. Use this as an + /// alternative to radar_session when a Radar Session isn't available. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public PaymentEvaluationClientDeviceMetadataDetailsDataOptions Data { get; set; } } } diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index daedb355d6..f05fcf29b4 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -32,15 +32,15 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions, IHasSetTrackin /// settings. Should not be specified with payment_method_configuration. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, check_scan, crypto, - /// custom, customer_balance, eps, fpx, giropay, - /// grabpay, id_bank_transfer, ideal, jp_credit_transfer, - /// kakao_pay, klarna, 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, stripe_balance, swish, upi, - /// us_bank_account, or wechat_pay. + /// bizum, boleto, card, cashapp, check_scan, + /// crypto, custom, customer_balance, eps, fpx, + /// giropay, grabpay, id_bank_transfer, ideal, + /// jp_credit_transfer, kakao_pay, klarna, 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, stripe_balance, + /// swish, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptionsOptions.cs new file mode 100644 index 0000000000..e761ae088a --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptionsOptions.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 SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. Required when amount_type=fixed. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// Indicates the mandate amount type. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions.cs new file mode 100644 index 0000000000..e74240e167 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions.cs @@ -0,0 +1,18 @@ +// 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 SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions : INestedOptions + { + /// + /// Configuration options for setting up a mandate. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBizumMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs index 98443425a2..8fa5117936 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs @@ -10,6 +10,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsOptions : INestedOpt { private SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebitOptions acssDebit; private SubscriptionPaymentSettingsPaymentMethodOptionsBancontactOptions bancontact; + private SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions bizum; private SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions card; private SubscriptionPaymentSettingsPaymentMethodOptionsCheckScanOptions checkScan; private SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceOptions customerBalance; @@ -57,6 +58,22 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsBancontactOptions Banconta } } + /// + /// This sub-hash contains details about the Bizum payment method options to pass to the + /// invoice’s PaymentIntent. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions Bizum + { + get => this.bizum; + set + { + this.bizum = value; + this.SetTracker.Track(); + } + } + /// /// This sub-hash contains details about the Card payment method options to pass to the /// invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs index 0454348c7a..b4aa44b4c6 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs @@ -20,31 +20,25 @@ public class AccountTokenCreateIdentityBusinessDetailsIdNumberOptions : INestedO /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, - /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, - /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, - /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, - /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, - /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, - /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, - /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, - /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, - /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, - /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, - /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, + /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, + /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, + /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, + /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, - /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, - /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, - /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, - /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, - /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, - /// sg_uen, si_msp, si_tin, si_vat, sk_dic, - /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, - /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or - /// za_tin. + /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, + /// my_brn, my_coid, my_itn, my_sst, mz_nuit, + /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, + /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, + /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, + /// si_msp, si_tin, si_vat, sk_dic, sk_ico, + /// sk_vat, th_crn, th_prn, th_tin, or us_ein. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs index 21d079ece7..3e3ae8c1ff 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs @@ -12,23 +12,19 @@ public class AccountTokenCreateIdentityIndividualIdNumberOptions : INestedOption /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs index 7e8160ad4b..13a8d06e88 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs @@ -20,31 +20,25 @@ public class AccountCreateIdentityBusinessDetailsIdNumberOptions : INestedOption /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, - /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, - /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, - /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, - /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, - /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, - /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, - /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, - /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, - /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, - /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, - /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, + /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, + /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, + /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, + /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, - /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, - /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, - /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, - /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, - /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, - /// sg_uen, si_msp, si_tin, si_vat, sk_dic, - /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, - /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or - /// za_tin. + /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, + /// my_brn, my_coid, my_itn, my_sst, mz_nuit, + /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, + /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, + /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, + /// si_msp, si_tin, si_vat, sk_dic, sk_ico, + /// sk_vat, th_crn, th_prn, th_tin, or us_ein. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs index b40a782766..06481cd24c 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs @@ -12,23 +12,19 @@ public class AccountCreateIdentityIndividualIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs index 18baa464ce..ae1db8f407 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs @@ -20,31 +20,25 @@ public class AccountUpdateIdentityBusinessDetailsIdNumberOptions : INestedOption /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, - /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, - /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, - /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, - /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, - /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, - /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, - /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, - /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, - /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, - /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, - /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, + /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, + /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, + /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, + /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, + /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, + /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, + /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, + /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, + /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, - /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, - /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, - /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, - /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, - /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, - /// sg_uen, si_msp, si_tin, si_vat, sk_dic, - /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, - /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or - /// za_tin. + /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, + /// my_brn, my_coid, my_itn, my_sst, mz_nuit, + /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, + /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, + /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, + /// si_msp, si_tin, si_vat, sk_dic, sk_ico, + /// sk_vat, th_crn, th_prn, th_tin, or us_ein. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs index 1c7ac4b786..ee6905ca2c 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs @@ -12,23 +12,19 @@ public class AccountUpdateIdentityIndividualIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs index fb30bc98a1..24e9ea354d 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs @@ -12,23 +12,19 @@ public class PersonTokenCreateIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs index a608b55105..511263e355 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs @@ -12,23 +12,19 @@ public class PersonCreateIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs index bbdc354799..f28b98f82e 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs @@ -12,23 +12,19 @@ public class PersonUpdateIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, - /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, - /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, - /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, - /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, - /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, - /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, - /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, - /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, - /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, - /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, - /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, - /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, - /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, - /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, - /// uy_dni, vg_pp, or za_id. + /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, + /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, + /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, + /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, + /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, + /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, + /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, + /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, + /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, + /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, + /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, + /// us_ssn, us_ssn_last_4, uy_dni, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 6395a3ed31..40879bb6ba 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -9254,8 +9254,8 @@ public void TestV2MoneyManagementCurrencyConversionPost() { Amount = new Stripe.V2.Amount { - Currency = "USD", Value = 96, + Currency = "USD", }, Currency = "usd", }, @@ -9263,8 +9263,8 @@ public void TestV2MoneyManagementCurrencyConversionPost() { Amount = new Stripe.V2.Amount { - Currency = "USD", Value = 96, + Currency = "USD", }, Currency = "usd", }, @@ -9468,7 +9468,7 @@ public void TestV2MoneyManagementInboundTransferPost() "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.InboundTransferCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, From = new Stripe.V2.MoneyManagement.InboundTransferCreateFromOptions { Currency = "usd", @@ -9533,7 +9533,7 @@ public void TestV2MoneyManagementOutboundPaymentPost() "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", @@ -9599,7 +9599,7 @@ public void TestV2MoneyManagementOutboundPaymentQuotePost() "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"next_day_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, From = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateFromOptions { Currency = "usd", @@ -9752,7 +9752,7 @@ public void TestV2MoneyManagementOutboundTransferPost() "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundTransferCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, From = new Stripe.V2.MoneyManagement.OutboundTransferCreateFromOptions { Currency = "usd", @@ -10113,7 +10113,7 @@ public void TestV2PaymentsOffSessionPaymentPost() "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); var options = new Stripe.V2.Payments.OffSessionPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, Cadence = "unscheduled", Customer = "customer", Metadata = new Dictionary @@ -10249,7 +10249,7 @@ public void TestV2PaymentsSettlementAllocationIntentPost() "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var options = new Stripe.V2.Payments.SettlementAllocationIntentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, ExpectedSettlementDate = DateTimeOffset.Parse( "1970-01-22T14:14:13.629Z") .UtcDateTime, @@ -10362,7 +10362,7 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitPost() var options = new Stripe.V2.Payments.SettlementAllocationIntents.SplitCreateOptions { Account = "account", - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, Type = "credit", }; var client = new StripeClient(this.Requestor); @@ -10604,7 +10604,7 @@ public void TestV2TestHelpersFinancialAddressPost() "{\"object\":\"financial_address_credit_simulation\",\"status\":\"status\",\"livemode\":true}"); var options = new Stripe.V2.TestHelpers.FinancialAddressCreditOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, Network = "ach", }; var client = new StripeClient(this.Requestor); @@ -10727,6 +10727,27 @@ public void TestBlockedByStripeError() "/v2/core/vault/us_bank_accounts"); } + [Fact] + public void TestCannotProceedError() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_methods/id_123/archive", + (HttpStatusCode)400, + "{\"error\":{\"type\":\"cannot_proceed\",\"code\":\"default_payout_method_cannot_be_archived\"}}"); + var exception = Assert.Throws( + () => + { + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutMethods; + Stripe.V2.MoneyManagement.PayoutMethod payoutMethod = service + .Archive("id_123"); + }); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_methods/id_123/archive"); + } + [Fact] public void TestControlledByAlternateResourceError() { @@ -10836,7 +10857,7 @@ public void TestInsufficientFundsError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", @@ -11005,7 +11026,7 @@ public void TestRecipientNotNotifiableError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd",