Method: Stripe::TopupService#update

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

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

Updates the metadata of a top-up. Other top-up details are not editable by design.



39
40
41
42
43
44
45
46
47
# File 'lib/stripe/services/topup_service.rb', line 39

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