struct

Mollie::Client

Inherits Struct / Value / Object

Constants

API_ENDPOINT = "https://api.mollie.com"
API_VERSION = "v2"
METHODS = ["GET", "POST", "PATCH", "DELETE"] of ::String
MODE_LIVE = "live"
MODE_TEST = "test"

Constructors

new(api_key : String | Nil = Mollie.config.api_key, api_endpoint : String = API_ENDPOINT)
Source

Class methods

instance
Source
with_api_key(api_key : String | Nil)
Source
with_api_key(api_key : String | Nil, &)
Source

Instance methods

api_endpoint
Source
api_key
Source
api_path(api_method : String, id : String | Nil = nil)
Source
perform_http_call(http_method : String, api_method : String, id : String | Nil = nil, http_body : Hash | NamedTuple = HS2.new, query : Hash | NamedTuple = HS2.new)
Source