1 module Email
2 VERSION: String
3 end
4
5 module SmbCloud
6 module Email
7 class Error < StandardError
8 attr_reader payload: untyped
9 end
10
11 module Environment
12 DEV: String
13 PRODUCTION: String
14 end
15
16 class Client
17 attr_reader environment: String
18 attr_reader api_key: String
19
20 def initialize: (environment: String, api_key: String) -> void
21 def send: (from: String, to: untyped, ?subject: String?, ?html: String?, ?text: String?, ?cc: untyped, ?bcc: untyped, ?reply_to: untyped, ?attachments: untyped, ?headers: untyped, ?tags: untyped, ?idempotency_key: String?) -> Hash[Symbol, untyped]
22 def get_message: (String) -> Hash[Symbol, untyped]
23 def list_messages: (?status: String?, ?limit: Integer?) -> Array[Hash[Symbol, untyped]]
24 end
25
26 def self.client: (environment: String, api_key: String) -> Client
27 end
28 end