Sha256: f26159bac4e217fcfdf818effacebdfb70342aa30cf841ee8357ccac5338a4aa

Contents?: true

Size: 756 Bytes

Versions: 3

Compression:

Stored size: 756 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stripe-7.1.0.pre.beta.2 lib/stripe/resources/quote_phase.rb
stripe-7.1.0.pre.beta.1 lib/stripe/resources/quote_phase.rb
stripe-6.6.0.pre.beta.1 lib/stripe/resources/quote_phase.rb