stripe-ruby/lib/stripe/resources/quote_phase.rb
2022-10-14 10:08:49 -07:00

28 lines
879 B
Ruby

# 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
extend Stripe::APIOperations::List
OBJECT_NAME = 'quote_phase'
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
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