diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index c6274301e1..3413e63fe9 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -14,6 +14,9 @@ public class ChargePaymentMethodDetails : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 3541716eaf..6e43d6bcbe 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -152,12 +152,12 @@ public Cardholder Cardholder public AuthorizationPendingRequest PendingRequest { get; set; } /// - /// History of every time the authorization was approved/denied (whether approved/denied by - /// you directly or by Stripe based on your spending_controls). If the merchant - /// changes the authorization by performing an pending_request was approved/denied, either by you directly + /// or by Stripe (e.g. based on your spending_controls). If the merchant changes the + /// authorization by performing an incremental - /// authorization or partial capture, you can look at this field to see the previous - /// states of the authorization. + /// authorization, you can look at this field to see the previous requests for the + /// authorization. /// [JsonProperty("request_history")] public List RequestHistory { get; set; } diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs index bf858b91be..44e84320cf 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs @@ -8,10 +8,10 @@ namespace Stripe.Issuing public class AuthorizationRequestHistory : StripeEntity { /// - /// The authorization amount in your card's currency and in the smallest currency unit. - /// Stripe held this amount from your account to fund the authorization if the request was - /// approved. + /// The pending_request.amount at the time of the request, presented in your card's + /// currency and in the smallest + /// currency unit. Stripe held this amount from your account to fund the authorization + /// if the request was approved. /// [JsonProperty("amount")] public long Amount { get; set; } @@ -46,7 +46,7 @@ public class AuthorizationRequestHistory : StripeEntity - /// The amount that was authorized at the time of this request. This amount is in the + /// The pending_request.merchant_amount at the time of the request, presented in the /// merchant_currency and in the smallest currency unit. /// diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index aa36442cad..b2996ca10f 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -20,6 +20,9 @@ public class PaymentMethod : StripeEntity, IHasId, IHasMetadata, [JsonProperty("object")] public string Object { get; set; } + [JsonProperty("afterpay_clearpay")] + public PaymentMethodAfterpayClearpay AfterpayClearpay { get; set; } + [JsonProperty("alipay")] public PaymentMethodAlipay Alipay { get; set; } @@ -130,10 +133,10 @@ public Customer Customer /// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with /// a name matching this value. It contains additional information specific to the /// PaymentMethod type. - /// One of: alipay, au_becs_debit, bacs_debit, bancontact, - /// card, card_present, eps, fpx, giropay, - /// grabpay, ideal, interac_present, oxxo, p24, - /// sepa_debit, or sofort. + /// One of: afterpay_clearpay, alipay, au_becs_debit, + /// bacs_debit, bancontact, card, card_present, eps, + /// fpx, giropay, grabpay, ideal, interac_present, + /// oxxo, p24, sepa_debit, or sofort. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodAfterpayClearpay.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodAfterpayClearpay.cs new file mode 100644 index 0000000000..f5e748ca91 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodAfterpayClearpay.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodAfterpayClearpay : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs index 1f9461d5d3..2bf162c4aa 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs @@ -5,6 +5,12 @@ namespace Stripe public class SetupAttemptPaymentMethodDetails : StripeEntity { + [JsonProperty("au_becs_debit")] + public SetupAttemptPaymentMethodDetailsAuBecsDebit AuBecsDebit { get; set; } + + [JsonProperty("bacs_debit")] + public SetupAttemptPaymentMethodDetailsBacsDebit BacsDebit { get; set; } + [JsonProperty("bancontact")] public SetupAttemptPaymentMethodDetailsBancontact Bancontact { get; set; } @@ -17,6 +23,9 @@ public class SetupAttemptPaymentMethodDetails : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsBacsDebit.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsBacsDebit.cs new file mode 100644 index 0000000000..58556e09c5 --- /dev/null +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsBacsDebit.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class SetupAttemptPaymentMethodDetailsBacsDebit : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsSepaDebit.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsSepaDebit.cs new file mode 100644 index 0000000000..2de6f90aae --- /dev/null +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsSepaDebit.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class SetupAttemptPaymentMethodDetailsSepaDebit : StripeEntity + { + } +} diff --git a/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs b/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs index 651c80b3ce..d6eca38c8d 100644 --- a/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs +++ b/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs @@ -20,9 +20,12 @@ public class AccountLinkCreateOptions : BaseOptions public string Collect { get; set; } /// - /// The URL that the user will be redirected to if the account link is no longer valid. Your - /// refresh_url should trigger a method on your server to create a new account link - /// using this API, with the same parameters, and redirect the user to the new account link. + /// The URL the user will be redirected to if the account link is expired, has been + /// previously-visited, or is otherwise invalid. The URL you specify should attempt to + /// generate a new account link with the same parameters used to create the original account + /// link, then redirect the user to the new account link's URL so they can continue with + /// Connect Onboarding. If a new account link cannot be generated or the redirect fails you + /// should display a useful error to the user. /// [JsonProperty("refresh_url")] public string RefreshUrl { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs new file mode 100644 index 0000000000..2534f04e50 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemAdjustableQuantityOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + + public class SessionLineItemAdjustableQuantityOptions : INestedOptions + { + /// + /// Set to true if the quantity can be adjusted to any non-negative integer. By default + /// customers will be able to remove the line item by setting the quantity to 0. + /// + [JsonProperty("enabled")] + public bool? Enabled { get; set; } + + /// + /// The maximum quantity the customer can purchase for the Checkout Session. By default this + /// value is 99. + /// + [JsonProperty("maximum")] + public long? Maximum { get; set; } + + /// + /// The minimum quantity the customer must purchase for the Checkout Session. By default + /// this value is 0. + /// + [JsonProperty("minimum")] + public long? Minimum { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs index 445589f18f..128f728c17 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs @@ -6,6 +6,13 @@ namespace Stripe.Checkout public class SessionLineItemOptions : INestedOptions { + /// + /// When set, provides configuration for this item’s quantity to be adjusted by the customer + /// during Checkout. + /// + [JsonProperty("adjustable_quantity")] + public SessionLineItemAdjustableQuantityOptions AdjustableQuantity { get; set; } + /// /// The amount to be collected per unit of the line item. If specified, must also pass /// currency and name. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataAfterpayClearpayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataAfterpayClearpayOptions.cs new file mode 100644 index 0000000000..7689c86f47 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataAfterpayClearpayOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentIntentPaymentMethodDataAfterpayClearpayOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index a4d22e371a..0d1324eba3 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -6,6 +6,13 @@ namespace Stripe public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata { + /// + /// If this is an AfterpayClearpay PaymentMethod, this hash contains details about + /// the AfterpayClearpay payment method. + /// + [JsonProperty("afterpay_clearpay")] + public PaymentIntentPaymentMethodDataAfterpayClearpayOptions AfterpayClearpay { get; set; } + /// /// If this is an Alipay PaymentMethod, this hash contains details about the Alipay /// payment method. @@ -124,9 +131,10 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with /// a name matching this value. It contains additional information specific to the /// PaymentMethod type. - /// One of: alipay, au_becs_debit, bacs_debit, bancontact, - /// eps, fpx, giropay, grabpay, ideal, oxxo, - /// p24, sepa_debit, or sofort. + /// One of: afterpay_clearpay, alipay, au_becs_debit, + /// bacs_debit, bancontact, eps, fpx, giropay, + /// grabpay, ideal, oxxo, p24, sepa_debit, or + /// sofort. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodAfterpayClearpayOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodAfterpayClearpayOptions.cs new file mode 100644 index 0000000000..4fe4d66e2a --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodAfterpayClearpayOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodAfterpayClearpayOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs index d6cdc84252..53be22dbd4 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs @@ -6,6 +6,13 @@ namespace Stripe public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata { + /// + /// If this is an AfterpayClearpay PaymentMethod, this hash contains details about + /// the AfterpayClearpay payment method. + /// + [JsonProperty("afterpay_clearpay")] + public PaymentMethodAfterpayClearpayOptions AfterpayClearpay { get; set; } + /// /// If this is an Alipay PaymentMethod, this hash contains details about the Alipay /// payment method. @@ -139,9 +146,10 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with /// a name matching this value. It contains additional information specific to the /// PaymentMethod type. - /// One of: alipay, au_becs_debit, bacs_debit, bancontact, - /// card, eps, fpx, giropay, grabpay, ideal, - /// oxxo, p24, sepa_debit, or sofort. + /// One of: afterpay_clearpay, alipay, au_becs_debit, + /// bacs_debit, bancontact, card, eps, fpx, + /// giropay, grabpay, ideal, oxxo, p24, + /// sepa_debit, or sofort. /// [JsonProperty("type")] public string Type { get; set; }