Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #2796

Merged
merged 7 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v655
v668
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,23 @@ namespace Stripe
public class AccountSettingsBacsDebitPayments : StripeEntity<AccountSettingsBacsDebitPayments>
{
/// <summary>
/// The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct
/// Debit, this will appear on the mandate, and as the statement descriptor.
/// The Bacs Direct Debit display name for this account. For payments made with Bacs Direct
/// Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps
/// display it as the name of the business. To use custom branding, set the Bacs Direct
/// Debit Display Name during or right after creation. Custom branding incurs an additional
/// monthly fee for the platform. The fee appears 5 business days after requesting Bacs. If
/// you don't set the display name before requesting Bacs capability, it's automatically set
/// as "Stripe" and the account is onboarded to Stripe branding, which is free.
/// </summary>
[JsonProperty("display_name")]
public string DisplayName { get; set; }

/// <summary>
/// The Bacs Direct Debit Service user number for this account. For payments made with Bacs
/// Direct Debit, this number is a unique identifier of the account with our banking
/// partners.
/// </summary>
[JsonProperty("service_user_number")]
public string ServiceUserNumber { get; set; }
}
}
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDetailsCard>
{
Expand All @@ -18,6 +20,14 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
[JsonProperty("brand")]
public string Brand { get; set; }

/// <summary>
/// When using manual capture, a future timestamp at which the charge will be automatically
/// refunded if uncaptured.
/// </summary>
[JsonProperty("capture_before")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime CaptureBefore { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Check results by Card networks on Card address and CVC at time of payment.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
[JsonProperty("paynow")]
public SessionPaymentMethodOptionsPaynow Paynow { get; set; }

[JsonProperty("paypal")]
public SessionPaymentMethodOptionsPaypal Paypal { get; set; }

[JsonProperty("pix")]
public SessionPaymentMethodOptionsPix Pix { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsPaypal : StripeEntity<SessionPaymentMethodOptionsPaypal>
{
/// <summary>
/// Controls when the funds will be captured from the customer's account.
/// </summary>
[JsonProperty("capture_method")]
public string CaptureMethod { get; set; }

/// <summary>
/// Preferred locale of the PayPal checkout page that the customer is redirected to.
/// </summary>
[JsonProperty("preferred_locale")]
public string PreferredLocale { get; set; }

/// <summary>
/// A reference of the PayPal transaction visible to customer which is mapped to PayPal's
/// invoice ID. This must be a globally unique ID if you have configured in your PayPal
/// settings to block multiple payments per invoice ID.
/// </summary>
[JsonProperty("reference")]
public string Reference { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// Providing this parameter will <a
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
/// method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is
/// confirmed and any required actions from the user are complete. If no Customer was
/// provided, the payment method can still be <a
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
/// after the transaction completes.
///
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
/// optimize your payment flow and comply with regional legislation and network rules, such
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
/// One of: <c>none</c>, or <c>off_session</c>.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ public Dispute Dispute
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// Details about the transaction, such as processing dates, set by the card network.
/// </summary>
[JsonProperty("network_data")]
public TransactionNetworkData NetworkData { get; set; }

/// <summary>
/// Additional purchase information that is optionally provided by the merchant.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe.Issuing
{
using Newtonsoft.Json;

public class TransactionNetworkData : StripeEntity<TransactionNetworkData>
{
/// <summary>
/// The date the transaction was processed by the card network. This can be different from
/// the date the seller recorded the transaction depending on when the acquirer submits the
/// transaction to the network.
/// </summary>
[JsonProperty("processing_date")]
public string ProcessingDate { get; set; }
}
}
4 changes: 1 addition & 3 deletions src/Stripe.net/Entities/Topups/Topup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ public BalanceTransaction BalanceTransaction
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// For most Stripe users, the source of every top-up is a bank account. This hash is then
/// the <a href="https://stripe.com/docs/api#source_object">source object</a> describing
/// that bank account.
/// The source field is deprecated. It might not always be present in the API response.
/// </summary>
[JsonProperty("source")]
public Source Source { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSettingsBacsDebitPaymentsOptions : INestedOptions
{
/// <summary>
/// The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct
/// Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps
/// display it as the name of the business. To use custom branding, set the Bacs Direct
/// Debit Display Name during or right after creation. Custom branding incurs an additional
/// monthly fee for the platform. If you don't set the display name before requesting Bacs
/// capability, it's automatically set as "Stripe" and the account is onboarded to Stripe
/// branding, which is free.
/// </summary>
[JsonProperty("display_name")]
public string DisplayName { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class AccountSettingsOptions : INestedOptions
{
/// <summary>
/// Settings specific to Bacs Direct Debit payments.
/// </summary>
[JsonProperty("bacs_debit_payments")]
public AccountSettingsBacsDebitPaymentsOptions BacsDebitPayments { get; set; }

/// <summary>
/// Settings used to apply the account's branding to email receipts, invoices, Checkout, and
/// other products.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ public class SessionListOptions : ListOptions
[JsonProperty("payment_link")]
public string PaymentLink { get; set; }

/// <summary>
/// Only return the Checkout Sessions matching the given status.
/// One of: <c>complete</c>, <c>expired</c>, or <c>open</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }

/// <summary>
/// Only return the Checkout Session for the subscription specified.
/// </summary>
Expand Down
9 changes: 8 additions & 1 deletion src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ public class CreditNoteLineOptions : INestedOptions
[JsonProperty("quantity")]
public long? Quantity { get; set; }

/// <summary>
/// A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with
/// <c>tax_rates</c>.
/// </summary>
[JsonProperty("tax_amounts")]
public List<CreditNoteLineTaxAmountOptions> TaxAmounts { get; set; }

/// <summary>
/// The tax rates which apply to the credit note line item. Only valid when the <c>type</c>
/// is <c>custom_line_item</c>.
/// is <c>custom_line_item</c> and cannot be mixed with <c>tax_amounts</c>.
/// </summary>
[JsonProperty("tax_rates")]
public List<string> TaxRates { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class CreditNoteLineTaxAmountOptions : INestedOptions
{
/// <summary>
/// The amount, in cents (or local equivalent), of the tax.
/// </summary>
[JsonProperty("amount")]
public long? Amount { get; set; }

/// <summary>
/// The id of the tax rate for this tax amount. The tax rate must have been automatically
/// created by Stripe.
/// </summary>
[JsonProperty("tax_rate")]
public string TaxRate { get; set; }

/// <summary>
/// The amount on which tax is calculated, in cents (or local equivalent).
/// </summary>
[JsonProperty("taxable_amount")]
public long? TaxableAmount { get; set; }
}
}
Loading