Method: Stripe::PriceService#update

Defined in:
lib/stripe/services/price_service.rb

#update(price, params = {}, opts = {}) ⇒ Object

Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.



42
43
44
45
46
47
48
49
50
# File 'lib/stripe/services/price_service.rb', line 42

def update(price, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v1/prices/%<price>s", { price: CGI.escape(price) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end