Sha256: 4b656dfd5bc38fb1ec1881f617818c19ecaedf611c174023c75d193399cb624c
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module PagSeguro class Subscriptions include Restful def find_by_notification_code(code) get("/pre-approvals/notifications/#{code}") end def create(params) params = parameterize params post("/pre-approvals", params) end def update(code, params) params = parameterize params put("/pre-approvals/#{code}/payment-method", params) end def url(code) url_for :site, "/v2/pre-approvals/request.html", code: code end end end
Version data entries
6 entries across 6 versions & 1 rubygems