Class: Stripe::V2::Billing::Contracts::PricingLines::QuantityChangeService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/contracts/pricing_lines/quantity_change_service.rb

Instance Method Summary collapse

Methods inherited from StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

#list_contract_pricing_line_quantity_changes(contract_id, pricing_line_id, params = {}, opts = {}) ⇒ Object

List quantity changes for a pricing line on a contract.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/stripe/services/v2/billing/contracts/pricing_lines/quantity_change_service.rb', line 11

def list_contract_pricing_line_quantity_changes(
  contract_id,
  pricing_line_id,
  params = {},
  opts = {}
)
  request(
    method: :get,
    path: format("/v2/billing/contracts/%<contract_id>s/pricing_lines/%<pricing_line_id>s/quantity_changes", { contract_id: CGI.escape(contract_id), pricing_line_id: CGI.escape(pricing_line_id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end