Class: Stripe::V2::Billing::Contracts::LicensePricing::QuantityChangeService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/contracts/license_pricing/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_quantity_changes(contract_id, license_pricing_id, params = {}, opts = {}) ⇒ Object

List license quantity changes for a contract given a license pricing ID.



11
12
13
14
15
16
17
18
19
# File 'lib/stripe/services/v2/billing/contracts/license_pricing/quantity_change_service.rb', line 11

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