Skip to content

Commit

Permalink
Merge pull request #3031 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Nov 21, 2024
2 parents 88e2dfa + 09df655 commit 0fc580e
Show file tree
Hide file tree
Showing 41 changed files with 416 additions and 73 deletions.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 47.1.0 - 2024-11-20
* [#3025](https://github.com/stripe/stripe-dotnet/pull/3025) This release changes the pinned API version to `2024-11-20.acacia`.
* Add support for `Respond` test helper method on resource `Issuing.Authorization`
* Add support for `Authorizer` on `AccountRelationshipOptions` and `TokenPersonRelationshipOptions`
* Add support for `AdaptivePricing` on `Checkout.SessionCreateOptions` and `CheckoutSession`
* Add support for `MandateOptions` on `CheckoutSessionPaymentMethodOptionsBacsDebitOptions`, `CheckoutSessionPaymentMethodOptionsBacsDebit`, `CheckoutSessionPaymentMethodOptionsSepaDebitOptions`, and `CheckoutSessionPaymentMethodOptionsSepaDebit`
* Add support for `RequestExtendedAuthorization`, `RequestIncrementalAuthorization`, `RequestMulticapture`, and `RequestOvercapture` on `CheckoutSessionPaymentMethodOptionsCardOptions` and `CheckoutSessionPaymentMethodOptionsCard`
* Add support for `CaptureMethod` on `CheckoutSessionPaymentMethodOptionsKakaoPayOptions`, `CheckoutSessionPaymentMethodOptionsKrCardOptions`, `CheckoutSessionPaymentMethodOptionsNaverPayOptions`, `CheckoutSessionPaymentMethodOptionsPaycoOptions`, and `CheckoutSessionPaymentMethodOptionsSamsungPayOptions`
* Add support for `AccountHolderAddress`, `AccountHolderName`, `AccountType`, and `BankAddress` on `FundingInstructionsBankTransferFinancialAddressesAba`, `FundingInstructionsBankTransferFinancialAddressesSwift`, `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesAba`, and `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesSwift`
* Add support for `MerchantAmount` and `MerchantCurrency` on `Issuing.TestHelpersAuthorizationCreateOptions`
* Add support for `FraudChallenges` and `VerifiedByFraudChallenge` on `IssuingAuthorization`
* Add support for `SubmitType` on `PaymentLinkUpdateOptions`
* Add support for `TraceId` on `Payout`
* Add support for `NetworkDeclineCode` on `RefundDestinationDetailsBlik` and `RefundDestinationDetailsSwish`
* [#3021](https://github.com/stripe/stripe-dotnet/pull/3021) Fix URL encoding of id strings passed to service methods
* [#3026](https://github.com/stripe/stripe-dotnet/pull/3026) Fix V2 list options base class
* Remove `StartingAfter` and `EndingBefore` properties from `Stripe.V2.EventListOptions` and `Stripe.V2.EventDestinationListOptions`. These properties are not supported on V2 List APIs and would result in a HTTP 400 error if provided.

## 47.1.0-beta.3 - 2024-11-14
* [#3027](https://github.com/stripe/stripe-dotnet/pull/3027) Update generated code for beta
* Add support for `AccountHolderAddress` and `BankAddress` on `FundingInstructionsBankTransferFinancialAddressesIban`, `FundingInstructionsBankTransferFinancialAddressesSortCode`, `FundingInstructionsBankTransferFinancialAddressesSpei`, `FundingInstructionsBankTransferFinancialAddressesZengin`, `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesIban`, `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesSortCode`, `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesSpei`, and `PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesZengin`
Expand Down Expand Up @@ -34,7 +52,6 @@
* Add support for `Gopay`, `Qris`, and `Shopeepay` on `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, and `PaymentMethodConfiguration`
* [#3011](https://github.com/stripe/stripe-dotnet/pull/3011) Do not allow setting API Version directly on StripeConfiguration
* `StripeConfiguration.ApiVersion` is no longer settable. If you were using this to set the beta headers, use the helper method `StripeConfiguration.AddBetaVersion()` instead.


## 47.0.0 - 2024-10-29

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1356
v1370
5 changes: 5 additions & 0 deletions src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ public static class EventTypes
/// </summary>
public const string InvoiceOverdue = "invoice.overdue";

/// <summary>
/// Occurs when an invoice transitions to paid with a non-zero amount_overpaid.
/// </summary>
public const string InvoiceOverpaid = "invoice.overpaid";

/// <summary>
/// Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid
/// out-of-band.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class AccountSessionComponentsAccountManagementFeatures : StripeEntity<Ac
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity<Ac
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity<AccountSess
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity<A
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity<AccountSessi
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts. The default value for this feature
/// is <c>false</c> when <c>external_account_collection</c> is enabled and <c>true</c>
/// otherwise.
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
14 changes: 14 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargeOutcome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ namespace Stripe

public class ChargeOutcome : StripeEntity<ChargeOutcome>
{
/// <summary>
/// For charges declined by the network, a 2 digit code which indicates the advice returned
/// by the network on how to proceed with an error.
/// </summary>
[JsonProperty("network_advice_code")]
public string NetworkAdviceCode { get; set; }

/// <summary>
/// For charges declined by the network, a brand specific 2, 3, or 4 digit code which
/// indicates the reason the authorization failed.
/// </summary>
[JsonProperty("network_decline_code")]
public string NetworkDeclineCode { get; set; }

/// <summary>
/// Possible values are <c>approved_by_network</c>, <c>declined_by_network</c>,
/// <c>not_sent_to_network</c>, and <c>reversed_after_approval</c>. The value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsAmazonPay : StripeEntity<ChargePaymentMethodDetailsAmazonPay>
{
[JsonProperty("funding")]
public ChargePaymentMethodDetailsAmazonPayFunding Funding { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsAmazonPayFunding : StripeEntity<ChargePaymentMethodDetailsAmazonPayFunding>
{
[JsonProperty("card")]
public ChargePaymentMethodDetailsAmazonPayFundingCard Card { get; set; }

/// <summary>
/// funding type of the underlying payment method.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsAmazonPayFundingCard : StripeEntity<ChargePaymentMethodDetailsAmazonPayFundingCard>
{
/// <summary>
/// Card brand. Can be <c>amex</c>, <c>diners</c>, <c>discover</c>, <c>eftpos_au</c>,
/// <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>, <c>visa</c>, or
/// <c>unknown</c>.
/// </summary>
[JsonProperty("brand")]
public string Brand { get; set; }

/// <summary>
/// Two-letter ISO code representing the country of the card. You could use this attribute
/// to get a sense of the international breakdown of cards you've collected.
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }

/// <summary>
/// Two-digit number representing the card's expiration month.
/// </summary>
[JsonProperty("exp_month")]
public long? ExpMonth { get; set; }

/// <summary>
/// Four-digit number representing the card's expiration year.
/// </summary>
[JsonProperty("exp_year")]
public long? ExpYear { get; set; }

/// <summary>
/// Card funding type. Can be <c>credit</c>, <c>debit</c>, <c>prepaid</c>, or
/// <c>unknown</c>.
/// </summary>
[JsonProperty("funding")]
public string Funding { get; set; }

/// <summary>
/// The last four digits of the card.
/// </summary>
[JsonProperty("last4")]
public string Last4 { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
[JsonProperty("amount_authorized")]
public long? AmountAuthorized { get; set; }

/// <summary>
/// The latest amount intended to be authorized by this charge.
/// </summary>
[JsonProperty("amount_requested")]
public long? AmountRequested { get; set; }

/// <summary>
/// Authorization code on the charge.
/// </summary>
Expand Down Expand Up @@ -158,6 +164,9 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
[JsonProperty("overcapture")]
public ChargePaymentMethodDetailsCardOvercapture Overcapture { get; set; }

[JsonProperty("partial_authorization")]
public ChargePaymentMethodDetailsCardPartialAuthorization PartialAuthorization { get; set; }

/// <summary>
/// Populated if this transaction used 3D Secure authentication.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsCardPartialAuthorization : StripeEntity<ChargePaymentMethodDetailsCardPartialAuthorization>
{
/// <summary>
/// Indicates whether the transaction requested for partial authorization feature and the
/// authorization outcome.
/// One of: <c>declined</c>, <c>fully_authorized</c>, <c>not_requested</c>, or
/// <c>partially_authorized</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsRevolutPay : StripeEntity<ChargePaymentMethodDetailsRevolutPay>
{
[JsonProperty("funding")]
public ChargePaymentMethodDetailsRevolutPayFunding Funding { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsRevolutPayFunding : StripeEntity<ChargePaymentMethodDetailsRevolutPayFunding>
{
[JsonProperty("card")]
public ChargePaymentMethodDetailsRevolutPayFundingCard Card { get; set; }

/// <summary>
/// funding type of the underlying payment method.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsRevolutPayFundingCard : StripeEntity<ChargePaymentMethodDetailsRevolutPayFundingCard>
{
/// <summary>
/// Card brand. Can be <c>amex</c>, <c>diners</c>, <c>discover</c>, <c>eftpos_au</c>,
/// <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>, <c>visa</c>, or
/// <c>unknown</c>.
/// </summary>
[JsonProperty("brand")]
public string Brand { get; set; }

/// <summary>
/// Two-letter ISO code representing the country of the card. You could use this attribute
/// to get a sense of the international breakdown of cards you've collected.
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }

/// <summary>
/// Two-digit number representing the card's expiration month.
/// </summary>
[JsonProperty("exp_month")]
public long? ExpMonth { get; set; }

/// <summary>
/// Four-digit number representing the card's expiration year.
/// </summary>
[JsonProperty("exp_year")]
public long? ExpYear { get; set; }

/// <summary>
/// Card funding type. Can be <c>credit</c>, <c>debit</c>, <c>prepaid</c>, or
/// <c>unknown</c>.
/// </summary>
[JsonProperty("funding")]
public string Funding { get; set; }

/// <summary>
/// The last four digits of the card.
/// </summary>
[JsonProperty("last4")]
public string Last4 { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ namespace Stripe.Checkout

public class SessionPermissionsUpdate : StripeEntity<SessionPermissionsUpdate>
{
/// <summary>
/// Determines which entity is allowed to update the line items.
///
/// Default is <c>client_only</c>. Stripe Checkout client will automatically update the line
/// items. If set to <c>server_only</c>, only your server is allowed to update the line
/// items.
///
/// When set to <c>server_only</c>, you must add the onLineItemsChange event handler when
/// initializing the Stripe Checkout client and manually update the line items from your
/// server using the Stripe API.
/// One of: <c>client_only</c>, or <c>server_only</c>.
/// </summary>
[JsonProperty("line_items")]
public string LineItems { get; set; }

/// <summary>
/// Determines which entity is allowed to update the shipping details.
///
Expand Down
12 changes: 6 additions & 6 deletions src/Stripe.net/Entities/Events/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ public class Event : StripeEntity<Event>, IHasId, IHasObject
/// <c>identity.verification_session.requires_input</c>,
/// <c>identity.verification_session.verified</c>, <c>invoice.created</c>,
/// <c>invoice.deleted</c>, <c>invoice.finalization_failed</c>, <c>invoice.finalized</c>,
/// <c>invoice.marked_uncollectible</c>, <c>invoice.overdue</c>, <c>invoice.paid</c>,
/// <c>invoice.payment.overpaid</c>, <c>invoice.payment_action_required</c>,
/// <c>invoice.payment_attempt_required</c>, <c>invoice.payment_failed</c>,
/// <c>invoice.payment_succeeded</c>, <c>invoice.sent</c>, <c>invoice.upcoming</c>,
/// <c>invoice.updated</c>, <c>invoice.voided</c>, <c>invoice.will_be_due</c>,
/// <c>invoiceitem.created</c>, <c>invoiceitem.deleted</c>,
/// <c>invoice.marked_uncollectible</c>, <c>invoice.overdue</c>, <c>invoice.overpaid</c>,
/// <c>invoice.paid</c>, <c>invoice.payment.overpaid</c>,
/// <c>invoice.payment_action_required</c>, <c>invoice.payment_attempt_required</c>,
/// <c>invoice.payment_failed</c>, <c>invoice.payment_succeeded</c>, <c>invoice.sent</c>,
/// <c>invoice.upcoming</c>, <c>invoice.updated</c>, <c>invoice.voided</c>,
/// <c>invoice.will_be_due</c>, <c>invoiceitem.created</c>, <c>invoiceitem.deleted</c>,
/// <c>issuing_authorization.created</c>, <c>issuing_authorization.request</c>,
/// <c>issuing_authorization.updated</c>, <c>issuing_card.created</c>,
/// <c>issuing_card.updated</c>, <c>issuing_cardholder.created</c>,
Expand Down
Loading

0 comments on commit 0fc580e

Please sign in to comment.