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; }