Sha256: 302fbc07dc4324d5c08e24e0d85c786cbb660ebad1788907738df7e5e05478cc
Contents?: true
Size: 783 Bytes
Versions: 10
Compression:
Stored size: 783 Bytes
Contents
module Paddle class Notification < Object class << self def list(**params) response = Client.get_request("notifications", params: params) Collection.from_response(response, type: Notification) end def retrieve(id:) response = Client.get_request("notifications/#{id}") Notification.new(response.body["data"]) end # Currently not working # def replay(id) # response = Client.post_request("notifications/#{id}/replay", body: {}) # Notification.new(response.body["data"]) # end def logs(id:, **params) response = Client.get_request("notifications/#{id}/logs", params: params) Collection.from_response(response, type: NotificationLog) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems