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 #3050

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
25 changes: 0 additions & 25 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1455
v1495
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2025-01-27.acacia";
public const string Current = "2025-02-24.acacia";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ namespace Stripe
public class BalanceInstantAvailableNetAvailableSourceTypes : StripeEntity<BalanceInstantAvailableNetAvailableSourceTypes>
{
/// <summary>
/// Amount for bank account.
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
public long BankAccount { get; set; }

/// <summary>
/// Amount for card.
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
public long Card { get; set; }

/// <summary>
/// Amount for FPX.
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
public long Fpx { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ namespace Stripe
public class BalanceInstantAvailableSourceTypes : StripeEntity<BalanceInstantAvailableSourceTypes>
{
/// <summary>
/// Amount for bank account.
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
public long BankAccount { get; set; }

/// <summary>
/// Amount for card.
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
public long Card { get; set; }

/// <summary>
/// Amount for FPX.
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
public long Fpx { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ public Customer Customer
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// The priority for applying this credit grant. The highest priority is 0 and the lowest is
/// 100.
/// </summary>
[JsonProperty("priority")]
public long? Priority { get; set; }

#region Expandable TestClock

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;

public class CreditGrantApplicabilityConfigScope : StripeEntity<CreditGrantApplicabilityConfigScope>
Expand All @@ -12,5 +13,13 @@ public class CreditGrantApplicabilityConfigScope : StripeEntity<CreditGrantAppli
/// </summary>
[JsonProperty("price_type")]
public string PriceType { get; set; }

/// <summary>
/// The prices that credit grants can apply to. We currently only support <c>metered</c>
/// prices. This refers to prices that have a <a
/// href="https://docs.stripe.com/api/billing/meter">Billing Meter</a> attached to them.
/// </summary>
[JsonProperty("prices")]
public List<CreditGrantApplicabilityConfigScopePrice> Prices { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using Newtonsoft.Json;

public class CreditGrantApplicabilityConfigScopePrice : StripeEntity<CreditGrantApplicabilityConfigScopePrice>, IHasId
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace Stripe.Billing
/// A billing meter event summary represents an aggregated view of a customer's billing
/// meter events within a specified timeframe. It indicates how much usage was accrued by a
/// customer for that period.
///
/// Note: Meters events are aggregated asynchronously so the meter event summaries provide
/// an eventually consistent view of the reported usage.
/// </summary>
public class MeterEventSummary : StripeEntity<MeterEventSummary>, IHasId, IHasObject
{
Expand Down
13 changes: 6 additions & 7 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,12 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
public ChargePaymentMethodDetailsTwint Twint { get; set; }

/// <summary>
/// The type of transaction-specific details of the payment method used in the payment, one
/// of <c>ach_credit_transfer</c>, <c>ach_debit</c>, <c>acss_debit</c>, <c>alipay</c>,
/// <c>au_becs_debit</c>, <c>bancontact</c>, <c>card</c>, <c>card_present</c>, <c>eps</c>,
/// <c>giropay</c>, <c>ideal</c>, <c>klarna</c>, <c>multibanco</c>, <c>p24</c>,
/// <c>sepa_debit</c>, <c>sofort</c>, <c>stripe_account</c>, or <c>wechat</c>. An additional
/// hash is included on <c>payment_method_details</c> with a name matching this value. It
/// contains information specific to the payment method.
/// The type of transaction-specific details of the payment method used in the payment. See
/// <a
/// href="https://stripe.com/docs/api/payment_methods/object#payment_method_object-type">PaymentMethod.type</a>
/// for the full list of possible types. An additional hash is included on
/// <c>payment_method_details</c> with a name matching this value. It contains information
/// specific to the payment method.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,8 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
/// <summary>
/// This is used by the financial networks to identify a transaction. Visa calls this the
/// Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
/// Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
/// Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
/// the date (MM/DD). This field will be available for successful Visa, Mastercard, or
/// American Express transactions and always null for other card brands.
/// Acquirer Reference Data. This value will be present if it is returned by the financial
/// network in the authorization response, and null otherwise.
/// </summary>
[JsonProperty("network_transaction_id")]
public string NetworkTransactionId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentM
/// <summary>
/// This is used by the financial networks to identify a transaction. Visa calls this the
/// Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
/// Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
/// Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
/// the date (MM/DD). This field will be available for successful Visa, Mastercard, or
/// American Express transactions and always null for other card brands.
/// Acquirer Reference Data. This value will be present if it is returned by the financial
/// network in the authorization response, and null otherwise.
/// </summary>
[JsonProperty("network_transaction_id")]
public string NetworkTransactionId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity<ChargePayme
/// <summary>
/// This is used by the financial networks to identify a transaction. Visa calls this the
/// Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
/// Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
/// Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
/// the date (MM/DD). This field will be available for successful Visa, Mastercard, or
/// American Express transactions and always null for other card brands.
/// Acquirer Reference Data. This value will be present if it is returned by the financial
/// network in the authorization response, and null otherwise.
/// </summary>
[JsonProperty("network_transaction_id")]
public string NetworkTransactionId { get; set; }
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ public class Session : StripeEntity<Session>, IHasId, IHasMetadata, IHasObject
[JsonProperty("client_secret")]
public string ClientSecret { get; set; }

/// <summary>
/// Information about the customer collected within the Checkout Session.
/// </summary>
[JsonProperty("collected_information")]
public SessionCollectedInformation CollectedInformation { get; set; }

/// <summary>
/// Results of <c>consent_collection</c> for this session.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionCollectedInformation : StripeEntity<SessionCollectedInformation>
{
/// <summary>
/// Shipping information for this Checkout Session.
/// </summary>
[JsonProperty("shipping_details")]
public SessionCollectedInformationShippingDetails ShippingDetails { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionCollectedInformationShippingDetails : StripeEntity<SessionCollectedInformationShippingDetails>
{
[JsonProperty("address")]
public Address Address { get; set; }

/// <summary>
/// The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
/// </summary>
[JsonProperty("carrier")]
public string Carrier { get; set; }

/// <summary>
/// Recipient name.
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// Recipient phone (including extension).
/// </summary>
[JsonProperty("phone")]
public string Phone { get; set; }

/// <summary>
/// The tracking number for a physical product, obtained from the delivery service. If
/// multiple tracking numbers were generated for this purchase, please separate them with
/// commas.
/// </summary>
[JsonProperty("tracking_number")]
public string TrackingNumber { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ public class SessionPaymentMethodOptionsAcssDebit : StripeEntity<SessionPaymentM
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }

/// <summary>
/// Controls when Stripe will attempt to debit the funds from the customer's account. The
/// date must be a string in YYYY-MM-DD format. The date must be in the future and between 3
/// and 15 calendar days from now.
/// </summary>
[JsonProperty("target_date")]
public string TargetDate { get; set; }

/// <summary>
/// Bank account verification method.
/// One of: <c>automatic</c>, <c>instant</c>, or <c>microdeposits</c>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,13 @@ public class SessionPaymentMethodOptionsAuBecsDebit : StripeEntity<SessionPaymen
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }

/// <summary>
/// Controls when Stripe will attempt to debit the funds from the customer's account. The
/// date must be a string in YYYY-MM-DD format. The date must be in the future and between 3
/// and 15 calendar days from now.
/// </summary>
[JsonProperty("target_date")]
public string TargetDate { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,13 @@ public class SessionPaymentMethodOptionsBacsDebit : StripeEntity<SessionPaymentM
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }

/// <summary>
/// Controls when Stripe will attempt to debit the funds from the customer's account. The
/// date must be a string in YYYY-MM-DD format. The date must be in the future and between 3
/// and 15 calendar days from now.
/// </summary>
[JsonProperty("target_date")]
public string TargetDate { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class SessionPaymentMethodOptionsCard : StripeEntity<SessionPaymentMethod
[JsonProperty("request_three_d_secure")]
public string RequestThreeDSecure { get; set; }

[JsonProperty("restrictions")]
public SessionPaymentMethodOptionsCardRestrictions Restrictions { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using System.Collections.Generic;
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsCardRestrictions : StripeEntity<SessionPaymentMethodOptionsCardRestrictions>
{
/// <summary>
/// Specify the card brands to block in the Checkout Session. If a customer enters or
/// selects a card belonging to a blocked brand, they can't complete the Session.
/// One of: <c>american_express</c>, <c>discover_global_network</c>, <c>mastercard</c>, or
/// <c>visa</c>.
/// </summary>
[JsonProperty("brands_blocked")]
public List<string> BrandsBlocked { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,13 @@ public class SessionPaymentMethodOptionsSepaDebit : StripeEntity<SessionPaymentM
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }

/// <summary>
/// Controls when Stripe will attempt to debit the funds from the customer's account. The
/// date must be a string in YYYY-MM-DD format. The date must be in the future and between 3
/// and 15 calendar days from now.
/// </summary>
[JsonProperty("target_date")]
public string TargetDate { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ public class SessionPaymentMethodOptionsUsBankAccount : StripeEntity<SessionPaym
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }

/// <summary>
/// Controls when Stripe will attempt to debit the funds from the customer's account. The
/// date must be a string in YYYY-MM-DD format. The date must be in the future and between 3
/// and 15 calendar days from now.
/// </summary>
[JsonProperty("target_date")]
public string TargetDate { get; set; }

/// <summary>
/// Bank account verification method.
/// One of: <c>automatic</c>, or <c>instant</c>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public class SessionShippingCostTax : StripeEntity<SessionShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
public TaxRate Rate { get; set; }
Expand Down
Loading
Loading