mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-04 00:01:22 -05:00
Merge upstream and update generated code for v1267
This commit is contained in:
commit
910162ef12
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
@ -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`
|
||||
|
||||
@ -1 +1 @@
|
||||
v1258
|
||||
v1267
|
||||
@ -4,6 +4,6 @@
|
||||
module Stripe
|
||||
module ApiVersion
|
||||
CURRENT = "2024-06-20"
|
||||
PREVIEW = "2024-09-05.preview-v2"
|
||||
PREVIEW = "cs_ubb_launch"
|
||||
end
|
||||
end
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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/%<quote_phase>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/%<quote_phase>s/line_items", { quote_phase: CGI.escape(quote_phase) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user