From 8c42f40c8b9be4eb5fcd6e6540327f8d69bf0ba8 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:18:30 +0000 Subject: [PATCH 01/10] Update generated code for v1357 --- OPENAPI_VERSION | 2 +- .../ChargePaymentMethodDetailsAmazonPay.cs | 4 ++ ...rgePaymentMethodDetailsAmazonPayFunding.cs | 17 +++++++ ...aymentMethodDetailsAmazonPayFundingCard.cs | 48 +++++++++++++++++++ .../ChargePaymentMethodDetailsRevolutPay.cs | 4 ++ ...gePaymentMethodDetailsRevolutPayFunding.cs | 17 +++++++ ...ymentMethodDetailsRevolutPayFundingCard.cs | 48 +++++++++++++++++++ 7 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFunding.cs create mode 100644 src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs create mode 100644 src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFunding.cs create mode 100644 src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 20cbdd3048..d469526029 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1356 \ No newline at end of file +v1357 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPay.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPay.cs index 2d16f581bd..41cd52feb8 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPay.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPay.cs @@ -1,7 +1,11 @@ // File generated from our OpenAPI spec namespace Stripe { + using Newtonsoft.Json; + public class ChargePaymentMethodDetailsAmazonPay : StripeEntity { + [JsonProperty("funding")] + public ChargePaymentMethodDetailsAmazonPayFunding Funding { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFunding.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFunding.cs new file mode 100644 index 0000000000..2b54c00964 --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFunding.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class ChargePaymentMethodDetailsAmazonPayFunding : StripeEntity + { + [JsonProperty("card")] + public ChargePaymentMethodDetailsAmazonPayFundingCard Card { get; set; } + + /// + /// funding type of the underlying payment method. + /// + [JsonProperty("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs new file mode 100644 index 0000000000..c5b6a9ca17 --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class ChargePaymentMethodDetailsAmazonPayFundingCard : StripeEntity + { + /// + /// Card brand. Can be amex, diners, discover, eftpos_au, + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. + /// + [JsonProperty("brand")] + public string Brand { get; set; } + + /// + /// Two-letter ISO code representing the country of the card. You could use this attribute + /// to get a sense of the international breakdown of cards you've collected. + /// + [JsonProperty("country")] + public string Country { get; set; } + + /// + /// Two-digit number representing the card's expiration month. + /// + [JsonProperty("exp_month")] + public long? ExpMonth { get; set; } + + /// + /// Four-digit number representing the card's expiration year. + /// + [JsonProperty("exp_year")] + public long? ExpYear { get; set; } + + /// + /// Card funding type. Can be credit, debit, prepaid, or + /// unknown. + /// + [JsonProperty("funding")] + public string Funding { get; set; } + + /// + /// The last four digits of the card. + /// + [JsonProperty("last4")] + public string Last4 { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPay.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPay.cs index 037dd94070..8e705a5aec 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPay.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPay.cs @@ -1,7 +1,11 @@ // File generated from our OpenAPI spec namespace Stripe { + using Newtonsoft.Json; + public class ChargePaymentMethodDetailsRevolutPay : StripeEntity { + [JsonProperty("funding")] + public ChargePaymentMethodDetailsRevolutPayFunding Funding { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFunding.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFunding.cs new file mode 100644 index 0000000000..0b797ad880 --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFunding.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class ChargePaymentMethodDetailsRevolutPayFunding : StripeEntity + { + [JsonProperty("card")] + public ChargePaymentMethodDetailsRevolutPayFundingCard Card { get; set; } + + /// + /// funding type of the underlying payment method. + /// + [JsonProperty("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs new file mode 100644 index 0000000000..501482796d --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class ChargePaymentMethodDetailsRevolutPayFundingCard : StripeEntity + { + /// + /// Card brand. Can be amex, diners, discover, eftpos_au, + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. + /// + [JsonProperty("brand")] + public string Brand { get; set; } + + /// + /// Two-letter ISO code representing the country of the card. You could use this attribute + /// to get a sense of the international breakdown of cards you've collected. + /// + [JsonProperty("country")] + public string Country { get; set; } + + /// + /// Two-digit number representing the card's expiration month. + /// + [JsonProperty("exp_month")] + public long? ExpMonth { get; set; } + + /// + /// Four-digit number representing the card's expiration year. + /// + [JsonProperty("exp_year")] + public long? ExpYear { get; set; } + + /// + /// Card funding type. Can be credit, debit, prepaid, or + /// unknown. + /// + [JsonProperty("funding")] + public string Funding { get; set; } + + /// + /// The last four digits of the card. + /// + [JsonProperty("last4")] + public string Last4 { get; set; } + } +} From 6fe7b6145b7ed4ca15e65fb29acac6a5bb81dcf3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:48:16 +0000 Subject: [PATCH 02/10] Update generated code for v1358 --- OPENAPI_VERSION | 2 +- src/Stripe.net/Entities/Charges/ChargeOutcome.cs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d469526029..dc09197e85 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1357 \ No newline at end of file +v1358 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Charges/ChargeOutcome.cs b/src/Stripe.net/Entities/Charges/ChargeOutcome.cs index 727bdfccd9..80b5b5cbaa 100644 --- a/src/Stripe.net/Entities/Charges/ChargeOutcome.cs +++ b/src/Stripe.net/Entities/Charges/ChargeOutcome.cs @@ -6,6 +6,20 @@ namespace Stripe public class ChargeOutcome : StripeEntity { + /// + /// For charges declined by the network, a 2 digit code which indicates the advice returned + /// by the network on how to proceed with an error. + /// + [JsonProperty("network_advice_code")] + public string NetworkAdviceCode { get; set; } + + /// + /// For charges declined by the network, a brand specific 2, 3, or 4 digit code which + /// indicates the reason the authorization failed. + /// + [JsonProperty("network_decline_code")] + public string NetworkDeclineCode { get; set; } + /// /// Possible values are approved_by_network, declined_by_network, /// not_sent_to_network, and reversed_after_approval. The value From 9405f45310cf1a78fa36ead2a8848cc84013a9e9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:30:30 +0000 Subject: [PATCH 03/10] Update generated code for v1359 --- OPENAPI_VERSION | 2 +- .../Services/Terminal/Locations/LocationUpdateOptions.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dc09197e85..c20f8e67ef 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1358 \ No newline at end of file +v1359 \ No newline at end of file diff --git a/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs index a9cb7ba9b3..273fbb72e6 100644 --- a/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Locations/LocationUpdateOptions.cs @@ -7,9 +7,9 @@ namespace Stripe.Terminal public class LocationUpdateOptions : BaseOptions, IHasMetadata { /// - /// The full address of the location. If you're updating the address field, avoid - /// changing the country. If you need to modify the country field, create a - /// new Location object and re-register any existing readers to that location. + /// The full address of the location. You can't change the location's country. If you + /// need to modify the country field, create a new Location object and + /// re-register any existing readers to that location. /// [JsonProperty("address")] public AddressOptions Address { get; set; } From 303a5be2f611ed2b0fd231bd7825c8c9b7ca66e6 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:34:48 +0000 Subject: [PATCH 04/10] Update generated code for v1362 --- OPENAPI_VERSION | 2 +- src/Stripe.net/Constants/EventTypes.cs | 5 +++++ src/Stripe.net/Entities/Events/Event.cs | 12 ++++++------ .../WebhookEndpoints/WebhookEndpointCreateOptions.cs | 12 ++++++------ .../WebhookEndpoints/WebhookEndpointUpdateOptions.cs | 12 ++++++------ 5 files changed, 24 insertions(+), 19 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c20f8e67ef..6ccc407d42 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1359 \ No newline at end of file +v1362 \ No newline at end of file diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs index e9652b9954..8303a93ce6 100644 --- a/src/Stripe.net/Constants/EventTypes.cs +++ b/src/Stripe.net/Constants/EventTypes.cs @@ -586,6 +586,11 @@ public static class EventTypes /// public const string InvoiceOverdue = "invoice.overdue"; + /// + /// Occurs when an invoice transitions to paid with a non-zero amount_overpaid. + /// + public const string InvoiceOverpaid = "invoice.overpaid"; + /// /// Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid /// out-of-band. diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index aeeeb60666..6cc08f8a35 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -164,12 +164,12 @@ public class Event : StripeEntity, IHasId, IHasObject /// identity.verification_session.requires_input, /// identity.verification_session.verified, invoice.created, /// invoice.deleted, invoice.finalization_failed, invoice.finalized, - /// invoice.marked_uncollectible, invoice.overdue, invoice.paid, - /// invoice.payment.overpaid, invoice.payment_action_required, - /// invoice.payment_attempt_required, invoice.payment_failed, - /// invoice.payment_succeeded, invoice.sent, invoice.upcoming, - /// invoice.updated, invoice.voided, invoice.will_be_due, - /// invoiceitem.created, invoiceitem.deleted, + /// invoice.marked_uncollectible, invoice.overdue, invoice.overpaid, + /// invoice.paid, invoice.payment.overpaid, + /// invoice.payment_action_required, invoice.payment_attempt_required, + /// invoice.payment_failed, invoice.payment_succeeded, invoice.sent, + /// invoice.upcoming, invoice.updated, invoice.voided, + /// invoice.will_be_due, invoiceitem.created, invoiceitem.deleted, /// issuing_authorization.created, issuing_authorization.request, /// issuing_authorization.updated, issuing_card.created, /// issuing_card.updated, issuing_cardholder.created, diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 6951e159ad..8f10c6b095 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -116,12 +116,12 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// identity.verification_session.requires_input, /// identity.verification_session.verified, invoice.created, /// invoice.deleted, invoice.finalization_failed, invoice.finalized, - /// invoice.marked_uncollectible, invoice.overdue, invoice.paid, - /// invoice.payment.overpaid, invoice.payment_action_required, - /// invoice.payment_attempt_required, invoice.payment_failed, - /// invoice.payment_succeeded, invoice.sent, invoice.upcoming, - /// invoice.updated, invoice.voided, invoice.will_be_due, - /// invoiceitem.created, invoiceitem.deleted, + /// invoice.marked_uncollectible, invoice.overdue, invoice.overpaid, + /// invoice.paid, invoice.payment.overpaid, + /// invoice.payment_action_required, invoice.payment_attempt_required, + /// invoice.payment_failed, invoice.payment_succeeded, invoice.sent, + /// invoice.upcoming, invoice.updated, invoice.voided, + /// invoice.will_be_due, invoiceitem.created, invoiceitem.deleted, /// issuing_authorization.created, issuing_authorization.request, /// issuing_authorization.updated, issuing_card.created, /// issuing_card.updated, issuing_cardholder.created, diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index c46fcf373c..02e8562e7a 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -81,12 +81,12 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// identity.verification_session.requires_input, /// identity.verification_session.verified, invoice.created, /// invoice.deleted, invoice.finalization_failed, invoice.finalized, - /// invoice.marked_uncollectible, invoice.overdue, invoice.paid, - /// invoice.payment.overpaid, invoice.payment_action_required, - /// invoice.payment_attempt_required, invoice.payment_failed, - /// invoice.payment_succeeded, invoice.sent, invoice.upcoming, - /// invoice.updated, invoice.voided, invoice.will_be_due, - /// invoiceitem.created, invoiceitem.deleted, + /// invoice.marked_uncollectible, invoice.overdue, invoice.overpaid, + /// invoice.paid, invoice.payment.overpaid, + /// invoice.payment_action_required, invoice.payment_attempt_required, + /// invoice.payment_failed, invoice.payment_succeeded, invoice.sent, + /// invoice.upcoming, invoice.updated, invoice.voided, + /// invoice.will_be_due, invoiceitem.created, invoiceitem.deleted, /// issuing_authorization.created, issuing_authorization.request, /// issuing_authorization.updated, issuing_card.created, /// issuing_card.updated, issuing_cardholder.created, From fa072ca14982403e1df9556bff160309c5fb2c75 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:24:00 +0000 Subject: [PATCH 05/10] Update generated code for v1365 --- OPENAPI_VERSION | 2 +- .../AccountSessionComponentsAccountManagementFeatures.cs | 8 ++++---- .../AccountSessionComponentsAccountOnboardingFeatures.cs | 8 ++++---- .../AccountSessionComponentsBalancesFeatures.cs | 8 ++++---- .../AccountSessionComponentsNotificationBannerFeatures.cs | 8 ++++---- .../AccountSessionComponentsPayoutsFeatures.cs | 8 ++++---- ...ntSessionComponentsAccountManagementFeaturesOptions.cs | 8 ++++---- ...ntSessionComponentsAccountOnboardingFeaturesOptions.cs | 8 ++++---- .../AccountSessionComponentsBalancesFeaturesOptions.cs | 8 ++++---- ...untSessionComponentsFinancialAccountFeaturesOptions.cs | 8 ++++---- ...tSessionComponentsNotificationBannerFeaturesOptions.cs | 8 ++++---- .../AccountSessionComponentsPayoutsFeaturesOptions.cs | 8 ++++---- 12 files changed, 45 insertions(+), 45 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6ccc407d42..998a0ecff3 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1362 \ No newline at end of file +v1365 \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs index 5d1a954b53..c6038a5cde 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsAccountManagementFeatures : StripeEntity /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs index c937b7d582..d0e23e34a0 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs index cc0aab2487..7e06736219 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs index 655f784ba8..0c9e469d20 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs index 0285e8cd5a..b473297301 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs index 68ccd0120a..37dd1a8fb1 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsAccountManagementFeaturesOptions : INestedO { /// /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool? DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs index f0ec01c832..d4366fd088 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsAccountOnboardingFeaturesOptions : INestedO { /// /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool? DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs index f36d312acd..f8aa614802 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions { /// /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool? DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs index a3d9705c35..fd27c976df 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsFinancialAccountFeaturesOptions : INestedOp { /// /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool? DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs index 8c71ecba66..5de881d382 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsNotificationBannerFeaturesOptions : INested { /// /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool? DisableStripeUserAuthentication { get; set; } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs index 93521c2573..ebb666ed9e 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs @@ -7,10 +7,10 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions { /// /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. The default value for this feature - /// is false when external_account_collection is enabled and true - /// otherwise. + /// be true for accounts where you’re responsible for collecting updated information + /// when requirements are due or change, like Custom accounts. The default value for this + /// feature is false when external_account_collection is enabled and + /// true otherwise. /// [JsonProperty("disable_stripe_user_authentication")] public bool? DisableStripeUserAuthentication { get; set; } From 4e8f09143f57429683aceacf3e3085ce277c3d4d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 00:30:25 +0000 Subject: [PATCH 06/10] Update generated code for v1366 --- OPENAPI_VERSION | 2 +- .../Sessions/SessionPermissionsUpdate.cs | 15 ++++++++++++++ src/Stripe.net/Entities/LineItems/LineItem.cs | 16 ++++++++++++++- .../LineItems/LineItemAdjustableQuantity.cs | 17 ++++++++++++++++ .../Entities/LineItems/LineItemDisplay.cs | 18 +++++++++++++++++ ...essionLineItemAdjustableQuantityOptions.cs | 3 ++- .../Sessions/SessionLineItemOptions.cs | 17 +++++++++++++++- .../SessionPermissionsUpdateOptions.cs | 15 ++++++++++++++ .../Checkout/Sessions/SessionUpdateOptions.cs | 20 +++++++++++++++++++ 9 files changed, 119 insertions(+), 4 deletions(-) create mode 100644 src/Stripe.net/Entities/LineItems/LineItemAdjustableQuantity.cs create mode 100644 src/Stripe.net/Entities/LineItems/LineItemDisplay.cs diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 998a0ecff3..fc4d95130a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1365 \ No newline at end of file +v1366 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPermissionsUpdate.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPermissionsUpdate.cs index 5f91a95912..d190092e1d 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPermissionsUpdate.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPermissionsUpdate.cs @@ -5,6 +5,21 @@ namespace Stripe.Checkout public class SessionPermissionsUpdate : StripeEntity { + /// + /// Determines which entity is allowed to update the line items. + /// + /// Default is client_only. Stripe Checkout client will automatically update the line + /// items. If set to server_only, only your server is allowed to update the line + /// items. + /// + /// When set to server_only, you must add the onLineItemsChange event handler when + /// initializing the Stripe Checkout client and manually update the line items from your + /// server using the Stripe API. + /// One of: client_only, or server_only. + /// + [JsonProperty("line_items")] + public string LineItems { get; set; } + /// /// Determines which entity is allowed to update the shipping details. /// diff --git a/src/Stripe.net/Entities/LineItems/LineItem.cs b/src/Stripe.net/Entities/LineItems/LineItem.cs index ba33c3dd94..c600321d0d 100644 --- a/src/Stripe.net/Entities/LineItems/LineItem.cs +++ b/src/Stripe.net/Entities/LineItems/LineItem.cs @@ -8,7 +8,7 @@ namespace Stripe /// /// A line item. /// - public class LineItem : StripeEntity, IHasId, IHasObject + public class LineItem : StripeEntity, IHasId, IHasMetadata, IHasObject { /// /// Unique identifier for the object. @@ -22,6 +22,9 @@ public class LineItem : StripeEntity, IHasId, IHasObject [JsonProperty("object")] public string Object { get; set; } + [JsonProperty("adjustable_quantity")] + public LineItemAdjustableQuantity AdjustableQuantity { get; set; } + /// /// Total discount amount applied. If no discounts were applied, defaults to 0. /// @@ -73,6 +76,17 @@ public class LineItem : StripeEntity, IHasId, IHasObject [JsonProperty("discounts")] public List Discounts { get; set; } + [JsonProperty("display")] + public LineItemDisplay Display { get; set; } + + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. + /// + [JsonProperty("metadata")] + public Dictionary Metadata { get; set; } + /// /// The price used to generate the line item. /// diff --git a/src/Stripe.net/Entities/LineItems/LineItemAdjustableQuantity.cs b/src/Stripe.net/Entities/LineItems/LineItemAdjustableQuantity.cs new file mode 100644 index 0000000000..584ab0c92b --- /dev/null +++ b/src/Stripe.net/Entities/LineItems/LineItemAdjustableQuantity.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class LineItemAdjustableQuantity : StripeEntity + { + [JsonProperty("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("maximum")] + public long? Maximum { get; set; } + + [JsonProperty("minimum")] + public long? Minimum { get; set; } + } +} diff --git a/src/Stripe.net/Entities/LineItems/LineItemDisplay.cs b/src/Stripe.net/Entities/LineItems/LineItemDisplay.cs new file mode 100644 index 0000000000..5b6a62856b --- /dev/null +++ b/src/Stripe.net/Entities/LineItems/LineItemDisplay.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; + + public class LineItemDisplay : StripeEntity + { + [JsonProperty("description")] + public string Description { get; set; } + + [JsonProperty("images")] + public List Images { get; set; } + + [JsonProperty("name")] + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs index 91ee753b30..a64cff6cf9 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs @@ -6,7 +6,8 @@ namespace Stripe.Checkout public class SessionLineItemAdjustableQuantityOptions : INestedOptions { /// - /// Set to true if the quantity can be adjusted to any non-negative integer. + /// Set to true if the quantity can be adjusted to any positive integer. Setting to false + /// will remove any previously specified constraints on quantity. /// [JsonProperty("enabled")] public bool? Enabled { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs index fc14c3f0aa..38119e1add 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs @@ -4,7 +4,7 @@ namespace Stripe.Checkout using System.Collections.Generic; using Newtonsoft.Json; - public class SessionLineItemOptions : INestedOptions + public class SessionLineItemOptions : INestedOptions, IHasMetadata, IHasId { /// /// When set, provides configuration for this item’s quantity to be adjusted by the customer @@ -21,6 +21,21 @@ public class SessionLineItemOptions : INestedOptions [JsonProperty("dynamic_tax_rates")] public List DynamicTaxRates { get; set; } + /// + /// ID of an existing line item. + /// + [JsonProperty("id")] + public string Id { get; set; } + + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// + [JsonProperty("metadata")] + public Dictionary Metadata { get; set; } + /// /// The ID of the Price or Plan object. One of price or diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsUpdateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsUpdateOptions.cs index f9e79469f5..e4aa4c29c7 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsUpdateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsUpdateOptions.cs @@ -5,6 +5,21 @@ namespace Stripe.Checkout public class SessionPermissionsUpdateOptions : INestedOptions { + /// + /// Determines which entity is allowed to update the line items. + /// + /// Default is client_only. Stripe Checkout client will automatically update the line + /// items. If set to server_only, only your server is allowed to update the line + /// items. + /// + /// When set to server_only, you must add the onLineItemsChange event handler when + /// initializing the Stripe Checkout client and manually update the line items from your + /// server using the Stripe API. + /// One of: client_only, or server_only. + /// + [JsonProperty("line_items")] + public string LineItems { get; set; } + /// /// Determines which entity is allowed to update the shipping details. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs index fb089fe613..e51302c174 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs @@ -12,6 +12,26 @@ public class SessionUpdateOptions : BaseOptions, IHasMetadata [JsonProperty("collected_information")] public SessionCollectedInformationOptions CollectedInformation { get; set; } + /// + /// A list of items the customer is purchasing. + /// + /// When updating line items, the entire array of line items must be retransmitted. + /// + /// To retain an existing line item, specify its id. + /// + /// To update an existing line item, specify its id along with the new values of the + /// fields to be updated. + /// + /// To add a new line item, specify a price and quantity. Recurring prices are + /// not supported yet. + /// + /// To remove an existing line item, omit the line item's ID from the retransmitted array. + /// + /// To reorder a line item, specify it at the desired position in the retransmitted array. + /// + [JsonProperty("line_items")] + public List LineItems { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the From 67e233eda06dbc55b3b05825e9eec45aa8c4831e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:50:32 +0000 Subject: [PATCH 07/10] Update generated code for v1368 --- OPENAPI_VERSION | 2 +- .../Checkout/Sessions/SessionAutomaticTaxOptions.cs | 6 +++++- .../Services/PaymentLinks/PaymentLinkAutomaticTaxOptions.cs | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fc4d95130a..e16afd5cbb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1366 \ No newline at end of file +v1368 \ No newline at end of file diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxOptions.cs index 5ce3974693..a69fafc391 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxOptions.cs @@ -6,7 +6,11 @@ namespace Stripe.Checkout public class SessionAutomaticTaxOptions : INestedOptions { /// - /// Set to true to enable automatic taxes. + /// Set to true to calculate tax + /// automatically using the customer's location. + /// + /// Enabling this parameter causes Checkout to collect any billing address information + /// necessary for tax calculation. /// [JsonProperty("enabled")] public bool? Enabled { get; set; } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxOptions.cs index 09467817a9..b3958a3118 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxOptions.cs @@ -6,7 +6,11 @@ namespace Stripe public class PaymentLinkAutomaticTaxOptions : INestedOptions { /// - /// If true, tax will be calculated automatically using the customer's location. + /// Set to true to calculate tax + /// automatically using the customer's location. + /// + /// Enabling this parameter causes the payment link to collect any billing address + /// information necessary for tax calculation. /// [JsonProperty("enabled")] public bool? Enabled { get; set; } From 32781bb500dfc685824a26235004aab791e261e9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:49:21 +0000 Subject: [PATCH 08/10] Update generated code for v1369 --- OPENAPI_VERSION | 2 +- .../Charges/ChargePaymentMethodDetailsCard.cs | 9 +++++++++ ...mentMethodDetailsCardPartialAuthorization.cs | 17 +++++++++++++++++ .../PaymentIntentPaymentMethodOptionsCard.cs | 7 +++++++ ...aymentIntentIncrementAuthorizationOptions.cs | 6 ++++++ ...mentIntentPaymentMethodOptionsCardOptions.cs | 7 +++++++ 6 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPartialAuthorization.cs diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e16afd5cbb..4b855ecebb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1368 \ No newline at end of file +v1369 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs index 96c572fd54..e28efdcff3 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs @@ -13,6 +13,12 @@ public class ChargePaymentMethodDetailsCard : StripeEntity + /// The latest amount intended to be authorized by this charge. + /// + [JsonProperty("amount_requested")] + public long? AmountRequested { get; set; } + /// /// Authorization code on the charge. /// @@ -158,6 +164,9 @@ public class ChargePaymentMethodDetailsCard : StripeEntity /// Populated if this transaction used 3D Secure authentication. /// diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPartialAuthorization.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPartialAuthorization.cs new file mode 100644 index 0000000000..ecc5dd80b2 --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPartialAuthorization.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class ChargePaymentMethodDetailsCardPartialAuthorization : StripeEntity + { + /// + /// Indicates whether the transaction requested for partial authorization feature and the + /// authorization outcome. + /// One of: declined, fully_authorized, not_requested, or + /// partially_authorized. + /// + [JsonProperty("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs index 978f3a2f4d..9c255ff1b9 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs @@ -80,6 +80,13 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity + /// Request partial authorization on this PaymentIntent. + /// One of: if_available, or never. + /// + [JsonProperty("request_partial_authorization")] + public string RequestPartialAuthorization { get; set; } + /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and Metadata { get; set; } + /// + /// Payment method-specific configuration for this PaymentIntent. + /// + [JsonProperty("payment_method_options")] + public PaymentIntentPaymentMethodOptionsOptions PaymentMethodOptions { get; set; } + /// /// Text that appears on the customer's statement as the statement descriptor for a non-card /// or card charge. This value overrides the account's default statement descriptor. For diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs index 83e12558c7..0625e82432 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs @@ -103,6 +103,13 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions [JsonProperty("request_overcapture")] public string RequestOvercapture { get; set; } + /// + /// Request partial authorization on this PaymentIntent. + /// One of: if_available, or never. + /// + [JsonProperty("request_partial_authorization")] + public string RequestPartialAuthorization { get; set; } + /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and Date: Wed, 20 Nov 2024 23:30:33 +0000 Subject: [PATCH 09/10] Update generated code (#3025) * Update generated code for v1328 * Update generated code for v1332 * Update generated code for v1341 * Update generated code for v1347 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/Stripe.net/Constants/ApiVersion.cs | 2 +- src/Stripe.net/Constants/FilePurpose.cs | 2 ++ .../Accounts/AccountFutureRequirements.cs | 8 ++++- .../Entities/Accounts/AccountRequirements.cs | 12 ++++--- .../Billing/CreditGrants/CreditGrant.cs | 17 +++++----- .../CreditGrantApplicabilityConfigScope.cs | 2 +- .../Charges/ChargePaymentMethodDetailsCard.cs | 7 ++-- .../ChargePaymentMethodDetailsCardPresent.cs | 7 ++-- ...hargePaymentMethodDetailsInteracPresent.cs | 4 +-- .../Entities/Checkout/Sessions/Session.cs | 9 ++++- .../Sessions/SessionAdaptivePricing.cs | 14 ++++++++ .../Sessions/SessionCustomerDetailsTaxId.cs | 33 ++++++++++--------- .../SessionPaymentMethodOptionsBacsDebit.cs | 3 ++ ...entMethodOptionsBacsDebitMandateOptions.cs | 7 ++++ .../SessionPaymentMethodOptionsCard.cs | 33 +++++++++++++++++++ .../SessionPaymentMethodOptionsSepaDebit.cs | 3 ++ ...entMethodOptionsSepaDebitMandateOptions.cs | 7 ++++ ...nfirmationTokenPaymentMethodPreviewCard.cs | 3 +- ...atedFromPaymentMethodDetailsCardPresent.cs | 7 ++-- ...ionTokenPaymentMethodPreviewCardPresent.cs | 3 +- .../DisputePaymentMethodDetailsCard.cs | 3 +- src/Stripe.net/Entities/Files/File.cs | 2 +- ...ructionsBankTransferFinancialAddressAba.cs | 18 ++++++++++ ...ctionsBankTransferFinancialAddressSwift.cs | 18 ++++++++++ .../VerificationReports/VerificationReport.cs | 2 +- .../VerificationSession.cs | 2 +- .../Entities/Invoices/InvoiceCustomerTaxId.cs | 33 ++++++++++--------- .../Issuing/Authorizations/Authorization.cs | 19 +++++++++-- .../AuthorizationFraudChallenge.cs | 29 ++++++++++++++++ .../Issuing/Cardholders/Cardholder.cs | 5 +-- src/Stripe.net/Entities/Issuing/Cards/Card.cs | 9 ++--- .../Entities/PaymentIntents/PaymentIntent.cs | 4 ++- ...TransferInstructionsFinancialAddressAba.cs | 18 ++++++++++ ...ansferInstructionsFinancialAddressSwift.cs | 18 ++++++++++ .../PaymentIntentPaymentMethodOptionsCard.cs | 4 +-- .../Entities/PaymentLinks/PaymentLink.cs | 2 +- .../PaymentMethods/PaymentMethodCard.cs | 3 +- ...atedFromPaymentMethodDetailsCardPresent.cs | 7 ++-- .../PaymentMethodCardPresent.cs | 3 +- src/Stripe.net/Entities/Payouts/Payout.cs | 7 ++++ .../Entities/Payouts/PayoutTraceId.cs | 25 ++++++++++++++ .../Entities/Persons/PersonRelationship.cs | 6 ++++ .../Refunds/RefundDestinationDetailsBlik.cs | 7 ++++ .../Refunds/RefundDestinationDetailsSwish.cs | 7 ++++ .../SetupAttemptPaymentMethodDetailsCard.cs | 7 ++-- .../Entities/SetupIntents/SetupIntent.cs | 4 ++- .../SetupIntentPaymentMethodOptionsCard.cs | 4 +-- .../Entities/Subscriptions/Subscription.cs | 9 ++--- ...PaymentSettingsPaymentMethodOptionsCard.cs | 4 +-- ...ationLineItemTaxBreakdownTaxRateDetails.cs | 3 +- .../CalculationCustomerDetailsTaxId.cs | 33 ++++++++++--------- ...nShippingCostTaxBreakdownTaxRateDetails.cs | 3 +- .../CalculationTaxBreakdownTaxRateDetails.cs | 3 +- .../TransactionCustomerDetailsTaxId.cs | 33 ++++++++++--------- ...nShippingCostTaxBreakdownTaxRateDetails.cs | 3 +- src/Stripe.net/Entities/TaxIds/TaxId.cs | 31 ++++++++--------- src/Stripe.net/Entities/TaxRates/TaxRate.cs | 3 +- .../AccountPersonRelationshipOptions.cs | 7 ++++ ...eSummaryFilterApplicabilityScopeOptions.cs | 2 +- ...ditGrantApplicabilityConfigScopeOptions.cs | 2 +- .../CreditGrants/CreditGrantCreateOptions.cs | 13 ++++---- .../CreditGrants/CreditGrantService.cs | 16 ++++----- .../CreditGrants/CreditGrantUpdateOptions.cs | 9 ++--- .../MeterEvents/MeterEventCreateOptions.cs | 9 +++-- .../Sessions/SessionAdaptivePricingOptions.cs | 17 ++++++++++ .../Checkout/Sessions/SessionCreateOptions.cs | 9 ++++- ...odOptionsBacsDebitMandateOptionsOptions.cs | 7 ++++ ...ionPaymentMethodOptionsBacsDebitOptions.cs | 6 ++++ .../SessionPaymentMethodOptionsCardOptions.cs | 33 +++++++++++++++++++ ...sionPaymentMethodOptionsKakaoPayOptions.cs | 6 ++++ ...essionPaymentMethodOptionsKrCardOptions.cs | 6 ++++ ...sionPaymentMethodOptionsNaverPayOptions.cs | 6 ++++ .../SessionPaymentMethodOptionsOptions.cs | 2 +- ...SessionPaymentMethodOptionsPaycoOptions.cs | 7 ++++ ...onPaymentMethodOptionsSamsungPayOptions.cs | 7 ++++ ...odOptionsSepaDebitMandateOptionsOptions.cs | 7 ++++ ...ionPaymentMethodOptionsSepaDebitOptions.cs | 6 ++++ ...SessionShippingAddressCollectionOptions.cs | 3 +- .../CustomerTaxIdCreateOptions.cs | 28 ++++++++-------- .../Customers/CustomerTaxIdDataOptions.cs | 28 ++++++++-------- .../FileLinks/FileLinkCreateOptions.cs | 2 +- .../Services/Files/FileListOptions.cs | 2 +- .../VerificationSessionCreateOptions.cs | 2 +- ...oiceLineItemTaxAmountTaxRateDataOptions.cs | 3 +- ...pcomingLinesCustomerDetailsTaxIdOptions.cs | 28 ++++++++-------- .../InvoiceCustomerDetailsTaxIdOptions.cs | 28 ++++++++-------- .../InvoiceLineTaxAmountTaxRateDataOptions.cs | 3 +- .../PaymentIntentCreateOptions.cs | 10 +++--- ...ntIntentPaymentMethodOptionsCardOptions.cs | 4 +-- .../PaymentIntentUpdateOptions.cs | 4 ++- .../PaymentLinks/PaymentLinkCreateOptions.cs | 2 +- ...entLinkShippingAddressCollectionOptions.cs | 3 +- .../PaymentLinks/PaymentLinkUpdateOptions.cs | 11 +++++++ .../SetupIntents/SetupIntentCreateOptions.cs | 8 +++-- ...upIntentPaymentMethodOptionsCardOptions.cs | 4 +-- .../SetupIntents/SetupIntentUpdateOptions.cs | 8 +++-- ...SettingsPaymentMethodOptionsCardOptions.cs | 4 +-- .../Subscriptions/SubscriptionService.cs | 4 +-- .../SubscriptionUpdateOptions.cs | 2 +- .../CalculationCustomerDetailsTaxIdOptions.cs | 28 ++++++++-------- .../Services/TaxIds/TaxIdCreateOptions.cs | 28 ++++++++-------- .../Services/TaxRates/TaxRateCreateOptions.cs | 3 +- .../Services/TaxRates/TaxRateUpdateOptions.cs | 3 +- .../AuthorizationCreateOptions.cs | 17 ++++++++++ .../AuthorizationRespondOptions.cs | 15 +++++++++ .../Authorizations/AuthorizationService.cs | 18 ++++++++++ .../Tokens/TokenPersonRelationshipOptions.cs | 6 ++++ .../WebhookEndpointCreateOptions.cs | 4 +-- 109 files changed, 776 insertions(+), 290 deletions(-) create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionAdaptivePricing.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptions.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptions.cs create mode 100644 src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationFraudChallenge.cs create mode 100644 src/Stripe.net/Entities/Payouts/PayoutTraceId.cs create mode 100644 src/Stripe.net/Services/Checkout/Sessions/SessionAdaptivePricingOptions.cs create mode 100644 src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptionsOptions.cs create mode 100644 src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs create mode 100644 src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c626f7dd81..7ab08411da 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1319 \ No newline at end of file +v1347 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index d49d4d714d..090fbcce39 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2024-10-28.acacia"; + public const string Current = "2024-11-20.acacia"; } } \ No newline at end of file diff --git a/src/Stripe.net/Constants/FilePurpose.cs b/src/Stripe.net/Constants/FilePurpose.cs index 71ba1b9fc5..df31d44b43 100644 --- a/src/Stripe.net/Constants/FilePurpose.cs +++ b/src/Stripe.net/Constants/FilePurpose.cs @@ -19,6 +19,8 @@ public static class FilePurpose public const string FinanceReportRun = "finance_report_run"; + public const string FinancialAccountStatement = "financial_account_statement"; + public const string IdentityDocument = "identity_document"; public const string IdentityDocumentDownloadable = "identity_document_downloadable"; diff --git a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs index 6ed096c051..88a30b094e 100644 --- a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs +++ b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs @@ -34,7 +34,13 @@ public class AccountFutureRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// This is typed as a string for consistency with requirements.disabled_reason. + /// This is typed as an enum for consistency with requirements.disabled_reason. + /// One of: action_required.requested_capabilities, listed, other, + /// platform_paused, rejected.fraud, rejected.incomplete_verification, + /// rejected.listed, rejected.other, rejected.platform_fraud, + /// rejected.platform_other, rejected.platform_terms_of_service, + /// rejected.terms_of_service, requirements.past_due, + /// requirements.pending_verification, or under_review. /// [JsonProperty("disabled_reason")] public string DisabledReason { get; set; } diff --git a/src/Stripe.net/Entities/Accounts/AccountRequirements.cs b/src/Stripe.net/Entities/Accounts/AccountRequirements.cs index 82914abf16..508030f1ae 100644 --- a/src/Stripe.net/Entities/Accounts/AccountRequirements.cs +++ b/src/Stripe.net/Entities/Accounts/AccountRequirements.cs @@ -33,13 +33,15 @@ public class AccountRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// If the account is disabled, this string describes why. Learn more about - /// handling verification issues. Can be action_required.requested_capabilities, - /// requirements.past_due, requirements.pending_verification, listed, + /// handling verification issues. + /// One of: action_required.requested_capabilities, listed, other, /// platform_paused, rejected.fraud, rejected.incomplete_verification, - /// rejected.listed, rejected.other, rejected.terms_of_service, - /// under_review, or other. + /// rejected.listed, rejected.other, rejected.platform_fraud, + /// rejected.platform_other, rejected.platform_terms_of_service, + /// rejected.terms_of_service, requirements.past_due, + /// requirements.pending_verification, or under_review. /// [JsonProperty("disabled_reason")] public string DisabledReason { get; set; } diff --git a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs index 38c6206755..d7e7908360 100644 --- a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs +++ b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs @@ -12,7 +12,7 @@ namespace Stripe.Billing /// /// Related guide: Billing - /// credits end. + /// credits. /// public class CreditGrant : StripeEntity, IHasId, IHasMetadata, IHasObject { @@ -35,8 +35,8 @@ public class CreditGrant : StripeEntity, IHasId, IHasMetadata, IHas public CreditGrantApplicabilityConfig ApplicabilityConfig { get; set; } /// - /// The category of this credit grant. This is for tracking purposes and will not be - /// displayed to the customer. + /// The category of this credit grant. This is for tracking purposes and isn't displayed to + /// the customer. /// One of: paid, or promotional. /// [JsonProperty("category")] @@ -53,7 +53,7 @@ public class CreditGrant : StripeEntity, IHasId, IHasMetadata, IHas /// /// (ID of the Customer) - /// ID of the customer to whom the billing credits are granted. + /// ID of the customer receiving the billing credits. /// [JsonIgnore] public string CustomerId @@ -64,7 +64,7 @@ public string CustomerId /// /// (Expanded) - /// ID of the customer to whom the billing credits are granted. + /// ID of the customer receiving the billing credits. /// /// For more information, see the expand documentation. /// @@ -81,16 +81,15 @@ public Customer Customer #endregion /// - /// The time when the billing credits become effective i.e when they are eligible to be - /// used. + /// The time when the billing credits become effective—when they're eligible for use. /// [JsonProperty("effective_at")] [JsonConverter(typeof(UnixDateTimeConverter))] public DateTime? EffectiveAt { get; set; } /// - /// The time when the billing credits will expire. If not present, the billing credits will - /// never expire. + /// The time when the billing credits expire. If not present, the billing credits don't + /// expire. /// [JsonProperty("expires_at")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrantApplicabilityConfigScope.cs b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrantApplicabilityConfigScope.cs index 6bfb17fb5f..5cc86cc9bc 100644 --- a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrantApplicabilityConfigScope.cs +++ b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrantApplicabilityConfigScope.cs @@ -6,7 +6,7 @@ namespace Stripe.Billing public class CreditGrantApplicabilityConfigScope : StripeEntity { /// - /// The price type to which credit grants can apply to. We currently only support + /// The price type for which credit grants can apply. We currently only support the /// metered price type. This refers to prices that have a Billing Meter attached to them. /// diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs index acf1d55c20..994309728f 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs @@ -21,7 +21,8 @@ public class ChargePaymentMethodDetailsCard : StripeEntity /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } @@ -138,8 +139,8 @@ public class ChargePaymentMethodDetailsCard : StripeEntity /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, - /// interac, jcb, mastercard, unionpay, visa, or - /// unknown. + /// interac, jcb, link, mastercard, unionpay, + /// visa, or unknown. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs index edf2e332a9..815df4b697 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs @@ -16,7 +16,8 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } @@ -137,8 +138,8 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, - /// interac, jcb, mastercard, unionpay, visa, or - /// unknown. + /// interac, jcb, link, mastercard, unionpay, + /// visa, or unknown. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs index 5652b2606d..5a0d58c86c 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs @@ -105,8 +105,8 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, - /// interac, jcb, mastercard, unionpay, visa, or - /// unknown. + /// interac, jcb, link, mastercard, unionpay, + /// visa, or unknown. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index 33c661970f..fdbbbc9c03 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -38,6 +38,13 @@ public class Session : StripeEntity, IHasId, IHasMetadata, IHasObject [JsonProperty("object")] public string Object { get; set; } + /// + /// Settings for price localization with Adaptive Pricing. + /// + [JsonProperty("adaptive_pricing")] + public SessionAdaptivePricing AdaptivePricing { get; set; } + /// /// When set, provides configuration for actions to take if this Checkout Session expires. /// @@ -502,7 +509,7 @@ public SetupIntent SetupIntent /// relevant text on the page, such as the submit button. submit_type can only be /// specified on Checkout Sessions in payment mode. If blank or auto, /// pay is used. - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionAdaptivePricing.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionAdaptivePricing.cs new file mode 100644 index 0000000000..f34f7cb346 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionAdaptivePricing.cs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + + public class SessionAdaptivePricing : StripeEntity + { + /// + /// Whether Adaptive Pricing is enabled. + /// + [JsonProperty("enabled")] + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs index 2a04a2c4bc..be40c993a0 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs @@ -14,15 +14,15 @@ public class SessionCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, tw_vat, th_vat, jp_cn, jp_rn, - /// jp_trn, li_uid, my_itn, us_ein, kr_brn, - /// ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, - /// my_sst, sg_gst, ae_trn, cl_tin, sa_vat, - /// id_npwp, my_frp, il_vat, ge_vat, ua_vat, - /// is_vat, bg_uic, hu_tin, si_tin, ke_pin, - /// tr_tin, eg_tin, ph_tin, bh_vat, kz_bin, - /// ng_tin, om_vat, de_stn, ch_uid, tz_vat, - /// uz_vat, uz_tin, md_vat, ma_vat, by_tin, or - /// unknown. + /// jp_trn, li_uid, li_vat, my_itn, us_ein, + /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, + /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, + /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, + /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, + /// ke_pin, tr_tin, eg_tin, ph_tin, bh_vat, + /// kz_bin, ng_tin, om_vat, de_stn, ch_uid, + /// tz_vat, uz_vat, uz_tin, md_vat, ma_vat, + /// by_tin, or unknown. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -32,13 +32,14 @@ public class SessionCustomerDetailsTaxId : StripeEntitygb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, unknown, us_ein, uy_ruc, - /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, unknown, us_ein, + /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin, or + /// za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebit.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebit.cs index 1727092548..2aee84f61c 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebit.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebit.cs @@ -5,6 +5,9 @@ namespace Stripe.Checkout public class SessionPaymentMethodOptionsBacsDebit : StripeEntity { + [JsonProperty("mandate_options")] + public SessionPaymentMethodOptionsBacsDebitMandateOptions MandateOptions { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptions.cs new file mode 100644 index 0000000000..e92032779f --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + public class SessionPaymentMethodOptionsBacsDebitMandateOptions : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCard.cs index 3c19a55cc0..9f87dc7523 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCard.cs @@ -8,6 +8,39 @@ public class SessionPaymentMethodOptionsCard : StripeEntity + /// Request ability to capture + /// beyond the standard authorization validity window for this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_extended_authorization")] + public string RequestExtendedAuthorization { get; set; } + + /// + /// Request ability to increment the + /// authorization for this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_incremental_authorization")] + public string RequestIncrementalAuthorization { get; set; } + + /// + /// Request ability to make multiple + /// captures for this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_multicapture")] + public string RequestMulticapture { get; set; } + + /// + /// Request ability to overcapture for + /// this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_overcapture")] + public string RequestOvercapture { get; set; } + /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and { + [JsonProperty("mandate_options")] + public SessionPaymentMethodOptionsSepaDebitMandateOptions MandateOptions { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptions.cs new file mode 100644 index 0000000000..abe858df03 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + public class SessionPaymentMethodOptionsSepaDebitMandateOptions : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs index 80719b0a70..370ad70702 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs @@ -7,7 +7,8 @@ public class ConfirmationTokenPaymentMethodPreviewCard : StripeEntity /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs index 7f50369920..d312e2c52a 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -16,7 +16,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod /// /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } @@ -137,8 +138,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, - /// interac, jcb, mastercard, unionpay, visa, or - /// unknown. + /// interac, jcb, link, mastercard, unionpay, + /// visa, or unknown. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs index 52ce7d76f7..764bb9f049 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs @@ -8,7 +8,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardPresent : StripeEntity /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } diff --git a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs index 34a86f0751..13c1f28f8d 100644 --- a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs @@ -7,7 +7,8 @@ public class DisputePaymentMethodDetailsCard : StripeEntity /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } diff --git a/src/Stripe.net/Entities/Files/File.cs b/src/Stripe.net/Entities/Files/File.cs index 6a57463aa7..2b95419aaf 100644 --- a/src/Stripe.net/Entities/Files/File.cs +++ b/src/Stripe.net/Entities/Files/File.cs @@ -61,7 +61,7 @@ public class File : StripeEntity, IHasId, IHasObject /// One of: account_requirement, additional_verification, /// business_icon, business_logo, customer_signature, /// dispute_evidence, document_provider_identity_document, - /// finance_report_run, identity_document, + /// finance_report_run, financial_account_statement, identity_document, /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, selfie, sigma_scheduled_query, /// tax_document_user_upload, or terminal_reader_splashscreen. diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressAba.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressAba.cs index 7ffc81fc55..c76eeb8253 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressAba.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressAba.cs @@ -5,12 +5,30 @@ namespace Stripe public class FundingInstructionsBankTransferFinancialAddressAba : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + + /// + /// The account holder name. + /// + [JsonProperty("account_holder_name")] + public string AccountHolderName { get; set; } + /// /// The ABA account number. /// [JsonProperty("account_number")] public string AccountNumber { get; set; } + /// + /// The account type. + /// + [JsonProperty("account_type")] + public string AccountType { get; set; } + + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The bank name. /// diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSwift.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSwift.cs index 350be8dad0..d2006eda34 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSwift.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSwift.cs @@ -5,12 +5,30 @@ namespace Stripe public class FundingInstructionsBankTransferFinancialAddressSwift : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + + /// + /// The account holder name. + /// + [JsonProperty("account_holder_name")] + public string AccountHolderName { get; set; } + /// /// The account number. /// [JsonProperty("account_number")] public string AccountNumber { get; set; } + /// + /// The account type. + /// + [JsonProperty("account_type")] + public string AccountType { get; set; } + + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The bank name. /// diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs index 3891a2f1b0..44ef2c2f28 100644 --- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs @@ -99,7 +99,7 @@ public class VerificationReport : StripeEntity, IHasId, IHas public string Type { get; set; } /// - /// The configuration token of a Verification Flow from the dashboard. + /// The configuration token of a verification flow from the dashboard. /// [JsonProperty("verification_flow")] public string VerificationFlow { get; set; } diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs index c31d78157d..6082800239 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs @@ -174,7 +174,7 @@ public VerificationReport LastVerificationReport public string Url { get; set; } /// - /// The configuration token of a Verification Flow from the dashboard. + /// The configuration token of a verification flow from the dashboard. /// [JsonProperty("verification_flow")] public string VerificationFlow { get; set; } diff --git a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs index f81f2775b8..18b509d621 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs @@ -14,15 +14,15 @@ public class InvoiceCustomerTaxId : StripeEntity /// au_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, tw_vat, th_vat, jp_cn, jp_rn, - /// jp_trn, li_uid, my_itn, us_ein, kr_brn, - /// ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, - /// my_sst, sg_gst, ae_trn, cl_tin, sa_vat, - /// id_npwp, my_frp, il_vat, ge_vat, ua_vat, - /// is_vat, bg_uic, hu_tin, si_tin, ke_pin, - /// tr_tin, eg_tin, ph_tin, bh_vat, kz_bin, - /// ng_tin, om_vat, de_stn, ch_uid, tz_vat, - /// uz_vat, uz_tin, md_vat, ma_vat, by_tin, or - /// unknown. + /// jp_trn, li_uid, li_vat, my_itn, us_ein, + /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, + /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, + /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, + /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, + /// ke_pin, tr_tin, eg_tin, ph_tin, bh_vat, + /// kz_bin, ng_tin, om_vat, de_stn, ch_uid, + /// tz_vat, uz_vat, uz_tin, md_vat, ma_vat, + /// by_tin, or unknown. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -32,13 +32,14 @@ public class InvoiceCustomerTaxId : StripeEntity /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, unknown, us_ein, uy_ruc, - /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, unknown, us_ein, + /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin, or + /// za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 5bede43f8e..6be292db2f 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -67,8 +67,8 @@ public class Authorization : StripeEntity, IHasId, IHasMetadata, public List BalanceTransactions { get; set; } /// - /// You can create physical or virtual - /// cards that are issued to cardholders. + /// You can create physical or virtual cards + /// that are issued to cardholders. /// [JsonProperty("card")] public Card Card { get; set; } @@ -127,6 +127,13 @@ public Cardholder Cardholder [JsonProperty("fleet")] public AuthorizationFleet Fleet { get; set; } + /// + /// Fraud challenges sent to the cardholder, if this authorization was declined for fraud + /// risk reasons. + /// + [JsonProperty("fraud_challenges")] + public List FraudChallenges { get; set; } + /// /// Information about fuel that was purchased with this transaction. Typically this /// information is received from the merchant after the authorization has been approved and @@ -257,6 +264,14 @@ public Token Token [JsonProperty("verification_data")] public AuthorizationVerificationData VerificationData { get; set; } + /// + /// Whether the authorization bypassed fraud risk checks because the cardholder has + /// previously completed a fraud challenge on a similar high-risk authorization from the + /// same merchant. + /// + [JsonProperty("verified_by_fraud_challenge")] + public bool? VerifiedByFraudChallenge { get; set; } + /// /// The digital wallet used for this transaction. One of apple_pay, /// google_pay, or samsung_pay. Will populate as null when no digital diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationFraudChallenge.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationFraudChallenge.cs new file mode 100644 index 0000000000..7541abeed5 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationFraudChallenge.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + + public class AuthorizationFraudChallenge : StripeEntity + { + /// + /// The method by which the fraud challenge was delivered to the cardholder. + /// + [JsonProperty("channel")] + public string Channel { get; set; } + + /// + /// The status of the fraud challenge. + /// One of: expired, pending, rejected, undeliverable, or + /// verified. + /// + [JsonProperty("status")] + public string Status { get; set; } + + /// + /// If the challenge is not deliverable, the reason why. + /// One of: no_phone_number, or unsupported_phone_number. + /// + [JsonProperty("undeliverable_reason")] + public string UndeliverableReason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs index 6ab68cc245..9510751286 100644 --- a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs +++ b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs @@ -10,8 +10,9 @@ namespace Stripe.Issuing /// An Issuing Cardholder object represents an individual or business entity who is /// issued cards. /// - /// Related guide: How to - /// create a cardholder. + /// Related guide: How + /// to create a cardholder. /// public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasObject { diff --git a/src/Stripe.net/Entities/Issuing/Cards/Card.cs b/src/Stripe.net/Entities/Issuing/Cards/Card.cs index 94d66892c6..37f46fbb3f 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/Card.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/Card.cs @@ -7,8 +7,8 @@ namespace Stripe.Issuing using Stripe.Infrastructure; /// - /// You can create physical or virtual - /// cards that are issued to cardholders. + /// You can create physical or virtual cards + /// that are issued to cardholders. /// public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject { @@ -41,8 +41,9 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject /// An Issuing Cardholder object represents an individual or business entity who is /// issued cards. /// - /// Related guide: How to - /// create a cardholder. + /// Related guide: How + /// to create a cardholder. /// [JsonProperty("cardholder")] public Cardholder Cardholder { get; set; } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs index f780264cc0..59638aeafa 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -397,7 +397,9 @@ public PaymentMethod PaymentMethod #endregion /// - /// Information about the payment method configuration used for this PaymentIntent. + /// Information about the payment method + /// configuration used for this PaymentIntent. /// [JsonProperty("payment_method_configuration_details")] public PaymentIntentPaymentMethodConfigurationDetails PaymentMethodConfigurationDetails { get; set; } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressAba.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressAba.cs index 0427bbf2e4..f02d9d213e 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressAba.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressAba.cs @@ -5,12 +5,30 @@ namespace Stripe public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressAba : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + + /// + /// The account holder name. + /// + [JsonProperty("account_holder_name")] + public string AccountHolderName { get; set; } + /// /// The ABA account number. /// [JsonProperty("account_number")] public string AccountNumber { get; set; } + /// + /// The account type. + /// + [JsonProperty("account_type")] + public string AccountType { get; set; } + + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The bank name. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSwift.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSwift.cs index c4c26dd6d4..414f53b251 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSwift.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSwift.cs @@ -5,12 +5,30 @@ namespace Stripe public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSwift : StripeEntity { + [JsonProperty("account_holder_address")] + public Address AccountHolderAddress { get; set; } + + /// + /// The account holder name. + /// + [JsonProperty("account_holder_name")] + public string AccountHolderName { get; set; } + /// /// The account number. /// [JsonProperty("account_number")] public string AccountNumber { get; set; } + /// + /// The account type. + /// + [JsonProperty("account_type")] + public string AccountType { get; set; } + + [JsonProperty("bank_address")] + public Address BankAddress { get; set; } + /// /// The bank name. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs index a843b145a9..61350f320f 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs @@ -30,8 +30,8 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntityamex, cartes_bancaires, diners, discover, - /// eftpos_au, girocard, interac, jcb, mastercard, - /// unionpay, unknown, or visa. + /// eftpos_au, girocard, interac, jcb, link, + /// mastercard, unionpay, unknown, or visa. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs index d819f65810..7d5bcbff80 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs @@ -256,7 +256,7 @@ public Account OnBehalfOf /// /// Indicates the type of transaction being performed which customizes relevant text on the /// page, such as the submit button. - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs index 30d302eb36..91e99aa601 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs @@ -7,7 +7,8 @@ public class PaymentMethodCard : StripeEntity { /// /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs index e750d1303a..08d05b23f1 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -16,7 +16,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str /// /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } @@ -137,8 +138,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, - /// interac, jcb, mastercard, unionpay, visa, or - /// unknown. + /// interac, jcb, link, mastercard, unionpay, + /// visa, or unknown. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs index 7dcfe208f6..bf253120d0 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs @@ -8,7 +8,8 @@ public class PaymentMethodCardPresent : StripeEntity { /// /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } diff --git a/src/Stripe.net/Entities/Payouts/Payout.cs b/src/Stripe.net/Entities/Payouts/Payout.cs index 3e8369c392..93976334ea 100644 --- a/src/Stripe.net/Entities/Payouts/Payout.cs +++ b/src/Stripe.net/Entities/Payouts/Payout.cs @@ -350,6 +350,13 @@ public Payout ReversedBy [JsonProperty("status")] public string Status { get; set; } + /// + /// A value that generates from the beneficiary's bank that allows users to track payouts + /// with their bank. Banks might call this a "reference number" or something similar. + /// + [JsonProperty("trace_id")] + public PayoutTraceId TraceId { get; set; } + /// /// Can be bank_account or card. /// One of: bank_account, or card. diff --git a/src/Stripe.net/Entities/Payouts/PayoutTraceId.cs b/src/Stripe.net/Entities/Payouts/PayoutTraceId.cs new file mode 100644 index 0000000000..55112f418f --- /dev/null +++ b/src/Stripe.net/Entities/Payouts/PayoutTraceId.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PayoutTraceId : StripeEntity + { + /// + /// Possible values are pending, supported, and unsupported. When + /// payout.status is pending or in_transit, this will be + /// pending. When the payout transitions to paid, failed, or + /// canceled, this status will become supported or unsupported shortly + /// after in most cases. In some cases, this may appear as pending for up to 10 days + /// after arrival_date until transitioning to supported or unsupported. + /// + [JsonProperty("status")] + public string Status { get; set; } + + /// + /// The trace ID value if trace_id.status is supported, otherwise nil. + /// + [JsonProperty("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Persons/PersonRelationship.cs b/src/Stripe.net/Entities/Persons/PersonRelationship.cs index 9c88b24f3e..b968af1452 100644 --- a/src/Stripe.net/Entities/Persons/PersonRelationship.cs +++ b/src/Stripe.net/Entities/Persons/PersonRelationship.cs @@ -5,6 +5,12 @@ namespace Stripe public class PersonRelationship : StripeEntity { + /// + /// Whether the person is the authorizer of the account's representative. + /// + [JsonProperty("authorizer")] + public bool? Authorizer { get; set; } + /// /// Whether the person is a director of the account's legal entity. Directors are typically /// members of the governing board of the company, or responsible for ensuring the company diff --git a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs index b304e09918..d8e7de1f67 100644 --- a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs +++ b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsBlik.cs @@ -5,6 +5,13 @@ namespace Stripe public class RefundDestinationDetailsBlik : StripeEntity { + /// + /// For refunds declined by the network, a decline code provided by the network which + /// indicates the reason the refund failed. + /// + [JsonProperty("network_decline_code")] + public string NetworkDeclineCode { get; set; } + /// /// The reference assigned to the refund. /// diff --git a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs index e4f4555bec..23153a439f 100644 --- a/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs +++ b/src/Stripe.net/Entities/Refunds/RefundDestinationDetailsSwish.cs @@ -5,6 +5,13 @@ namespace Stripe public class RefundDestinationDetailsSwish : StripeEntity { + /// + /// For refunds declined by the network, a decline code provided by the network which + /// indicates the reason the refund failed. + /// + [JsonProperty("network_decline_code")] + public string NetworkDeclineCode { get; set; } + /// /// The reference assigned to the refund. /// diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs index 7d3cb24921..79b0adcb48 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs @@ -7,7 +7,8 @@ public class SetupAttemptPaymentMethodDetailsCard : StripeEntity /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, mastercard, unionpay, visa, or unknown. + /// jcb, link, mastercard, unionpay, visa, or + /// unknown. /// [JsonProperty("brand")] public string Brand { get; set; } @@ -86,8 +87,8 @@ public class SetupAttemptPaymentMethodDetailsCard : StripeEntity /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, - /// interac, jcb, mastercard, unionpay, visa, or - /// unknown. + /// interac, jcb, link, mastercard, unionpay, + /// visa, or unknown. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index 417d0903d3..70369dcdc5 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -346,7 +346,9 @@ public PaymentMethod PaymentMethod #endregion /// - /// Information about the payment method configuration used for this Setup Intent. + /// Information about the payment method + /// configuration used for this Setup Intent. /// [JsonProperty("payment_method_configuration_details")] public SetupIntentPaymentMethodConfigurationDetails PaymentMethodConfigurationDetails { get; set; } diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCard.cs index 47644640b1..a67cccc298 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCard.cs @@ -15,8 +15,8 @@ public class SetupIntentPaymentMethodOptionsCard : StripeEntityamex, cartes_bancaires, diners, discover, - /// eftpos_au, girocard, interac, jcb, mastercard, - /// unionpay, unknown, or visa. + /// eftpos_au, girocard, interac, jcb, link, + /// mastercard, unionpay, unknown, or visa. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index 5abdcc244f..bf804b962b 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -450,7 +450,7 @@ public Account OnBehalfOf /// /// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] @@ -573,12 +573,13 @@ public SubscriptionSchedule Schedule /// active when the trial period is over. /// /// A subscription can only enter a paused status when + /// href="https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment">when /// a trial ends without a payment method. A paused subscription doesn't generate /// invoices and can be resumed after your customer adds their payment method. The /// paused status is different from pausing collection, - /// which still generates invoices and leaves the subscription's status unchanged. + /// href="https://stripe.com/docs/billing/subscriptions/pause-payment">pausing + /// collection, which still generates invoices and leaves the subscription's status + /// unchanged. /// /// If subscription collection_method=charge_automatically, it becomes /// past_due when payment is required but cannot be paid (due to failed payment or diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs index 41f99f3342..7c22f03c19 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCard.cs @@ -12,8 +12,8 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCard : StripeEntity< /// Selected network to process this Subscription on. Depends on the available networks of /// the card attached to the Subscription. Can be only set confirm-time. /// One of: amex, cartes_bancaires, diners, discover, - /// eftpos_au, girocard, interac, jcb, mastercard, - /// unionpay, unknown, or visa. + /// eftpos_au, girocard, interac, jcb, link, + /// mastercard, unionpay, unknown, or visa. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs index d1766f4e75..ee45362f22 100644 --- a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs @@ -22,7 +22,8 @@ public class CalculationLineItemTaxBreakdownTaxRateDetails : StripeEntityvat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs index 2edd00ec48..1141ff6a97 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs @@ -14,15 +14,15 @@ public class CalculationCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, tw_vat, th_vat, jp_cn, jp_rn, - /// jp_trn, li_uid, my_itn, us_ein, kr_brn, - /// ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, - /// my_sst, sg_gst, ae_trn, cl_tin, sa_vat, - /// id_npwp, my_frp, il_vat, ge_vat, ua_vat, - /// is_vat, bg_uic, hu_tin, si_tin, ke_pin, - /// tr_tin, eg_tin, ph_tin, bh_vat, kz_bin, - /// ng_tin, om_vat, de_stn, ch_uid, tz_vat, - /// uz_vat, uz_tin, md_vat, ma_vat, by_tin, or - /// unknown. + /// jp_trn, li_uid, li_vat, my_itn, us_ein, + /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, + /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, + /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, + /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, + /// ke_pin, tr_tin, eg_tin, ph_tin, bh_vat, + /// kz_bin, ng_tin, om_vat, de_stn, ch_uid, + /// tz_vat, uz_vat, uz_tin, md_vat, ma_vat, + /// by_tin, or unknown. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -32,13 +32,14 @@ public class CalculationCustomerDetailsTaxId : StripeEntitygb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, unknown, us_ein, uy_ruc, - /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, unknown, us_ein, + /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin, or + /// za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs index 9fc3aceda5..81343738cf 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs @@ -22,7 +22,8 @@ public class CalculationShippingCostTaxBreakdownTaxRateDetails : StripeEntityvat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs index b0324af4cf..292c4215ac 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs @@ -45,7 +45,8 @@ public class CalculationTaxBreakdownTaxRateDetails : StripeEntityvat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs index c08f43e2d2..6639315c28 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs @@ -14,15 +14,15 @@ public class TransactionCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, tw_vat, th_vat, jp_cn, jp_rn, - /// jp_trn, li_uid, my_itn, us_ein, kr_brn, - /// ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, - /// my_sst, sg_gst, ae_trn, cl_tin, sa_vat, - /// id_npwp, my_frp, il_vat, ge_vat, ua_vat, - /// is_vat, bg_uic, hu_tin, si_tin, ke_pin, - /// tr_tin, eg_tin, ph_tin, bh_vat, kz_bin, - /// ng_tin, om_vat, de_stn, ch_uid, tz_vat, - /// uz_vat, uz_tin, md_vat, ma_vat, by_tin, or - /// unknown. + /// jp_trn, li_uid, li_vat, my_itn, us_ein, + /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, + /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, + /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, + /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, + /// ke_pin, tr_tin, eg_tin, ph_tin, bh_vat, + /// kz_bin, ng_tin, om_vat, de_stn, ch_uid, + /// tz_vat, uz_vat, uz_tin, md_vat, ma_vat, + /// by_tin, or unknown. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -32,13 +32,14 @@ public class TransactionCustomerDetailsTaxId : StripeEntitygb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, unknown, us_ein, uy_ruc, - /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, unknown, us_ein, + /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin, or + /// za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs index edd5ec13b7..a63b82a1e4 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs @@ -22,7 +22,8 @@ public class TransactionShippingCostTaxBreakdownTaxRateDetails : StripeEntityvat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs index 2bc1ea90db..3239b94fe4 100644 --- a/src/Stripe.net/Entities/TaxIds/TaxId.cs +++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs @@ -101,14 +101,14 @@ public Customer Customer /// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. Note that some legacy tax - /// IDs have type unknown. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. Note that + /// some legacy tax IDs have type unknown. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -118,13 +118,14 @@ public Customer Customer /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, unknown, us_ein, uy_ruc, - /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, unknown, us_ein, + /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin, or + /// za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/TaxRates/TaxRate.cs b/src/Stripe.net/Entities/TaxRates/TaxRate.cs index 58963b0a68..38262c995c 100644 --- a/src/Stripe.net/Entities/TaxRates/TaxRate.cs +++ b/src/Stripe.net/Entities/TaxRates/TaxRate.cs @@ -146,7 +146,8 @@ public class TaxRate : StripeEntity, IHasId, IHasMetadata, IHasObject /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs index bb8f67fdd5..16b0d77960 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs @@ -5,6 +5,13 @@ namespace Stripe public class AccountPersonRelationshipOptions : INestedOptions { + /// + /// A filter on the list of people returned based on whether these people are authorizers of + /// the account's representative. + /// + [JsonProperty("authorizer")] + public bool? Authorizer { get; set; } + /// /// Whether the person is a director of the account's legal entity. Directors are typically /// members of the governing board of the company, or responsible for ensuring the company diff --git a/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs b/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs index 99dafe47e6..16808a8646 100644 --- a/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditBalanceSummaries/CreditBalanceSummaryFilterApplicabilityScopeOptions.cs @@ -6,7 +6,7 @@ namespace Stripe.Billing public class CreditBalanceSummaryFilterApplicabilityScopeOptions : INestedOptions { /// - /// The price type to which credit grants can apply to. We currently only support + /// The price type for which credit grants can apply. We currently only support the /// metered price type. /// [JsonProperty("price_type")] diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs index c2514286b9..68d0cfe080 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantApplicabilityConfigScopeOptions.cs @@ -6,7 +6,7 @@ namespace Stripe.Billing public class CreditGrantApplicabilityConfigScopeOptions : INestedOptions { /// - /// The price type to which credit grants can apply to. We currently only support + /// The price type for which credit grants can apply. We currently only support the /// metered price type. /// [JsonProperty("price_type")] diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs index 43e1cd575c..de7b1ef117 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantCreateOptions.cs @@ -28,14 +28,14 @@ public class CreditGrantCreateOptions : BaseOptions, IHasMetadata public string Category { get; set; } /// - /// ID of the customer to whom the billing credits should be granted. + /// ID of the customer to receive the billing credits. /// [JsonProperty("customer")] public string Customer { get; set; } /// - /// The time when the billing credits become effective i.e when they are eligible to be - /// used. Defaults to the current timestamp if not specified. + /// The time when the billing credits become effective—when they're eligible for use. + /// Defaults to the current timestamp if not specified. /// [JsonProperty("effective_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -43,7 +43,7 @@ public class CreditGrantCreateOptions : BaseOptions, IHasMetadata /// /// The time when the billing credits will expire. If not specified, the billing credits - /// will never expire. + /// don't expire. /// [JsonProperty("expires_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -51,13 +51,14 @@ public class CreditGrantCreateOptions : BaseOptions, IHasMetadata /// /// Set of key-value pairs that you can attach to an object. This can be useful for storing - /// additional information about the object (ex: cost basis) in a structured format. + /// additional information about the object (for example, cost basis) in a structured + /// format. /// [JsonProperty("metadata")] public Dictionary Metadata { get; set; } /// - /// A descriptive name shown in dashboard. + /// A descriptive name shown in the Dashboard. /// [JsonProperty("name")] public string Name { get; set; } diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantService.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantService.cs index 4b79edc8d6..7bbacbd541 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantService.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantService.cs @@ -45,7 +45,7 @@ public virtual Task CreateAsync(CreditGrantCreateOptions options, R } /// - ///

