Skip to content

Commit

Permalink
Merge pull request #2905 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] committed May 9, 2024
2 parents 8d9a5f1 + 135ddcb commit 26370da
Show file tree
Hide file tree
Showing 38 changed files with 414 additions and 45 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,16 @@
* Add support for `Rechnung` on `ChargePaymentMethodDetails`, `ConfirmationTokenPaymentMethodDataOptions`, `ConfirmationTokenPaymentMethodPreview`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodCreateOptions`, `PaymentMethodUpdateOptions`, `PaymentMethod`, and `SetupIntentPaymentMethodDataOptions`
* Add support for `Multibanco` on `CheckoutSessionPaymentMethodOptionsOptions` and `CheckoutSessionPaymentMethodOptions`

## 44.5.0 - 2024-05-02
* [#2900](https://github.com/stripe/stripe-dotnet/pull/2900) Update generated code
* Add support for `Paypal` on `DisputePaymentMethodDetails`
* Change type of `DisputePaymentMethodDetailsType` from `literal('card')` to `enum('card'|'paypal')`
* Add support for `PaymentMethodTypes` on `PaymentIntentConfirmOptions`
* Add support for `ShipFromDetails` on `Tax.CalculationCreateOptions`, `TaxCalculation`, and `TaxTransaction`
* Add support for `Bh`, `Eg`, `Ge`, `Ke`, `Kz`, `Ng`, and `Om` on `TaxRegistrationCountryOptionsOptions` and `TaxRegistrationCountryOptions`
* [#2904](https://github.com/stripe/stripe-dotnet/pull/2904) Add config for dotnet8.0
* [#2903](https://github.com/stripe/stripe-dotnet/pull/2903) Fix clientId getter

## 44.5.0-beta.1 - 2024-04-25
* [#2896](https://github.com/stripe/stripe-dotnet/pull/2896) Update generated code for beta
* Add support for `PaymentMethodSettings` on `AccountSessionComponentsOptions`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v1008
v1020
10 changes: 10 additions & 0 deletions src/Stripe.net/Constants/Events.cs
Expand Up @@ -1305,6 +1305,11 @@ public static class Events
/// </summary>
public const string TreasuryOutboundPaymentReturned = "treasury.outbound_payment.returned";

/// <summary>
/// Occurs whenever tracking_details on an OutboundPayment is updated.
/// </summary>
public const string TreasuryOutboundPaymentTrackingDetailsUpdated = "treasury.outbound_payment.tracking_details_updated";

/// <summary>
/// Occurs whenever an OutboundTransfer is canceled.
/// </summary>
Expand Down Expand Up @@ -1335,6 +1340,11 @@ public static class Events
/// </summary>
public const string TreasuryOutboundTransferReturned = "treasury.outbound_transfer.returned";

/// <summary>
/// Occurs whenever tracking_details on an OutboundTransfer is updated.
/// </summary>
public const string TreasuryOutboundTransferTrackingDetailsUpdated = "treasury.outbound_transfer.tracking_details_updated";

/// <summary>
/// Occurs whenever a received_credit is created as a result of funds being pushed by
/// another account.
Expand Down
5 changes: 4 additions & 1 deletion src/Stripe.net/Entities/Accounts/Account.cs
Expand Up @@ -101,7 +101,10 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,

/// <summary>
/// Whether account details have been submitted. Accounts with Stripe Dashboard access,
/// which includes Standard accounts, cannot receive payouts before this is true.
/// which includes Standard accounts, cannot receive payouts before this is true. Accounts
/// where this is false should be directed to <a
/// href="https://stripe.com/connect/onboarding">an onboarding flow</a> to finish submitting
/// account details.
/// </summary>
[JsonProperty("details_submitted")]
public bool DetailsSubmitted { get; set; }
Expand Down
12 changes: 5 additions & 7 deletions src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs
Expand Up @@ -33,10 +33,11 @@ public class CapabilityRequirements : StripeEntity<CapabilityRequirements>
public List<string> CurrentlyDue { get; set; }

/// <summary>
/// If the capability is disabled, this string describes why. Can be
/// <c>requirements.fields_needed</c>, <c>pending.onboarding</c>, <c>pending.review</c>,
/// <c>rejected.fraud</c>, <c>rejected.other</c>, <c>platform_paused</c>,
/// <c>action_required.requested_capabilities</c>, <c>rejected.inactivty</c>, or
/// If the capability is disabled, this string describes why. <a
/// href="https://stripe.com/docs/connect/handling-api-verification">Learn more about
/// handling verification issues</a>. Can be <c>requirements.fields_needed</c>,
/// <c>pending.onboarding</c>, <c>pending.review</c>, <c>rejected.other</c>,
/// <c>platform_paused</c>, <c>rejected.inactivty</c>, or
/// <c>rejected.unsupported_business</c>.
///
/// <c>rejected.unsupported_business</c> means that the account's business is not supported
Expand All @@ -49,9 +50,6 @@ public class CapabilityRequirements : StripeEntity<CapabilityRequirements>
/// This disabled reason currently only applies to the Issuing capability. See <a
/// href="https://support.stripe.com/questions/issuing-managing-inactive-connect-accounts">Issuing:
/// Managing Inactive Connects</a> for more details.
///
/// If you believe that a rejection is in error, please contact support at
/// https://support.stripe.com/contact/ for assistance.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }
Expand Down
Expand Up @@ -14,7 +14,7 @@ public class FinancingSummaryDetails : StripeEntity<FinancingSummaryDetails>
public long AdvanceAmount { get; set; }

/// <summary>
/// The time at which the funds were paid out the the Connected account's Stripe balance.
/// The time at which the funds were paid out to the connected account's Stripe balance.
/// Given in milliseconds since unix epoch.
/// </summary>
[JsonProperty("advance_paid_out_at")]
Expand Down
Expand Up @@ -16,6 +16,7 @@ public class SessionSavedPaymentMethodOptions : StripeEntity<SessionSavedPayment

/// <summary>
/// Enable customers to choose if they wish to save their payment method for future use.
/// Disabled by default.
/// One of: <c>disabled</c>, or <c>enabled</c>.
/// </summary>
[JsonProperty("payment_method_save")]
Expand Down
Expand Up @@ -17,6 +17,16 @@ public class ConfirmationTokenPaymentMethodPreview : StripeEntity<ConfirmationTo
[JsonProperty("alipay")]
public ConfirmationTokenPaymentMethodPreviewAlipay Alipay { get; set; }

/// <summary>
/// This field indicates whether this payment method can be shown again to its customer in a
/// checkout flow. Stripe products such as Checkout and Elements use this field to determine
/// whether a payment method can be shown as a saved payment method in a checkout flow. The
/// field defaults to “unspecified”.
/// One of: <c>always</c>, <c>limited</c>, or <c>unspecified</c>.
/// </summary>
[JsonProperty("allow_redisplay")]
public string AllowRedisplay { get; set; }

[JsonProperty("amazon_pay")]
public ConfirmationTokenPaymentMethodPreviewAmazonPay AmazonPay { get; set; }

Expand Down
13 changes: 8 additions & 5 deletions src/Stripe.net/Entities/Events/Event.cs
Expand Up @@ -226,13 +226,16 @@ public class Event : StripeEntity<Event>, IHasId, IHasObject
/// <c>treasury.outbound_payment.canceled</c>, <c>treasury.outbound_payment.created</c>,
/// <c>treasury.outbound_payment.expected_arrival_date_updated</c>,
/// <c>treasury.outbound_payment.failed</c>, <c>treasury.outbound_payment.posted</c>,
/// <c>treasury.outbound_payment.returned</c>, <c>treasury.outbound_transfer.canceled</c>,
/// <c>treasury.outbound_transfer.created</c>,
/// <c>treasury.outbound_payment.returned</c>,
/// <c>treasury.outbound_payment.tracking_details_updated</c>,
/// <c>treasury.outbound_transfer.canceled</c>, <c>treasury.outbound_transfer.created</c>,
/// <c>treasury.outbound_transfer.expected_arrival_date_updated</c>,
/// <c>treasury.outbound_transfer.failed</c>, <c>treasury.outbound_transfer.posted</c>,
/// <c>treasury.outbound_transfer.returned</c>, <c>treasury.received_credit.created</c>,
/// <c>treasury.received_credit.failed</c>, <c>treasury.received_credit.succeeded</c>,
/// <c>treasury.received_debit.created</c>, or <c>ping</c>.
/// <c>treasury.outbound_transfer.returned</c>,
/// <c>treasury.outbound_transfer.tracking_details_updated</c>,
/// <c>treasury.received_credit.created</c>, <c>treasury.received_credit.failed</c>,
/// <c>treasury.received_credit.succeeded</c>, <c>treasury.received_debit.created</c>, or
/// <c>ping</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
Expand Up @@ -42,6 +42,16 @@ public class PaymentMethod : StripeEntity<PaymentMethod>, IHasId, IHasMetadata,
[JsonProperty("alipay")]
public PaymentMethodAlipay Alipay { get; set; }

/// <summary>
/// This field indicates whether this payment method can be shown again to its customer in a
/// checkout flow. Stripe products such as Checkout and Elements use this field to determine
/// whether a payment method can be shown as a saved payment method in a checkout flow. The
/// field defaults to “unspecified”.
/// One of: <c>always</c>, <c>limited</c>, or <c>unspecified</c>.
/// </summary>
[JsonProperty("allow_redisplay")]
public string AllowRedisplay { get; set; }

[JsonProperty("amazon_pay")]
public PaymentMethodAmazonPay AmazonPay { get; set; }

Expand Down
7 changes: 4 additions & 3 deletions src/Stripe.net/Entities/Quotes/Quote.cs
Expand Up @@ -293,9 +293,10 @@ public Invoice Invoice
public StripeList<LineItem> LineItems { get; set; }

/// <summary>
/// A list of lines on the quote. These lines describe changes, in the order provided, that
/// will be used to create new subscription schedules or update existing subscription
/// schedules when the quote is accepted.
/// A list of <a href="https://docs.stripe.com/api/quote_lines">quote lines</a> on the
/// quote. These lines describe changes, in the order provided, that will be used to create
/// new subscription schedules or update existing subscription schedules when the quote is
/// accepted.
/// </summary>
[JsonProperty("lines")]
public List<string> Lines { get; set; }
Expand Down
Expand Up @@ -154,6 +154,12 @@ public class OutboundPayment : StripeEntity<OutboundPayment>, IHasId, IHasMetada
[JsonProperty("status_transitions")]
public OutboundPaymentStatusTransitions StatusTransitions { get; set; }

/// <summary>
/// Details about network-specific tracking information if available.
/// </summary>
[JsonProperty("tracking_details")]
public OutboundPaymentTrackingDetails TrackingDetails { get; set; }

#region Expandable Transaction

/// <summary>
Expand Down
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe.Treasury
{
using Newtonsoft.Json;

public class OutboundPaymentTrackingDetails : StripeEntity<OutboundPaymentTrackingDetails>
{
[JsonProperty("ach")]
public OutboundPaymentTrackingDetailsAch Ach { get; set; }

/// <summary>
/// The US bank account network used to send funds.
/// One of: <c>ach</c>, or <c>us_domestic_wire</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("us_domestic_wire")]
public OutboundPaymentTrackingDetailsUsDomesticWire UsDomesticWire { get; set; }
}
}
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.Treasury
{
using Newtonsoft.Json;

public class OutboundPaymentTrackingDetailsAch : StripeEntity<OutboundPaymentTrackingDetailsAch>
{
/// <summary>
/// ACH trace ID of the OutboundPayment for payments sent over the <c>ach</c> network.
/// </summary>
[JsonProperty("trace_id")]
public string TraceId { get; set; }
}
}
@@ -0,0 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe.Treasury
{
using Newtonsoft.Json;

public class OutboundPaymentTrackingDetailsUsDomesticWire : StripeEntity<OutboundPaymentTrackingDetailsUsDomesticWire>
{
/// <summary>
/// IMAD of the OutboundPayment for payments sent over the <c>us_domestic_wire</c> network.
/// </summary>
[JsonProperty("imad")]
public string Imad { get; set; }

/// <summary>
/// OMAD of the OutboundPayment for payments sent over the <c>us_domestic_wire</c> network.
/// </summary>
[JsonProperty("omad")]
public string Omad { get; set; }
}
}
Expand Up @@ -144,6 +144,12 @@ public class OutboundTransfer : StripeEntity<OutboundTransfer>, IHasId, IHasMeta
[JsonProperty("status_transitions")]
public OutboundTransferStatusTransitions StatusTransitions { get; set; }

/// <summary>
/// Details about network-specific tracking information if available.
/// </summary>
[JsonProperty("tracking_details")]
public OutboundTransferTrackingDetails TrackingDetails { get; set; }

#region Expandable Transaction

/// <summary>
Expand Down
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe.Treasury
{
using Newtonsoft.Json;

public class OutboundTransferTrackingDetails : StripeEntity<OutboundTransferTrackingDetails>
{
[JsonProperty("ach")]
public OutboundTransferTrackingDetailsAch Ach { get; set; }

/// <summary>
/// The US bank account network used to send funds.
/// One of: <c>ach</c>, or <c>us_domestic_wire</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("us_domestic_wire")]
public OutboundTransferTrackingDetailsUsDomesticWire UsDomesticWire { get; set; }
}
}
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.Treasury
{
using Newtonsoft.Json;

public class OutboundTransferTrackingDetailsAch : StripeEntity<OutboundTransferTrackingDetailsAch>
{
/// <summary>
/// ACH trace ID of the OutboundTransfer for transfers sent over the <c>ach</c> network.
/// </summary>
[JsonProperty("trace_id")]
public string TraceId { get; set; }
}
}
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
namespace Stripe.Treasury
{
using Newtonsoft.Json;

public class OutboundTransferTrackingDetailsUsDomesticWire : StripeEntity<OutboundTransferTrackingDetailsUsDomesticWire>
{
/// <summary>
/// IMAD of the OutboundTransfer for transfers sent over the <c>us_domestic_wire</c>
/// network.
/// </summary>
[JsonProperty("imad")]
public string Imad { get; set; }

/// <summary>
/// OMAD of the OutboundTransfer for transfers sent over the <c>us_domestic_wire</c>
/// network.
/// </summary>
[JsonProperty("omad")]
public string Omad { get; set; }
}
}
6 changes: 3 additions & 3 deletions src/Stripe.net/Services/Accounts/AccountIndividualOptions.cs
Expand Up @@ -13,13 +13,13 @@ public class AccountIndividualOptions : INestedOptions, IHasMetadata
public AddressOptions Address { get; set; }

/// <summary>
/// The Kana variation of the the individual's primary address (Japan only).
/// The Kana variation of the individual's primary address (Japan only).
/// </summary>
[JsonProperty("address_kana")]
public AddressJapanOptions AddressKana { get; set; }

/// <summary>
/// The Kanji variation of the the individual's primary address (Japan only).
/// The Kanji variation of the individual's primary address (Japan only).
/// </summary>
[JsonProperty("address_kanji")]
public AddressJapanOptions AddressKanji { get; set; }
Expand All @@ -43,7 +43,7 @@ public class AccountIndividualOptions : INestedOptions, IHasMetadata
public string FirstName { get; set; }

/// <summary>
/// The Kana variation of the the individual's first name (Japan only).
/// The Kana variation of the individual's first name (Japan only).
/// </summary>
[JsonProperty("first_name_kana")]
public string FirstNameKana { get; set; }
Expand Down
Expand Up @@ -16,6 +16,7 @@ public class SessionSavedPaymentMethodOptionsOptions : INestedOptions

/// <summary>
/// Enable customers to choose if they wish to save their payment method for future use.
/// Disabled by default.
/// One of: <c>disabled</c>, or <c>enabled</c>.
/// </summary>
[JsonProperty("payment_method_save")]
Expand Down
Expand Up @@ -106,10 +106,10 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata

/// <summary>
/// The ID of a subscription to add this invoice item to. When left blank, the invoice item
/// will be be added to the next upcoming scheduled invoice. When set, scheduled invoices
/// for subscriptions other than the specified subscription will ignore the invoice item.
/// Use this when you want to express that an invoice item has been accrued within the
/// context of a particular subscription.
/// is added to the next upcoming scheduled invoice. When set, scheduled invoices for
/// subscriptions other than the specified subscription will ignore the invoice item. Use
/// this when you want to express that an invoice item has been accrued within the context
/// of a particular subscription.
/// </summary>
[JsonProperty("subscription")]
public string Subscription { get; set; }
Expand Down
7 changes: 4 additions & 3 deletions src/Stripe.net/Services/Quotes/QuoteCreateOptions.cs
Expand Up @@ -130,9 +130,10 @@ public class QuoteCreateOptions : BaseOptions, IHasMetadata
public List<QuoteLineItemOptions> LineItems { get; set; }

/// <summary>
/// A list of lines on the quote. These lines describe changes, in the order provided, that
/// will be used to create new subscription schedules or update existing subscription
/// schedules when the quote is accepted.
/// A list of <a href="https://docs.stripe.com/api/quote_lines">quote lines</a> on the
/// quote. These lines describe changes, in the order provided, that will be used to create
/// new subscription schedules or update existing subscription schedules when the quote is
/// accepted.
/// </summary>
[JsonProperty("lines")]
public List<QuoteLineOptions> Lines { get; set; }
Expand Down
7 changes: 4 additions & 3 deletions src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs
Expand Up @@ -110,9 +110,10 @@ public class QuoteUpdateOptions : BaseOptions, IHasMetadata
public List<QuoteLineItemOptions> LineItems { get; set; }

/// <summary>
/// A list of lines on the quote. These lines describe changes, in the order provided, that
/// will be used to create new subscription schedules or update existing subscription
/// schedules when the quote is accepted.
/// A list of <a href="https://docs.stripe.com/api/quote_lines">quote lines</a> on the
/// quote. These lines describe changes, in the order provided, that will be used to create
/// new subscription schedules or update existing subscription schedules when the quote is
/// accepted.
/// </summary>
[JsonProperty("lines")]
public List<QuoteLineOptions> Lines { get; set; }
Expand Down
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.TestHelpers.Treasury
public class OutboundPaymentReturnOutboundPaymentOptions : BaseOptions
{
/// <summary>
/// Optional hash to set the the return code.
/// Optional hash to set the return code.
/// </summary>
[JsonProperty("returned_details")]
public OutboundPaymentReturnedDetailsOptions ReturnedDetails { get; set; }
Expand Down

0 comments on commit 26370da

Please sign in to comment.