Sha256: 3772f21b3db3752ea469014d61b2a58051f5314629d0ece7194b8cc8e8224a90
Contents?: true
Size: 1.5 KB
Versions: 12
Compression:
Stored size: 1.5 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 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( 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
12 entries across 12 versions & 1 rubygems