Sha256: e36507572216c38ff0e43ac758b90b7099ef32d558b6535a25b0d4bf879e8f81
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe-12.7.0.pre.beta.1 | lib/stripe/resources/quote_phase.rb |