Skip to content

Commit

Permalink
Merge pull request #2973 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 Sep 18, 2024
2 parents f5e3a36 + 75c2239 commit 3ca28f9
Show file tree
Hide file tree
Showing 40 changed files with 229 additions and 444 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Pack
run: dotnet pack src/Stripe.net -c Release --no-build --output nuget
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: nuget
path: nuget/
Expand All @@ -118,7 +118,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: nuget
path: nuget
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
# Changelog

## 45.14.0 - 2024-09-18
* [#2969](https://github.com/stripe/stripe-dotnet/pull/2969) Update generated code
* Add support for `PayerDetails` on `ChargePaymentMethodDetailsKlarna`
* Add support for `AmazonPay` on `DisputePaymentMethodDetails`
* Add support for `AutomaticallyFinalizesAt` on `Invoice`
* Add support for `StateSalesTax` on `TaxRegistrationCountryOptionsUsOptions` and `TaxRegistrationCountryOptionsUs`

## 45.13.0 - 2024-09-13
* [#2962](https://github.com/stripe/stripe-dotnet/pull/2962) Update generated code
* Add support for new resource `InvoiceRenderingTemplate`
* Add support for `Archive`, `Get`, `List`, and `Unarchive` methods on resource `InvoiceRenderingTemplate`
* Add support for `Required` on `CheckoutSessionTaxIdCollectionOptions`, `CheckoutSessionTaxIdCollection`, `PaymentLinkTaxIdCollectionOptions`, and `PaymentLinkTaxIdCollection`
* Add support for `Template` on `CustomerInvoiceSettingsRenderingOptionsOptions`, `CustomerInvoiceSettingsRenderingOptions`, `InvoiceRenderingOptions`, and `InvoiceRendering`
* Add support for `TemplateVersion` on `InvoiceRenderingOptions` and `InvoiceRendering`

## 45.13.0-beta.1 - 2024-09-13
* [#2961](https://github.com/stripe/stripe-dotnet/pull/2961) Update generated code for beta
* Add support for new resources `Issuing.DisputeSettlementDetail` and `Issuing.Settlement`
* Add support for `Get` and `List` methods on resource `DisputeSettlementDetail`
* Remove support for `List` method on resource `QuotePhase`
* Add support for `Settlement` on `Issuing.TransactionListOptions` and `IssuingTransaction`

## 45.12.0 - 2024-09-13
* [#2965](https://github.com/stripe/stripe-dotnet/pull/2965) Stop using deprecated versions of actions
* [#2968](https://github.com/stripe/stripe-dotnet/pull/2968) Update upload artifact version in GH actions
* [#2963](https://github.com/stripe/stripe-dotnet/pull/2963) Add .editorconfig file with minimal change to align with StypeCopAnalyzer

## 45.12.0-beta.1 - 2024-09-05
* [#2956](https://github.com/stripe/stripe-dotnet/pull/2956) Update generated code for beta
* Add support for new resources `Billing.MeterErrorReport` and `Terminal.ReaderCollectedData`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1259
v1267
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace Stripe
internal class ApiVersion
{
public const string Current = "2024-06-20";
public const string CurrentPreview = "2024-09-05.preview-v2";
public const string CurrentPreview = "cs_ubb_launch";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class CapabilityFutureRequirementsError : StripeEntity<CapabilityFutureRe
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class ChargePaymentMethodDetailsKlarna : StripeEntity<ChargePaymentMethodDetailsKlarna>
{
/// <summary>
/// The payer details for this transaction.
/// </summary>
[JsonProperty("payer_details")]
public ChargePaymentMethodDetailsKlarnaPayerDetails PayerDetails { get; set; }

/// <summary>
/// The Klarna payment method used for this transaction. Can be one of <c>pay_later</c>,
/// <c>pay_now</c>, <c>pay_with_financing</c>, or <c>pay_in_installments</c>.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsKlarnaPayerDetails : StripeEntity<ChargePaymentMethodDetailsKlarnaPayerDetails>
{
/// <summary>
/// The payer's address.
/// </summary>
[JsonProperty("address")]
public ChargePaymentMethodDetailsKlarnaPayerDetailsAddress Address { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsKlarnaPayerDetailsAddress : StripeEntity<ChargePaymentMethodDetailsKlarnaPayerDetailsAddress>
{
/// <summary>
/// The payer address country.
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace Stripe

public class DisputePaymentMethodDetails : StripeEntity<DisputePaymentMethodDetails>
{
[JsonProperty("amazon_pay")]
public DisputePaymentMethodDetailsAmazonPay AmazonPay { get; set; }

[JsonProperty("card")]
public DisputePaymentMethodDetailsCard Card { get; set; }

Expand All @@ -16,7 +19,7 @@ public class DisputePaymentMethodDetails : StripeEntity<DisputePaymentMethodDeta

/// <summary>
/// Payment method type.
/// One of: <c>card</c>, <c>klarna</c>, or <c>paypal</c>.
/// One of: <c>amazon_pay</c>, <c>card</c>, <c>klarna</c>, or <c>paypal</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class DisputePaymentMethodDetailsAmazonPay : StripeEntity<DisputePaymentMethodDetailsAmazonPay>
{
/// <summary>
/// The AmazonPay dispute type, chargeback or claim.
/// One of: <c>chargeback</c>, or <c>claim</c>.
/// </summary>
[JsonProperty("dispute_type")]
public string DisputeType { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

/// <summary>
/// Invoice Rendering Templates are used to configure how invoices are rendered on surfaces
/// like the PDF. Invoice Rendering Templates can be created from within the Dashboard, and
/// they can be used over the API when creating invoices.
/// </summary>
public class InvoiceRenderingTemplate : StripeEntity<InvoiceRenderingTemplate>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
Expand Down
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Invoices/Invoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ public Application Application
[JsonProperty("automatic_tax")]
public InvoiceAutomaticTax AutomaticTax { get; set; }

/// <summary>
/// The time when this invoice is currently scheduled to be automatically finalized. The
/// field will be <c>null</c> if the invoice is not scheduled to finalize in the future. If
/// the invoice is not in the draft state, this field will always be <c>null</c> - see
/// <c>finalized_at</c> for the time when an already-finalized invoice was finalized.
/// </summary>
[JsonProperty("automatically_finalizes_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? AutomaticallyFinalizesAt { get; set; }

/// <summary>
/// Indicates the reason why the invoice was created.
///
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ public Account OnBehalfOf
/// <c>cashapp</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>,
/// <c>klarna</c>, <c>konbini</c>, <c>link</c>, <c>mb_way</c>, <c>mobilepay</c>,
/// <c>multibanco</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>payto</c>,
/// <c>pix</c>, <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>swish</c>,
/// <c>twint</c>, <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// <c>pix</c>, <c>promptpay</c>, <c>rechnung</c>, <c>sepa_debit</c>, <c>sofort</c>,
/// <c>swish</c>, <c>twint</c>, <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class PersonFutureRequirementsError : StripeEntity<PersonFutureRequiremen
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Persons/PersonRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class PersonRequirementsError : StripeEntity<PersonRequirementsError>
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
/// <c>verification_supportability</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Loading

0 comments on commit 3ca28f9

Please sign in to comment.