From b1dc11f8c0248f8a4b0111f1720d22661ae34fb2 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 19:08:44 +0000 Subject: [PATCH 1/3] Update generated code for v1253 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/quote_phase.rb | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b7ea530d..b2164f87 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1247 \ No newline at end of file +v1253 \ No newline at end of file diff --git a/lib/stripe/resources/quote_phase.rb b/lib/stripe/resources/quote_phase.rb index 7dc2b6ce..20a4210f 100644 --- a/lib/stripe/resources/quote_phase.rb +++ b/lib/stripe/resources/quote_phase.rb @@ -4,18 +4,11 @@ module Stripe # A quote phase describes the line items, coupons, and trialing status of a subscription for a predefined time period. class QuotePhase < APIResource - extend Stripe::APIOperations::List - OBJECT_NAME = "quote_phase" def self.object_name "quote_phase" end - # Returns a list of quote phases. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/quote_phases", params: filters, 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 list_line_items(params = {}, opts = {}) request_stripe_object( From 79daac7bcf8880b1dabaa852cedb1038aff89834 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:57:59 +0000 Subject: [PATCH 2/3] Update generated code for v1255 --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 1 + lib/stripe/resources.rb | 1 + .../resources/invoice_rendering_template.rb | 63 +++++++++++++++++++ 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 lib/stripe/resources/invoice_rendering_template.rb diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b2164f87..6dbaadda 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1253 \ No newline at end of file +v1255 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index aa7cbe0d..33fd46e0 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -78,6 +78,7 @@ module Stripe InvoiceItem.object_name => InvoiceItem, InvoiceLineItem.object_name => InvoiceLineItem, InvoicePayment.object_name => InvoicePayment, + InvoiceRenderingTemplate.object_name => InvoiceRenderingTemplate, Issuing::Authorization.object_name => Issuing::Authorization, Issuing::Card.object_name => Issuing::Card, Issuing::Cardholder.object_name => Issuing::Cardholder, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index cc98740a..54b201de 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -65,6 +65,7 @@ require "stripe/resources/invoice" require "stripe/resources/invoice_item" require "stripe/resources/invoice_line_item" require "stripe/resources/invoice_payment" +require "stripe/resources/invoice_rendering_template" require "stripe/resources/issuing/authorization" require "stripe/resources/issuing/card" require "stripe/resources/issuing/cardholder" diff --git a/lib/stripe/resources/invoice_rendering_template.rb b/lib/stripe/resources/invoice_rendering_template.rb new file mode 100644 index 00000000..81c0c23d --- /dev/null +++ b/lib/stripe/resources/invoice_rendering_template.rb @@ -0,0 +1,63 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class InvoiceRenderingTemplate < APIResource + extend Stripe::APIOperations::List + + OBJECT_NAME = "invoice_rendering_template" + def self.object_name + "invoice_rendering_template" + end + + # Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. + def archive(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/invoice_rendering_templates/%