diff --git a/API_VERSION b/API_VERSION index cbfd144ed1..8e27f52b52 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -c5d9f47b11fbac901125e0621faadddc6ac6eb1e \ No newline at end of file +56689dcbcaa4c7ce6bf1b51a5add451972e0689c \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index af14d70f83..e5e94bd80f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,9 @@ This release changes the pinned API version to `2025-10-29.preview`. * Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `V2.Billing.BillSetting` ## 49.1.0 - 2025-10-29 + +This release changes the pinned API version to `2025-10-29.clover`. + * [#3236](https://github.com/stripe/stripe-dotnet/pull/3236) Update generated code * Improve docs for PaymentIntent related endpoints * [#3230](https://github.com/stripe/stripe-dotnet/pull/3230) Update generated code diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 76d911f49f..4dfe75c0ed 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2104 \ No newline at end of file +v2106 \ No newline at end of file diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs index d494ad6267..f0e57c0c83 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs @@ -149,6 +149,15 @@ public class RequestedSession : StripeEntity, IHasId, IHasMeta #endif public string PaymentMethod { get; set; } + /// + /// The preview of the payment method to be created when the requested session is confirmed. + /// + [JsonProperty("payment_method_preview")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_method_preview")] +#endif + public RequestedSessionPaymentMethodPreview PaymentMethodPreview { get; set; } + [JsonProperty("seller_details")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("seller_details")] diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionOrderDetails.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionOrderDetails.cs index ddbc0084a8..7fbe297366 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionOrderDetails.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionOrderDetails.cs @@ -16,5 +16,14 @@ public class RequestedSessionOrderDetails : StripeEntity + /// The seller's order identifier. + /// + [JsonProperty("order_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("order_id")] +#endif + public string OrderId { get; set; } } } diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreview.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreview.cs new file mode 100644 index 0000000000..ff0f5da4cb --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreview.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionPaymentMethodPreview : StripeEntity + { + /// + /// The billing details of the payment method. + /// + [JsonProperty("billing_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_details")] +#endif + public RequestedSessionPaymentMethodPreviewBillingDetails BillingDetails { get; set; } + + /// + /// The card details of the payment method. + /// + [JsonProperty("card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card")] +#endif + public RequestedSessionPaymentMethodPreviewCard Card { get; set; } + + /// + /// The type of the payment method. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewBillingDetails.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewBillingDetails.cs new file mode 100644 index 0000000000..6e543069cc --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewBillingDetails.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionPaymentMethodPreviewBillingDetails : StripeEntity + { + /// + /// The billing address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public RequestedSessionPaymentMethodPreviewBillingDetailsAddress Address { get; set; } + + /// + /// The email address for the billing details. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The name for the billing details. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// The phone number for the billing details. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewBillingDetailsAddress.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewBillingDetailsAddress.cs new file mode 100644 index 0000000000..85d9ca98be --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewBillingDetailsAddress.cs @@ -0,0 +1,66 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionPaymentMethodPreviewBillingDetailsAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("city")] +#endif + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Address line 1, such as the street, PO Box, or company name. + /// + [JsonProperty("line1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line1")] +#endif + public string Line1 { get; set; } + + /// + /// Address line 2, such as the apartment, suite, unit, or building. + /// + [JsonProperty("line2")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line2")] +#endif + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("postal_code")] +#endif + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("state")] +#endif + public string State { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewCard.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewCard.cs new file mode 100644 index 0000000000..a803962587 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionPaymentMethodPreviewCard.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionPaymentMethodPreviewCard : StripeEntity + { + /// + /// The expiry month of the card. + /// + [JsonProperty("exp_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("exp_month")] +#endif + public long ExpMonth { get; set; } + + /// + /// The expiry year of the card. + /// + [JsonProperty("exp_year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("exp_year")] +#endif + public long ExpYear { get; set; } + + /// + /// The last 4 digits of the card number. + /// + [JsonProperty("last4")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("last4")] +#endif + public string Last4 { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercial.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercial.cs index 69e9f173aa..5b8b3a5ad3 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercial.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercial.cs @@ -26,6 +26,15 @@ public class AccountConfigurationCardCreatorCapabilitiesCommercial : StripeEntit #endif public AccountConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank CrossRiverBank { get; set; } + /// + /// Can create commercial issuing cards with Lead as a BIN sponsor. + /// + [JsonProperty("lead")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lead")] +#endif + public AccountConfigurationCardCreatorCapabilitiesCommercialLead Lead { get; set; } + /// /// Can create commercial issuing cards with Stripe as a BIN sponsor. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLead.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLead.cs new file mode 100644 index 0000000000..b6927e8b66 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLead.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCardCreatorCapabilitiesCommercialLead : StripeEntity + { + /// + /// Can create commercial Global(cross border) issuing prepaid cards with Lead as BIN + /// sponsor. + /// + [JsonProperty("prepaid_card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prepaid_card")] +#endif + public AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard PrepaidCard { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard.cs new file mode 100644 index 0000000000..d9dfd995d4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard : StripeEntity + { + /// + /// Whether the Capability has been requested. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool Requested { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details regarding the status of the Capability. status_details will be + /// empty if the Capability's status is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardStatusDetail.cs new file mode 100644 index 0000000000..6a65893b22 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercial.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercial.cs index dd694be46f..ad5a1a2aa5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercial.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercial.cs @@ -35,5 +35,23 @@ public class AccountIdentityAttestationsTermsOfServiceCardCreatorCommercial : St [STJS.JsonPropertyName("cross_river_bank")] #endif public AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBank CrossRiverBank { get; set; } + + /// + /// Terms of service acceptances for Stripe commercial card Global issuing. + /// + [JsonProperty("global_account_holder")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("global_account_holder")] +#endif + public AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder GlobalAccountHolder { get; set; } + + /// + /// Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor. + /// + [JsonProperty("lead")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lead")] +#endif + public AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLead Lead { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder.cs new file mode 100644 index 0000000000..723b835323 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The URL to the service agreement the Account's representative accepted. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLead.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLead.cs new file mode 100644 index 0000000000..5e2d45950e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLead.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLead : StripeEntity + { + /// + /// Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN + /// sponsor. + /// + [JsonProperty("apple_pay")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("apple_pay")] +#endif + public AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay ApplePay { get; set; } + + /// + /// Terms of service acceptances for commercial issuing Global prepaid cards with Lead as + /// BIN sponsor. + /// + [JsonProperty("prepaid_card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prepaid_card")] +#endif + public AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard PrepaidCard { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay.cs new file mode 100644 index 0000000000..48c20a3db1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The URL to the service agreement the Account's representative accepted. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard.cs new file mode 100644 index 0000000000..5a03a1364b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard : StripeEntity + { + /// + /// Bank terms of service acceptance for commercial Global issuing prepaid cards with Lead + /// as BIN sponsor. + /// + [JsonProperty("bank_terms")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_terms")] +#endif + public AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms BankTerms { get; set; } + + /// + /// Platform terms of service acceptance for commercial Global issuing prepaid cards with + /// Lead as BIN sponsor. + /// + [JsonProperty("platform")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("platform")] +#endif + public AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform Platform { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms.cs new file mode 100644 index 0000000000..3762d4eb53 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The URL to the service agreement the Account's representative accepted. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform.cs new file mode 100644 index 0000000000..2476d7daef --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The URL to the service agreement the Account's representative accepted. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs index 5969597d60..a927c963d9 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs @@ -18,11 +18,11 @@ public class AccountRequirementsEntryImpactRestrictsCapability : StripeEntitycard_payments, cartes_bancaires_payments, cashapp_payments, /// commercial.celtic.charge_card, commercial.celtic.spend_card, /// commercial.cross_river_bank.charge_card, - /// commercial.cross_river_bank.spend_card, commercial.stripe.charge_card, - /// commercial.stripe.prepaid_card, crypto, eps_payments, - /// financial_addresses.bank_accounts, fpx_payments, - /// gb_bank_transfer_payments, grabpay_payments, holds_currencies.gbp, - /// holds_currencies.usd, ideal_payments, + /// commercial.cross_river_bank.spend_card, commercial.lead.prepaid_card, + /// commercial.stripe.charge_card, commercial.stripe.prepaid_card, + /// crypto, eps_payments, financial_addresses.bank_accounts, + /// fpx_payments, gb_bank_transfer_payments, grabpay_payments, + /// holds_currencies.gbp, holds_currencies.usd, ideal_payments, /// inbound_transfers.financial_accounts, jcb_payments, /// jp_bank_transfer_payments, kakao_pay_payments, klarna_payments, /// konbini_payments, kr_card_payments, link_payments, diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventData.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventData.cs index 803ecb80d6..783562f041 100644 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventData.cs +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventData.cs @@ -13,8 +13,8 @@ public class V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdat /// Open Enum. The capability which had its status updated. /// One of: commercial.celtic.charge_card, commercial.celtic.spend_card, /// commercial.cross_river_bank.charge_card, - /// commercial.cross_river_bank.spend_card, commercial.stripe.charge_card, or - /// commercial.stripe.prepaid_card. + /// commercial.cross_river_bank.spend_card, commercial.lead.prepaid_card, + /// commercial.stripe.charge_card, or commercial.stripe.prepaid_card. /// [JsonProperty("updated_capability")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadOptions.cs new file mode 100644 index 0000000000..ef1b5dafdf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadOptions : INestedOptions + { + /// + /// Can create commercial issuing prepaid cards with Lead as BIN sponsor. + /// + [JsonProperty("prepaid_card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prepaid_card")] +#endif + public AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions PrepaidCard { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions.cs new file mode 100644 index 0000000000..c45b4dc33b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialOptions.cs index bd61a1243c..2e82e51964 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationCardCreatorCapabilitiesCommercialOptions.cs @@ -26,6 +26,15 @@ public class AccountCreateConfigurationCardCreatorCapabilitiesCommercialOptions #endif public AccountCreateConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankOptions CrossRiverBank { get; set; } + /// + /// Can create commercial issuing cards with Stripe as BIN sponsor. + /// + [JsonProperty("lead")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lead")] +#endif + public AccountCreateConfigurationCardCreatorCapabilitiesCommercialLeadOptions Lead { get; set; } + /// /// Can create commercial issuing cards with Stripe as BIN sponsor. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions.cs new file mode 100644 index 0000000000..54b195ebe1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions.cs new file mode 100644 index 0000000000..bf88c01850 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions.cs new file mode 100644 index 0000000000..cbee02336f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions : INestedOptions + { + /// + /// Terms of service acceptances for commercial issuing Apple Pay cards with Lead as BIN + /// sponsor. + /// + [JsonProperty("apple_pay")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("apple_pay")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions ApplePay { get; set; } + + /// + /// Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN + /// sponsor. + /// + [JsonProperty("prepaid_card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prepaid_card")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions PrepaidCard { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions.cs new file mode 100644 index 0000000000..c98d23b188 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions.cs new file mode 100644 index 0000000000..825314e8f4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions : INestedOptions + { + /// + /// Bank terms of service acceptance for commercial issuing prepaid cards with Lead as BIN + /// sponsor. + /// + [JsonProperty("bank_terms")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_terms")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions BankTerms { get; set; } + + /// + /// Platform terms of service acceptance for commercial issuing prepaid cards with Lead as + /// BIN sponsor. + /// + [JsonProperty("platform")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("platform")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions Platform { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions.cs new file mode 100644 index 0000000000..26d3e0c30d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs index 4b4fc0178e..2628d05a28 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs @@ -35,5 +35,23 @@ public class AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercia [STJS.JsonPropertyName("cross_river_bank")] #endif public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankOptions CrossRiverBank { get; set; } + + /// + /// Terms of service acceptances for Stripe commercial card Global issuing. + /// + [JsonProperty("global_account_holder")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("global_account_holder")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions GlobalAccountHolder { get; set; } + + /// + /// Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor. + /// + [JsonProperty("lead")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lead")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions Lead { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadOptions.cs new file mode 100644 index 0000000000..1f92765150 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadOptions : INestedOptions + { + /// + /// Can create commercial issuing prepaid cards with Lead as BIN sponsor. + /// + [JsonProperty("prepaid_card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prepaid_card")] +#endif + public AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions PrepaidCard { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions.cs new file mode 100644 index 0000000000..5210bc2f66 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCardOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialOptions.cs index 54e9b6f07f..c50fe7a8dc 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCardCreatorCapabilitiesCommercialOptions.cs @@ -26,6 +26,15 @@ public class AccountUpdateConfigurationCardCreatorCapabilitiesCommercialOptions #endif public AccountUpdateConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankOptions CrossRiverBank { get; set; } + /// + /// Can create commercial issuing cards with Lead as BIN sponsor. + /// + [JsonProperty("lead")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lead")] +#endif + public AccountUpdateConfigurationCardCreatorCapabilitiesCommercialLeadOptions Lead { get; set; } + /// /// Can create commercial issuing cards with Stripe as BIN sponsor. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions.cs new file mode 100644 index 0000000000..7999c7e118 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions.cs new file mode 100644 index 0000000000..3d8c89b8c9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions.cs new file mode 100644 index 0000000000..b124c51010 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions : INestedOptions + { + /// + /// Terms of service acceptances for commercial issuing Apple Pay cards with Lead as BIN + /// sponsor. + /// + [JsonProperty("apple_pay")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("apple_pay")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePayOptions ApplePay { get; set; } + + /// + /// Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN + /// sponsor. + /// + [JsonProperty("prepaid_card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("prepaid_card")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions PrepaidCard { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions.cs new file mode 100644 index 0000000000..3b08812a90 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions.cs new file mode 100644 index 0000000000..f0a79ff137 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardOptions : INestedOptions + { + /// + /// Bank terms of service acceptance for commercial issuing prepaid cards with Lead as BIN + /// sponsor. + /// + [JsonProperty("bank_terms")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_terms")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTermsOptions BankTerms { get; set; } + + /// + /// Platform terms of service acceptance for commercial issuing prepaid cards with Lead as + /// BIN sponsor. + /// + [JsonProperty("platform")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("platform")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions Platform { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions.cs new file mode 100644 index 0000000000..95af7a38a5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatformOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs index adbfbe9c2a..22f0935813 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialOptions.cs @@ -35,5 +35,23 @@ public class AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercia [STJS.JsonPropertyName("cross_river_bank")] #endif public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankOptions CrossRiverBank { get; set; } + + /// + /// Terms of service acceptances for Stripe commercial card Global issuing. + /// + [JsonProperty("global_account_holder")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("global_account_holder")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolderOptions GlobalAccountHolder { get; set; } + + /// + /// Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor. + /// + [JsonProperty("lead")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lead")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadOptions Lead { get; set; } } }