Expires a credit grant

. + ///

Expires a credit grant.

. ///
public virtual CreditGrant Expire(string id, CreditGrantExpireOptions options = null, RequestOptions requestOptions = null) { @@ -53,7 +53,7 @@ public virtual CreditGrant Expire(string id, CreditGrantExpireOptions options = } /// - ///

Expires a credit grant

. + ///

Expires a credit grant.

. ///
public virtual Task ExpireAsync(string id, CreditGrantExpireOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -77,7 +77,7 @@ public virtual Task GetAsync(string id, CreditGrantGetOptions optio } /// - ///

Retrieve a list of credit grants

. + ///

Retrieve a list of credit grants.

. ///
public virtual StripeList List(CreditGrantListOptions options = null, RequestOptions requestOptions = null) { @@ -85,7 +85,7 @@ public virtual StripeList List(CreditGrantListOptions options = nul } /// - ///

Retrieve a list of credit grants

. + ///

Retrieve a list of credit grants.

. ///
public virtual Task> ListAsync(CreditGrantListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -93,7 +93,7 @@ public virtual Task> ListAsync(CreditGrantListOptions op } /// - ///

Retrieve a list of credit grants

. + ///

Retrieve a list of credit grants.

. ///
public virtual IEnumerable ListAutoPaging(CreditGrantListOptions options = null, RequestOptions requestOptions = null) { @@ -101,7 +101,7 @@ public virtual IEnumerable ListAutoPaging(CreditGrantListOptions op } /// - ///

Retrieve a list of credit grants

. + ///

Retrieve a list of credit grants.

. ///
public virtual IAsyncEnumerable ListAutoPagingAsync(CreditGrantListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -125,7 +125,7 @@ public virtual Task UpdateAsync(string id, CreditGrantUpdateOptions } /// - ///

Voids a credit grant

. + ///

Voids a credit grant.

. ///
public virtual CreditGrant VoidGrant(string id, CreditGrantVoidGrantOptions options = null, RequestOptions requestOptions = null) { @@ -133,7 +133,7 @@ public virtual CreditGrant VoidGrant(string id, CreditGrantVoidGrantOptions opti } /// - ///

Voids a credit grant

. + ///

Voids a credit grant.

. ///
public virtual Task VoidGrantAsync(string id, CreditGrantVoidGrantOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantUpdateOptions.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantUpdateOptions.cs index 9a4f2add7e..988ed67333 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantUpdateOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantUpdateOptions.cs @@ -9,16 +9,17 @@ namespace Stripe.Billing public class CreditGrantUpdateOptions : BaseOptions, IHasMetadata { /// - /// The time when the billing credits created by this credit grant will expire. If set to - /// empty, the billing credits will never expire. + /// The time when the billing credits created by this credit grant expire. If set to empty, + /// the billing credits never expire. /// [JsonProperty("expires_at")] [JsonConverter(typeof(UnixDateTimeConverter))] public DateTime? ExpiresAt { get; set; } /// - /// Set of key-value pairs that you can attach to an object. This can be useful for storing - /// additional information about the object (ex: cost basis) in a structured format. + /// Set of key-value pairs you can attach to an object. This can be useful for storing + /// additional information about the object (for example, cost basis) in a structured + /// format. /// [JsonProperty("metadata")] public Dictionary Metadata { get; set; } diff --git a/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs b/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs index b638adf67e..62ea158d0f 100644 --- a/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs +++ b/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs @@ -15,9 +15,12 @@ public class MeterEventCreateOptions : BaseOptions public string EventName { get; set; } /// - /// A unique identifier for the event. If not provided, one will be generated. We recommend - /// using a globally unique identifier for this. We'll enforce uniqueness within a rolling - /// 24 hour period. + /// A unique identifier for the event. If not provided, one will be generated. We strongly + /// advise using UUID-like identifiers. We will enforce uniqueness within a rolling period + /// of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising + /// from accidental retries or other problems occurring within extremely brief time + /// intervals. This approach helps prevent duplicate entries and ensures data integrity in + /// high-frequency operations. /// [JsonProperty("identifier")] public string Identifier { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionAdaptivePricingOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionAdaptivePricingOptions.cs new file mode 100644 index 0000000000..b0ac89f0ac --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionAdaptivePricingOptions.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + + public class SessionAdaptivePricingOptions : INestedOptions + { + /// + /// Set to true to enable Adaptive Pricing. + /// Defaults to your dashboard setting. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 90ab1e5142..f5f9bad7ee 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -8,6 +8,13 @@ namespace Stripe.Checkout public class SessionCreateOptions : BaseOptions, IHasMetadata { + /// + /// Settings for price localization with Adaptive Pricing. + /// + [JsonProperty("adaptive_pricing")] + public SessionAdaptivePricingOptions AdaptivePricing { get; set; } + /// /// Configure actions after a Checkout Session has expired. /// @@ -339,7 +346,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// relevant text on the page, such as the submit button. submit_type can only be /// specified on Checkout Sessions in payment mode. If blank or auto, /// pay is used. - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. ///
[JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptionsOptions.cs new file mode 100644 index 0000000000..774dfe8fa8 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitMandateOptionsOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + public class SessionPaymentMethodOptionsBacsDebitMandateOptionsOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitOptions.cs index 1f48c65506..39632f5c30 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBacsDebitOptions.cs @@ -5,6 +5,12 @@ namespace Stripe.Checkout public class SessionPaymentMethodOptionsBacsDebitOptions : INestedOptions { + /// + /// Additional fields for Mandate creation. + /// + [JsonProperty("mandate_options")] + public SessionPaymentMethodOptionsBacsDebitMandateOptionsOptions MandateOptions { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs index 3ab9473efb..cd74966784 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs @@ -11,6 +11,39 @@ public class SessionPaymentMethodOptionsCardOptions : INestedOptions [JsonProperty("installments")] public SessionPaymentMethodOptionsCardInstallmentsOptions Installments { get; set; } + /// + /// Request ability to capture + /// beyond the standard authorization validity window for this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_extended_authorization")] + public string RequestExtendedAuthorization { get; set; } + + /// + /// Request ability to increment the + /// authorization for this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_incremental_authorization")] + public string RequestIncrementalAuthorization { get; set; } + + /// + /// Request ability to make multiple + /// captures for this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_multicapture")] + public string RequestMulticapture { get; set; } + + /// + /// Request ability to overcapture for + /// this CheckoutSession. + /// One of: if_available, or never. + /// + [JsonProperty("request_overcapture")] + public string RequestOvercapture { get; set; } + /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + public string CaptureMethod { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKrCardOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKrCardOptions.cs index 4d3e7f82bb..e14c0e24dd 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKrCardOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKrCardOptions.cs @@ -5,6 +5,12 @@ namespace Stripe.Checkout public class SessionPaymentMethodOptionsKrCardOptions : INestedOptions { + /// + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + public string CaptureMethod { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsNaverPayOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsNaverPayOptions.cs index d355970fa0..a9548835c2 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsNaverPayOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsNaverPayOptions.cs @@ -5,6 +5,12 @@ namespace Stripe.Checkout public class SessionPaymentMethodOptionsNaverPayOptions : INestedOptions { + /// + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + public string CaptureMethod { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs index c5849732d1..dca421f322 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs @@ -150,7 +150,7 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions public SessionPaymentMethodOptionsMultibancoOptions Multibanco { get; set; } /// - /// contains details about the Kakao Pay payment method options. + /// contains details about the Naver Pay payment method options. /// [JsonProperty("naver_pay")] public SessionPaymentMethodOptionsNaverPayOptions NaverPay { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs index 9ae065c096..5164581d71 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs @@ -1,7 +1,14 @@ // File generated from our OpenAPI spec namespace Stripe.Checkout { + using Newtonsoft.Json; + public class SessionPaymentMethodOptionsPaycoOptions : INestedOptions { + /// + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + public string CaptureMethod { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs index 4e18c3f84a..64ed560ac4 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs @@ -1,7 +1,14 @@ // File generated from our OpenAPI spec namespace Stripe.Checkout { + using Newtonsoft.Json; + public class SessionPaymentMethodOptionsSamsungPayOptions : INestedOptions { + /// + /// Controls when the funds will be captured from the customer's account. + /// + [JsonProperty("capture_method")] + public string CaptureMethod { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs new file mode 100644 index 0000000000..81539d2ae4 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + public class SessionPaymentMethodOptionsSepaDebitMandateOptionsOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitOptions.cs index bea56bc0da..dd7c837df4 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSepaDebitOptions.cs @@ -5,6 +5,12 @@ namespace Stripe.Checkout public class SessionPaymentMethodOptionsSepaDebitOptions : INestedOptions { + /// + /// Additional fields for Mandate creation. + /// + [JsonProperty("mandate_options")] + public SessionPaymentMethodOptionsSepaDebitMandateOptionsOptions MandateOptions { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs index 0ed6e5e49f..dbd95a0daa 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionShippingAddressCollectionOptions.cs @@ -8,8 +8,7 @@ public class SessionShippingAddressCollectionOptions : INestedOptions { /// /// An array of two-letter ISO country codes representing which countries Checkout should - /// provide as options for shipping locations. Unsupported country codes: AS, CX, CC, CU, - /// HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI. + /// provide as options for shipping locations. /// One of: AC, AD, AE, AF, AG, AI, AL, /// AM, AO, AQ, AR, AT, AU, AW, AX, /// AZ, BA, BB, BD, BE, BF, BG, BH, diff --git a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs index 51c7360f75..4739fadccf 100644 --- a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs @@ -15,13 +15,13 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -31,13 +31,13 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs index 175d62d48a..3db5ff15b6 100644 --- a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs @@ -15,13 +15,13 @@ public class CustomerTaxIdDataOptions : INestedOptions /// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -31,13 +31,13 @@ public class CustomerTaxIdDataOptions : INestedOptions /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs b/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs index e5abfb976d..d43782dfec 100644 --- a/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs +++ b/src/Stripe.net/Services/FileLinks/FileLinkCreateOptions.cs @@ -18,7 +18,7 @@ public class FileLinkCreateOptions : BaseOptions, IHasMetadata /// /// The ID of the file. The file's purpose must be one of the following: /// business_icon, business_logo, customer_signature, - /// dispute_evidence, finance_report_run, + /// dispute_evidence, finance_report_run, financial_account_statement, /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, selfie, sigma_scheduled_query, /// tax_document_user_upload, or terminal_reader_splashscreen. diff --git a/src/Stripe.net/Services/Files/FileListOptions.cs b/src/Stripe.net/Services/Files/FileListOptions.cs index 9bd9b3fee5..c0b844bce4 100644 --- a/src/Stripe.net/Services/Files/FileListOptions.cs +++ b/src/Stripe.net/Services/Files/FileListOptions.cs @@ -11,7 +11,7 @@ public class FileListOptions : ListOptionsWithCreated /// One of: account_requirement, additional_verification, /// business_icon, business_logo, customer_signature, /// dispute_evidence, document_provider_identity_document, - /// finance_report_run, identity_document, + /// finance_report_run, financial_account_statement, identity_document, /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, selfie, sigma_scheduled_query, /// tax_document_user_upload, or terminal_reader_splashscreen. diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs index eebd68fced..0d2e04ba1b 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs @@ -56,7 +56,7 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata public string Type { get; set; } /// - /// The ID of a Verification Flow from the Dashboard. See + /// The ID of a verification flow from the Dashboard. See /// https://docs.stripe.com/identity/verification-flows. /// [JsonProperty("verification_flow")] diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs index bf63c8ec86..8ed28474d6 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs @@ -58,7 +58,8 @@ public class InvoiceLineItemTaxAmountTaxRateDataOptions : INestedOptions /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxIdOptions.cs index 29e9678538..191cb4b15c 100644 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxIdOptions.cs @@ -15,13 +15,13 @@ public class InvoiceUpcomingLinesCustomerDetailsTaxIdOptions : INestedOptions /// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -31,13 +31,13 @@ public class InvoiceUpcomingLinesCustomerDetailsTaxIdOptions : INestedOptions /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs index e094fff71b..10a08a67a8 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs @@ -15,13 +15,13 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -31,13 +31,13 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs index 94e0c2dc0b..5206bf403e 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs @@ -58,7 +58,8 @@ public class InvoiceLineTaxAmountTaxRateDataOptions : INestedOptions /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index 75d31d1522..2aeb0dac7d 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -173,7 +173,9 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata public string PaymentMethod { get; set; } /// - /// The ID of the payment method configuration to use with this PaymentIntent. + /// The ID of the payment method + /// configuration to use with this PaymentIntent. /// [JsonProperty("payment_method_configuration")] public string PaymentMethodConfiguration { get; set; } @@ -195,9 +197,9 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// /// The list of payment method types (for example, a card) that this PaymentIntent can use. - /// If you don't provide this, it defaults to ["card"]. Use automatic_payment_methods - /// to manage payment methods from the Stripe Dashboard. + /// If you don't provide this, Stripe will dynamically show relevant payment methods from + /// your payment method + /// settings. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs index 144e14f272..9ae2cadf1d 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs @@ -53,8 +53,8 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions /// Selected network to process this PaymentIntent on. Depends on the available networks of /// the card attached to the PaymentIntent. Can be only set confirm-time. /// One of: amex, cartes_bancaires, diners, discover, - /// eftpos_au, girocard, interac, jcb, mastercard, - /// unionpay, unknown, or visa. + /// eftpos_au, girocard, interac, jcb, link, + /// mastercard, unionpay, unknown, or visa. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index 33067235d7..8644115ee9 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -87,7 +87,9 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata public string PaymentMethod { get; set; } /// - /// The ID of the payment method configuration to use with this PaymentIntent. + /// The ID of the payment method + /// configuration to use with this PaymentIntent. /// [JsonProperty("payment_method_configuration")] public string PaymentMethodConfiguration { get; set; } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs index 20e7347f34..5935994a19 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -196,7 +196,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// in the url /// property (example: donate.stripe.com). - /// One of: auto, book, donate, or pay. + /// One of: auto, book, donate, pay, or subscribe. /// [JsonProperty("submit_type")] public string SubmitType { get; set; } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs index 298abc7c4e..e6bd2b5a8f 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkShippingAddressCollectionOptions.cs @@ -8,8 +8,7 @@ public class PaymentLinkShippingAddressCollectionOptions : INestedOptions { /// /// An array of two-letter ISO country codes representing which countries Checkout should - /// provide as options for shipping locations. Unsupported country codes: AS, CX, CC, CU, - /// HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI. + /// provide as options for shipping locations. /// One of: AC, AD, AE, AF, AG, AI, AL, /// AM, AO, AQ, AR, AT, AU, AW, AX, /// AZ, BA, BB, BD, BE, BF, BG, BH, diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index 7d67cb6dd1..07340e69e7 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -143,6 +143,17 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata [JsonProperty("shipping_address_collection")] public PaymentLinkShippingAddressCollectionOptions ShippingAddressCollection { get; set; } + /// + /// Describes the type of transaction being performed in order to customize relevant text on + /// the page, such as the submit button. Changing this value will also affect the hostname + /// in the url + /// property (example: donate.stripe.com). + /// One of: auto, book, donate, pay, or subscribe. + /// + [JsonProperty("submit_type")] + public string SubmitType { get; set; } + /// /// When creating a subscription, the specified configuration data will be used. There must /// be at least one line item with a recurring price to use subscription_data. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs index 4566c5087a..5f301f18b4 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs @@ -103,7 +103,9 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata public string PaymentMethod { get; set; } /// - /// The ID of the payment method configuration to use with this SetupIntent. + /// The ID of the payment method + /// configuration to use with this SetupIntent. /// [JsonProperty("payment_method_configuration")] public string PaymentMethodConfiguration { get; set; } @@ -124,7 +126,9 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// /// The list of payment method types (for example, card) that this SetupIntent can use. If - /// you don't provide this, it defaults to ["card"]. + /// you don't provide this, Stripe will dynamically show relevant payment methods from your + /// payment method + /// settings. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs index 937cf9d9a7..0f3ce4fa45 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardOptions.cs @@ -23,8 +23,8 @@ public class SetupIntentPaymentMethodOptionsCardOptions : INestedOptions /// Selected network to process this SetupIntent on. Depends on the available networks of /// the card attached to the SetupIntent. Can be only set confirm-time. /// One of: amex, cartes_bancaires, diners, discover, - /// eftpos_au, girocard, interac, jcb, mastercard, - /// unionpay, unknown, or visa. + /// eftpos_au, girocard, interac, jcb, link, + /// mastercard, unionpay, unknown, or visa. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs index 08d0969234..20f870509e 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs @@ -64,7 +64,9 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata public string PaymentMethod { get; set; } /// - /// The ID of the payment method configuration to use with this SetupIntent. + /// The ID of the payment method + /// configuration to use with this SetupIntent. /// [JsonProperty("payment_method_configuration")] public string PaymentMethodConfiguration { get; set; } @@ -85,7 +87,9 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// /// The list of payment method types (for example, card) that this SetupIntent can set up. - /// If you don't provide this array, it defaults to ["card"]. + /// If you don't provide this, Stripe will dynamically show relevant payment methods from + /// your payment method + /// settings. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs index db735c4b7e..f9f49881d2 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions.cs @@ -15,8 +15,8 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions : INeste /// Selected network to process this Subscription on. Depends on the available networks of /// the card attached to the Subscription. Can be only set confirm-time. /// One of: amex, cartes_bancaires, diners, discover, - /// eftpos_au, girocard, interac, jcb, mastercard, - /// unionpay, unknown, or visa. + /// eftpos_au, girocard, interac, jcb, link, + /// mastercard, unionpay, unknown, or visa. /// [JsonProperty("network")] public string Network { get; set; } diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index fce987ae15..6d584b1199 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -287,7 +287,7 @@ public virtual IAsyncEnumerable SearchAutoPagingAsync(Subscription ///

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

. /// ///

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

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

. /// ///

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

/// If specified, payment collection for this subscription will be paused. Note that the /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing + /// more about pausing /// collection. /// [JsonProperty("pause_collection")] diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs index 6fc929c277..c54a0da019 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs @@ -15,13 +15,13 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -31,13 +31,13 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs index a6b52c3fdf..3c1cacb726 100644 --- a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs @@ -21,13 +21,13 @@ public class TaxIdCreateOptions : BaseOptions /// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn, /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, /// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, @@ -37,13 +37,13 @@ public class TaxIdCreateOptions : BaseOptions /// gb_vat, ge_vat, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kr_brn, kz_bin, li_uid, - /// ma_vat, md_vat, mx_rfc, my_frp, my_itn, - /// my_sst, ng_tin, no_vat, no_voec, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sv_nit, th_vat, tr_tin, tw_vat, - /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin, - /// uz_vat, ve_rif, vn_tin, or za_vat. + /// li_vat, ma_vat, md_vat, mx_rfc, my_frp, + /// my_itn, my_sst, ng_tin, no_vat, no_voec, + /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sv_nit, th_vat, tr_tin, + /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc, + /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs index fc06b72e2b..6fd19f5800 100644 --- a/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs +++ b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs @@ -73,7 +73,8 @@ public class TaxRateCreateOptions : BaseOptions, IHasMetadata /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs index e379de84f5..8629cb70d0 100644 --- a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs +++ b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs @@ -61,7 +61,8 @@ public class TaxRateUpdateOptions : BaseOptions, IHasMetadata /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, or vat. + /// retail_delivery_fee, rst, sales_tax, service_tax, or + /// vat. /// [JsonProperty("tax_type")] public string TaxType { get; set; } diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs index fd6ca1d978..595664a532 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs @@ -64,6 +64,23 @@ public class AuthorizationCreateOptions : BaseOptions [JsonProperty("is_amount_controllable")] public bool? IsAmountControllable { get; set; } + /// + /// The total amount to attempt to authorize. This amount is in the provided merchant + /// currency, and in the smallest + /// currency unit. + /// + [JsonProperty("merchant_amount")] + public long? MerchantAmount { get; set; } + + /// + /// The currency of the authorization. If not provided, defaults to the currency of the + /// card. Three-letter ISO + /// currency code, in lowercase. Must be a supported currency. + /// + [JsonProperty("merchant_currency")] + public string MerchantCurrency { get; set; } + /// /// Details about the seller (grocery store, e-commerce website, etc.) where the card /// authorization happened. diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs new file mode 100644 index 0000000000..119b66af64 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers.Issuing +{ + using Newtonsoft.Json; + + public class AuthorizationRespondOptions : BaseOptions + { + /// + /// Whether to simulate the user confirming that the transaction was legitimate (true) or + /// telling Stripe that it was fraudulent (false). + /// + [JsonProperty("confirmed")] + public bool? Confirmed { get; set; } + } +} diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs index cfbf80a276..b7cca46474 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs @@ -106,6 +106,24 @@ public virtual Stripe.Issuing.Authorization Increment(string id, AuthorizationIn return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/authorizations/{WebUtility.UrlEncode(id)}/increment", options, requestOptions, cancellationToken); } + /// + ///

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

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

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

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

Reverse a test-mode Authorization.

. ///
diff --git a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs index 2bd40a1339..bae8e53255 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs @@ -5,6 +5,12 @@ namespace Stripe public class TokenPersonRelationshipOptions : INestedOptions { + /// + /// Whether the person is the authorizer of the account's representative. + /// + [JsonProperty("authorizer")] + public bool? Authorizer { get; set; } + /// /// Whether the person is a director of the account's legal entity. Directors are typically /// members of the governing board of the company, or responsible for ensuring the company diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 7bf45ab99c..8be80d5990 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -34,8 +34,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2019-08-14, 2019-09-09, 2019-10-08, 2019-10-17, /// 2019-11-05, 2019-12-03, 2020-03-02, 2020-08-27, /// 2022-08-01, 2022-11-15, 2023-08-16, 2023-10-16, - /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, or - /// 2024-10-28.acacia. + /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, + /// 2024-10-28.acacia, or 2024-11-20.acacia. /// [JsonProperty("api_version")] public string ApiVersion { get; set; } From 4d0c154eb7d4a399d21504f1b9ce1f5be14e8cc6 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Wed, 20 Nov 2024 15:33:39 -0800 Subject: [PATCH 10/10] Bump version to 47.1.0 --- CHANGELOG.md | 18 ++++++++++++++++++ VERSION | 2 +- src/Stripe.net/Constants/Version.cs | 2 +- src/Stripe.net/Stripe.net.csproj | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 649e938563..2b903c72eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 47.1.0 - 2024-11-20 +* [#3025](https://github.com/stripe/stripe-dotnet/pull/3025) This release changes the pinned API version to `2024-11-20.acacia`. + * Add support for `Respond` test helper method on resource `Issuing.Authorization` + * Add support for `Authorizer` on `AccountRelationshipOptions` and `TokenPersonRelationshipOptions` + * Add support for `AdaptivePricing` on `Checkout.SessionCreateOptions` and `CheckoutSession` + * Add support for `MandateOptions` on `CheckoutSessionPaymentMethodOptionsBacsDebitOptions`, `CheckoutSessionPaymentMethodOptionsBacsDebit`, `CheckoutSessionPaymentMethodOptionsSepaDebitOptions`, and `CheckoutSessionPaymentMethodOptionsSepaDebit` + * Add support for `RequestExtendedAuthorization`, `RequestIncrementalAuthorization`, `RequestMulticapture`, and `RequestOvercapture` on `CheckoutSessionPaymentMethodOptionsCardOptions` and `CheckoutSessionPaymentMethodOptionsCard` + * Add support for `CaptureMethod` on `CheckoutSessionPaymentMethodOptionsKakaoPayOptions`, `CheckoutSessionPaymentMethodOptionsKrCardOptions`, `CheckoutSessionPaymentMethodOptionsNaverPayOptions`, `CheckoutSessionPaymentMethodOptionsPaycoOptions`, and `CheckoutSessionPaymentMethodOptionsSamsungPayOptions` + * Add support for `AccountHolderAddress`, `AccountHolderName`, `AccountType`, and `BankAddress` on `FundingInstructionsBankTransferFinancialAddressesAba`, `FundingInstructionsBankTransferFinancialAddressesSwift`, `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesAba`, and `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesSwift` + * Add support for `MerchantAmount` and `MerchantCurrency` on `Issuing.TestHelpersAuthorizationCreateOptions` + * Add support for `FraudChallenges` and `VerifiedByFraudChallenge` on `IssuingAuthorization` + * Add support for `SubmitType` on `PaymentLinkUpdateOptions` + * Add support for `TraceId` on `Payout` + * Add support for `NetworkDeclineCode` on `RefundDestinationDetailsBlik` and `RefundDestinationDetailsSwish` +* [#3021](https://github.com/stripe/stripe-dotnet/pull/3021) Fix URL encoding of id strings passed to service methods +* [#3026](https://github.com/stripe/stripe-dotnet/pull/3026) Fix V2 list options base class + * Remove `StartingAfter` and `EndingBefore` properties from `Stripe.V2.EventListOptions` and `Stripe.V2.EventDestinationListOptions`. These properties are not supported on V2 List APIs and would result in a HTTP 400 error if provided. + ## 47.0.0 - 2024-10-29 Historically, when upgrading webhooks to a new API version, you also had to upgrade your SDK version. Your webhook's API version needed to match the API version pinned by the SDK you were using to ensure successful deserialization of events. With the `2024-09-30.acacia` release, Stripe follows a [new API release process](https://stripe.com/blog/introducing-stripes-new-api-release-process). As a result, you can safely upgrade your webhook endpoints to any API version within a biannual release (like `acacia`) without upgrading the SDK. diff --git a/VERSION b/VERSION index 645a41f3b4..c734575a82 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -47.0.0 +47.1.0 diff --git a/src/Stripe.net/Constants/Version.cs b/src/Stripe.net/Constants/Version.cs index d8c87ca778..d5febd507e 100644 --- a/src/Stripe.net/Constants/Version.cs +++ b/src/Stripe.net/Constants/Version.cs @@ -2,6 +2,6 @@ namespace Stripe { internal class Version { - public const string Current = "47.0.0"; + public const string Current = "47.1.0"; } } \ No newline at end of file diff --git a/src/Stripe.net/Stripe.net.csproj b/src/Stripe.net/Stripe.net.csproj index 9af60194fe..4775d3e66f 100644 --- a/src/Stripe.net/Stripe.net.csproj +++ b/src/Stripe.net/Stripe.net.csproj @@ -2,7 +2,7 @@ Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for the Stripe API. (Official Library) - 47.0.0 + 47.1.0 8 Stripe, Jayme Davis net5.0;net6.0;net7.0;net8.0;netcoreapp3.1;netstandard2.0;net461