diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77ce2769..2e813ebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Build run: gem build stripe.gemspec - name: 'Upload Artifact' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: gems path: '*.gem' @@ -66,7 +66,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download all workflow run artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: gems path: gems diff --git a/CHANGELOG.md b/CHANGELOG.md index c2241810..49d81177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ * Add support for `list` and `retrieve` methods on resource `DisputeSettlementDetail` * Remove support for `list` method on resource `QuotePhase` +## 12.6.0 - 2024-09-12 +* [#1442](https://github.com/stripe/stripe-ruby/pull/1442) Update generated code + * Add support for new resource `InvoiceRenderingTemplate` + * Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate` +* [#1443](https://github.com/stripe/stripe-ruby/pull/1443) Removed v1/files override + ## 12.6.0-beta.1 - 2024-09-05 * [#1441](https://github.com/stripe/stripe-ruby/pull/1441) Update generated code for beta * Add support for new resources `Billing.MeterErrorReport` and `Terminal.ReaderCollectedData` diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5f789190..5f5b3111 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1258 \ No newline at end of file +v1267 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index 9dfdf338..73331fa2 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -4,6 +4,6 @@ module Stripe module ApiVersion CURRENT = "2024-06-20" - PREVIEW = "2024-09-05.preview-v2" + PREVIEW = "cs_ubb_launch" end end diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 70daed04..74ec3297 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -107,7 +107,6 @@ module Stripe ProductFeature.object_name => ProductFeature, PromotionCode.object_name => PromotionCode, Quote.object_name => Quote, - QuotePhase.object_name => QuotePhase, QuotePreviewInvoice.object_name => QuotePreviewInvoice, QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule, Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 295b4e59..89f76ecd 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -94,7 +94,6 @@ require "stripe/resources/product" require "stripe/resources/product_feature" require "stripe/resources/promotion_code" require "stripe/resources/quote" -require "stripe/resources/quote_phase" require "stripe/resources/quote_preview_invoice" require "stripe/resources/quote_preview_subscription_schedule" require "stripe/resources/radar/early_fraud_warning" diff --git a/lib/stripe/resources/invoice_rendering_template.rb b/lib/stripe/resources/invoice_rendering_template.rb index 81c0c23d..0e7990af 100644 --- a/lib/stripe/resources/invoice_rendering_template.rb +++ b/lib/stripe/resources/invoice_rendering_template.rb @@ -2,6 +2,8 @@ # frozen_string_literal: true module Stripe + # 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. class InvoiceRenderingTemplate < APIResource extend Stripe::APIOperations::List diff --git a/lib/stripe/resources/quote_phase.rb b/lib/stripe/resources/quote_phase.rb deleted file mode 100644 index 20a4210f..00000000 --- a/lib/stripe/resources/quote_phase.rb +++ /dev/null @@ -1,32 +0,0 @@ -# File generated from our OpenAPI spec -# frozen_string_literal: true - -module Stripe - # A quote phase describes the line items, coupons, and trialing status of a subscription for a predefined time period. - class QuotePhase < APIResource - OBJECT_NAME = "quote_phase" - def self.object_name - "quote_phase" - end - - # When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. - def list_line_items(params = {}, opts = {}) - request_stripe_object( - method: :get, - path: format("/v1/quote_phases/%s/line_items", { quote_phase: CGI.escape(self["id"]) }), - params: params, - opts: opts - ) - end - - # When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. - def self.list_line_items(quote_phase, params = {}, opts = {}) - request_stripe_object( - method: :get, - path: format("/v1/quote_phases/%s/line_items", { quote_phase: CGI.escape(quote_phase) }), - params: params, - opts: opts - ) - end - end -end