mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
28 lines
879 B
Ruby
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 |