Sha256: 1b5f2dacd0d240361f9557b0ef78883fda3cdba2835a4f9e1a58a64f0fca1033
Contents?: true
Size: 779 Bytes
Versions: 9
Compression:
Stored size: 779 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
9 entries across 9 versions & 1 rubygems