Skip to content

Commit

Permalink
Update generated code (#2906)
Browse files Browse the repository at this point in the history
* Update generated code for v1010

* Update generated code for v1011

* Update generated code for v1012

* Update generated code for v1013

* Update generated code for v1014

* Update generated code for v1015

* Update generated code for v1016

* Update generated code for v1017

* Update generated code for v1019

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed May 9, 2024
1 parent 361e694 commit 6068d42
Show file tree
Hide file tree
Showing 36 changed files with 415 additions and 35 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1007
v1019
10 changes: 10 additions & 0 deletions src/Stripe.net/Constants/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,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 @@ -1179,6 +1184,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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; }
}
}
Original file line number Diff line number Diff line change
@@ -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; }
}
}
Original file line number Diff line number Diff line change
@@ -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; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,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
Original file line number Diff line number Diff line change
@@ -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; }
}
}
Original file line number Diff line number Diff line change
@@ -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; }
}
}
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,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
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ public class InvoiceCreatePreviewOptions : BaseOptions
[JsonProperty("on_behalf_of")]
public string OnBehalfOf { get; set; }

/// <summary>
/// Customizes the types of values to include when calculating the invoice. Defaults to
/// <c>next</c> if unspecified.
/// One of: <c>next</c>, or <c>recurring</c>.
/// </summary>
[JsonProperty("preview_mode")]
public string PreviewMode { get; set; }

/// <summary>
/// The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be
/// used with subscription or subscription fields.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ public class UpcomingInvoiceListLineItemsOptions : ListOptions
[JsonProperty("on_behalf_of")]
public string OnBehalfOf { get; set; }

/// <summary>
/// Customizes the types of values to include when calculating the invoice. Defaults to
/// <c>next</c> if unspecified.
/// One of: <c>next</c>, or <c>recurring</c>.
/// </summary>
[JsonProperty("preview_mode")]
public string PreviewMode { get; set; }

/// <summary>
/// The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be
/// used with subscription or subscription fields.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,14 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata
[JsonProperty("pending_invoice_item_interval")]
public SubscriptionPendingInvoiceItemIntervalOptions PendingInvoiceItemInterval { get; set; }

/// <summary>
/// How to handle a customer's pending invoice items if an invoice will be generated.
/// Defaults to <c>include</c> if the parameter is omitted.
/// One of: <c>exclude</c>, or <c>include</c>.
/// </summary>
[JsonProperty("pending_invoice_items_behavior")]
public string PendingInvoiceItemsBehavior { get; set; }

/// <summary>
/// The ID of a promotion code to apply to this subscription. A promotion code applied to a
/// subscription will only affect invoices created for that particular subscription. This
Expand Down
Original file line number Diff line number Diff line change
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 6068d42

Please sign in to comment.